Fixed various typos.
[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.2.
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.2'
579 PACKAGE_STRING='wxWidgets 2.9.2'
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_PROPGRID_1
853 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
854 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
855 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
856 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
857 COND_MONOLITHIC_0_SHARED_1
858 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
859 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
862 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
863 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
864 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
865 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
866 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
867 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
868 COND_MONOLITHIC_0_USE_AUI_1
869 COND_MONOLITHIC_0_USE_GUI_1
870 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
871 COND_MONOLITHIC_0_USE_HTML_1
872 COND_MONOLITHIC_0_USE_MEDIA_1
873 COND_MONOLITHIC_0_USE_PROPGRID_1
874 COND_MONOLITHIC_0_USE_QA_1
875 COND_MONOLITHIC_0_USE_RIBBON_1
876 COND_MONOLITHIC_0_USE_RICHTEXT_1
877 COND_MONOLITHIC_0_USE_STC_1
878 COND_MONOLITHIC_0_USE_XRC_1
879 COND_MONOLITHIC_1
880 COND_MONOLITHIC_1_SHARED_0
881 COND_MONOLITHIC_1_SHARED_1
882 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
883 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
884 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
885 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
886 COND_PLATFORM_MACOSX_1
887 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
888 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
889 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
890 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
891 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
892 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
893 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
894 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
895 COND_PLATFORM_MACOSX_1_USE_GUI_1
896 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
897 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
898 COND_PLATFORM_MACOS_1
899 COND_PLATFORM_MAC_0
900 COND_PLATFORM_MAC_1
901 COND_PLATFORM_MSDOS_0
902 COND_PLATFORM_MSDOS_1
903 COND_PLATFORM_OS2_1
904 COND_PLATFORM_UNIX_0
905 COND_PLATFORM_UNIX_1
906 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
907 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
908 COND_PLATFORM_UNIX_1_USE_GUI_1
909 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
910 COND_PLATFORM_WIN32_0
911 COND_PLATFORM_WIN32_1
912 COND_PLATFORM_WIN32_1_SHARED_0
913 COND_SHARED_0
914 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
915 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
916 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
917 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
918 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
919 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
920 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
921 COND_SHARED_0_USE_STC_1
922 COND_SHARED_0_wxUSE_EXPAT_builtin
923 COND_SHARED_0_wxUSE_REGEX_builtin
924 COND_SHARED_0_wxUSE_ZLIB_builtin
925 COND_SHARED_1
926 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
927 COND_TOOLKIT_
928 COND_TOOLKIT_COCOA
929 COND_TOOLKIT_COCOA_USE_GUI_1
930 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
931 COND_TOOLKIT_DFB
932 COND_TOOLKIT_DFB_USE_GUI_1
933 COND_TOOLKIT_GTK
934 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
935 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
936 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
937 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
938 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
939 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_GTK_USE_GUI_1
941 COND_TOOLKIT_MAC
942 COND_TOOLKIT_MGL
943 COND_TOOLKIT_MGL_USE_GUI_1
944 COND_TOOLKIT_MOTIF
945 COND_TOOLKIT_MOTIF_USE_GUI_1
946 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
947 COND_TOOLKIT_MSW
948 COND_TOOLKIT_MSW_USE_GUI_1
949 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_MSW_WXUNIV_0
951 COND_TOOLKIT_OSX_CARBON
952 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
953 COND_TOOLKIT_OSX_COCOA
954 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
955 COND_TOOLKIT_OSX_IPHONE
956 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
957 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
958 COND_TOOLKIT_PM
959 COND_TOOLKIT_PM_USE_GUI_1
960 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
961 COND_TOOLKIT_WINCE
962 COND_TOOLKIT_WINCE_USE_GUI_1
963 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
964 COND_TOOLKIT_WINCE_WXUNIV_0
965 COND_TOOLKIT_X11
966 COND_TOOLKIT_X11_USE_GUI_1
967 COND_UNICODE_1
968 COND_USE_CAIRO_1
969 COND_USE_EXCEPTIONS_0
970 COND_USE_EXCEPTIONS_1
971 COND_USE_GUI_0
972 COND_USE_GUI_1
973 COND_USE_GUI_1_USE_OPENGL_1
974 COND_USE_GUI_1_WXUNIV_0
975 COND_USE_GUI_1_WXUNIV_1
976 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
977 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
978 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
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_OPENGL_1
983 COND_USE_PCH_1
984 COND_USE_PLUGINS_0
985 COND_USE_RTTI_0
986 COND_USE_RTTI_1
987 COND_USE_SOTWOSYMLINKS_1
988 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
989 COND_USE_SOVERLINUX_1
990 COND_USE_SOVERSION_0
991 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
992 COND_USE_SOVERSOLARIS_1
993 COND_USE_STC_1
994 COND_USE_THREADS_0
995 COND_USE_THREADS_1
996 COND_USE_XRC_1
997 COND_WINDOWS_IMPLIB_1
998 COND_WITH_PLUGIN_SDL_1
999 COND_WXUNIV_0
1000 COND_WXUNIV_1
1001 COND_WXUSE_EXPAT_BUILTIN
1002 COND_WXUSE_LIBJPEG_BUILTIN
1003 COND_WXUSE_LIBPNG_BUILTIN
1004 COND_WXUSE_LIBTIFF_BUILTIN
1005 COND_WXUSE_REGEX_BUILTIN
1006 COND_WXUSE_ZLIB_BUILTIN
1007 COND_wxUSE_EXPAT_builtin
1008 COND_wxUSE_LIBJPEG_builtin
1009 COND_wxUSE_LIBPNG_builtin
1010 COND_wxUSE_LIBTIFF_builtin
1011 COND_wxUSE_REGEX_builtin
1012 COND_wxUSE_ZLIB_builtin
1013 DEREZ
1014 SHARED
1015 WX_LIBRARY_BASENAME_NOGUI
1016 WX_LIBRARY_BASENAME_GUI
1017 USE_GUI
1018 AFMINSTALL
1019 WIN32INSTALL
1020 TOOLKIT
1021 TOOLKIT_DIR
1022 TOOLCHAIN_NAME
1023 TOOLCHAIN_FULLNAME
1024 cross_compiling
1025 WIDGET_SET
1026 WX_RELEASE
1027 WX_VERSION
1028 WX_SUBVERSION
1029 WX_CHARTYPE
1030 WXCONFIG_CPPFLAGS
1031 WXCONFIG_CFLAGS
1032 WXCONFIG_CXXFLAGS
1033 WXCONFIG_LIBS
1034 WXCONFIG_RPATH
1035 WXCONFIG_LDFLAGS
1036 WXCONFIG_LDFLAGS_GUI
1037 WXCONFIG_RESFLAGS
1038 GUIDIST
1039 DISTDIR
1040 SAMPLES_SUBDIRS
1041 LDFLAGS_GL
1042 OPENGL_LIBS
1043 DMALLOC_LIBS
1044 WX_VERSION_TAG
1045 RESCOMP
1046 RESFLAGS
1047 RESPROGRAMOBJ
1048 WX_RESOURCES_MACOSX_ASCII
1049 WX_RESOURCES_MACOSX_DATA
1050 LIBWXMACRES
1051 POSTLINK_COMMAND
1052 MACSETFILE
1053 GCC
1054 DLLTOOL
1055 CPPUNIT_CONFIG
1056 LIBOBJS
1057 LTLIBOBJS'
1058 ac_subst_files=''
1059       ac_precious_vars='build_alias
1060 host_alias
1061 target_alias
1062 CC
1063 CFLAGS
1064 LDFLAGS
1065 LIBS
1066 CPPFLAGS
1067 CPP
1068 CXX
1069 CXXFLAGS
1070 CCC
1071 CXXCPP
1072 PKG_CONFIG
1073 DIRECTFB_CFLAGS
1074 DIRECTFB_LIBS
1075 XMKMF
1076 PANGOX_CFLAGS
1077 PANGOX_LIBS
1078 PANGOFT2_CFLAGS
1079 PANGOFT2_LIBS
1080 PANGOXFT_CFLAGS
1081 PANGOXFT_LIBS
1082 GTKPRINT_CFLAGS
1083 GTKPRINT_LIBS
1084 LIBGNOMEPRINTUI_CFLAGS
1085 LIBGNOMEPRINTUI_LIBS
1086 GNOMEVFS_CFLAGS
1087 GNOMEVFS_LIBS
1088 HILDON_CFLAGS
1089 HILDON_LIBS
1090 HILDON2_CFLAGS
1091 HILDON2_LIBS
1092 CAIRO_CFLAGS
1093 CAIRO_LIBS
1094 GST_CFLAGS
1095 GST_LIBS'
1096 ac_subdirs_all='src/tiff
1097 src/expat'
1098
1099 # Initialize some variables set by options.
1100 ac_init_help=
1101 ac_init_version=false
1102 # The variables have the same names as the options, with
1103 # dashes changed to underlines.
1104 cache_file=/dev/null
1105 exec_prefix=NONE
1106 no_create=
1107 no_recursion=
1108 prefix=NONE
1109 program_prefix=NONE
1110 program_suffix=NONE
1111 program_transform_name=s,x,x,
1112 silent=
1113 site=
1114 srcdir=
1115 verbose=
1116 x_includes=NONE
1117 x_libraries=NONE
1118
1119 # Installation directory options.
1120 # These are left unexpanded so users can "make install exec_prefix=/foo"
1121 # and all the variables that are supposed to be based on exec_prefix
1122 # by default will actually change.
1123 # Use braces instead of parens because sh, perl, etc. also accept them.
1124 # (The list follows the same order as the GNU Coding Standards.)
1125 bindir='${exec_prefix}/bin'
1126 sbindir='${exec_prefix}/sbin'
1127 libexecdir='${exec_prefix}/libexec'
1128 datarootdir='${prefix}/share'
1129 datadir='${datarootdir}'
1130 sysconfdir='${prefix}/etc'
1131 sharedstatedir='${prefix}/com'
1132 localstatedir='${prefix}/var'
1133 includedir='${prefix}/include'
1134 oldincludedir='/usr/include'
1135 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1136 infodir='${datarootdir}/info'
1137 htmldir='${docdir}'
1138 dvidir='${docdir}'
1139 pdfdir='${docdir}'
1140 psdir='${docdir}'
1141 libdir='${exec_prefix}/lib'
1142 localedir='${datarootdir}/locale'
1143 mandir='${datarootdir}/man'
1144
1145 ac_prev=
1146 ac_dashdash=
1147 for ac_option
1148 do
1149   # If the previous option needs an argument, assign it.
1150   if test -n "$ac_prev"; then
1151     eval $ac_prev=\$ac_option
1152     ac_prev=
1153     continue
1154   fi
1155
1156   case $ac_option in
1157   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1158   *)    ac_optarg=yes ;;
1159   esac
1160
1161   # Accept the important Cygnus configure options, so we can diagnose typos.
1162
1163   case $ac_dashdash$ac_option in
1164   --)
1165     ac_dashdash=yes ;;
1166
1167   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1168     ac_prev=bindir ;;
1169   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1170     bindir=$ac_optarg ;;
1171
1172   -build | --build | --buil | --bui | --bu)
1173     ac_prev=build_alias ;;
1174   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1175     build_alias=$ac_optarg ;;
1176
1177   -cache-file | --cache-file | --cache-fil | --cache-fi \
1178   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1179     ac_prev=cache_file ;;
1180   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1181   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1182     cache_file=$ac_optarg ;;
1183
1184   --config-cache | -C)
1185     cache_file=config.cache ;;
1186
1187   -datadir | --datadir | --datadi | --datad)
1188     ac_prev=datadir ;;
1189   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1190     datadir=$ac_optarg ;;
1191
1192   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1193   | --dataroo | --dataro | --datar)
1194     ac_prev=datarootdir ;;
1195   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1196   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1197     datarootdir=$ac_optarg ;;
1198
1199   -disable-* | --disable-*)
1200     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1206     eval enable_$ac_feature=no ;;
1207
1208   -docdir | --docdir | --docdi | --doc | --do)
1209     ac_prev=docdir ;;
1210   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1211     docdir=$ac_optarg ;;
1212
1213   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1214     ac_prev=dvidir ;;
1215   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1216     dvidir=$ac_optarg ;;
1217
1218   -enable-* | --enable-*)
1219     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1225     eval enable_$ac_feature=\$ac_optarg ;;
1226
1227   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1228   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1229   | --exec | --exe | --ex)
1230     ac_prev=exec_prefix ;;
1231   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1232   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1233   | --exec=* | --exe=* | --ex=*)
1234     exec_prefix=$ac_optarg ;;
1235
1236   -gas | --gas | --ga | --g)
1237     # Obsolete; use --with-gas.
1238     with_gas=yes ;;
1239
1240   -help | --help | --hel | --he | -h)
1241     ac_init_help=long ;;
1242   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1243     ac_init_help=recursive ;;
1244   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1245     ac_init_help=short ;;
1246
1247   -host | --host | --hos | --ho)
1248     ac_prev=host_alias ;;
1249   -host=* | --host=* | --hos=* | --ho=*)
1250     host_alias=$ac_optarg ;;
1251
1252   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1253     ac_prev=htmldir ;;
1254   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1255   | --ht=*)
1256     htmldir=$ac_optarg ;;
1257
1258   -includedir | --includedir | --includedi | --included | --include \
1259   | --includ | --inclu | --incl | --inc)
1260     ac_prev=includedir ;;
1261   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1262   | --includ=* | --inclu=* | --incl=* | --inc=*)
1263     includedir=$ac_optarg ;;
1264
1265   -infodir | --infodir | --infodi | --infod | --info | --inf)
1266     ac_prev=infodir ;;
1267   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1268     infodir=$ac_optarg ;;
1269
1270   -libdir | --libdir | --libdi | --libd)
1271     ac_prev=libdir ;;
1272   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1273     libdir=$ac_optarg ;;
1274
1275   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1276   | --libexe | --libex | --libe)
1277     ac_prev=libexecdir ;;
1278   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1279   | --libexe=* | --libex=* | --libe=*)
1280     libexecdir=$ac_optarg ;;
1281
1282   -localedir | --localedir | --localedi | --localed | --locale)
1283     ac_prev=localedir ;;
1284   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1285     localedir=$ac_optarg ;;
1286
1287   -localstatedir | --localstatedir | --localstatedi | --localstated \
1288   | --localstate | --localstat | --localsta | --localst | --locals)
1289     ac_prev=localstatedir ;;
1290   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1291   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1292     localstatedir=$ac_optarg ;;
1293
1294   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1295     ac_prev=mandir ;;
1296   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1297     mandir=$ac_optarg ;;
1298
1299   -nfp | --nfp | --nf)
1300     # Obsolete; use --without-fp.
1301     with_fp=no ;;
1302
1303   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1304   | --no-cr | --no-c | -n)
1305     no_create=yes ;;
1306
1307   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1308   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1309     no_recursion=yes ;;
1310
1311   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1312   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1313   | --oldin | --oldi | --old | --ol | --o)
1314     ac_prev=oldincludedir ;;
1315   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1316   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1317   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1318     oldincludedir=$ac_optarg ;;
1319
1320   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1321     ac_prev=prefix ;;
1322   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1323     prefix=$ac_optarg ;;
1324
1325   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1326   | --program-pre | --program-pr | --program-p)
1327     ac_prev=program_prefix ;;
1328   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1329   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1330     program_prefix=$ac_optarg ;;
1331
1332   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1333   | --program-suf | --program-su | --program-s)
1334     ac_prev=program_suffix ;;
1335   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1336   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1337     program_suffix=$ac_optarg ;;
1338
1339   -program-transform-name | --program-transform-name \
1340   | --program-transform-nam | --program-transform-na \
1341   | --program-transform-n | --program-transform- \
1342   | --program-transform | --program-transfor \
1343   | --program-transfo | --program-transf \
1344   | --program-trans | --program-tran \
1345   | --progr-tra | --program-tr | --program-t)
1346     ac_prev=program_transform_name ;;
1347   -program-transform-name=* | --program-transform-name=* \
1348   | --program-transform-nam=* | --program-transform-na=* \
1349   | --program-transform-n=* | --program-transform-=* \
1350   | --program-transform=* | --program-transfor=* \
1351   | --program-transfo=* | --program-transf=* \
1352   | --program-trans=* | --program-tran=* \
1353   | --progr-tra=* | --program-tr=* | --program-t=*)
1354     program_transform_name=$ac_optarg ;;
1355
1356   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1357     ac_prev=pdfdir ;;
1358   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1359     pdfdir=$ac_optarg ;;
1360
1361   -psdir | --psdir | --psdi | --psd | --ps)
1362     ac_prev=psdir ;;
1363   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1364     psdir=$ac_optarg ;;
1365
1366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1367   | -silent | --silent | --silen | --sile | --sil)
1368     silent=yes ;;
1369
1370   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1371     ac_prev=sbindir ;;
1372   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1373   | --sbi=* | --sb=*)
1374     sbindir=$ac_optarg ;;
1375
1376   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1377   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1378   | --sharedst | --shareds | --shared | --share | --shar \
1379   | --sha | --sh)
1380     ac_prev=sharedstatedir ;;
1381   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1382   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1383   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1384   | --sha=* | --sh=*)
1385     sharedstatedir=$ac_optarg ;;
1386
1387   -site | --site | --sit)
1388     ac_prev=site ;;
1389   -site=* | --site=* | --sit=*)
1390     site=$ac_optarg ;;
1391
1392   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1393     ac_prev=srcdir ;;
1394   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1395     srcdir=$ac_optarg ;;
1396
1397   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1398   | --syscon | --sysco | --sysc | --sys | --sy)
1399     ac_prev=sysconfdir ;;
1400   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1401   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1402     sysconfdir=$ac_optarg ;;
1403
1404   -target | --target | --targe | --targ | --tar | --ta | --t)
1405     ac_prev=target_alias ;;
1406   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1407     target_alias=$ac_optarg ;;
1408
1409   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1410     verbose=yes ;;
1411
1412   -version | --version | --versio | --versi | --vers | -V)
1413     ac_init_version=: ;;
1414
1415   -with-* | --with-*)
1416     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1417     # Reject names that are not valid shell variable names.
1418     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1419       { echo "$as_me: error: invalid package name: $ac_package" >&2
1420    { (exit 1); exit 1; }; }
1421     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1422     eval with_$ac_package=\$ac_optarg ;;
1423
1424   -without-* | --without-*)
1425     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid package name: $ac_package" >&2
1429    { (exit 1); exit 1; }; }
1430     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1431     eval with_$ac_package=no ;;
1432
1433   --x)
1434     # Obsolete; use --with-x.
1435     with_x=yes ;;
1436
1437   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1438   | --x-incl | --x-inc | --x-in | --x-i)
1439     ac_prev=x_includes ;;
1440   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1441   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1442     x_includes=$ac_optarg ;;
1443
1444   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1445   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1446     ac_prev=x_libraries ;;
1447   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1448   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1449     x_libraries=$ac_optarg ;;
1450
1451   -*) { echo "$as_me: error: unrecognized option: $ac_option
1452 Try \`$0 --help' for more information." >&2
1453    { (exit 1); exit 1; }; }
1454     ;;
1455
1456   *=*)
1457     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458     # Reject names that are not valid shell variable names.
1459     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1460       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1461    { (exit 1); exit 1; }; }
1462     eval $ac_envvar=\$ac_optarg
1463     export $ac_envvar ;;
1464
1465   *)
1466     # FIXME: should be removed in autoconf 3.0.
1467     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1468     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1469       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1470     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1471     ;;
1472
1473   esac
1474 done
1475
1476 if test -n "$ac_prev"; then
1477   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1478   { echo "$as_me: error: missing argument to $ac_option" >&2
1479    { (exit 1); exit 1; }; }
1480 fi
1481
1482 # Be sure to have absolute directory names.
1483 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1484                 datadir sysconfdir sharedstatedir localstatedir includedir \
1485                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1486                 libdir localedir mandir
1487 do
1488   eval ac_val=\$$ac_var
1489   case $ac_val in
1490     [\\/$]* | ?:[\\/]* )  continue;;
1491     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1492   esac
1493   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1494    { (exit 1); exit 1; }; }
1495 done
1496
1497 # There might be people who depend on the old broken behaviour: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1503
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506   if test "x$build_alias" = x; then
1507     cross_compiling=maybe
1508     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1509     If a cross compiler is detected then cross compile mode will be used." >&2
1510   elif test "x$build_alias" != "x$host_alias"; then
1511     cross_compiling=yes
1512   fi
1513 fi
1514
1515 ac_tool_prefix=
1516 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1517
1518 test "$silent" = yes && exec 6>/dev/null
1519
1520
1521 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1522 ac_ls_di=`ls -di .` &&
1523 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1524   { echo "$as_me: error: Working directory cannot be determined" >&2
1525    { (exit 1); exit 1; }; }
1526 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1527   { echo "$as_me: error: pwd does not report name of working directory" >&2
1528    { (exit 1); exit 1; }; }
1529
1530
1531 # Find the source files, if location was not specified.
1532 if test -z "$srcdir"; then
1533   ac_srcdir_defaulted=yes
1534   # Try the directory containing this script, then the parent directory.
1535   ac_confdir=`$as_dirname -- "$0" ||
1536 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1537          X"$0" : 'X\(//\)[^/]' \| \
1538          X"$0" : 'X\(//\)$' \| \
1539          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1540 echo X"$0" |
1541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542             s//\1/
1543             q
1544           }
1545           /^X\(\/\/\)[^/].*/{
1546             s//\1/
1547             q
1548           }
1549           /^X\(\/\/\)$/{
1550             s//\1/
1551             q
1552           }
1553           /^X\(\/\).*/{
1554             s//\1/
1555             q
1556           }
1557           s/.*/./; q'`
1558   srcdir=$ac_confdir
1559   if test ! -r "$srcdir/$ac_unique_file"; then
1560     srcdir=..
1561   fi
1562 else
1563   ac_srcdir_defaulted=no
1564 fi
1565 if test ! -r "$srcdir/$ac_unique_file"; then
1566   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1567   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1568    { (exit 1); exit 1; }; }
1569 fi
1570 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1571 ac_abs_confdir=`(
1572         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1573    { (exit 1); exit 1; }; }
1574         pwd)`
1575 # When building in place, set srcdir=.
1576 if test "$ac_abs_confdir" = "$ac_pwd"; then
1577   srcdir=.
1578 fi
1579 # Remove unnecessary trailing slashes from srcdir.
1580 # Double slashes in file names in object file debugging info
1581 # mess up M-x gdb in Emacs.
1582 case $srcdir in
1583 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1584 esac
1585 for ac_var in $ac_precious_vars; do
1586   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1587   eval ac_env_${ac_var}_value=\$${ac_var}
1588   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1589   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1590 done
1591
1592 #
1593 # Report the --help message.
1594 #
1595 if test "$ac_init_help" = "long"; then
1596   # Omit some internal or obsolete options to make the list less imposing.
1597   # This message is too long to be a string in the A/UX 3.1 sh.
1598   cat <<_ACEOF
1599 \`configure' configures wxWidgets 2.9.2 to adapt to many kinds of systems.
1600
1601 Usage: $0 [OPTION]... [VAR=VALUE]...
1602
1603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1604 VAR=VALUE.  See below for descriptions of some of the useful variables.
1605
1606 Defaults for the options are specified in brackets.
1607
1608 Configuration:
1609   -h, --help              display this help and exit
1610       --help=short        display options specific to this package
1611       --help=recursive    display the short help of all the included packages
1612   -V, --version           display version information and exit
1613   -q, --quiet, --silent   do not print \`checking...' messages
1614       --cache-file=FILE   cache test results in FILE [disabled]
1615   -C, --config-cache      alias for \`--cache-file=config.cache'
1616   -n, --no-create         do not create output files
1617       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1618
1619 Installation directories:
1620   --prefix=PREFIX         install architecture-independent files in PREFIX
1621                           [$ac_default_prefix]
1622   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1623                           [PREFIX]
1624
1625 By default, \`make install' will install all the files in
1626 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1627 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1628 for instance \`--prefix=\$HOME'.
1629
1630 For better control, use the options below.
1631
1632 Fine tuning of the installation directories:
1633   --bindir=DIR           user executables [EPREFIX/bin]
1634   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1635   --libexecdir=DIR       program executables [EPREFIX/libexec]
1636   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1637   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1638   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1639   --libdir=DIR           object code libraries [EPREFIX/lib]
1640   --includedir=DIR       C header files [PREFIX/include]
1641   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1642   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1643   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1644   --infodir=DIR          info documentation [DATAROOTDIR/info]
1645   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1646   --mandir=DIR           man documentation [DATAROOTDIR/man]
1647   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1648   --htmldir=DIR          html documentation [DOCDIR]
1649   --dvidir=DIR           dvi documentation [DOCDIR]
1650   --pdfdir=DIR           pdf documentation [DOCDIR]
1651   --psdir=DIR            ps documentation [DOCDIR]
1652 _ACEOF
1653
1654   cat <<\_ACEOF
1655
1656 X features:
1657   --x-includes=DIR    X include files are in DIR
1658   --x-libraries=DIR   X library files are in DIR
1659
1660 System types:
1661   --build=BUILD     configure for building on BUILD [guessed]
1662   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1663 _ACEOF
1664 fi
1665
1666 if test -n "$ac_init_help"; then
1667   case $ac_init_help in
1668      short | recursive ) echo "Configuration of wxWidgets 2.9.2:";;
1669    esac
1670   cat <<\_ACEOF
1671
1672 Optional Features:
1673   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1674   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1675   --disable-gui           don't build GUI parts of the library
1676   --enable-monolithic     build wxWidgets as single library
1677   --enable-plugins        build parts of wxWidgets as loadable components
1678   --enable-official_build official build of wxWidgets (win32 DLL only)
1679   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1680   --disable-all-features  disable all optional features to build minimal library
1681   --enable-universal      use wxWidgets GUI controls instead of native ones
1682   --enable-nanox          use NanoX
1683   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1684   --enable-gpe            use GNOME PDA Environment features if possible
1685   --enable-debug          build library for debugging
1686   --disable-debug_flag    disable all debugging support
1687   --enable-debug_info     generate debug information
1688   --enable-debug_gdb      create code with extra GDB debugging information
1689   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1690   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1691   --disable-shared        create static library instead of shared
1692   --enable-stl            use STL for containers
1693   --enable-std_iostreams  use standard C++ stream classes
1694   --enable-std_string     use standard C++ string classes
1695   --disable-unicode       compile without Unicode support
1696   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1697   --enable-utf8           use UTF-8 representation for strings (Unix only)
1698   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1699   --enable-extended_rtti  use extended RTTI (XTI)
1700   --enable-omf            use OMF object format
1701   --disable-optimise      compile without optimisations
1702   --enable-profile        create code with profiling information
1703   --enable-no_rtti        create code without RTTI information
1704   --enable-no_exceptions  create code without C++ exceptions handling
1705   --enable-permissive     compile code disregarding strict ANSI
1706   --enable-no_deps        create code without dependency information
1707   --disable-vararg_macros don't use vararg macros, even if they are supported
1708   --enable-universal_binary  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
1709   --enable-macosx_arch=ARCH  build for just the specified architecture
1710   --enable-compat26       enable wxWidgets 2.6 compatibility
1711   --disable-compat28      disable wxWidgets 2.8 compatibility
1712   --disable-rpath         disable use of rpath for uninstalled builds
1713   --enable-objc_uniquifying enable Objective-C class name uniquifying
1714   --disable-visibility    disable use of ELF symbols visibility even if supported
1715   --disable-tls           disable use of compiler TLS support
1716   --enable-intl           use internationalization system
1717   --enable-xlocale        use x-locale support (requires wxLocale)
1718   --enable-config         use wxConfig (and derived) classes
1719   --enable-protocols      use wxProtocol and derived classes
1720   --enable-ftp            use wxFTP (requires wxProtocol
1721   --enable-http           use wxHTTP (requires wxProtocol
1722   --enable-fileproto      use wxFileProto class (requires wxProtocol
1723   --enable-sockets        use socket/network classes
1724   --enable-ipv6           enable IPv6 support in wxSocket
1725   --enable-ole            use OLE classes (Win32 only)
1726   --enable-dataobj        use data object classes
1727   --enable-ipc            use interprocess communication (wxSocket etc.)
1728   --enable-baseevtloop    use event loop in console programs too
1729   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1730   --enable-selectloop     use wxSelectDispatcher class
1731   --enable-any            use wxAny class
1732   --enable-apple_ieee     use the Apple IEEE codec
1733   --enable-arcstream      use wxArchive streams
1734   --enable-base64         use base64 encoding/decoding functions
1735   --enable-backtrace      use wxStackWalker class for getting backtraces
1736   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1737   --enable-cmdline        use wxCmdLineParser class
1738   --enable-datetime       use wxDateTime class
1739   --enable-debugreport    use wxDebugReport class
1740   --enable-dialupman      use dialup network classes
1741   --enable-dynlib         use wxLibrary class for DLL loading
1742   --enable-dynamicloader  use (new) wxDynamicLibrary class
1743   --enable-exceptions     build exception-safe library
1744   --enable-ffile          use wxFFile class
1745   --enable-file           use wxFile class
1746   --enable-filehistory    use wxFileHistory class
1747   --enable-filesystem     use virtual file systems classes
1748   --enable-fontenum       use wxFontEnumerator class
1749   --enable-fontmap        use font encodings conversion classes
1750   --enable-fs_archive     use virtual archive filesystems
1751   --enable-fs_inet        use virtual HTTP/FTP filesystems
1752   --enable-fs_zip         now replaced by fs_archive
1753   --enable-fswatcher      use wxFileSystemWatcher class
1754   --enable-geometry       use geometry class
1755   --enable-log            use logging system
1756   --enable-longlong       use wxLongLong class
1757   --enable-mimetype       use wxMimeTypesManager
1758   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1759   --enable-snglinst       use wxSingleInstanceChecker class
1760   --enable-sound          use wxSound class
1761   --enable-stdpaths       use wxStandardPaths class
1762   --enable-stopwatch      use wxStopWatch class
1763   --enable-streams        use wxStream etc classes
1764   --enable-sysoptions     use wxSystemOptions
1765   --enable-tarstream      use wxTar streams
1766   --enable-textbuf        use wxTextBuffer class
1767   --enable-textfile       use wxTextFile class
1768   --enable-timer          use wxTimer class
1769   --enable-variant        use wxVariant class
1770   --enable-zipstream      use wxZip streams
1771   --enable-url            use wxURL class
1772   --enable-protocol       use wxProtocol class
1773   --enable-protocol-http  HTTP support in wxProtocol
1774   --enable-protocol-ftp   FTP support in wxProtocol
1775   --enable-protocol-file  FILE support in wxProtocol
1776   --enable-threads        use threads
1777   --enable-iniconf        use wxIniConfig (Win32 only)
1778   --enable-regkey         use wxRegKey class (Win32 only)
1779   --enable-docview        use document view architecture
1780   --enable-help           use help subsystem
1781   --enable-mshtmlhelp     use MS HTML Help (win32)
1782   --enable-html           use wxHTML sub-library
1783   --enable-htmlhelp       use wxHTML-based help
1784   --enable-xrc            use XRC resources sub-library
1785   --enable-aui            use AUI docking library
1786   --enable-propgrid       use wxPropertyGrid library
1787   --enable-ribbon         use wxRibbon library
1788   --enable-stc            use wxStyledTextCtrl library
1789   --enable-constraints    use layout-constraints system
1790   --enable-loggui         use standard GUI logger
1791   --enable-logwin         use wxLogWindow
1792   --enable-logdialog      use wxLogDialog
1793   --enable-mdi            use multiple document interface architecture
1794   --enable-mdidoc         use docview architecture with MDI
1795   --enable-mediactrl      use wxMediaCtrl class
1796   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1797   --enable-webkit         use wxWebKitCtrl (Mac)
1798   --enable-richtext       use wxRichTextCtrl
1799   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1800   --enable-printarch      use printing architecture
1801   --enable-svg            use wxSVGFileDC device context
1802   --enable-graphics_ctx   use graphics context 2D drawing API
1803   --enable-clipboard      use wxClipboard class
1804   --enable-dnd            use Drag'n'Drop classes
1805   --enable-metafile       use win32 metafiles
1806   --disable-controls      disable compilation of all standard controls
1807   --enable-markup         support wxControl::SetLabelMarkup
1808   --enable-accel          use accelerators
1809   --enable-animatectrl    use wxAnimationCtrl class
1810   --enable-artstd         use standard XPM icons in wxArtProvider
1811   --enable-arttango       use Tango icons in wxArtProvider
1812   --enable-bmpbutton      use wxBitmapButton class
1813   --enable-bmpcombobox    use wxBitmapComboBox class
1814   --enable-button         use wxButton class
1815   --enable-calendar       use wxCalendarCtrl class
1816   --enable-caret          use wxCaret class
1817   --enable-checkbox       use wxCheckBox class
1818   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1819   --enable-choice         use wxChoice class
1820   --enable-choicebook     use wxChoicebook class
1821   --enable-collpane       use wxCollapsiblePane class
1822   --enable-colourpicker   use wxColourPickerCtrl class
1823   --enable-combobox       use wxComboBox class
1824   --enable-comboctrl      use wxComboCtrl class
1825   --enable-commandlinkbutton      use wxCommmandLinkButton class
1826   --enable-dataviewctrl   use wxDataViewCtrl class
1827   --enable-datepick       use wxDatePickerCtrl class
1828   --enable-detect_sm      use code to detect X11 session manager
1829   --enable-dirpicker      use wxDirPickerCtrl class
1830   --enable-display        use wxDisplay class
1831   --enable-editablebox    use wxEditableListBox class
1832   --enable-filectrl       use wxFileCtrl class
1833   --enable-filepicker     use wxFilePickerCtrl class
1834   --enable-fontpicker     use wxFontPickerCtrl class
1835   --enable-gauge          use wxGauge class
1836   --enable-grid           use wxGrid class
1837   --enable-headerctrl     use wxHeaderCtrl class
1838   --enable-hyperlink      use wxHyperlinkCtrl class
1839   --enable-imaglist       use wxImageList class
1840   --enable-infobar        use wxInfoBar class
1841   --enable-listbook       use wxListbook class
1842   --enable-listbox        use wxListBox class
1843   --enable-listctrl       use wxListCtrl class
1844   --enable-notebook       use wxNotebook class
1845   --enable-notifmsg       use wxNotificationMessage class
1846   --enable-odcombobox     use wxOwnerDrawnComboBox class
1847   --enable-popupwin       use wxPopUpWindow class
1848   --enable-radiobox       use wxRadioBox class
1849   --enable-radiobtn       use wxRadioButton class
1850   --enable-richmsgdlg     use wxRichMessageDialog class
1851   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1852   --enable-sash           use wxSashWindow class
1853   --enable-scrollbar      use wxScrollBar class and scrollable windows
1854   --enable-searchctrl     use wxSearchCtrl class
1855   --enable-slider         use wxSlider class
1856   --enable-spinbtn        use wxSpinButton class
1857   --enable-spinctrl       use wxSpinCtrl class
1858   --enable-splitter       use wxSplitterWindow class
1859   --enable-statbmp        use wxStaticBitmap class
1860   --enable-statbox        use wxStaticBox class
1861   --enable-statline       use wxStaticLine class
1862   --enable-stattext       use wxStaticText class
1863   --enable-statusbar      use wxStatusBar class
1864   --enable-taskbaricon    use wxTaskBarIcon class
1865   --enable-tbarnative     use native wxToolBar class
1866   --enable-textctrl       use wxTextCtrl class
1867   --enable-tipwindow      use wxTipWindow class
1868   --enable-togglebtn      use wxToggleButton class
1869   --enable-toolbar        use wxToolBar class
1870   --enable-toolbook       use wxToolbook class
1871   --enable-treebook       use wxTreebook class
1872   --enable-treectrl       use wxTreeCtrl class
1873   --enable-commondlg      use all common dialogs
1874   --enable-aboutdlg       use wxAboutBox
1875   --enable-choicedlg      use wxChoiceDialog
1876   --enable-coldlg         use wxColourDialog
1877   --enable-filedlg        use wxFileDialog
1878   --enable-finddlg        use wxFindReplaceDialog
1879   --enable-fontdlg        use wxFontDialog
1880   --enable-dirdlg         use wxDirDialog
1881   --enable-msgdlg         use wxMessageDialog
1882   --enable-numberdlg      use wxNumberEntryDialog
1883   --enable-splash         use wxSplashScreen
1884   --enable-textdlg        use wxTextDialog
1885   --enable-tipdlg         use startup tips
1886   --enable-progressdlg    use wxProgressDialog
1887   --enable-wizarddlg      use wxWizard
1888   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1889   --enable-miniframe      use wxMiniFrame class
1890   --enable-tooltips       use wxToolTip class
1891   --enable-splines        use spline drawing code
1892   --enable-mousewheel     use mousewheel
1893   --enable-validators     use wxValidator and derived classes
1894   --enable-busyinfo       use wxBusyInfo
1895   --enable-joystick       use wxJoystick
1896   --enable-metafiles      use wxMetaFile (Win32 only)
1897   --enable-dragimage      use wxDragImage
1898   --enable-accessibility  enable accessibility support
1899   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1900   --enable-palette        use wxPalette class
1901   --enable-image          use wxImage class
1902   --enable-gif            use gif images (GIF file format)
1903   --enable-pcx            use pcx images (PCX file format)
1904   --enable-tga            use tga images (TGA file format)
1905   --enable-iff            use iff images (IFF file format)
1906   --enable-pnm            use pnm images (PNM file format)
1907   --enable-xpm            use xpm images (XPM file format)
1908   --enable-ico_cur        use Windows ICO and CUR formats
1909   --enable-dccache        cache temporary wxDC objects (Win32 only)
1910   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1911   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1912   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1913   --enable-wxdib          use wxDIB class (Win32 only)
1914   --enable-autoidman      use automatic ids management
1915   --disable-largefile     omit support for large files
1916   --disable-gtktest       do not try to compile and run a test GTK+ program
1917   --disable-gtktest       Do not try to compile and run a test GTK program
1918   --disable-sdltest       Do not try to compile and run a test SDL program
1919   --enable-omf            use OMF object format (OS/2)
1920   --disable-dependency-tracking
1921                           don't use dependency tracking even if the compiler
1922                           can
1923   --disable-precomp-headers
1924                           don't use precompiled headers even if compiler can
1925
1926 Optional Packages:
1927   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1928   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1929   --without-subdirs       don't generate makefiles for samples/demos/...
1930   --with-flavour=NAME     specify a name to identify this build
1931   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1932   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1933   --with-motif            use Motif/Lesstif
1934   --with-osx_carbon       use Mac OS X (Carbon)
1935   --with-osx_cocoa        use Mac OS X (Cocoa)
1936   --with-osx_iphone       use iPhone OS X port
1937   --with-osx              use Mac OS X (default port, currently Carbon)
1938   --with-carbon           same as --with-osx_carbon
1939   --with-cocoa            same as --with-osx_cocoa
1940   --with-iphone           same as --with-osx_iphone
1941   --with-mac              same as --with-osx
1942   --with-old_cocoa        use old, deprecated, Cocoa port
1943   --with-wine             use Wine
1944   --with-msw              use MS-Windows
1945   --with-pm               use OS/2 Presentation Manager
1946   --with-mgl              use SciTech MGL
1947   --with-directfb         use DirectFB
1948   --with-microwin         use MicroWindows
1949   --with-x11              use X11
1950   --with-libpng           use libpng (PNG image format)
1951   --with-libjpeg          use libjpeg (JPEG file format)
1952   --with-libtiff          use libtiff (TIFF file format)
1953   --with-libxpm           use libxpm (XPM file format)
1954   --with-libiconv         use libiconv (character conversion)
1955   --with-libmspack        use libmspack (CHM help files loading)
1956   --without-gtkprint      don't use GTK printing support
1957   --without-gnomeprint    don't use GNOME printing libraries
1958   --with-gnomevfs         use GNOME VFS for associating MIME types
1959   --with-hildon           use Hildon framework for Nokia 770/800/810
1960   --with-opengl           use OpenGL (or Mesa)
1961   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1962   --with-sdl              use SDL for audio on Unix
1963   --with-regex            enable support for wxRegEx class
1964   --with-zlib             use zlib for LZW compression
1965   --with-expat            enable XML support using expat parser
1966   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1967   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1968   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1969   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1970   --with-x                use the X Window System
1971   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1972   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1973   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1974   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1975   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1976
1977 Some influential environment variables:
1978   CC          C compiler command
1979   CFLAGS      C compiler flags
1980   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1981               nonstandard directory <lib dir>
1982   LIBS        libraries to pass to the linker, e.g. -l<library>
1983   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1984               you have headers in a nonstandard directory <include dir>
1985   CPP         C preprocessor
1986   CXX         C++ compiler command
1987   CXXFLAGS    C++ compiler flags
1988   CXXCPP      C++ preprocessor
1989   PKG_CONFIG  path to pkg-config utility
1990   DIRECTFB_CFLAGS
1991               C compiler flags for DIRECTFB, overriding pkg-config
1992   DIRECTFB_LIBS
1993               linker flags for DIRECTFB, overriding pkg-config
1994   XMKMF       Path to xmkmf, Makefile generator for X Window System
1995   PANGOX_CFLAGS
1996               C compiler flags for PANGOX, overriding pkg-config
1997   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1998   PANGOFT2_CFLAGS
1999               C compiler flags for PANGOFT2, overriding pkg-config
2000   PANGOFT2_LIBS
2001               linker flags for PANGOFT2, overriding pkg-config
2002   PANGOXFT_CFLAGS
2003               C compiler flags for PANGOXFT, overriding pkg-config
2004   PANGOXFT_LIBS
2005               linker flags for PANGOXFT, overriding pkg-config
2006   GTKPRINT_CFLAGS
2007               C compiler flags for GTKPRINT, overriding pkg-config
2008   GTKPRINT_LIBS
2009               linker flags for GTKPRINT, overriding pkg-config
2010   LIBGNOMEPRINTUI_CFLAGS
2011               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2012   LIBGNOMEPRINTUI_LIBS
2013               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2014   GNOMEVFS_CFLAGS
2015               C compiler flags for GNOMEVFS, overriding pkg-config
2016   GNOMEVFS_LIBS
2017               linker flags for GNOMEVFS, overriding pkg-config
2018   HILDON_CFLAGS
2019               C compiler flags for HILDON, overriding pkg-config
2020   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2021   HILDON2_CFLAGS
2022               C compiler flags for HILDON2, overriding pkg-config
2023   HILDON2_LIBS
2024               linker flags for HILDON2, overriding pkg-config
2025   CAIRO_CFLAGS
2026               C compiler flags for CAIRO, overriding pkg-config
2027   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2028   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2029   GST_LIBS    linker flags for GST, overriding pkg-config
2030
2031 Use these variables to override the choices made by `configure' or to help
2032 it to find libraries and programs with nonstandard names/locations.
2033
2034 Report bugs to <wx-dev@lists.wxwidgets.org>.
2035 _ACEOF
2036 ac_status=$?
2037 fi
2038
2039 if test "$ac_init_help" = "recursive"; then
2040   # If there are subdirs, report their specific --help.
2041   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042     test -d "$ac_dir" || continue
2043     ac_builddir=.
2044
2045 case "$ac_dir" in
2046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2047 *)
2048   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2049   # A ".." for each directory in $ac_dir_suffix.
2050   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2051   case $ac_top_builddir_sub in
2052   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2053   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2054   esac ;;
2055 esac
2056 ac_abs_top_builddir=$ac_pwd
2057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2058 # for backward compatibility:
2059 ac_top_builddir=$ac_top_build_prefix
2060
2061 case $srcdir in
2062   .)  # We are building in place.
2063     ac_srcdir=.
2064     ac_top_srcdir=$ac_top_builddir_sub
2065     ac_abs_top_srcdir=$ac_pwd ;;
2066   [\\/]* | ?:[\\/]* )  # Absolute name.
2067     ac_srcdir=$srcdir$ac_dir_suffix;
2068     ac_top_srcdir=$srcdir
2069     ac_abs_top_srcdir=$srcdir ;;
2070   *) # Relative name.
2071     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2072     ac_top_srcdir=$ac_top_build_prefix$srcdir
2073     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2074 esac
2075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2076
2077     cd "$ac_dir" || { ac_status=$?; continue; }
2078     # Check for guested configure.
2079     if test -f "$ac_srcdir/configure.gnu"; then
2080       echo &&
2081       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2082     elif test -f "$ac_srcdir/configure"; then
2083       echo &&
2084       $SHELL "$ac_srcdir/configure" --help=recursive
2085     else
2086       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2087     fi || ac_status=$?
2088     cd "$ac_pwd" || { ac_status=$?; break; }
2089   done
2090 fi
2091
2092 test -n "$ac_init_help" && exit $ac_status
2093 if $ac_init_version; then
2094   cat <<\_ACEOF
2095 wxWidgets configure 2.9.2
2096 generated by GNU Autoconf 2.61
2097
2098 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2099 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2100 This configure script is free software; the Free Software Foundation
2101 gives unlimited permission to copy, distribute and modify it.
2102 _ACEOF
2103   exit
2104 fi
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2108
2109 It was created by wxWidgets $as_me 2.9.2, which was
2110 generated by GNU Autoconf 2.61.  Invocation command line was
2111
2112   $ $0 $@
2113
2114 _ACEOF
2115 exec 5>>config.log
2116 {
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2121
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2130
2131 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2132 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2135 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2136 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2137 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2138
2139 _ASUNAME
2140
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   echo "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2149
2150 } >&5
2151
2152 cat >&5 <<_ACEOF
2153
2154
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2158
2159 _ACEOF
2160
2161
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2172 do
2173   for ac_arg
2174   do
2175     case $ac_arg in
2176     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178     | -silent | --silent | --silen | --sile | --sil)
2179       continue ;;
2180     *\'*)
2181       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182     esac
2183     case $ac_pass in
2184     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2185     2)
2186       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2187       if test $ac_must_keep_next = true; then
2188         ac_must_keep_next=false # Got value, back to normal.
2189       else
2190         case $ac_arg in
2191           *=* | --config-cache | -C | -disable-* | --disable-* \
2192           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194           | -with-* | --with-* | -without-* | --without-* | --x)
2195             case "$ac_configure_args0 " in
2196               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197             esac
2198             ;;
2199           -* ) ac_must_keep_next=true ;;
2200         esac
2201       fi
2202       ac_configure_args="$ac_configure_args '$ac_arg'"
2203       ;;
2204     esac
2205   done
2206 done
2207 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2208 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2209
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log.  We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216   # Save into config.log some information that might help in debugging.
2217   {
2218     echo
2219
2220     cat <<\_ASBOX
2221 ## ---------------- ##
2222 ## Cache variables. ##
2223 ## ---------------- ##
2224 _ASBOX
2225     echo
2226     # The following way of writing the cache mishandles newlines in values,
2227 (
2228   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229     eval ac_val=\$$ac_var
2230     case $ac_val in #(
2231     *${as_nl}*)
2232       case $ac_var in #(
2233       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2234 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2235       esac
2236       case $ac_var in #(
2237       _ | IFS | as_nl) ;; #(
2238       *) $as_unset $ac_var ;;
2239       esac ;;
2240     esac
2241   done
2242   (set) 2>&1 |
2243     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244     *${as_nl}ac_space=\ *)
2245       sed -n \
2246         "s/'\''/'\''\\\\'\'''\''/g;
2247           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248       ;; #(
2249     *)
2250       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251       ;;
2252     esac |
2253     sort
2254 )
2255     echo
2256
2257     cat <<\_ASBOX
2258 ## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##
2261 _ASBOX
2262     echo
2263     for ac_var in $ac_subst_vars
2264     do
2265       eval ac_val=\$$ac_var
2266       case $ac_val in
2267       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268       esac
2269       echo "$ac_var='\''$ac_val'\''"
2270     done | sort
2271     echo
2272
2273     if test -n "$ac_subst_files"; then
2274       cat <<\_ASBOX
2275 ## ------------------- ##
2276 ## File substitutions. ##
2277 ## ------------------- ##
2278 _ASBOX
2279       echo
2280       for ac_var in $ac_subst_files
2281       do
2282         eval ac_val=\$$ac_var
2283         case $ac_val in
2284         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285         esac
2286         echo "$ac_var='\''$ac_val'\''"
2287       done | sort
2288       echo
2289     fi
2290
2291     if test -s confdefs.h; then
2292       cat <<\_ASBOX
2293 ## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##
2296 _ASBOX
2297       echo
2298       cat confdefs.h
2299       echo
2300     fi
2301     test "$ac_signal" != 0 &&
2302       echo "$as_me: caught signal $ac_signal"
2303     echo "$as_me: exit $exit_status"
2304   } >&5
2305   rm -f core *.core core.conftest.* &&
2306     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307     exit $exit_status
2308 ' 0
2309 for ac_signal in 1 2 13 15; do
2310   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2311 done
2312 ac_signal=0
2313
2314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2315 rm -f -r conftest* confdefs.h
2316
2317 # Predefined preprocessor variables.
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_NAME "$PACKAGE_NAME"
2321 _ACEOF
2322
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2326 _ACEOF
2327
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 _ACEOF
2332
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_STRING "$PACKAGE_STRING"
2336 _ACEOF
2337
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2341 _ACEOF
2342
2343
2344 # Let the site file select an alternate cache file if it wants to.
2345 # Prefer explicitly selected file to automatically selected ones.
2346 if test -n "$CONFIG_SITE"; then
2347   set x "$CONFIG_SITE"
2348 elif test "x$prefix" != xNONE; then
2349   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2350 else
2351   set x "$ac_default_prefix/share/config.site" \
2352         "$ac_default_prefix/etc/config.site"
2353 fi
2354 shift
2355 for ac_site_file
2356 do
2357   if test -r "$ac_site_file"; then
2358     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2359 echo "$as_me: loading site script $ac_site_file" >&6;}
2360     sed 's/^/| /' "$ac_site_file" >&5
2361     . "$ac_site_file"
2362   fi
2363 done
2364
2365 if test -r "$cache_file"; then
2366   # Some versions of bash will fail to source /dev/null (special
2367   # files actually), so we avoid doing that.
2368   if test -f "$cache_file"; then
2369     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2370 echo "$as_me: loading cache $cache_file" >&6;}
2371     case $cache_file in
2372       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373       *)                      . "./$cache_file";;
2374     esac
2375   fi
2376 else
2377   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2378 echo "$as_me: creating cache $cache_file" >&6;}
2379   >$cache_file
2380 fi
2381
2382 # Check that the precious variables saved in the cache have kept the same
2383 # value.
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387   eval ac_new_set=\$ac_env_${ac_var}_set
2388   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389   eval ac_new_val=\$ac_env_${ac_var}_value
2390   case $ac_old_set,$ac_new_set in
2391     set,)
2392       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394       ac_cache_corrupted=: ;;
2395     ,set)
2396       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2397 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398       ac_cache_corrupted=: ;;
2399     ,);;
2400     *)
2401       if test "x$ac_old_val" != "x$ac_new_val"; then
2402         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2403 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2405 echo "$as_me:   former value:  $ac_old_val" >&2;}
2406         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2407 echo "$as_me:   current value: $ac_new_val" >&2;}
2408         ac_cache_corrupted=:
2409       fi;;
2410   esac
2411   # Pass precious variables to config.status.
2412   if test "$ac_new_set" = set; then
2413     case $ac_new_val in
2414     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415     *) ac_arg=$ac_var=$ac_new_val ;;
2416     esac
2417     case " $ac_configure_args " in
2418       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2419       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2420     esac
2421   fi
2422 done
2423 if $ac_cache_corrupted; then
2424   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2425 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2426   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2427 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2428    { (exit 1); exit 1; }; }
2429 fi
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460
2461
2462
2463
2464
2465 ac_aux_dir=
2466 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2467   if test -f "$ac_dir/install-sh"; then
2468     ac_aux_dir=$ac_dir
2469     ac_install_sh="$ac_aux_dir/install-sh -c"
2470     break
2471   elif test -f "$ac_dir/install.sh"; then
2472     ac_aux_dir=$ac_dir
2473     ac_install_sh="$ac_aux_dir/install.sh -c"
2474     break
2475   elif test -f "$ac_dir/shtool"; then
2476     ac_aux_dir=$ac_dir
2477     ac_install_sh="$ac_aux_dir/shtool install -c"
2478     break
2479   fi
2480 done
2481 if test -z "$ac_aux_dir"; then
2482   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2483 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2484    { (exit 1); exit 1; }; }
2485 fi
2486
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2492 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2493 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2494
2495
2496 # Make sure we can run config.sub.
2497 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2498   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2499 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2500    { (exit 1); exit 1; }; }
2501
2502 { echo "$as_me:$LINENO: checking build system type" >&5
2503 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2504 if test "${ac_cv_build+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   ac_build_alias=$build_alias
2508 test "x$ac_build_alias" = x &&
2509   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2510 test "x$ac_build_alias" = x &&
2511   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2512 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2513    { (exit 1); exit 1; }; }
2514 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2515   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2516 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2517    { (exit 1); exit 1; }; }
2518
2519 fi
2520 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2521 echo "${ECHO_T}$ac_cv_build" >&6; }
2522 case $ac_cv_build in
2523 *-*-*) ;;
2524 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2525 echo "$as_me: error: invalid value of canonical build" >&2;}
2526    { (exit 1); exit 1; }; };;
2527 esac
2528 build=$ac_cv_build
2529 ac_save_IFS=$IFS; IFS='-'
2530 set x $ac_cv_build
2531 shift
2532 build_cpu=$1
2533 build_vendor=$2
2534 shift; shift
2535 # Remember, the first character of IFS is used to create $*,
2536 # except with old shells:
2537 build_os=$*
2538 IFS=$ac_save_IFS
2539 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2540
2541
2542 { echo "$as_me:$LINENO: checking host system type" >&5
2543 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2544 if test "${ac_cv_host+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   if test "x$host_alias" = x; then
2548   ac_cv_host=$ac_cv_build
2549 else
2550   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2551     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2552 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2553    { (exit 1); exit 1; }; }
2554 fi
2555
2556 fi
2557 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2558 echo "${ECHO_T}$ac_cv_host" >&6; }
2559 case $ac_cv_host in
2560 *-*-*) ;;
2561 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2562 echo "$as_me: error: invalid value of canonical host" >&2;}
2563    { (exit 1); exit 1; }; };;
2564 esac
2565 host=$ac_cv_host
2566 ac_save_IFS=$IFS; IFS='-'
2567 set x $ac_cv_host
2568 shift
2569 host_cpu=$1
2570 host_vendor=$2
2571 shift; shift
2572 # Remember, the first character of IFS is used to create $*,
2573 # except with old shells:
2574 host_os=$*
2575 IFS=$ac_save_IFS
2576 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2577
2578
2579
2580 if test "$cross_compiling" != "no"; then
2581     HOST_PREFIX="${host_alias}-"
2582     HOST_SUFFIX="-$host_alias"
2583 else
2584     HOST_PREFIX=
2585     HOST_SUFFIX=
2586 fi
2587
2588
2589 wx_major_version_number=2
2590 wx_minor_version_number=9
2591 wx_release_number=2
2592 wx_subrelease_number=0
2593
2594 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2595 WX_VERSION=$WX_RELEASE.$wx_release_number
2596 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2597
2598 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2599
2600
2601 wx_top_builddir="`pwd`"
2602
2603
2604
2605
2606 USE_UNIX=1
2607 USE_OS2=0
2608 USE_WIN32=0
2609 USE_DOS=0
2610 USE_BEOS=0
2611 USE_MAC=0
2612
2613 USE_AIX=
2614 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2615 USE_GNU=                            USE_HPUX=
2616 USE_LINUX=
2617 USE_NETBSD=
2618 USE_OPENBSD=
2619 USE_OSF=                            USE_SGI=
2620 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2621 USE_ULTRIX=
2622 USE_UNIXWARE=
2623
2624 USE_ALPHA=
2625
2626 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2627
2628 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2629
2630 DEFAULT_wxUSE_OLD_COCOA=0
2631 DEFAULT_wxUSE_GTK=0
2632 DEFAULT_wxUSE_OSX_CARBON=0
2633 DEFAULT_wxUSE_OSX_COCOA=0
2634 DEFAULT_wxUSE_OSX_IPHONE=0
2635 DEFAULT_wxUSE_MGL=0
2636 DEFAULT_wxUSE_MICROWIN=0
2637 DEFAULT_wxUSE_MOTIF=0
2638 DEFAULT_wxUSE_MSW=0
2639 DEFAULT_wxUSE_PM=0
2640 DEFAULT_wxUSE_X11=0
2641 DEFAULT_wxUSE_DFB=0
2642
2643 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2644 DEFAULT_DEFAULT_wxUSE_GTK=0
2645 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2646 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2647 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2648 DEFAULT_DEFAULT_wxUSE_MGL=0
2649 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2650 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2651 DEFAULT_DEFAULT_wxUSE_MSW=0
2652 DEFAULT_DEFAULT_wxUSE_PM=0
2653 DEFAULT_DEFAULT_wxUSE_X11=0
2654 DEFAULT_DEFAULT_wxUSE_DFB=0
2655
2656 PROGRAM_EXT=
2657 SAMPLES_RPATH_FLAG=
2658 DYLIB_RPATH_INSTALL=
2659 DYLIB_RPATH_POSTLINK=
2660
2661 DEFAULT_STD_FLAG=yes
2662
2663 case "${host}" in
2664   *-hp-hpux* )
2665     USE_HPUX=1
2666     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2667     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2668     cat >>confdefs.h <<\_ACEOF
2669 #define __HPUX__ 1
2670 _ACEOF
2671
2672
2673             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2674   ;;
2675   *-*-linux* )
2676     USE_LINUX=1
2677     cat >>confdefs.h <<\_ACEOF
2678 #define __LINUX__ 1
2679 _ACEOF
2680
2681     TMP=`uname -m`
2682     if test "x$TMP" = "xalpha"; then
2683       USE_ALPHA=1
2684       cat >>confdefs.h <<\_ACEOF
2685 #define __ALPHA__ 1
2686 _ACEOF
2687
2688     fi
2689     DEFAULT_DEFAULT_wxUSE_GTK=1
2690   ;;
2691   *-*-gnu* | *-*-k*bsd*-gnu )
2692     USE_GNU=1
2693     TMP=`uname -m`
2694     if test "x$TMP" = "xalpha"; then
2695       USE_ALPHA=1
2696       cat >>confdefs.h <<\_ACEOF
2697 #define __ALPHA__ 1
2698 _ACEOF
2699
2700     fi
2701     DEFAULT_DEFAULT_wxUSE_GTK=1
2702   ;;
2703   *-*-irix5* | *-*-irix6* )
2704     USE_SGI=1
2705     USE_SVR4=1
2706     cat >>confdefs.h <<\_ACEOF
2707 #define __SGI__ 1
2708 _ACEOF
2709
2710     cat >>confdefs.h <<\_ACEOF
2711 #define __SVR4__ 1
2712 _ACEOF
2713
2714     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2715   ;;
2716   *-*-qnx*)
2717     USE_QNX=1
2718     cat >>confdefs.h <<\_ACEOF
2719 #define __QNX__ 1
2720 _ACEOF
2721
2722     DEFAULT_DEFAULT_wxUSE_X11=1
2723   ;;
2724   *-*-solaris2* )
2725     USE_SUN=1
2726     USE_SOLARIS=1
2727     USE_SVR4=1
2728     cat >>confdefs.h <<\_ACEOF
2729 #define __SUN__ 1
2730 _ACEOF
2731
2732     cat >>confdefs.h <<\_ACEOF
2733 #define __SOLARIS__ 1
2734 _ACEOF
2735
2736     cat >>confdefs.h <<\_ACEOF
2737 #define __SVR4__ 1
2738 _ACEOF
2739
2740     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2741     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2742   ;;
2743   *-*-sunos4* )
2744     USE_SUN=1
2745     USE_SUNOS=1
2746     USE_BSD=1
2747     cat >>confdefs.h <<\_ACEOF
2748 #define __SUN__ 1
2749 _ACEOF
2750
2751     cat >>confdefs.h <<\_ACEOF
2752 #define __SUNOS__ 1
2753 _ACEOF
2754
2755     cat >>confdefs.h <<\_ACEOF
2756 #define __BSD__ 1
2757 _ACEOF
2758
2759     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2760   ;;
2761   *-*-freebsd*)
2762     USE_BSD=1
2763     USE_FREEBSD=1
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __FREEBSD__ 1
2766 _ACEOF
2767
2768     cat >>confdefs.h <<\_ACEOF
2769 #define __BSD__ 1
2770 _ACEOF
2771
2772     DEFAULT_DEFAULT_wxUSE_GTK=1
2773   ;;
2774   *-*-openbsd*|*-*-mirbsd*)
2775     USE_BSD=1
2776     USE_OPENBSD=1
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __OPENBSD__ 1
2779 _ACEOF
2780
2781     cat >>confdefs.h <<\_ACEOF
2782 #define __BSD__ 1
2783 _ACEOF
2784
2785     DEFAULT_DEFAULT_wxUSE_GTK=1
2786   ;;
2787   *-*-netbsd*)
2788     USE_BSD=1
2789     USE_NETBSD=1
2790     cat >>confdefs.h <<\_ACEOF
2791 #define __NETBSD__ 1
2792 _ACEOF
2793
2794     cat >>confdefs.h <<\_ACEOF
2795 #define __BSD__ 1
2796 _ACEOF
2797
2798     DEFAULT_DEFAULT_wxUSE_GTK=1
2799     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2800
2801             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2802   ;;
2803   *-*-osf* )
2804     USE_ALPHA=1
2805     USE_OSF=1
2806     cat >>confdefs.h <<\_ACEOF
2807 #define __ALPHA__ 1
2808 _ACEOF
2809
2810     cat >>confdefs.h <<\_ACEOF
2811 #define __OSF__ 1
2812 _ACEOF
2813
2814     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2815     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2816   ;;
2817   *-*-dgux5* )
2818     USE_ALPHA=1
2819     USE_SVR4=1
2820     cat >>confdefs.h <<\_ACEOF
2821 #define __ALPHA__ 1
2822 _ACEOF
2823
2824     cat >>confdefs.h <<\_ACEOF
2825 #define __SVR4__ 1
2826 _ACEOF
2827
2828     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2829   ;;
2830   *-*-sysv5* )
2831     USE_SYSV=1
2832     USE_SVR4=1
2833     cat >>confdefs.h <<\_ACEOF
2834 #define __SYSV__ 1
2835 _ACEOF
2836
2837     cat >>confdefs.h <<\_ACEOF
2838 #define __SVR4__ 1
2839 _ACEOF
2840
2841     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2842   ;;
2843   *-*-aix* )
2844     USE_AIX=1
2845     USE_SYSV=1
2846     USE_SVR4=1
2847     cat >>confdefs.h <<\_ACEOF
2848 #define __AIX__ 1
2849 _ACEOF
2850
2851     cat >>confdefs.h <<\_ACEOF
2852 #define __SYSV__ 1
2853 _ACEOF
2854
2855     cat >>confdefs.h <<\_ACEOF
2856 #define __SVR4__ 1
2857 _ACEOF
2858
2859     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2860   ;;
2861
2862   *-*-*UnixWare*)
2863     USE_SYSV=1
2864     USE_SVR4=1
2865     USE_UNIXWARE=1
2866     cat >>confdefs.h <<\_ACEOF
2867 #define __UNIXWARE__ 1
2868 _ACEOF
2869
2870   ;;
2871
2872   *-*-cygwin* | *-*-mingw32* )
2873                 PROGRAM_EXT=".exe"
2874     DEFAULT_DEFAULT_wxUSE_MSW=1
2875   ;;
2876
2877   *-pc-msdosdjgpp )
2878     USE_UNIX=0
2879     USE_DOS=1
2880     cat >>confdefs.h <<\_ACEOF
2881 #define __DOS__ 1
2882 _ACEOF
2883
2884     PROGRAM_EXT=".exe"
2885     DEFAULT_DEFAULT_wxUSE_MGL=1
2886   ;;
2887
2888   *-pc-os2_emx | *-pc-os2-emx )
2889     cat >>confdefs.h <<\_ACEOF
2890 #define __EMX__ 1
2891 _ACEOF
2892
2893     USE_OS2=1
2894     cat >>confdefs.h <<\_ACEOF
2895 #define __OS2__ 1
2896 _ACEOF
2897
2898     PROGRAM_EXT=".exe"
2899     DEFAULT_DEFAULT_wxUSE_PM=1
2900         CXX=gcc
2901     LDFLAGS="$LDFLAGS -Zcrtdll"
2902                         ac_executable_extensions=".exe"
2903     export ac_executable_extensions
2904             ac_save_IFS="$IFS"
2905     IFS='\\'
2906     ac_TEMP_PATH=
2907     for ac_dir in $PATH; do
2908       IFS=$ac_save_IFS
2909       if test -z "$ac_TEMP_PATH"; then
2910         ac_TEMP_PATH="$ac_dir"
2911       else
2912         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2913       fi
2914     done
2915     export PATH="$ac_TEMP_PATH"
2916     unset ac_TEMP_PATH
2917     DEFAULT_STD_FLAG=no
2918   ;;
2919
2920   arm-apple-darwin*)
2921         USE_BSD=1
2922     USE_DARWIN=1
2923     cat >>confdefs.h <<\_ACEOF
2924 #define __BSD__ 1
2925 _ACEOF
2926
2927     cat >>confdefs.h <<\_ACEOF
2928 #define __DARWIN__ 1
2929 _ACEOF
2930
2931     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2932   ;;
2933
2934   *-*-darwin* )
2935         USE_BSD=1
2936     USE_DARWIN=1
2937     cat >>confdefs.h <<\_ACEOF
2938 #define __BSD__ 1
2939 _ACEOF
2940
2941     cat >>confdefs.h <<\_ACEOF
2942 #define __DARWIN__ 1
2943 _ACEOF
2944
2945     cat >>confdefs.h <<\_ACEOF
2946 #define TARGET_CARBON 1
2947 _ACEOF
2948
2949     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2950   ;;
2951
2952   *-*-beos* )
2953         USE_BEOS=1
2954     cat >>confdefs.h <<\_ACEOF
2955 #define __BEOS__ 1
2956 _ACEOF
2957
2958   ;;
2959
2960   *)
2961     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2962 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2963     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2964 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2965
2966     DEFAULT_DEFAULT_wxUSE_X11=1
2967     DEFAULT_wxUSE_SHARED=no
2968 esac
2969
2970
2971
2972 DEFAULT_wxUSE_ALL_FEATURES=yes
2973
2974 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2975 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2976
2977 DEFAULT_wxUSE_DMALLOC=no
2978 DEFAULT_wxUSE_LIBGNOMEVFS=no
2979 DEFAULT_wxUSE_LIBHILDON=no
2980 DEFAULT_wxUSE_LIBHILDON2=no
2981 DEFAULT_wxUSE_LIBMSPACK=no
2982 DEFAULT_wxUSE_LIBSDL=no
2983
2984 DEFAULT_wxUSE_ACCESSIBILITY=no
2985 DEFAULT_wxUSE_IPV6=no
2986 DEFAULT_wxUSE_GSTREAMER8=no
2987
2988 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
2989 DEFAULT_wxUSE_UNICODE_UTF8=auto
2990 DEFAULT_wxUSE_OPENGL=auto
2991 DEFAULT_wxUSE_MEDIACTRL=auto
2992 DEFAULT_wxUSE_COMPILER_TLS=auto
2993
2994 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2995
2996 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2997 DEFAULT_wxUSE_MAC_ARCH=no
2998
2999 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3000
3001 DEFAULT_wxUSE_GTK2=yes
3002
3003 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3004
3005
3006
3007
3008
3009           enablestring=disable
3010           defaultval=
3011           if test -z "$defaultval"; then
3012               if test x"$enablestring" = xdisable; then
3013                   defaultval=yes
3014               else
3015                   defaultval=no
3016               fi
3017           fi
3018
3019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3020 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3021           # Check whether --enable-gui was given.
3022 if test "${enable_gui+set}" = set; then
3023   enableval=$enable_gui;
3024                           if test "$enableval" = yes; then
3025                             wx_cv_use_gui='wxUSE_GUI=yes'
3026                           else
3027                             wx_cv_use_gui='wxUSE_GUI=no'
3028                           fi
3029
3030 else
3031
3032                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3033
3034 fi
3035
3036
3037           eval "$wx_cv_use_gui"
3038
3039           if test x"$enablestring" = xdisable; then
3040             if test $wxUSE_GUI = no; then
3041               result=yes
3042             else
3043               result=no
3044             fi
3045           else
3046             result=$wxUSE_GUI
3047           fi
3048
3049           { echo "$as_me:$LINENO: result: $result" >&5
3050 echo "${ECHO_T}$result" >&6; }
3051
3052
3053           enablestring=
3054           defaultval=
3055           if test -z "$defaultval"; then
3056               if test x"$enablestring" = xdisable; then
3057                   defaultval=yes
3058               else
3059                   defaultval=no
3060               fi
3061           fi
3062
3063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3064 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3065           # Check whether --enable-monolithic was given.
3066 if test "${enable_monolithic+set}" = set; then
3067   enableval=$enable_monolithic;
3068                           if test "$enableval" = yes; then
3069                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3070                           else
3071                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3072                           fi
3073
3074 else
3075
3076                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3077
3078 fi
3079
3080
3081           eval "$wx_cv_use_monolithic"
3082
3083           if test x"$enablestring" = xdisable; then
3084             if test $wxUSE_MONOLITHIC = no; then
3085               result=yes
3086             else
3087               result=no
3088             fi
3089           else
3090             result=$wxUSE_MONOLITHIC
3091           fi
3092
3093           { echo "$as_me:$LINENO: result: $result" >&5
3094 echo "${ECHO_T}$result" >&6; }
3095
3096
3097           enablestring=
3098           defaultval=
3099           if test -z "$defaultval"; then
3100               if test x"$enablestring" = xdisable; then
3101                   defaultval=yes
3102               else
3103                   defaultval=no
3104               fi
3105           fi
3106
3107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3108 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3109           # Check whether --enable-plugins was given.
3110 if test "${enable_plugins+set}" = set; then
3111   enableval=$enable_plugins;
3112                           if test "$enableval" = yes; then
3113                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3114                           else
3115                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3116                           fi
3117
3118 else
3119
3120                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3121
3122 fi
3123
3124
3125           eval "$wx_cv_use_plugins"
3126
3127           if test x"$enablestring" = xdisable; then
3128             if test $wxUSE_PLUGINS = no; then
3129               result=yes
3130             else
3131               result=no
3132             fi
3133           else
3134             result=$wxUSE_PLUGINS
3135           fi
3136
3137           { echo "$as_me:$LINENO: result: $result" >&5
3138 echo "${ECHO_T}$result" >&6; }
3139
3140
3141           withstring=without
3142           defaultval=$wxUSE_ALL_FEATURES
3143           if test -z "$defaultval"; then
3144               if test x"$withstring" = xwithout; then
3145                   defaultval=yes
3146               else
3147                   defaultval=no
3148               fi
3149           fi
3150           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3151 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3152
3153 # Check whether --with-subdirs was given.
3154 if test "${with_subdirs+set}" = set; then
3155   withval=$with_subdirs;
3156                         if test "$withval" = yes; then
3157                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3158                         else
3159                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3160                         fi
3161
3162 else
3163
3164                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3165
3166 fi
3167
3168
3169           eval "$wx_cv_use_subdirs"
3170
3171           if test x"$withstring" = xwithout; then
3172             if test $wxWITH_SUBDIRS = yes; then
3173               result=no
3174             else
3175               result=yes
3176             fi
3177           else
3178             result=$wxWITH_SUBDIRS
3179           fi
3180
3181           { echo "$as_me:$LINENO: result: $result" >&5
3182 echo "${ECHO_T}$result" >&6; }
3183
3184
3185 # Check whether --with-flavour was given.
3186 if test "${with_flavour+set}" = set; then
3187   withval=$with_flavour; WX_FLAVOUR="$withval"
3188 fi
3189
3190
3191           enablestring=
3192           defaultval=
3193           if test -z "$defaultval"; then
3194               if test x"$enablestring" = xdisable; then
3195                   defaultval=yes
3196               else
3197                   defaultval=no
3198               fi
3199           fi
3200
3201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3202 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3203           # Check whether --enable-official_build was given.
3204 if test "${enable_official_build+set}" = set; then
3205   enableval=$enable_official_build;
3206                           if test "$enableval" = yes; then
3207                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3208                           else
3209                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3210                           fi
3211
3212 else
3213
3214                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3215
3216 fi
3217
3218
3219           eval "$wx_cv_use_official_build"
3220
3221           if test x"$enablestring" = xdisable; then
3222             if test $wxUSE_OFFICIAL_BUILD = no; then
3223               result=yes
3224             else
3225               result=no
3226             fi
3227           else
3228             result=$wxUSE_OFFICIAL_BUILD
3229           fi
3230
3231           { echo "$as_me:$LINENO: result: $result" >&5
3232 echo "${ECHO_T}$result" >&6; }
3233
3234 # Check whether --enable-vendor was given.
3235 if test "${enable_vendor+set}" = set; then
3236   enableval=$enable_vendor; VENDOR="$enableval"
3237 fi
3238
3239 if test "x$VENDOR" = "x"; then
3240     VENDOR="custom"
3241 fi
3242
3243
3244           enablestring=disable
3245           defaultval=
3246           if test -z "$defaultval"; then
3247               if test x"$enablestring" = xdisable; then
3248                   defaultval=yes
3249               else
3250                   defaultval=no
3251               fi
3252           fi
3253
3254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3255 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3256           # Check whether --enable-all-features was given.
3257 if test "${enable_all_features+set}" = set; then
3258   enableval=$enable_all_features;
3259                           if test "$enableval" = yes; then
3260                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3261                           else
3262                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3263                           fi
3264
3265 else
3266
3267                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3268
3269 fi
3270
3271
3272           eval "$wx_cv_use_all_features"
3273
3274           if test x"$enablestring" = xdisable; then
3275             if test $wxUSE_ALL_FEATURES = no; then
3276               result=yes
3277             else
3278               result=no
3279             fi
3280           else
3281             result=$wxUSE_ALL_FEATURES
3282           fi
3283
3284           { echo "$as_me:$LINENO: result: $result" >&5
3285 echo "${ECHO_T}$result" >&6; }
3286
3287
3288 if test "$wxUSE_ALL_FEATURES" = "no"; then
3289                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3290     DEFAULT_wxUSE_MEDIACTRL=no
3291 fi
3292
3293
3294 if test "$wxUSE_GUI" = "yes"; then
3295
3296
3297           enablestring=
3298           defaultval=
3299           if test -z "$defaultval"; then
3300               if test x"$enablestring" = xdisable; then
3301                   defaultval=yes
3302               else
3303                   defaultval=no
3304               fi
3305           fi
3306
3307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3308 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3309           # Check whether --enable-universal was given.
3310 if test "${enable_universal+set}" = set; then
3311   enableval=$enable_universal;
3312                           if test "$enableval" = yes; then
3313                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3314                           else
3315                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3316                           fi
3317
3318 else
3319
3320                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3321
3322 fi
3323
3324
3325           eval "$wx_cv_use_universal"
3326
3327           if test x"$enablestring" = xdisable; then
3328             if test $wxUSE_UNIVERSAL = no; then
3329               result=yes
3330             else
3331               result=no
3332             fi
3333           else
3334             result=$wxUSE_UNIVERSAL
3335           fi
3336
3337           { echo "$as_me:$LINENO: result: $result" >&5
3338 echo "${ECHO_T}$result" >&6; }
3339
3340 if test "$wxUSE_UNIVERSAL" = "yes"; then
3341
3342 # Check whether --with-themes was given.
3343 if test "${with_themes+set}" = set; then
3344   withval=$with_themes; wxUNIV_THEMES="$withval"
3345 fi
3346
3347 fi
3348
3349
3350 # Check whether --with-gtk was given.
3351 if test "${with_gtk+set}" = set; then
3352   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3353 fi
3354
3355
3356 # Check whether --with-motif was given.
3357 if test "${with_motif+set}" = set; then
3358   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3359 fi
3360
3361
3362 # Check whether --with-osx_carbon was given.
3363 if test "${with_osx_carbon+set}" = set; then
3364   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3365 fi
3366
3367
3368 # Check whether --with-osx_cocoa was given.
3369 if test "${with_osx_cocoa+set}" = set; then
3370   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3371 fi
3372
3373
3374 # Check whether --with-osx_iphone was given.
3375 if test "${with_osx_iphone+set}" = set; then
3376   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3377 fi
3378
3379
3380 # Check whether --with-osx was given.
3381 if test "${with_osx+set}" = set; then
3382   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3383 fi
3384
3385
3386 # Check whether --with-carbon was given.
3387 if test "${with_carbon+set}" = set; then
3388   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3389 fi
3390
3391
3392 # Check whether --with-cocoa was given.
3393 if test "${with_cocoa+set}" = set; then
3394   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3395 fi
3396
3397
3398 # Check whether --with-iphone was given.
3399 if test "${with_iphone+set}" = set; then
3400   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3401 fi
3402
3403
3404 # Check whether --with-mac was given.
3405 if test "${with_mac+set}" = set; then
3406   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3407 fi
3408
3409
3410 # Check whether --with-old_cocoa was given.
3411 if test "${with_old_cocoa+set}" = set; then
3412   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3413 fi
3414
3415
3416 # Check whether --with-wine was given.
3417 if test "${with_wine+set}" = set; then
3418   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3419 fi
3420
3421
3422 # Check whether --with-msw was given.
3423 if test "${with_msw+set}" = set; then
3424   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3425 fi
3426
3427
3428 # Check whether --with-pm was given.
3429 if test "${with_pm+set}" = set; then
3430   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3431 fi
3432
3433
3434 # Check whether --with-mgl was given.
3435 if test "${with_mgl+set}" = set; then
3436   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3437 fi
3438
3439
3440 # Check whether --with-directfb was given.
3441 if test "${with_directfb+set}" = set; then
3442   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3443 fi
3444
3445
3446 # Check whether --with-microwin was given.
3447 if test "${with_microwin+set}" = set; then
3448   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3449 fi
3450
3451
3452 # Check whether --with-x11 was given.
3453 if test "${with_x11+set}" = set; then
3454   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3455 fi
3456
3457
3458           enablestring=
3459           defaultval=
3460           if test -z "$defaultval"; then
3461               if test x"$enablestring" = xdisable; then
3462                   defaultval=yes
3463               else
3464                   defaultval=no
3465               fi
3466           fi
3467
3468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3469 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3470           # Check whether --enable-nanox was given.
3471 if test "${enable_nanox+set}" = set; then
3472   enableval=$enable_nanox;
3473                           if test "$enableval" = yes; then
3474                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3475                           else
3476                             wx_cv_use_nanox='wxUSE_NANOX=no'
3477                           fi
3478
3479 else
3480
3481                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3482
3483 fi
3484
3485
3486           eval "$wx_cv_use_nanox"
3487
3488           if test x"$enablestring" = xdisable; then
3489             if test $wxUSE_NANOX = no; then
3490               result=yes
3491             else
3492               result=no
3493             fi
3494           else
3495             result=$wxUSE_NANOX
3496           fi
3497
3498           { echo "$as_me:$LINENO: result: $result" >&5
3499 echo "${ECHO_T}$result" >&6; }
3500
3501
3502 # Check whether --enable-gtk2 was given.
3503 if test "${enable_gtk2+set}" = set; then
3504   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3505 fi
3506
3507
3508           enablestring=
3509           defaultval=
3510           if test -z "$defaultval"; then
3511               if test x"$enablestring" = xdisable; then
3512                   defaultval=yes
3513               else
3514                   defaultval=no
3515               fi
3516           fi
3517
3518           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3519 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3520           # Check whether --enable-gpe was given.
3521 if test "${enable_gpe+set}" = set; then
3522   enableval=$enable_gpe;
3523                           if test "$enableval" = yes; then
3524                             wx_cv_use_gpe='wxUSE_GPE=yes'
3525                           else
3526                             wx_cv_use_gpe='wxUSE_GPE=no'
3527                           fi
3528
3529 else
3530
3531                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3532
3533 fi
3534
3535
3536           eval "$wx_cv_use_gpe"
3537
3538           if test x"$enablestring" = xdisable; then
3539             if test $wxUSE_GPE = no; then
3540               result=yes
3541             else
3542               result=no
3543             fi
3544           else
3545             result=$wxUSE_GPE
3546           fi
3547
3548           { echo "$as_me:$LINENO: result: $result" >&5
3549 echo "${ECHO_T}$result" >&6; }
3550
3551
3552
3553 { echo "$as_me:$LINENO: checking for toolkit" >&5
3554 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3555
3556
3557
3558 # In Wine, we need to default to MSW, not GTK or MOTIF
3559 if test "$wxUSE_WINE" = "yes"; then
3560     DEFAULT_DEFAULT_wxUSE_GTK=0
3561     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3562     DEFAULT_DEFAULT_wxUSE_MSW=1
3563     wxUSE_SHARED=no
3564     CC=${CC:-winegcc}
3565     CXX=${CXX:-wineg++}
3566 fi
3567
3568
3569 if test "$wxUSE_GUI" = "yes"; then
3570
3571     if test "$USE_BEOS" = 1; then
3572         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3573 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3574    { (exit 1); exit 1; }; }
3575     fi
3576
3577     if test "$TOOLKIT_GIVEN" = 1; then
3578             for toolkit in $ALL_TOOLKITS; do
3579         var=wxUSE_$toolkit
3580         eval "value=\$${var}"
3581         if test "x$value" = "xno"; then
3582           eval "$var=0"
3583         elif test "x$value" != "x"; then
3584           eval "$var=1"
3585         fi
3586
3587         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3588           eval "wx${toolkit}_VERSION=$value"
3589         fi
3590       done
3591     else
3592             for toolkit in $ALL_TOOLKITS; do
3593         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3594         eval "wxUSE_$toolkit=\$${var}"
3595       done
3596     fi
3597
3598             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3599                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3600                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3601
3602         case "${host}" in
3603       *-pc-os2_emx | *-pc-os2-emx )
3604         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3605     esac
3606
3607     case "$NUM_TOOLKITS" in
3608       1)
3609       ;;
3610       0)
3611         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3612 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3613    { (exit 1); exit 1; }; }
3614       ;;
3615       *)
3616         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3617 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3618    { (exit 1); exit 1; }; }
3619     esac
3620
3621     # to be removed when --disable-gtk2 isn't needed
3622     if test "x$wxUSE_GTK2" = "xyes"; then
3623         wxGTK_VERSION=2
3624         wxUSE_GTK1=0
3625     elif test "x$wxUSE_GTK2" = "xno"; then
3626         wxGTK_VERSION=1
3627         wxUSE_GTK1=1
3628     fi
3629
3630     for toolkit in $ALL_TOOLKITS; do
3631         var=wxUSE_$toolkit
3632         eval "value=\$${var}"
3633         if test "$value" = 1; then
3634           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3635           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3636 echo "${ECHO_T}$toolkit_echo" >&6; }
3637         fi
3638     done
3639 else
3640     if test "x$host_alias" != "x"; then
3641         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3642 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3643     else
3644         { echo "$as_me:$LINENO: result: base only" >&5
3645 echo "${ECHO_T}base only" >&6; }
3646     fi
3647 fi
3648
3649 wxUSE_MAC=0
3650 if test "$wxUSE_OSX_CARBON" = 1 \
3651        -o "$wxUSE_OSX_COCOA" = 1 \
3652        -o "$wxUSE_OSX_IPHONE" = 1; then
3653     wxUSE_MAC=1
3654 fi
3655
3656
3657
3658           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3659 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3660
3661 # Check whether --with-libpng was given.
3662 if test "${with_libpng+set}" = set; then
3663   withval=$with_libpng;
3664                         if test "$withval" = yes; then
3665                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3666                         elif test "$withval" = no; then
3667                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3668                         elif test "$withval" = sys; then
3669                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3670                         elif test "$withval" = builtin; then
3671                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3672                         else
3673                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3674 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3675    { (exit 1); exit 1; }; }
3676                         fi
3677
3678 else
3679
3680                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3681
3682 fi
3683
3684
3685           eval "$wx_cv_use_libpng"
3686
3687           if test "$wxUSE_LIBPNG" = yes; then
3688             { echo "$as_me:$LINENO: result: yes" >&5
3689 echo "${ECHO_T}yes" >&6; }
3690           elif test "$wxUSE_LIBPNG" = no; then
3691             { echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6; }
3693           elif test "$wxUSE_LIBPNG" = sys; then
3694             { echo "$as_me:$LINENO: result: system version" >&5
3695 echo "${ECHO_T}system version" >&6; }
3696           elif test "$wxUSE_LIBPNG" = builtin; then
3697             { echo "$as_me:$LINENO: result: builtin version" >&5
3698 echo "${ECHO_T}builtin version" >&6; }
3699           else
3700             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3701 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3702    { (exit 1); exit 1; }; }
3703           fi
3704
3705
3706           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3707 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3708
3709 # Check whether --with-libjpeg was given.
3710 if test "${with_libjpeg+set}" = set; then
3711   withval=$with_libjpeg;
3712                         if test "$withval" = yes; then
3713                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3714                         elif test "$withval" = no; then
3715                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3716                         elif test "$withval" = sys; then
3717                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3718                         elif test "$withval" = builtin; then
3719                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3720                         else
3721                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3722 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3723    { (exit 1); exit 1; }; }
3724                         fi
3725
3726 else
3727
3728                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3729
3730 fi
3731
3732
3733           eval "$wx_cv_use_libjpeg"
3734
3735           if test "$wxUSE_LIBJPEG" = yes; then
3736             { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3738           elif test "$wxUSE_LIBJPEG" = no; then
3739             { echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6; }
3741           elif test "$wxUSE_LIBJPEG" = sys; then
3742             { echo "$as_me:$LINENO: result: system version" >&5
3743 echo "${ECHO_T}system version" >&6; }
3744           elif test "$wxUSE_LIBJPEG" = builtin; then
3745             { echo "$as_me:$LINENO: result: builtin version" >&5
3746 echo "${ECHO_T}builtin version" >&6; }
3747           else
3748             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3749 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3750    { (exit 1); exit 1; }; }
3751           fi
3752
3753
3754           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3755 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3756
3757 # Check whether --with-libtiff was given.
3758 if test "${with_libtiff+set}" = set; then
3759   withval=$with_libtiff;
3760                         if test "$withval" = yes; then
3761                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3762                         elif test "$withval" = no; then
3763                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3764                         elif test "$withval" = sys; then
3765                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3766                         elif test "$withval" = builtin; then
3767                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3768                         else
3769                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3770 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3771    { (exit 1); exit 1; }; }
3772                         fi
3773
3774 else
3775
3776                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3777
3778 fi
3779
3780
3781           eval "$wx_cv_use_libtiff"
3782
3783           if test "$wxUSE_LIBTIFF" = yes; then
3784             { echo "$as_me:$LINENO: result: yes" >&5
3785 echo "${ECHO_T}yes" >&6; }
3786           elif test "$wxUSE_LIBTIFF" = no; then
3787             { echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6; }
3789           elif test "$wxUSE_LIBTIFF" = sys; then
3790             { echo "$as_me:$LINENO: result: system version" >&5
3791 echo "${ECHO_T}system version" >&6; }
3792           elif test "$wxUSE_LIBTIFF" = builtin; then
3793             { echo "$as_me:$LINENO: result: builtin version" >&5
3794 echo "${ECHO_T}builtin version" >&6; }
3795           else
3796             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3797 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3798    { (exit 1); exit 1; }; }
3799           fi
3800
3801
3802           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3803 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3804
3805 # Check whether --with-libxpm was given.
3806 if test "${with_libxpm+set}" = set; then
3807   withval=$with_libxpm;
3808                         if test "$withval" = yes; then
3809                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3810                         elif test "$withval" = no; then
3811                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3812                         elif test "$withval" = sys; then
3813                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3814                         elif test "$withval" = builtin; then
3815                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3816                         else
3817                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3818 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3819    { (exit 1); exit 1; }; }
3820                         fi
3821
3822 else
3823
3824                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3825
3826 fi
3827
3828
3829           eval "$wx_cv_use_libxpm"
3830
3831           if test "$wxUSE_LIBXPM" = yes; then
3832             { echo "$as_me:$LINENO: result: yes" >&5
3833 echo "${ECHO_T}yes" >&6; }
3834           elif test "$wxUSE_LIBXPM" = no; then
3835             { echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6; }
3837           elif test "$wxUSE_LIBXPM" = sys; then
3838             { echo "$as_me:$LINENO: result: system version" >&5
3839 echo "${ECHO_T}system version" >&6; }
3840           elif test "$wxUSE_LIBXPM" = builtin; then
3841             { echo "$as_me:$LINENO: result: builtin version" >&5
3842 echo "${ECHO_T}builtin version" >&6; }
3843           else
3844             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3845 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3846    { (exit 1); exit 1; }; }
3847           fi
3848
3849
3850           withstring=
3851           defaultval=$wxUSE_ALL_FEATURES
3852           if test -z "$defaultval"; then
3853               if test x"$withstring" = xwithout; then
3854                   defaultval=yes
3855               else
3856                   defaultval=no
3857               fi
3858           fi
3859           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3860 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3861
3862 # Check whether --with-libiconv was given.
3863 if test "${with_libiconv+set}" = set; then
3864   withval=$with_libiconv;
3865                         if test "$withval" = yes; then
3866                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3867                         else
3868                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3869                         fi
3870
3871 else
3872
3873                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3874
3875 fi
3876
3877
3878           eval "$wx_cv_use_libiconv"
3879
3880           if test x"$withstring" = xwithout; then
3881             if test $wxUSE_LIBICONV = yes; then
3882               result=no
3883             else
3884               result=yes
3885             fi
3886           else
3887             result=$wxUSE_LIBICONV
3888           fi
3889
3890           { echo "$as_me:$LINENO: result: $result" >&5
3891 echo "${ECHO_T}$result" >&6; }
3892
3893
3894           withstring=
3895           defaultval=$wxUSE_ALL_FEATURES
3896           if test -z "$defaultval"; then
3897               if test x"$withstring" = xwithout; then
3898                   defaultval=yes
3899               else
3900                   defaultval=no
3901               fi
3902           fi
3903           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3904 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3905
3906 # Check whether --with-libmspack was given.
3907 if test "${with_libmspack+set}" = set; then
3908   withval=$with_libmspack;
3909                         if test "$withval" = yes; then
3910                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3911                         else
3912                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3913                         fi
3914
3915 else
3916
3917                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3918
3919 fi
3920
3921
3922           eval "$wx_cv_use_libmspack"
3923
3924           if test x"$withstring" = xwithout; then
3925             if test $wxUSE_LIBMSPACK = yes; then
3926               result=no
3927             else
3928               result=yes
3929             fi
3930           else
3931             result=$wxUSE_LIBMSPACK
3932           fi
3933
3934           { echo "$as_me:$LINENO: result: $result" >&5
3935 echo "${ECHO_T}$result" >&6; }
3936
3937
3938           withstring=without
3939           defaultval=$wxUSE_ALL_FEATURES
3940           if test -z "$defaultval"; then
3941               if test x"$withstring" = xwithout; then
3942                   defaultval=yes
3943               else
3944                   defaultval=no
3945               fi
3946           fi
3947           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3948 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3949
3950 # Check whether --with-gtkprint was given.
3951 if test "${with_gtkprint+set}" = set; then
3952   withval=$with_gtkprint;
3953                         if test "$withval" = yes; then
3954                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3955                         else
3956                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3957                         fi
3958
3959 else
3960
3961                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3962
3963 fi
3964
3965
3966           eval "$wx_cv_use_gtkprint"
3967
3968           if test x"$withstring" = xwithout; then
3969             if test $wxUSE_GTKPRINT = yes; then
3970               result=no
3971             else
3972               result=yes
3973             fi
3974           else
3975             result=$wxUSE_GTKPRINT
3976           fi
3977
3978           { echo "$as_me:$LINENO: result: $result" >&5
3979 echo "${ECHO_T}$result" >&6; }
3980
3981
3982           withstring=without
3983           defaultval=$wxUSE_ALL_FEATURES
3984           if test -z "$defaultval"; then
3985               if test x"$withstring" = xwithout; then
3986                   defaultval=yes
3987               else
3988                   defaultval=no
3989               fi
3990           fi
3991           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3992 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3993
3994 # Check whether --with-gnomeprint was given.
3995 if test "${with_gnomeprint+set}" = set; then
3996   withval=$with_gnomeprint;
3997                         if test "$withval" = yes; then
3998                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3999                         else
4000                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4001                         fi
4002
4003 else
4004
4005                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4006
4007 fi
4008
4009
4010           eval "$wx_cv_use_gnomeprint"
4011
4012           if test x"$withstring" = xwithout; then
4013             if test $wxUSE_LIBGNOMEPRINT = yes; then
4014               result=no
4015             else
4016               result=yes
4017             fi
4018           else
4019             result=$wxUSE_LIBGNOMEPRINT
4020           fi
4021
4022           { echo "$as_me:$LINENO: result: $result" >&5
4023 echo "${ECHO_T}$result" >&6; }
4024
4025
4026           withstring=
4027           defaultval=$wxUSE_ALL_FEATURES
4028           if test -z "$defaultval"; then
4029               if test x"$withstring" = xwithout; then
4030                   defaultval=yes
4031               else
4032                   defaultval=no
4033               fi
4034           fi
4035           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4036 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4037
4038 # Check whether --with-gnomevfs was given.
4039 if test "${with_gnomevfs+set}" = set; then
4040   withval=$with_gnomevfs;
4041                         if test "$withval" = yes; then
4042                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4043                         else
4044                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4045                         fi
4046
4047 else
4048
4049                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4050
4051 fi
4052
4053
4054           eval "$wx_cv_use_gnomevfs"
4055
4056           if test x"$withstring" = xwithout; then
4057             if test $wxUSE_LIBGNOMEVFS = yes; then
4058               result=no
4059             else
4060               result=yes
4061             fi
4062           else
4063             result=$wxUSE_LIBGNOMEVFS
4064           fi
4065
4066           { echo "$as_me:$LINENO: result: $result" >&5
4067 echo "${ECHO_T}$result" >&6; }
4068
4069
4070           withstring=
4071           defaultval=$wxUSE_ALL_FEATURES
4072           if test -z "$defaultval"; then
4073               if test x"$withstring" = xwithout; then
4074                   defaultval=yes
4075               else
4076                   defaultval=no
4077               fi
4078           fi
4079           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4080 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4081
4082 # Check whether --with-hildon was given.
4083 if test "${with_hildon+set}" = set; then
4084   withval=$with_hildon;
4085                         if test "$withval" = yes; then
4086                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4087                         else
4088                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4089                         fi
4090
4091 else
4092
4093                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4094
4095 fi
4096
4097
4098           eval "$wx_cv_use_hildon"
4099
4100           if test x"$withstring" = xwithout; then
4101             if test $wxUSE_LIBHILDON = yes; then
4102               result=no
4103             else
4104               result=yes
4105             fi
4106           else
4107             result=$wxUSE_LIBHILDON
4108           fi
4109
4110           { echo "$as_me:$LINENO: result: $result" >&5
4111 echo "${ECHO_T}$result" >&6; }
4112
4113
4114           withstring=
4115           defaultval=$wxUSE_ALL_FEATURES
4116           if test -z "$defaultval"; then
4117               if test x"$withstring" = xwithout; then
4118                   defaultval=yes
4119               else
4120                   defaultval=no
4121               fi
4122           fi
4123           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4124 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4125
4126 # Check whether --with-opengl was given.
4127 if test "${with_opengl+set}" = set; then
4128   withval=$with_opengl;
4129                         if test "$withval" = yes; then
4130                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4131                         else
4132                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4133                         fi
4134
4135 else
4136
4137                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4138
4139 fi
4140
4141
4142           eval "$wx_cv_use_opengl"
4143
4144           if test x"$withstring" = xwithout; then
4145             if test $wxUSE_OPENGL = yes; then
4146               result=no
4147             else
4148               result=yes
4149             fi
4150           else
4151             result=$wxUSE_OPENGL
4152           fi
4153
4154           { echo "$as_me:$LINENO: result: $result" >&5
4155 echo "${ECHO_T}$result" >&6; }
4156
4157
4158 fi
4159
4160
4161           withstring=
4162           defaultval=$wxUSE_ALL_FEATURES
4163           if test -z "$defaultval"; then
4164               if test x"$withstring" = xwithout; then
4165                   defaultval=yes
4166               else
4167                   defaultval=no
4168               fi
4169           fi
4170           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4171 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4172
4173 # Check whether --with-dmalloc was given.
4174 if test "${with_dmalloc+set}" = set; then
4175   withval=$with_dmalloc;
4176                         if test "$withval" = yes; then
4177                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4178                         else
4179                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4180                         fi
4181
4182 else
4183
4184                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4185
4186 fi
4187
4188
4189           eval "$wx_cv_use_dmalloc"
4190
4191           if test x"$withstring" = xwithout; then
4192             if test $wxUSE_DMALLOC = yes; then
4193               result=no
4194             else
4195               result=yes
4196             fi
4197           else
4198             result=$wxUSE_DMALLOC
4199           fi
4200
4201           { echo "$as_me:$LINENO: result: $result" >&5
4202 echo "${ECHO_T}$result" >&6; }
4203
4204
4205           withstring=
4206           defaultval=$wxUSE_ALL_FEATURES
4207           if test -z "$defaultval"; then
4208               if test x"$withstring" = xwithout; then
4209                   defaultval=yes
4210               else
4211                   defaultval=no
4212               fi
4213           fi
4214           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4215 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4216
4217 # Check whether --with-sdl was given.
4218 if test "${with_sdl+set}" = set; then
4219   withval=$with_sdl;
4220                         if test "$withval" = yes; then
4221                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4222                         else
4223                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4224                         fi
4225
4226 else
4227
4228                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4229
4230 fi
4231
4232
4233           eval "$wx_cv_use_sdl"
4234
4235           if test x"$withstring" = xwithout; then
4236             if test $wxUSE_LIBSDL = yes; then
4237               result=no
4238             else
4239               result=yes
4240             fi
4241           else
4242             result=$wxUSE_LIBSDL
4243           fi
4244
4245           { echo "$as_me:$LINENO: result: $result" >&5
4246 echo "${ECHO_T}$result" >&6; }
4247
4248
4249           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4250 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4251
4252 # Check whether --with-regex was given.
4253 if test "${with_regex+set}" = set; then
4254   withval=$with_regex;
4255                         if test "$withval" = yes; then
4256                           wx_cv_use_regex='wxUSE_REGEX=yes'
4257                         elif test "$withval" = no; then
4258                           wx_cv_use_regex='wxUSE_REGEX=no'
4259                         elif test "$withval" = sys; then
4260                           wx_cv_use_regex='wxUSE_REGEX=sys'
4261                         elif test "$withval" = builtin; then
4262                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4263                         else
4264                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4265 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4266    { (exit 1); exit 1; }; }
4267                         fi
4268
4269 else
4270
4271                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4272
4273 fi
4274
4275
4276           eval "$wx_cv_use_regex"
4277
4278           if test "$wxUSE_REGEX" = yes; then
4279             { echo "$as_me:$LINENO: result: yes" >&5
4280 echo "${ECHO_T}yes" >&6; }
4281           elif test "$wxUSE_REGEX" = no; then
4282             { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4284           elif test "$wxUSE_REGEX" = sys; then
4285             { echo "$as_me:$LINENO: result: system version" >&5
4286 echo "${ECHO_T}system version" >&6; }
4287           elif test "$wxUSE_REGEX" = builtin; then
4288             { echo "$as_me:$LINENO: result: builtin version" >&5
4289 echo "${ECHO_T}builtin version" >&6; }
4290           else
4291             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4292 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4293    { (exit 1); exit 1; }; }
4294           fi
4295
4296
4297           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4298 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4299
4300 # Check whether --with-zlib was given.
4301 if test "${with_zlib+set}" = set; then
4302   withval=$with_zlib;
4303                         if test "$withval" = yes; then
4304                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4305                         elif test "$withval" = no; then
4306                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4307                         elif test "$withval" = sys; then
4308                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4309                         elif test "$withval" = builtin; then
4310                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4311                         else
4312                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4313 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4314    { (exit 1); exit 1; }; }
4315                         fi
4316
4317 else
4318
4319                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4320
4321 fi
4322
4323
4324           eval "$wx_cv_use_zlib"
4325
4326           if test "$wxUSE_ZLIB" = yes; then
4327             { echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6; }
4329           elif test "$wxUSE_ZLIB" = no; then
4330             { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4332           elif test "$wxUSE_ZLIB" = sys; then
4333             { echo "$as_me:$LINENO: result: system version" >&5
4334 echo "${ECHO_T}system version" >&6; }
4335           elif test "$wxUSE_ZLIB" = builtin; then
4336             { echo "$as_me:$LINENO: result: builtin version" >&5
4337 echo "${ECHO_T}builtin version" >&6; }
4338           else
4339             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4340 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4341    { (exit 1); exit 1; }; }
4342           fi
4343
4344
4345           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4346 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4347
4348 # Check whether --with-expat was given.
4349 if test "${with_expat+set}" = set; then
4350   withval=$with_expat;
4351                         if test "$withval" = yes; then
4352                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4353                         elif test "$withval" = no; then
4354                           wx_cv_use_expat='wxUSE_EXPAT=no'
4355                         elif test "$withval" = sys; then
4356                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4357                         elif test "$withval" = builtin; then
4358                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4359                         else
4360                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4361 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4362    { (exit 1); exit 1; }; }
4363                         fi
4364
4365 else
4366
4367                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4368
4369 fi
4370
4371
4372           eval "$wx_cv_use_expat"
4373
4374           if test "$wxUSE_EXPAT" = yes; then
4375             { echo "$as_me:$LINENO: result: yes" >&5
4376 echo "${ECHO_T}yes" >&6; }
4377           elif test "$wxUSE_EXPAT" = no; then
4378             { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4380           elif test "$wxUSE_EXPAT" = sys; then
4381             { echo "$as_me:$LINENO: result: system version" >&5
4382 echo "${ECHO_T}system version" >&6; }
4383           elif test "$wxUSE_EXPAT" = builtin; then
4384             { echo "$as_me:$LINENO: result: builtin version" >&5
4385 echo "${ECHO_T}builtin version" >&6; }
4386           else
4387             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4388 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4389    { (exit 1); exit 1; }; }
4390           fi
4391
4392
4393 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4394 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4395
4396 # Check whether --with-macosx-sdk was given.
4397 if test "${with_macosx_sdk+set}" = set; then
4398   withval=$with_macosx_sdk;
4399         wxUSE_MACOSX_SDK=$withval
4400         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4401
4402 fi
4403
4404 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4405 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4406
4407 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4408 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4409
4410 # Check whether --with-macosx-version-min was given.
4411 if test "${with_macosx_version_min+set}" = set; then
4412   withval=$with_macosx_version_min;
4413         wxUSE_MACOSX_VERSION_MIN=$withval
4414         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4415
4416 fi
4417
4418 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4419 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4420
4421
4422 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4423 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4424 # Check whether --enable-debug was given.
4425 if test "${enable_debug+set}" = set; then
4426   enableval=$enable_debug;
4427         if test "$enableval" = yes; then
4428             wxUSE_DEBUG=yes
4429         elif test "$enableval" = no; then
4430             wxUSE_DEBUG=no
4431         elif test "$enableval" = max; then
4432             wxUSE_DEBUG=yes
4433             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4434         else
4435             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4436 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4437    { (exit 1); exit 1; }; }
4438         fi
4439
4440 else
4441   wxUSE_DEBUG=default
4442
4443 fi
4444
4445
4446 case "$wxUSE_DEBUG" in
4447     yes)
4448                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4449         DEFAULT_wxUSE_DEBUG_INFO=yes
4450
4451                         DEFAULT_wxUSE_OPTIMISE=no
4452         ;;
4453
4454     no)
4455                         DEFAULT_wxUSE_DEBUG_FLAG=no
4456         DEFAULT_wxUSE_DEBUG_INFO=no
4457         ;;
4458
4459     default)
4460                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4461         DEFAULT_wxUSE_DEBUG_INFO=no
4462         ;;
4463 esac
4464
4465
4466           enablestring=disable
4467           defaultval=
4468           if test -z "$defaultval"; then
4469               if test x"$enablestring" = xdisable; then
4470                   defaultval=yes
4471               else
4472                   defaultval=no
4473               fi
4474           fi
4475
4476           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4477 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4478           # Check whether --enable-debug_flag was given.
4479 if test "${enable_debug_flag+set}" = set; then
4480   enableval=$enable_debug_flag;
4481                           if test "$enableval" = yes; then
4482                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4483                           else
4484                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4485                           fi
4486
4487 else
4488
4489                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4490
4491 fi
4492
4493
4494           eval "$wx_cv_use_debug_flag"
4495
4496           if test x"$enablestring" = xdisable; then
4497             if test $wxUSE_DEBUG_FLAG = no; then
4498               result=yes
4499             else
4500               result=no
4501             fi
4502           else
4503             result=$wxUSE_DEBUG_FLAG
4504           fi
4505
4506           { echo "$as_me:$LINENO: result: $result" >&5
4507 echo "${ECHO_T}$result" >&6; }
4508
4509
4510           enablestring=
4511           defaultval=
4512           if test -z "$defaultval"; then
4513               if test x"$enablestring" = xdisable; then
4514                   defaultval=yes
4515               else
4516                   defaultval=no
4517               fi
4518           fi
4519
4520           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4521 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4522           # Check whether --enable-debug_info was given.
4523 if test "${enable_debug_info+set}" = set; then
4524   enableval=$enable_debug_info;
4525                           if test "$enableval" = yes; then
4526                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4527                           else
4528                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4529                           fi
4530
4531 else
4532
4533                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4534
4535 fi
4536
4537
4538           eval "$wx_cv_use_debug_info"
4539
4540           if test x"$enablestring" = xdisable; then
4541             if test $wxUSE_DEBUG_INFO = no; then
4542               result=yes
4543             else
4544               result=no
4545             fi
4546           else
4547             result=$wxUSE_DEBUG_INFO
4548           fi
4549
4550           { echo "$as_me:$LINENO: result: $result" >&5
4551 echo "${ECHO_T}$result" >&6; }
4552
4553
4554
4555
4556           enablestring=
4557           defaultval=
4558           if test -z "$defaultval"; then
4559               if test x"$enablestring" = xdisable; then
4560                   defaultval=yes
4561               else
4562                   defaultval=no
4563               fi
4564           fi
4565
4566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4567 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4568           # Check whether --enable-debug_gdb was given.
4569 if test "${enable_debug_gdb+set}" = set; then
4570   enableval=$enable_debug_gdb;
4571                           if test "$enableval" = yes; then
4572                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4573                           else
4574                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4575                           fi
4576
4577 else
4578
4579                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4580
4581 fi
4582
4583
4584           eval "$wx_cv_use_debug_gdb"
4585
4586           if test x"$enablestring" = xdisable; then
4587             if test $wxUSE_DEBUG_GDB = no; then
4588               result=yes
4589             else
4590               result=no
4591             fi
4592           else
4593             result=$wxUSE_DEBUG_GDB
4594           fi
4595
4596           { echo "$as_me:$LINENO: result: $result" >&5
4597 echo "${ECHO_T}$result" >&6; }
4598
4599
4600           enablestring=
4601           defaultval=
4602           if test -z "$defaultval"; then
4603               if test x"$enablestring" = xdisable; then
4604                   defaultval=yes
4605               else
4606                   defaultval=no
4607               fi
4608           fi
4609
4610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4611 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4612           # Check whether --enable-debug_cntxt was given.
4613 if test "${enable_debug_cntxt+set}" = set; then
4614   enableval=$enable_debug_cntxt;
4615                           if test "$enableval" = yes; then
4616                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4617                           else
4618                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4619                           fi
4620
4621 else
4622
4623                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4624
4625 fi
4626
4627
4628           eval "$wx_cv_use_debug_cntxt"
4629
4630           if test x"$enablestring" = xdisable; then
4631             if test $wxUSE_DEBUG_CONTEXT = no; then
4632               result=yes
4633             else
4634               result=no
4635             fi
4636           else
4637             result=$wxUSE_DEBUG_CONTEXT
4638           fi
4639
4640           { echo "$as_me:$LINENO: result: $result" >&5
4641 echo "${ECHO_T}$result" >&6; }
4642
4643
4644           enablestring=
4645           defaultval=
4646           if test -z "$defaultval"; then
4647               if test x"$enablestring" = xdisable; then
4648                   defaultval=yes
4649               else
4650                   defaultval=no
4651               fi
4652           fi
4653
4654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4655 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4656           # Check whether --enable-mem_tracing was given.
4657 if test "${enable_mem_tracing+set}" = set; then
4658   enableval=$enable_mem_tracing;
4659                           if test "$enableval" = yes; then
4660                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4661                           else
4662                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4663                           fi
4664
4665 else
4666
4667                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4668
4669 fi
4670
4671
4672           eval "$wx_cv_use_mem_tracing"
4673
4674           if test x"$enablestring" = xdisable; then
4675             if test $wxUSE_MEM_TRACING = no; then
4676               result=yes
4677             else
4678               result=no
4679             fi
4680           else
4681             result=$wxUSE_MEM_TRACING
4682           fi
4683
4684           { echo "$as_me:$LINENO: result: $result" >&5
4685 echo "${ECHO_T}$result" >&6; }
4686
4687
4688
4689
4690           enablestring=disable
4691           defaultval=
4692           if test -z "$defaultval"; then
4693               if test x"$enablestring" = xdisable; then
4694                   defaultval=yes
4695               else
4696                   defaultval=no
4697               fi
4698           fi
4699
4700           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4701 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4702           # Check whether --enable-shared was given.
4703 if test "${enable_shared+set}" = set; then
4704   enableval=$enable_shared;
4705                           if test "$enableval" = yes; then
4706                             wx_cv_use_shared='wxUSE_SHARED=yes'
4707                           else
4708                             wx_cv_use_shared='wxUSE_SHARED=no'
4709                           fi
4710
4711 else
4712
4713                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4714
4715 fi
4716
4717
4718           eval "$wx_cv_use_shared"
4719
4720           if test x"$enablestring" = xdisable; then
4721             if test $wxUSE_SHARED = no; then
4722               result=yes
4723             else
4724               result=no
4725             fi
4726           else
4727             result=$wxUSE_SHARED
4728           fi
4729
4730           { echo "$as_me:$LINENO: result: $result" >&5
4731 echo "${ECHO_T}$result" >&6; }
4732
4733
4734           enablestring=
4735           defaultval=
4736           if test -z "$defaultval"; then
4737               if test x"$enablestring" = xdisable; then
4738                   defaultval=yes
4739               else
4740                   defaultval=no
4741               fi
4742           fi
4743
4744           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4745 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4746           # Check whether --enable-stl was given.
4747 if test "${enable_stl+set}" = set; then
4748   enableval=$enable_stl;
4749                           if test "$enableval" = yes; then
4750                             wx_cv_use_stl='wxUSE_STL=yes'
4751                           else
4752                             wx_cv_use_stl='wxUSE_STL=no'
4753                           fi
4754
4755 else
4756
4757                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4758
4759 fi
4760
4761
4762           eval "$wx_cv_use_stl"
4763
4764           if test x"$enablestring" = xdisable; then
4765             if test $wxUSE_STL = no; then
4766               result=yes
4767             else
4768               result=no
4769             fi
4770           else
4771             result=$wxUSE_STL
4772           fi
4773
4774           { echo "$as_me:$LINENO: result: $result" >&5
4775 echo "${ECHO_T}$result" >&6; }
4776
4777
4778           enablestring=
4779           defaultval=
4780           if test -z "$defaultval"; then
4781               if test x"$enablestring" = xdisable; then
4782                   defaultval=yes
4783               else
4784                   defaultval=no
4785               fi
4786           fi
4787
4788           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4789 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4790           # Check whether --enable-std_iostreams was given.
4791 if test "${enable_std_iostreams+set}" = set; then
4792   enableval=$enable_std_iostreams;
4793                           if test "$enableval" = yes; then
4794                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4795                           else
4796                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4797                           fi
4798
4799 else
4800
4801                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4802
4803 fi
4804
4805
4806           eval "$wx_cv_use_std_iostreams"
4807
4808           if test x"$enablestring" = xdisable; then
4809             if test $wxUSE_STD_IOSTREAM = no; then
4810               result=yes
4811             else
4812               result=no
4813             fi
4814           else
4815             result=$wxUSE_STD_IOSTREAM
4816           fi
4817
4818           { echo "$as_me:$LINENO: result: $result" >&5
4819 echo "${ECHO_T}$result" >&6; }
4820
4821
4822           enablestring=
4823           defaultval=
4824           if test -z "$defaultval"; then
4825               if test x"$enablestring" = xdisable; then
4826                   defaultval=yes
4827               else
4828                   defaultval=no
4829               fi
4830           fi
4831
4832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4833 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4834           # Check whether --enable-std_string was given.
4835 if test "${enable_std_string+set}" = set; then
4836   enableval=$enable_std_string;
4837                           if test "$enableval" = yes; then
4838                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4839                           else
4840                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4841                           fi
4842
4843 else
4844
4845                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4846
4847 fi
4848
4849
4850           eval "$wx_cv_use_std_string"
4851
4852           if test x"$enablestring" = xdisable; then
4853             if test $wxUSE_STD_STRING = no; then
4854               result=yes
4855             else
4856               result=no
4857             fi
4858           else
4859             result=$wxUSE_STD_STRING
4860           fi
4861
4862           { echo "$as_me:$LINENO: result: $result" >&5
4863 echo "${ECHO_T}$result" >&6; }
4864
4865
4866           enablestring=disable
4867           defaultval=
4868           if test -z "$defaultval"; then
4869               if test x"$enablestring" = xdisable; then
4870                   defaultval=yes
4871               else
4872                   defaultval=no
4873               fi
4874           fi
4875
4876           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4877 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4878           # Check whether --enable-unicode was given.
4879 if test "${enable_unicode+set}" = set; then
4880   enableval=$enable_unicode;
4881                           if test "$enableval" = yes; then
4882                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4883                           else
4884                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4885                           fi
4886
4887 else
4888
4889                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4890
4891 fi
4892
4893
4894           eval "$wx_cv_use_unicode"
4895
4896           if test x"$enablestring" = xdisable; then
4897             if test $wxUSE_UNICODE = no; then
4898               result=yes
4899             else
4900               result=no
4901             fi
4902           else
4903             result=$wxUSE_UNICODE
4904           fi
4905
4906           { echo "$as_me:$LINENO: result: $result" >&5
4907 echo "${ECHO_T}$result" >&6; }
4908
4909
4910           enablestring=
4911           defaultval=
4912           if test -z "$defaultval"; then
4913               if test x"$enablestring" = xdisable; then
4914                   defaultval=yes
4915               else
4916                   defaultval=no
4917               fi
4918           fi
4919
4920           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4921 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4922           # Check whether --enable-mslu was given.
4923 if test "${enable_mslu+set}" = set; then
4924   enableval=$enable_mslu;
4925                           if test "$enableval" = yes; then
4926                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4927                           else
4928                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4929                           fi
4930
4931 else
4932
4933                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4934
4935 fi
4936
4937
4938           eval "$wx_cv_use_mslu"
4939
4940           if test x"$enablestring" = xdisable; then
4941             if test $wxUSE_UNICODE_MSLU = no; then
4942               result=yes
4943             else
4944               result=no
4945             fi
4946           else
4947             result=$wxUSE_UNICODE_MSLU
4948           fi
4949
4950           { echo "$as_me:$LINENO: result: $result" >&5
4951 echo "${ECHO_T}$result" >&6; }
4952
4953
4954           enablestring=
4955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4956 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4957           # Check whether --enable-utf8 was given.
4958 if test "${enable_utf8+set}" = set; then
4959   enableval=$enable_utf8;
4960                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4961
4962 else
4963
4964                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4965
4966 fi
4967
4968
4969           eval "$wx_cv_use_utf8"
4970
4971           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4972 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4973
4974
4975           enablestring=
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}-utf8only" >&5
4986 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4987           # Check whether --enable-utf8only was given.
4988 if test "${enable_utf8only+set}" = set; then
4989   enableval=$enable_utf8only;
4990                           if test "$enableval" = yes; then
4991                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4992                           else
4993                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4994                           fi
4995
4996 else
4997
4998                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4999
5000 fi
5001
5002
5003           eval "$wx_cv_use_utf8only"
5004
5005           if test x"$enablestring" = xdisable; then
5006             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5007               result=yes
5008             else
5009               result=no
5010             fi
5011           else
5012             result=$wxUSE_UNICODE_UTF8_LOCALE
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}-extended_rtti" >&5
5030 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5031           # Check whether --enable-extended_rtti was given.
5032 if test "${enable_extended_rtti+set}" = set; then
5033   enableval=$enable_extended_rtti;
5034                           if test "$enableval" = yes; then
5035                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5036                           else
5037                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5038                           fi
5039
5040 else
5041
5042                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5043
5044 fi
5045
5046
5047           eval "$wx_cv_use_extended_rtti"
5048
5049           if test x"$enablestring" = xdisable; then
5050             if test $wxUSE_EXTENDED_RTTI = no; then
5051               result=yes
5052             else
5053               result=no
5054             fi
5055           else
5056             result=$wxUSE_EXTENDED_RTTI
5057           fi
5058
5059           { echo "$as_me:$LINENO: result: $result" >&5
5060 echo "${ECHO_T}$result" >&6; }
5061
5062 if test "$USE_OS2" = 1; then
5063     DEFAULT_wxUSE_OMF=no
5064
5065           enablestring=
5066           defaultval=
5067           if test -z "$defaultval"; then
5068               if test x"$enablestring" = xdisable; then
5069                   defaultval=yes
5070               else
5071                   defaultval=no
5072               fi
5073           fi
5074
5075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5076 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5077           # Check whether --enable-omf was given.
5078 if test "${enable_omf+set}" = set; then
5079   enableval=$enable_omf;
5080                           if test "$enableval" = yes; then
5081                             wx_cv_use_omf='wxUSE_OMF=yes'
5082                           else
5083                             wx_cv_use_omf='wxUSE_OMF=no'
5084                           fi
5085
5086 else
5087
5088                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5089
5090 fi
5091
5092
5093           eval "$wx_cv_use_omf"
5094
5095           if test x"$enablestring" = xdisable; then
5096             if test $wxUSE_OMF = no; then
5097               result=yes
5098             else
5099               result=no
5100             fi
5101           else
5102             result=$wxUSE_OMF
5103           fi
5104
5105           { echo "$as_me:$LINENO: result: $result" >&5
5106 echo "${ECHO_T}$result" >&6; }
5107
5108 fi
5109
5110
5111           enablestring=disable
5112           defaultval=
5113           if test -z "$defaultval"; then
5114               if test x"$enablestring" = xdisable; then
5115                   defaultval=yes
5116               else
5117                   defaultval=no
5118               fi
5119           fi
5120
5121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5122 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5123           # Check whether --enable-optimise was given.
5124 if test "${enable_optimise+set}" = set; then
5125   enableval=$enable_optimise;
5126                           if test "$enableval" = yes; then
5127                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5128                           else
5129                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5130                           fi
5131
5132 else
5133
5134                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5135
5136 fi
5137
5138
5139           eval "$wx_cv_use_optimise"
5140
5141           if test x"$enablestring" = xdisable; then
5142             if test $wxUSE_OPTIMISE = no; then
5143               result=yes
5144             else
5145               result=no
5146             fi
5147           else
5148             result=$wxUSE_OPTIMISE
5149           fi
5150
5151           { echo "$as_me:$LINENO: result: $result" >&5
5152 echo "${ECHO_T}$result" >&6; }
5153
5154
5155
5156           enablestring=
5157           defaultval=
5158           if test -z "$defaultval"; then
5159               if test x"$enablestring" = xdisable; then
5160                   defaultval=yes
5161               else
5162                   defaultval=no
5163               fi
5164           fi
5165
5166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5167 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5168           # Check whether --enable-profile was given.
5169 if test "${enable_profile+set}" = set; then
5170   enableval=$enable_profile;
5171                           if test "$enableval" = yes; then
5172                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5173                           else
5174                             wx_cv_use_profile='wxUSE_PROFILE=no'
5175                           fi
5176
5177 else
5178
5179                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5180
5181 fi
5182
5183
5184           eval "$wx_cv_use_profile"
5185
5186           if test x"$enablestring" = xdisable; then
5187             if test $wxUSE_PROFILE = no; then
5188               result=yes
5189             else
5190               result=no
5191             fi
5192           else
5193             result=$wxUSE_PROFILE
5194           fi
5195
5196           { echo "$as_me:$LINENO: result: $result" >&5
5197 echo "${ECHO_T}$result" >&6; }
5198
5199
5200           enablestring=
5201           defaultval=
5202           if test -z "$defaultval"; then
5203               if test x"$enablestring" = xdisable; then
5204                   defaultval=yes
5205               else
5206                   defaultval=no
5207               fi
5208           fi
5209
5210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5211 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5212           # Check whether --enable-no_rtti was given.
5213 if test "${enable_no_rtti+set}" = set; then
5214   enableval=$enable_no_rtti;
5215                           if test "$enableval" = yes; then
5216                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5217                           else
5218                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5219                           fi
5220
5221 else
5222
5223                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5224
5225 fi
5226
5227
5228           eval "$wx_cv_use_no_rtti"
5229
5230           if test x"$enablestring" = xdisable; then
5231             if test $wxUSE_NO_RTTI = no; then
5232               result=yes
5233             else
5234               result=no
5235             fi
5236           else
5237             result=$wxUSE_NO_RTTI
5238           fi
5239
5240           { echo "$as_me:$LINENO: result: $result" >&5
5241 echo "${ECHO_T}$result" >&6; }
5242
5243
5244           enablestring=
5245           defaultval=
5246           if test -z "$defaultval"; then
5247               if test x"$enablestring" = xdisable; then
5248                   defaultval=yes
5249               else
5250                   defaultval=no
5251               fi
5252           fi
5253
5254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5255 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5256           # Check whether --enable-no_exceptions was given.
5257 if test "${enable_no_exceptions+set}" = set; then
5258   enableval=$enable_no_exceptions;
5259                           if test "$enableval" = yes; then
5260                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5261                           else
5262                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5263                           fi
5264
5265 else
5266
5267                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5268
5269 fi
5270
5271
5272           eval "$wx_cv_use_no_exceptions"
5273
5274           if test x"$enablestring" = xdisable; then
5275             if test $wxUSE_NO_EXCEPTIONS = no; then
5276               result=yes
5277             else
5278               result=no
5279             fi
5280           else
5281             result=$wxUSE_NO_EXCEPTIONS
5282           fi
5283
5284           { echo "$as_me:$LINENO: result: $result" >&5
5285 echo "${ECHO_T}$result" >&6; }
5286
5287
5288           enablestring=
5289           defaultval=
5290           if test -z "$defaultval"; then
5291               if test x"$enablestring" = xdisable; then
5292                   defaultval=yes
5293               else
5294                   defaultval=no
5295               fi
5296           fi
5297
5298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5299 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5300           # Check whether --enable-permissive was given.
5301 if test "${enable_permissive+set}" = set; then
5302   enableval=$enable_permissive;
5303                           if test "$enableval" = yes; then
5304                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5305                           else
5306                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5307                           fi
5308
5309 else
5310
5311                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5312
5313 fi
5314
5315
5316           eval "$wx_cv_use_permissive"
5317
5318           if test x"$enablestring" = xdisable; then
5319             if test $wxUSE_PERMISSIVE = no; then
5320               result=yes
5321             else
5322               result=no
5323             fi
5324           else
5325             result=$wxUSE_PERMISSIVE
5326           fi
5327
5328           { echo "$as_me:$LINENO: result: $result" >&5
5329 echo "${ECHO_T}$result" >&6; }
5330
5331
5332           enablestring=
5333           defaultval=
5334           if test -z "$defaultval"; then
5335               if test x"$enablestring" = xdisable; then
5336                   defaultval=yes
5337               else
5338                   defaultval=no
5339               fi
5340           fi
5341
5342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5343 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5344           # Check whether --enable-no_deps was given.
5345 if test "${enable_no_deps+set}" = set; then
5346   enableval=$enable_no_deps;
5347                           if test "$enableval" = yes; then
5348                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5349                           else
5350                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5351                           fi
5352
5353 else
5354
5355                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5356
5357 fi
5358
5359
5360           eval "$wx_cv_use_no_deps"
5361
5362           if test x"$enablestring" = xdisable; then
5363             if test $wxUSE_NO_DEPS = no; then
5364               result=yes
5365             else
5366               result=no
5367             fi
5368           else
5369             result=$wxUSE_NO_DEPS
5370           fi
5371
5372           { echo "$as_me:$LINENO: result: $result" >&5
5373 echo "${ECHO_T}$result" >&6; }
5374
5375
5376           enablestring=disable
5377           defaultval=
5378           if test -z "$defaultval"; then
5379               if test x"$enablestring" = xdisable; then
5380                   defaultval=yes
5381               else
5382                   defaultval=no
5383               fi
5384           fi
5385
5386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5387 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5388           # Check whether --enable-vararg_macros was given.
5389 if test "${enable_vararg_macros+set}" = set; then
5390   enableval=$enable_vararg_macros;
5391                           if test "$enableval" = yes; then
5392                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5393                           else
5394                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5395                           fi
5396
5397 else
5398
5399                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5400
5401 fi
5402
5403
5404           eval "$wx_cv_use_vararg_macros"
5405
5406           if test x"$enablestring" = xdisable; then
5407             if test $wxUSE_VARARG_MACROS = no; then
5408               result=yes
5409             else
5410               result=no
5411             fi
5412           else
5413             result=$wxUSE_VARARG_MACROS
5414           fi
5415
5416           { echo "$as_me:$LINENO: result: $result" >&5
5417 echo "${ECHO_T}$result" >&6; }
5418
5419
5420
5421           enablestring=
5422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5423 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5424           # Check whether --enable-universal_binary was given.
5425 if test "${enable_universal_binary+set}" = set; then
5426   enableval=$enable_universal_binary;
5427                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5428
5429 else
5430
5431                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5432
5433 fi
5434
5435
5436           eval "$wx_cv_use_universal_binary"
5437
5438           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5439 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5440
5441
5442           enablestring=
5443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5444 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5445           # Check whether --enable-macosx_arch was given.
5446 if test "${enable_macosx_arch+set}" = set; then
5447   enableval=$enable_macosx_arch;
5448                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5449
5450 else
5451
5452                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5453
5454 fi
5455
5456
5457           eval "$wx_cv_use_macosx_arch"
5458
5459           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5460 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5461
5462
5463
5464           enablestring=
5465           defaultval=
5466           if test -z "$defaultval"; then
5467               if test x"$enablestring" = xdisable; then
5468                   defaultval=yes
5469               else
5470                   defaultval=no
5471               fi
5472           fi
5473
5474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5475 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5476           # Check whether --enable-compat26 was given.
5477 if test "${enable_compat26+set}" = set; then
5478   enableval=$enable_compat26;
5479                           if test "$enableval" = yes; then
5480                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5481                           else
5482                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5483                           fi
5484
5485 else
5486
5487                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5488
5489 fi
5490
5491
5492           eval "$wx_cv_use_compat26"
5493
5494           if test x"$enablestring" = xdisable; then
5495             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5496               result=yes
5497             else
5498               result=no
5499             fi
5500           else
5501             result=$WXWIN_COMPATIBILITY_2_6
5502           fi
5503
5504           { echo "$as_me:$LINENO: result: $result" >&5
5505 echo "${ECHO_T}$result" >&6; }
5506
5507
5508           enablestring=disable
5509           defaultval=
5510           if test -z "$defaultval"; then
5511               if test x"$enablestring" = xdisable; then
5512                   defaultval=yes
5513               else
5514                   defaultval=no
5515               fi
5516           fi
5517
5518           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5519 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5520           # Check whether --enable-compat28 was given.
5521 if test "${enable_compat28+set}" = set; then
5522   enableval=$enable_compat28;
5523                           if test "$enableval" = yes; then
5524                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5525                           else
5526                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5527                           fi
5528
5529 else
5530
5531                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5532
5533 fi
5534
5535
5536           eval "$wx_cv_use_compat28"
5537
5538           if test x"$enablestring" = xdisable; then
5539             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5540               result=yes
5541             else
5542               result=no
5543             fi
5544           else
5545             result=$WXWIN_COMPATIBILITY_2_8
5546           fi
5547
5548           { echo "$as_me:$LINENO: result: $result" >&5
5549 echo "${ECHO_T}$result" >&6; }
5550
5551
5552
5553           enablestring=disable
5554           defaultval=
5555           if test -z "$defaultval"; then
5556               if test x"$enablestring" = xdisable; then
5557                   defaultval=yes
5558               else
5559                   defaultval=no
5560               fi
5561           fi
5562
5563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5564 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5565           # Check whether --enable-rpath was given.
5566 if test "${enable_rpath+set}" = set; then
5567   enableval=$enable_rpath;
5568                           if test "$enableval" = yes; then
5569                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5570                           else
5571                             wx_cv_use_rpath='wxUSE_RPATH=no'
5572                           fi
5573
5574 else
5575
5576                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5577
5578 fi
5579
5580
5581           eval "$wx_cv_use_rpath"
5582
5583           if test x"$enablestring" = xdisable; then
5584             if test $wxUSE_RPATH = no; then
5585               result=yes
5586             else
5587               result=no
5588             fi
5589           else
5590             result=$wxUSE_RPATH
5591           fi
5592
5593           { echo "$as_me:$LINENO: result: $result" >&5
5594 echo "${ECHO_T}$result" >&6; }
5595
5596
5597
5598           enablestring=
5599           defaultval=
5600           if test -z "$defaultval"; then
5601               if test x"$enablestring" = xdisable; then
5602                   defaultval=yes
5603               else
5604                   defaultval=no
5605               fi
5606           fi
5607
5608           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5609 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5610           # Check whether --enable-objc_uniquifying was given.
5611 if test "${enable_objc_uniquifying+set}" = set; then
5612   enableval=$enable_objc_uniquifying;
5613                           if test "$enableval" = yes; then
5614                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5615                           else
5616                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5617                           fi
5618
5619 else
5620
5621                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5622
5623 fi
5624
5625
5626           eval "$wx_cv_use_objc_uniquifying"
5627
5628           if test x"$enablestring" = xdisable; then
5629             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5630               result=yes
5631             else
5632               result=no
5633             fi
5634           else
5635             result=$wxUSE_OBJC_UNIQUIFYING
5636           fi
5637
5638           { echo "$as_me:$LINENO: result: $result" >&5
5639 echo "${ECHO_T}$result" >&6; }
5640
5641
5642
5643           enablestring=disable
5644           defaultval=
5645           if test -z "$defaultval"; then
5646               if test x"$enablestring" = xdisable; then
5647                   defaultval=yes
5648               else
5649                   defaultval=no
5650               fi
5651           fi
5652
5653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5654 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5655           # Check whether --enable-visibility was given.
5656 if test "${enable_visibility+set}" = set; then
5657   enableval=$enable_visibility;
5658                           if test "$enableval" = yes; then
5659                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5660                           else
5661                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5662                           fi
5663
5664 else
5665
5666                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5667
5668 fi
5669
5670
5671           eval "$wx_cv_use_visibility"
5672
5673           if test x"$enablestring" = xdisable; then
5674             if test $wxUSE_VISIBILITY = no; then
5675               result=yes
5676             else
5677               result=no
5678             fi
5679           else
5680             result=$wxUSE_VISIBILITY
5681           fi
5682
5683           { echo "$as_me:$LINENO: result: $result" >&5
5684 echo "${ECHO_T}$result" >&6; }
5685
5686
5687           enablestring=disable
5688           defaultval=
5689           if test -z "$defaultval"; then
5690               if test x"$enablestring" = xdisable; then
5691                   defaultval=yes
5692               else
5693                   defaultval=no
5694               fi
5695           fi
5696
5697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5698 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5699           # Check whether --enable-tls was given.
5700 if test "${enable_tls+set}" = set; then
5701   enableval=$enable_tls;
5702                           if test "$enableval" = yes; then
5703                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5704                           else
5705                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5706                           fi
5707
5708 else
5709
5710                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5711
5712 fi
5713
5714
5715           eval "$wx_cv_use_tls"
5716
5717           if test x"$enablestring" = xdisable; then
5718             if test $wxUSE_COMPILER_TLS = no; then
5719               result=yes
5720             else
5721               result=no
5722             fi
5723           else
5724             result=$wxUSE_COMPILER_TLS
5725           fi
5726
5727           { echo "$as_me:$LINENO: result: $result" >&5
5728 echo "${ECHO_T}$result" >&6; }
5729
5730
5731
5732
5733           enablestring=
5734           defaultval=$wxUSE_ALL_FEATURES
5735           if test -z "$defaultval"; then
5736               if test x"$enablestring" = xdisable; then
5737                   defaultval=yes
5738               else
5739                   defaultval=no
5740               fi
5741           fi
5742
5743           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5744 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5745           # Check whether --enable-intl was given.
5746 if test "${enable_intl+set}" = set; then
5747   enableval=$enable_intl;
5748                           if test "$enableval" = yes; then
5749                             wx_cv_use_intl='wxUSE_INTL=yes'
5750                           else
5751                             wx_cv_use_intl='wxUSE_INTL=no'
5752                           fi
5753
5754 else
5755
5756                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5757
5758 fi
5759
5760
5761           eval "$wx_cv_use_intl"
5762
5763           if test x"$enablestring" = xdisable; then
5764             if test $wxUSE_INTL = no; then
5765               result=yes
5766             else
5767               result=no
5768             fi
5769           else
5770             result=$wxUSE_INTL
5771           fi
5772
5773           { echo "$as_me:$LINENO: result: $result" >&5
5774 echo "${ECHO_T}$result" >&6; }
5775
5776
5777           enablestring=
5778           defaultval=$wxUSE_ALL_FEATURES
5779           if test -z "$defaultval"; then
5780               if test x"$enablestring" = xdisable; then
5781                   defaultval=yes
5782               else
5783                   defaultval=no
5784               fi
5785           fi
5786
5787           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5788 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5789           # Check whether --enable-xlocale was given.
5790 if test "${enable_xlocale+set}" = set; then
5791   enableval=$enable_xlocale;
5792                           if test "$enableval" = yes; then
5793                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5794                           else
5795                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5796                           fi
5797
5798 else
5799
5800                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5801
5802 fi
5803
5804
5805           eval "$wx_cv_use_xlocale"
5806
5807           if test x"$enablestring" = xdisable; then
5808             if test $wxUSE_XLOCALE = no; then
5809               result=yes
5810             else
5811               result=no
5812             fi
5813           else
5814             result=$wxUSE_XLOCALE
5815           fi
5816
5817           { echo "$as_me:$LINENO: result: $result" >&5
5818 echo "${ECHO_T}$result" >&6; }
5819
5820
5821           enablestring=
5822           defaultval=$wxUSE_ALL_FEATURES
5823           if test -z "$defaultval"; then
5824               if test x"$enablestring" = xdisable; then
5825                   defaultval=yes
5826               else
5827                   defaultval=no
5828               fi
5829           fi
5830
5831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5832 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5833           # Check whether --enable-config was given.
5834 if test "${enable_config+set}" = set; then
5835   enableval=$enable_config;
5836                           if test "$enableval" = yes; then
5837                             wx_cv_use_config='wxUSE_CONFIG=yes'
5838                           else
5839                             wx_cv_use_config='wxUSE_CONFIG=no'
5840                           fi
5841
5842 else
5843
5844                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5845
5846 fi
5847
5848
5849           eval "$wx_cv_use_config"
5850
5851           if test x"$enablestring" = xdisable; then
5852             if test $wxUSE_CONFIG = no; then
5853               result=yes
5854             else
5855               result=no
5856             fi
5857           else
5858             result=$wxUSE_CONFIG
5859           fi
5860
5861           { echo "$as_me:$LINENO: result: $result" >&5
5862 echo "${ECHO_T}$result" >&6; }
5863
5864
5865
5866           enablestring=
5867           defaultval=$wxUSE_ALL_FEATURES
5868           if test -z "$defaultval"; then
5869               if test x"$enablestring" = xdisable; then
5870                   defaultval=yes
5871               else
5872                   defaultval=no
5873               fi
5874           fi
5875
5876           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5877 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5878           # Check whether --enable-protocols was given.
5879 if test "${enable_protocols+set}" = set; then
5880   enableval=$enable_protocols;
5881                           if test "$enableval" = yes; then
5882                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5883                           else
5884                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5885                           fi
5886
5887 else
5888
5889                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5890
5891 fi
5892
5893
5894           eval "$wx_cv_use_protocols"
5895
5896           if test x"$enablestring" = xdisable; then
5897             if test $wxUSE_PROTOCOL = no; then
5898               result=yes
5899             else
5900               result=no
5901             fi
5902           else
5903             result=$wxUSE_PROTOCOL
5904           fi
5905
5906           { echo "$as_me:$LINENO: result: $result" >&5
5907 echo "${ECHO_T}$result" >&6; }
5908
5909
5910           enablestring=
5911           defaultval=$wxUSE_ALL_FEATURES
5912           if test -z "$defaultval"; then
5913               if test x"$enablestring" = xdisable; then
5914                   defaultval=yes
5915               else
5916                   defaultval=no
5917               fi
5918           fi
5919
5920           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5921 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5922           # Check whether --enable-ftp was given.
5923 if test "${enable_ftp+set}" = set; then
5924   enableval=$enable_ftp;
5925                           if test "$enableval" = yes; then
5926                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5927                           else
5928                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5929                           fi
5930
5931 else
5932
5933                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5934
5935 fi
5936
5937
5938           eval "$wx_cv_use_ftp"
5939
5940           if test x"$enablestring" = xdisable; then
5941             if test $wxUSE_PROTOCOL_FTP = no; then
5942               result=yes
5943             else
5944               result=no
5945             fi
5946           else
5947             result=$wxUSE_PROTOCOL_FTP
5948           fi
5949
5950           { echo "$as_me:$LINENO: result: $result" >&5
5951 echo "${ECHO_T}$result" >&6; }
5952
5953
5954           enablestring=
5955           defaultval=$wxUSE_ALL_FEATURES
5956           if test -z "$defaultval"; then
5957               if test x"$enablestring" = xdisable; then
5958                   defaultval=yes
5959               else
5960                   defaultval=no
5961               fi
5962           fi
5963
5964           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5965 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5966           # Check whether --enable-http was given.
5967 if test "${enable_http+set}" = set; then
5968   enableval=$enable_http;
5969                           if test "$enableval" = yes; then
5970                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5971                           else
5972                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5973                           fi
5974
5975 else
5976
5977                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5978
5979 fi
5980
5981
5982           eval "$wx_cv_use_http"
5983
5984           if test x"$enablestring" = xdisable; then
5985             if test $wxUSE_PROTOCOL_HTTP = no; then
5986               result=yes
5987             else
5988               result=no
5989             fi
5990           else
5991             result=$wxUSE_PROTOCOL_HTTP
5992           fi
5993
5994           { echo "$as_me:$LINENO: result: $result" >&5
5995 echo "${ECHO_T}$result" >&6; }
5996
5997
5998           enablestring=
5999           defaultval=$wxUSE_ALL_FEATURES
6000           if test -z "$defaultval"; then
6001               if test x"$enablestring" = xdisable; then
6002                   defaultval=yes
6003               else
6004                   defaultval=no
6005               fi
6006           fi
6007
6008           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6009 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6010           # Check whether --enable-fileproto was given.
6011 if test "${enable_fileproto+set}" = set; then
6012   enableval=$enable_fileproto;
6013                           if test "$enableval" = yes; then
6014                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6015                           else
6016                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6017                           fi
6018
6019 else
6020
6021                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6022
6023 fi
6024
6025
6026           eval "$wx_cv_use_fileproto"
6027
6028           if test x"$enablestring" = xdisable; then
6029             if test $wxUSE_PROTOCOL_FILE = no; then
6030               result=yes
6031             else
6032               result=no
6033             fi
6034           else
6035             result=$wxUSE_PROTOCOL_FILE
6036           fi
6037
6038           { echo "$as_me:$LINENO: result: $result" >&5
6039 echo "${ECHO_T}$result" >&6; }
6040
6041
6042           enablestring=
6043           defaultval=$wxUSE_ALL_FEATURES
6044           if test -z "$defaultval"; then
6045               if test x"$enablestring" = xdisable; then
6046                   defaultval=yes
6047               else
6048                   defaultval=no
6049               fi
6050           fi
6051
6052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6053 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6054           # Check whether --enable-sockets was given.
6055 if test "${enable_sockets+set}" = set; then
6056   enableval=$enable_sockets;
6057                           if test "$enableval" = yes; then
6058                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6059                           else
6060                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6061                           fi
6062
6063 else
6064
6065                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6066
6067 fi
6068
6069
6070           eval "$wx_cv_use_sockets"
6071
6072           if test x"$enablestring" = xdisable; then
6073             if test $wxUSE_SOCKETS = no; then
6074               result=yes
6075             else
6076               result=no
6077             fi
6078           else
6079             result=$wxUSE_SOCKETS
6080           fi
6081
6082           { echo "$as_me:$LINENO: result: $result" >&5
6083 echo "${ECHO_T}$result" >&6; }
6084
6085
6086           enablestring=
6087           defaultval=$wxUSE_ALL_FEATURES
6088           if test -z "$defaultval"; then
6089               if test x"$enablestring" = xdisable; then
6090                   defaultval=yes
6091               else
6092                   defaultval=no
6093               fi
6094           fi
6095
6096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6097 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6098           # Check whether --enable-ipv6 was given.
6099 if test "${enable_ipv6+set}" = set; then
6100   enableval=$enable_ipv6;
6101                           if test "$enableval" = yes; then
6102                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6103                           else
6104                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6105                           fi
6106
6107 else
6108
6109                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6110
6111 fi
6112
6113
6114           eval "$wx_cv_use_ipv6"
6115
6116           if test x"$enablestring" = xdisable; then
6117             if test $wxUSE_IPV6 = no; then
6118               result=yes
6119             else
6120               result=no
6121             fi
6122           else
6123             result=$wxUSE_IPV6
6124           fi
6125
6126           { echo "$as_me:$LINENO: result: $result" >&5
6127 echo "${ECHO_T}$result" >&6; }
6128
6129
6130           enablestring=
6131           defaultval=$wxUSE_ALL_FEATURES
6132           if test -z "$defaultval"; then
6133               if test x"$enablestring" = xdisable; then
6134                   defaultval=yes
6135               else
6136                   defaultval=no
6137               fi
6138           fi
6139
6140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6141 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6142           # Check whether --enable-ole was given.
6143 if test "${enable_ole+set}" = set; then
6144   enableval=$enable_ole;
6145                           if test "$enableval" = yes; then
6146                             wx_cv_use_ole='wxUSE_OLE=yes'
6147                           else
6148                             wx_cv_use_ole='wxUSE_OLE=no'
6149                           fi
6150
6151 else
6152
6153                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6154
6155 fi
6156
6157
6158           eval "$wx_cv_use_ole"
6159
6160           if test x"$enablestring" = xdisable; then
6161             if test $wxUSE_OLE = no; then
6162               result=yes
6163             else
6164               result=no
6165             fi
6166           else
6167             result=$wxUSE_OLE
6168           fi
6169
6170           { echo "$as_me:$LINENO: result: $result" >&5
6171 echo "${ECHO_T}$result" >&6; }
6172
6173
6174           enablestring=
6175           defaultval=$wxUSE_ALL_FEATURES
6176           if test -z "$defaultval"; then
6177               if test x"$enablestring" = xdisable; then
6178                   defaultval=yes
6179               else
6180                   defaultval=no
6181               fi
6182           fi
6183
6184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6185 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6186           # Check whether --enable-dataobj was given.
6187 if test "${enable_dataobj+set}" = set; then
6188   enableval=$enable_dataobj;
6189                           if test "$enableval" = yes; then
6190                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6191                           else
6192                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6193                           fi
6194
6195 else
6196
6197                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6198
6199 fi
6200
6201
6202           eval "$wx_cv_use_dataobj"
6203
6204           if test x"$enablestring" = xdisable; then
6205             if test $wxUSE_DATAOBJ = no; then
6206               result=yes
6207             else
6208               result=no
6209             fi
6210           else
6211             result=$wxUSE_DATAOBJ
6212           fi
6213
6214           { echo "$as_me:$LINENO: result: $result" >&5
6215 echo "${ECHO_T}$result" >&6; }
6216
6217
6218
6219           enablestring=
6220           defaultval=$wxUSE_ALL_FEATURES
6221           if test -z "$defaultval"; then
6222               if test x"$enablestring" = xdisable; then
6223                   defaultval=yes
6224               else
6225                   defaultval=no
6226               fi
6227           fi
6228
6229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6230 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6231           # Check whether --enable-ipc was given.
6232 if test "${enable_ipc+set}" = set; then
6233   enableval=$enable_ipc;
6234                           if test "$enableval" = yes; then
6235                             wx_cv_use_ipc='wxUSE_IPC=yes'
6236                           else
6237                             wx_cv_use_ipc='wxUSE_IPC=no'
6238                           fi
6239
6240 else
6241
6242                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6243
6244 fi
6245
6246
6247           eval "$wx_cv_use_ipc"
6248
6249           if test x"$enablestring" = xdisable; then
6250             if test $wxUSE_IPC = no; then
6251               result=yes
6252             else
6253               result=no
6254             fi
6255           else
6256             result=$wxUSE_IPC
6257           fi
6258
6259           { echo "$as_me:$LINENO: result: $result" >&5
6260 echo "${ECHO_T}$result" >&6; }
6261
6262
6263
6264           enablestring=
6265           defaultval=$wxUSE_ALL_FEATURES
6266           if test -z "$defaultval"; then
6267               if test x"$enablestring" = xdisable; then
6268                   defaultval=yes
6269               else
6270                   defaultval=no
6271               fi
6272           fi
6273
6274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6275 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6276           # Check whether --enable-baseevtloop was given.
6277 if test "${enable_baseevtloop+set}" = set; then
6278   enableval=$enable_baseevtloop;
6279                           if test "$enableval" = yes; then
6280                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6281                           else
6282                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6283                           fi
6284
6285 else
6286
6287                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6288
6289 fi
6290
6291
6292           eval "$wx_cv_use_baseevtloop"
6293
6294           if test x"$enablestring" = xdisable; then
6295             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6296               result=yes
6297             else
6298               result=no
6299             fi
6300           else
6301             result=$wxUSE_CONSOLE_EVENTLOOP
6302           fi
6303
6304           { echo "$as_me:$LINENO: result: $result" >&5
6305 echo "${ECHO_T}$result" >&6; }
6306
6307
6308           enablestring=
6309           defaultval=$wxUSE_ALL_FEATURES
6310           if test -z "$defaultval"; then
6311               if test x"$enablestring" = xdisable; then
6312                   defaultval=yes
6313               else
6314                   defaultval=no
6315               fi
6316           fi
6317
6318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6319 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6320           # Check whether --enable-epollloop was given.
6321 if test "${enable_epollloop+set}" = set; then
6322   enableval=$enable_epollloop;
6323                           if test "$enableval" = yes; then
6324                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6325                           else
6326                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6327                           fi
6328
6329 else
6330
6331                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6332
6333 fi
6334
6335
6336           eval "$wx_cv_use_epollloop"
6337
6338           if test x"$enablestring" = xdisable; then
6339             if test $wxUSE_EPOLL_DISPATCHER = no; then
6340               result=yes
6341             else
6342               result=no
6343             fi
6344           else
6345             result=$wxUSE_EPOLL_DISPATCHER
6346           fi
6347
6348           { echo "$as_me:$LINENO: result: $result" >&5
6349 echo "${ECHO_T}$result" >&6; }
6350
6351
6352           enablestring=
6353           defaultval=$wxUSE_ALL_FEATURES
6354           if test -z "$defaultval"; then
6355               if test x"$enablestring" = xdisable; then
6356                   defaultval=yes
6357               else
6358                   defaultval=no
6359               fi
6360           fi
6361
6362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6363 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6364           # Check whether --enable-selectloop was given.
6365 if test "${enable_selectloop+set}" = set; then
6366   enableval=$enable_selectloop;
6367                           if test "$enableval" = yes; then
6368                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6369                           else
6370                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6371                           fi
6372
6373 else
6374
6375                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6376
6377 fi
6378
6379
6380           eval "$wx_cv_use_selectloop"
6381
6382           if test x"$enablestring" = xdisable; then
6383             if test $wxUSE_SELECT_DISPATCHER = no; then
6384               result=yes
6385             else
6386               result=no
6387             fi
6388           else
6389             result=$wxUSE_SELECT_DISPATCHER
6390           fi
6391
6392           { echo "$as_me:$LINENO: result: $result" >&5
6393 echo "${ECHO_T}$result" >&6; }
6394
6395
6396
6397           enablestring=
6398           defaultval=$wxUSE_ALL_FEATURES
6399           if test -z "$defaultval"; then
6400               if test x"$enablestring" = xdisable; then
6401                   defaultval=yes
6402               else
6403                   defaultval=no
6404               fi
6405           fi
6406
6407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6408 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6409           # Check whether --enable-any was given.
6410 if test "${enable_any+set}" = set; then
6411   enableval=$enable_any;
6412                           if test "$enableval" = yes; then
6413                             wx_cv_use_any='wxUSE_ANY=yes'
6414                           else
6415                             wx_cv_use_any='wxUSE_ANY=no'
6416                           fi
6417
6418 else
6419
6420                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6421
6422 fi
6423
6424
6425           eval "$wx_cv_use_any"
6426
6427           if test x"$enablestring" = xdisable; then
6428             if test $wxUSE_ANY = no; then
6429               result=yes
6430             else
6431               result=no
6432             fi
6433           else
6434             result=$wxUSE_ANY
6435           fi
6436
6437           { echo "$as_me:$LINENO: result: $result" >&5
6438 echo "${ECHO_T}$result" >&6; }
6439
6440
6441           enablestring=
6442           defaultval=$wxUSE_ALL_FEATURES
6443           if test -z "$defaultval"; then
6444               if test x"$enablestring" = xdisable; then
6445                   defaultval=yes
6446               else
6447                   defaultval=no
6448               fi
6449           fi
6450
6451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6452 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6453           # Check whether --enable-apple_ieee was given.
6454 if test "${enable_apple_ieee+set}" = set; then
6455   enableval=$enable_apple_ieee;
6456                           if test "$enableval" = yes; then
6457                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6458                           else
6459                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6460                           fi
6461
6462 else
6463
6464                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6465
6466 fi
6467
6468
6469           eval "$wx_cv_use_apple_ieee"
6470
6471           if test x"$enablestring" = xdisable; then
6472             if test $wxUSE_APPLE_IEEE = no; then
6473               result=yes
6474             else
6475               result=no
6476             fi
6477           else
6478             result=$wxUSE_APPLE_IEEE
6479           fi
6480
6481           { echo "$as_me:$LINENO: result: $result" >&5
6482 echo "${ECHO_T}$result" >&6; }
6483
6484
6485           enablestring=
6486           defaultval=$wxUSE_ALL_FEATURES
6487           if test -z "$defaultval"; then
6488               if test x"$enablestring" = xdisable; then
6489                   defaultval=yes
6490               else
6491                   defaultval=no
6492               fi
6493           fi
6494
6495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6496 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6497           # Check whether --enable-arcstream was given.
6498 if test "${enable_arcstream+set}" = set; then
6499   enableval=$enable_arcstream;
6500                           if test "$enableval" = yes; then
6501                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6502                           else
6503                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6504                           fi
6505
6506 else
6507
6508                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6509
6510 fi
6511
6512
6513           eval "$wx_cv_use_arcstream"
6514
6515           if test x"$enablestring" = xdisable; then
6516             if test $wxUSE_ARCHIVE_STREAMS = no; then
6517               result=yes
6518             else
6519               result=no
6520             fi
6521           else
6522             result=$wxUSE_ARCHIVE_STREAMS
6523           fi
6524
6525           { echo "$as_me:$LINENO: result: $result" >&5
6526 echo "${ECHO_T}$result" >&6; }
6527
6528
6529           enablestring=
6530           defaultval=$wxUSE_ALL_FEATURES
6531           if test -z "$defaultval"; then
6532               if test x"$enablestring" = xdisable; then
6533                   defaultval=yes
6534               else
6535                   defaultval=no
6536               fi
6537           fi
6538
6539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6540 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6541           # Check whether --enable-base64 was given.
6542 if test "${enable_base64+set}" = set; then
6543   enableval=$enable_base64;
6544                           if test "$enableval" = yes; then
6545                             wx_cv_use_base64='wxUSE_BASE64=yes'
6546                           else
6547                             wx_cv_use_base64='wxUSE_BASE64=no'
6548                           fi
6549
6550 else
6551
6552                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6553
6554 fi
6555
6556
6557           eval "$wx_cv_use_base64"
6558
6559           if test x"$enablestring" = xdisable; then
6560             if test $wxUSE_BASE64 = no; then
6561               result=yes
6562             else
6563               result=no
6564             fi
6565           else
6566             result=$wxUSE_BASE64
6567           fi
6568
6569           { echo "$as_me:$LINENO: result: $result" >&5
6570 echo "${ECHO_T}$result" >&6; }
6571
6572
6573           enablestring=
6574           defaultval=$wxUSE_ALL_FEATURES
6575           if test -z "$defaultval"; then
6576               if test x"$enablestring" = xdisable; then
6577                   defaultval=yes
6578               else
6579                   defaultval=no
6580               fi
6581           fi
6582
6583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6584 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6585           # Check whether --enable-backtrace was given.
6586 if test "${enable_backtrace+set}" = set; then
6587   enableval=$enable_backtrace;
6588                           if test "$enableval" = yes; then
6589                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6590                           else
6591                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6592                           fi
6593
6594 else
6595
6596                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6597
6598 fi
6599
6600
6601           eval "$wx_cv_use_backtrace"
6602
6603           if test x"$enablestring" = xdisable; then
6604             if test $wxUSE_STACKWALKER = no; then
6605               result=yes
6606             else
6607               result=no
6608             fi
6609           else
6610             result=$wxUSE_STACKWALKER
6611           fi
6612
6613           { echo "$as_me:$LINENO: result: $result" >&5
6614 echo "${ECHO_T}$result" >&6; }
6615
6616
6617           enablestring=
6618           defaultval=$wxUSE_ALL_FEATURES
6619           if test -z "$defaultval"; then
6620               if test x"$enablestring" = xdisable; then
6621                   defaultval=yes
6622               else
6623                   defaultval=no
6624               fi
6625           fi
6626
6627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6628 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6629           # Check whether --enable-catch_segvs was given.
6630 if test "${enable_catch_segvs+set}" = set; then
6631   enableval=$enable_catch_segvs;
6632                           if test "$enableval" = yes; then
6633                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6634                           else
6635                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6636                           fi
6637
6638 else
6639
6640                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6641
6642 fi
6643
6644
6645           eval "$wx_cv_use_catch_segvs"
6646
6647           if test x"$enablestring" = xdisable; then
6648             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6649               result=yes
6650             else
6651               result=no
6652             fi
6653           else
6654             result=$wxUSE_ON_FATAL_EXCEPTION
6655           fi
6656
6657           { echo "$as_me:$LINENO: result: $result" >&5
6658 echo "${ECHO_T}$result" >&6; }
6659
6660
6661           enablestring=
6662           defaultval=$wxUSE_ALL_FEATURES
6663           if test -z "$defaultval"; then
6664               if test x"$enablestring" = xdisable; then
6665                   defaultval=yes
6666               else
6667                   defaultval=no
6668               fi
6669           fi
6670
6671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6672 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6673           # Check whether --enable-cmdline was given.
6674 if test "${enable_cmdline+set}" = set; then
6675   enableval=$enable_cmdline;
6676                           if test "$enableval" = yes; then
6677                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6678                           else
6679                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6680                           fi
6681
6682 else
6683
6684                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6685
6686 fi
6687
6688
6689           eval "$wx_cv_use_cmdline"
6690
6691           if test x"$enablestring" = xdisable; then
6692             if test $wxUSE_CMDLINE_PARSER = no; then
6693               result=yes
6694             else
6695               result=no
6696             fi
6697           else
6698             result=$wxUSE_CMDLINE_PARSER
6699           fi
6700
6701           { echo "$as_me:$LINENO: result: $result" >&5
6702 echo "${ECHO_T}$result" >&6; }
6703
6704
6705           enablestring=
6706           defaultval=$wxUSE_ALL_FEATURES
6707           if test -z "$defaultval"; then
6708               if test x"$enablestring" = xdisable; then
6709                   defaultval=yes
6710               else
6711                   defaultval=no
6712               fi
6713           fi
6714
6715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6716 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6717           # Check whether --enable-datetime was given.
6718 if test "${enable_datetime+set}" = set; then
6719   enableval=$enable_datetime;
6720                           if test "$enableval" = yes; then
6721                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6722                           else
6723                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6724                           fi
6725
6726 else
6727
6728                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6729
6730 fi
6731
6732
6733           eval "$wx_cv_use_datetime"
6734
6735           if test x"$enablestring" = xdisable; then
6736             if test $wxUSE_DATETIME = no; then
6737               result=yes
6738             else
6739               result=no
6740             fi
6741           else
6742             result=$wxUSE_DATETIME
6743           fi
6744
6745           { echo "$as_me:$LINENO: result: $result" >&5
6746 echo "${ECHO_T}$result" >&6; }
6747
6748
6749           enablestring=
6750           defaultval=$wxUSE_ALL_FEATURES
6751           if test -z "$defaultval"; then
6752               if test x"$enablestring" = xdisable; then
6753                   defaultval=yes
6754               else
6755                   defaultval=no
6756               fi
6757           fi
6758
6759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6760 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6761           # Check whether --enable-debugreport was given.
6762 if test "${enable_debugreport+set}" = set; then
6763   enableval=$enable_debugreport;
6764                           if test "$enableval" = yes; then
6765                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6766                           else
6767                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6768                           fi
6769
6770 else
6771
6772                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6773
6774 fi
6775
6776
6777           eval "$wx_cv_use_debugreport"
6778
6779           if test x"$enablestring" = xdisable; then
6780             if test $wxUSE_DEBUGREPORT = no; then
6781               result=yes
6782             else
6783               result=no
6784             fi
6785           else
6786             result=$wxUSE_DEBUGREPORT
6787           fi
6788
6789           { echo "$as_me:$LINENO: result: $result" >&5
6790 echo "${ECHO_T}$result" >&6; }
6791
6792
6793           enablestring=
6794           defaultval=$wxUSE_ALL_FEATURES
6795           if test -z "$defaultval"; then
6796               if test x"$enablestring" = xdisable; then
6797                   defaultval=yes
6798               else
6799                   defaultval=no
6800               fi
6801           fi
6802
6803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6804 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6805           # Check whether --enable-dialupman was given.
6806 if test "${enable_dialupman+set}" = set; then
6807   enableval=$enable_dialupman;
6808                           if test "$enableval" = yes; then
6809                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6810                           else
6811                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6812                           fi
6813
6814 else
6815
6816                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6817
6818 fi
6819
6820
6821           eval "$wx_cv_use_dialupman"
6822
6823           if test x"$enablestring" = xdisable; then
6824             if test $wxUSE_DIALUP_MANAGER = no; then
6825               result=yes
6826             else
6827               result=no
6828             fi
6829           else
6830             result=$wxUSE_DIALUP_MANAGER
6831           fi
6832
6833           { echo "$as_me:$LINENO: result: $result" >&5
6834 echo "${ECHO_T}$result" >&6; }
6835
6836
6837           enablestring=
6838           defaultval=$wxUSE_ALL_FEATURES
6839           if test -z "$defaultval"; then
6840               if test x"$enablestring" = xdisable; then
6841                   defaultval=yes
6842               else
6843                   defaultval=no
6844               fi
6845           fi
6846
6847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6848 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6849           # Check whether --enable-dynlib was given.
6850 if test "${enable_dynlib+set}" = set; then
6851   enableval=$enable_dynlib;
6852                           if test "$enableval" = yes; then
6853                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6854                           else
6855                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6856                           fi
6857
6858 else
6859
6860                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6861
6862 fi
6863
6864
6865           eval "$wx_cv_use_dynlib"
6866
6867           if test x"$enablestring" = xdisable; then
6868             if test $wxUSE_DYNLIB_CLASS = no; then
6869               result=yes
6870             else
6871               result=no
6872             fi
6873           else
6874             result=$wxUSE_DYNLIB_CLASS
6875           fi
6876
6877           { echo "$as_me:$LINENO: result: $result" >&5
6878 echo "${ECHO_T}$result" >&6; }
6879
6880
6881           enablestring=
6882           defaultval=$wxUSE_ALL_FEATURES
6883           if test -z "$defaultval"; then
6884               if test x"$enablestring" = xdisable; then
6885                   defaultval=yes
6886               else
6887                   defaultval=no
6888               fi
6889           fi
6890
6891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6892 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6893           # Check whether --enable-dynamicloader was given.
6894 if test "${enable_dynamicloader+set}" = set; then
6895   enableval=$enable_dynamicloader;
6896                           if test "$enableval" = yes; then
6897                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6898                           else
6899                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6900                           fi
6901
6902 else
6903
6904                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6905
6906 fi
6907
6908
6909           eval "$wx_cv_use_dynamicloader"
6910
6911           if test x"$enablestring" = xdisable; then
6912             if test $wxUSE_DYNAMIC_LOADER = no; then
6913               result=yes
6914             else
6915               result=no
6916             fi
6917           else
6918             result=$wxUSE_DYNAMIC_LOADER
6919           fi
6920
6921           { echo "$as_me:$LINENO: result: $result" >&5
6922 echo "${ECHO_T}$result" >&6; }
6923
6924
6925           enablestring=
6926           defaultval=$wxUSE_ALL_FEATURES
6927           if test -z "$defaultval"; then
6928               if test x"$enablestring" = xdisable; then
6929                   defaultval=yes
6930               else
6931                   defaultval=no
6932               fi
6933           fi
6934
6935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6936 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6937           # Check whether --enable-exceptions was given.
6938 if test "${enable_exceptions+set}" = set; then
6939   enableval=$enable_exceptions;
6940                           if test "$enableval" = yes; then
6941                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6942                           else
6943                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6944                           fi
6945
6946 else
6947
6948                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6949
6950 fi
6951
6952
6953           eval "$wx_cv_use_exceptions"
6954
6955           if test x"$enablestring" = xdisable; then
6956             if test $wxUSE_EXCEPTIONS = no; then
6957               result=yes
6958             else
6959               result=no
6960             fi
6961           else
6962             result=$wxUSE_EXCEPTIONS
6963           fi
6964
6965           { echo "$as_me:$LINENO: result: $result" >&5
6966 echo "${ECHO_T}$result" >&6; }
6967
6968
6969           enablestring=
6970           defaultval=$wxUSE_ALL_FEATURES
6971           if test -z "$defaultval"; then
6972               if test x"$enablestring" = xdisable; then
6973                   defaultval=yes
6974               else
6975                   defaultval=no
6976               fi
6977           fi
6978
6979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6980 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6981           # Check whether --enable-ffile was given.
6982 if test "${enable_ffile+set}" = set; then
6983   enableval=$enable_ffile;
6984                           if test "$enableval" = yes; then
6985                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6986                           else
6987                             wx_cv_use_ffile='wxUSE_FFILE=no'
6988                           fi
6989
6990 else
6991
6992                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6993
6994 fi
6995
6996
6997           eval "$wx_cv_use_ffile"
6998
6999           if test x"$enablestring" = xdisable; then
7000             if test $wxUSE_FFILE = no; then
7001               result=yes
7002             else
7003               result=no
7004             fi
7005           else
7006             result=$wxUSE_FFILE
7007           fi
7008
7009           { echo "$as_me:$LINENO: result: $result" >&5
7010 echo "${ECHO_T}$result" >&6; }
7011
7012
7013           enablestring=
7014           defaultval=$wxUSE_ALL_FEATURES
7015           if test -z "$defaultval"; then
7016               if test x"$enablestring" = xdisable; then
7017                   defaultval=yes
7018               else
7019                   defaultval=no
7020               fi
7021           fi
7022
7023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7024 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7025           # Check whether --enable-file was given.
7026 if test "${enable_file+set}" = set; then
7027   enableval=$enable_file;
7028                           if test "$enableval" = yes; then
7029                             wx_cv_use_file='wxUSE_FILE=yes'
7030                           else
7031                             wx_cv_use_file='wxUSE_FILE=no'
7032                           fi
7033
7034 else
7035
7036                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7037
7038 fi
7039
7040
7041           eval "$wx_cv_use_file"
7042
7043           if test x"$enablestring" = xdisable; then
7044             if test $wxUSE_FILE = no; then
7045               result=yes
7046             else
7047               result=no
7048             fi
7049           else
7050             result=$wxUSE_FILE
7051           fi
7052
7053           { echo "$as_me:$LINENO: result: $result" >&5
7054 echo "${ECHO_T}$result" >&6; }
7055
7056
7057           enablestring=
7058           defaultval=$wxUSE_ALL_FEATURES
7059           if test -z "$defaultval"; then
7060               if test x"$enablestring" = xdisable; then
7061                   defaultval=yes
7062               else
7063                   defaultval=no
7064               fi
7065           fi
7066
7067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7068 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7069           # Check whether --enable-filehistory was given.
7070 if test "${enable_filehistory+set}" = set; then
7071   enableval=$enable_filehistory;
7072                           if test "$enableval" = yes; then
7073                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7074                           else
7075                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7076                           fi
7077
7078 else
7079
7080                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7081
7082 fi
7083
7084
7085           eval "$wx_cv_use_filehistory"
7086
7087           if test x"$enablestring" = xdisable; then
7088             if test $wxUSE_FILE_HISTORY = no; then
7089               result=yes
7090             else
7091               result=no
7092             fi
7093           else
7094             result=$wxUSE_FILE_HISTORY
7095           fi
7096
7097           { echo "$as_me:$LINENO: result: $result" >&5
7098 echo "${ECHO_T}$result" >&6; }
7099
7100
7101           enablestring=
7102           defaultval=$wxUSE_ALL_FEATURES
7103           if test -z "$defaultval"; then
7104               if test x"$enablestring" = xdisable; then
7105                   defaultval=yes
7106               else
7107                   defaultval=no
7108               fi
7109           fi
7110
7111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7112 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7113           # Check whether --enable-filesystem was given.
7114 if test "${enable_filesystem+set}" = set; then
7115   enableval=$enable_filesystem;
7116                           if test "$enableval" = yes; then
7117                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7118                           else
7119                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7120                           fi
7121
7122 else
7123
7124                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7125
7126 fi
7127
7128
7129           eval "$wx_cv_use_filesystem"
7130
7131           if test x"$enablestring" = xdisable; then
7132             if test $wxUSE_FILESYSTEM = no; then
7133               result=yes
7134             else
7135               result=no
7136             fi
7137           else
7138             result=$wxUSE_FILESYSTEM
7139           fi
7140
7141           { echo "$as_me:$LINENO: result: $result" >&5
7142 echo "${ECHO_T}$result" >&6; }
7143
7144
7145           enablestring=
7146           defaultval=$wxUSE_ALL_FEATURES
7147           if test -z "$defaultval"; then
7148               if test x"$enablestring" = xdisable; then
7149                   defaultval=yes
7150               else
7151                   defaultval=no
7152               fi
7153           fi
7154
7155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7156 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7157           # Check whether --enable-fontenum was given.
7158 if test "${enable_fontenum+set}" = set; then
7159   enableval=$enable_fontenum;
7160                           if test "$enableval" = yes; then
7161                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7162                           else
7163                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7164                           fi
7165
7166 else
7167
7168                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7169
7170 fi
7171
7172
7173           eval "$wx_cv_use_fontenum"
7174
7175           if test x"$enablestring" = xdisable; then
7176             if test $wxUSE_FONTENUM = no; then
7177               result=yes
7178             else
7179               result=no
7180             fi
7181           else
7182             result=$wxUSE_FONTENUM
7183           fi
7184
7185           { echo "$as_me:$LINENO: result: $result" >&5
7186 echo "${ECHO_T}$result" >&6; }
7187
7188
7189           enablestring=
7190           defaultval=$wxUSE_ALL_FEATURES
7191           if test -z "$defaultval"; then
7192               if test x"$enablestring" = xdisable; then
7193                   defaultval=yes
7194               else
7195                   defaultval=no
7196               fi
7197           fi
7198
7199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7200 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7201           # Check whether --enable-fontmap was given.
7202 if test "${enable_fontmap+set}" = set; then
7203   enableval=$enable_fontmap;
7204                           if test "$enableval" = yes; then
7205                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7206                           else
7207                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7208                           fi
7209
7210 else
7211
7212                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7213
7214 fi
7215
7216
7217           eval "$wx_cv_use_fontmap"
7218
7219           if test x"$enablestring" = xdisable; then
7220             if test $wxUSE_FONTMAP = no; then
7221               result=yes
7222             else
7223               result=no
7224             fi
7225           else
7226             result=$wxUSE_FONTMAP
7227           fi
7228
7229           { echo "$as_me:$LINENO: result: $result" >&5
7230 echo "${ECHO_T}$result" >&6; }
7231
7232
7233           enablestring=
7234           defaultval=$wxUSE_ALL_FEATURES
7235           if test -z "$defaultval"; then
7236               if test x"$enablestring" = xdisable; then
7237                   defaultval=yes
7238               else
7239                   defaultval=no
7240               fi
7241           fi
7242
7243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7244 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7245           # Check whether --enable-fs_archive was given.
7246 if test "${enable_fs_archive+set}" = set; then
7247   enableval=$enable_fs_archive;
7248                           if test "$enableval" = yes; then
7249                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7250                           else
7251                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7252                           fi
7253
7254 else
7255
7256                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7257
7258 fi
7259
7260
7261           eval "$wx_cv_use_fs_archive"
7262
7263           if test x"$enablestring" = xdisable; then
7264             if test $wxUSE_FS_ARCHIVE = no; then
7265               result=yes
7266             else
7267               result=no
7268             fi
7269           else
7270             result=$wxUSE_FS_ARCHIVE
7271           fi
7272
7273           { echo "$as_me:$LINENO: result: $result" >&5
7274 echo "${ECHO_T}$result" >&6; }
7275
7276
7277           enablestring=
7278           defaultval=$wxUSE_ALL_FEATURES
7279           if test -z "$defaultval"; then
7280               if test x"$enablestring" = xdisable; then
7281                   defaultval=yes
7282               else
7283                   defaultval=no
7284               fi
7285           fi
7286
7287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7288 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7289           # Check whether --enable-fs_inet was given.
7290 if test "${enable_fs_inet+set}" = set; then
7291   enableval=$enable_fs_inet;
7292                           if test "$enableval" = yes; then
7293                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7294                           else
7295                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7296                           fi
7297
7298 else
7299
7300                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7301
7302 fi
7303
7304
7305           eval "$wx_cv_use_fs_inet"
7306
7307           if test x"$enablestring" = xdisable; then
7308             if test $wxUSE_FS_INET = no; then
7309               result=yes
7310             else
7311               result=no
7312             fi
7313           else
7314             result=$wxUSE_FS_INET
7315           fi
7316
7317           { echo "$as_me:$LINENO: result: $result" >&5
7318 echo "${ECHO_T}$result" >&6; }
7319
7320
7321           enablestring=
7322           defaultval=$wxUSE_ALL_FEATURES
7323           if test -z "$defaultval"; then
7324               if test x"$enablestring" = xdisable; then
7325                   defaultval=yes
7326               else
7327                   defaultval=no
7328               fi
7329           fi
7330
7331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7332 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7333           # Check whether --enable-fs_zip was given.
7334 if test "${enable_fs_zip+set}" = set; then
7335   enableval=$enable_fs_zip;
7336                           if test "$enableval" = yes; then
7337                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7338                           else
7339                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7340                           fi
7341
7342 else
7343
7344                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7345
7346 fi
7347
7348
7349           eval "$wx_cv_use_fs_zip"
7350
7351           if test x"$enablestring" = xdisable; then
7352             if test $wxUSE_FS_ZIP = no; then
7353               result=yes
7354             else
7355               result=no
7356             fi
7357           else
7358             result=$wxUSE_FS_ZIP
7359           fi
7360
7361           { echo "$as_me:$LINENO: result: $result" >&5
7362 echo "${ECHO_T}$result" >&6; }
7363
7364
7365           enablestring=
7366           defaultval=$wxUSE_ALL_FEATURES
7367           if test -z "$defaultval"; then
7368               if test x"$enablestring" = xdisable; then
7369                   defaultval=yes
7370               else
7371                   defaultval=no
7372               fi
7373           fi
7374
7375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7376 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7377           # Check whether --enable-fswatcher was given.
7378 if test "${enable_fswatcher+set}" = set; then
7379   enableval=$enable_fswatcher;
7380                           if test "$enableval" = yes; then
7381                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7382                           else
7383                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7384                           fi
7385
7386 else
7387
7388                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7389
7390 fi
7391
7392
7393           eval "$wx_cv_use_fswatcher"
7394
7395           if test x"$enablestring" = xdisable; then
7396             if test $wxUSE_FSWATCHER = no; then
7397               result=yes
7398             else
7399               result=no
7400             fi
7401           else
7402             result=$wxUSE_FSWATCHER
7403           fi
7404
7405           { echo "$as_me:$LINENO: result: $result" >&5
7406 echo "${ECHO_T}$result" >&6; }
7407
7408
7409           enablestring=
7410           defaultval=$wxUSE_ALL_FEATURES
7411           if test -z "$defaultval"; then
7412               if test x"$enablestring" = xdisable; then
7413                   defaultval=yes
7414               else
7415                   defaultval=no
7416               fi
7417           fi
7418
7419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7420 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7421           # Check whether --enable-geometry was given.
7422 if test "${enable_geometry+set}" = set; then
7423   enableval=$enable_geometry;
7424                           if test "$enableval" = yes; then
7425                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7426                           else
7427                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7428                           fi
7429
7430 else
7431
7432                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7433
7434 fi
7435
7436
7437           eval "$wx_cv_use_geometry"
7438
7439           if test x"$enablestring" = xdisable; then
7440             if test $wxUSE_GEOMETRY = no; then
7441               result=yes
7442             else
7443               result=no
7444             fi
7445           else
7446             result=$wxUSE_GEOMETRY
7447           fi
7448
7449           { echo "$as_me:$LINENO: result: $result" >&5
7450 echo "${ECHO_T}$result" >&6; }
7451
7452
7453           enablestring=
7454           defaultval=$wxUSE_ALL_FEATURES
7455           if test -z "$defaultval"; then
7456               if test x"$enablestring" = xdisable; then
7457                   defaultval=yes
7458               else
7459                   defaultval=no
7460               fi
7461           fi
7462
7463           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7464 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7465           # Check whether --enable-log was given.
7466 if test "${enable_log+set}" = set; then
7467   enableval=$enable_log;
7468                           if test "$enableval" = yes; then
7469                             wx_cv_use_log='wxUSE_LOG=yes'
7470                           else
7471                             wx_cv_use_log='wxUSE_LOG=no'
7472                           fi
7473
7474 else
7475
7476                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7477
7478 fi
7479
7480
7481           eval "$wx_cv_use_log"
7482
7483           if test x"$enablestring" = xdisable; then
7484             if test $wxUSE_LOG = no; then
7485               result=yes
7486             else
7487               result=no
7488             fi
7489           else
7490             result=$wxUSE_LOG
7491           fi
7492
7493           { echo "$as_me:$LINENO: result: $result" >&5
7494 echo "${ECHO_T}$result" >&6; }
7495
7496
7497           enablestring=
7498           defaultval=$wxUSE_ALL_FEATURES
7499           if test -z "$defaultval"; then
7500               if test x"$enablestring" = xdisable; then
7501                   defaultval=yes
7502               else
7503                   defaultval=no
7504               fi
7505           fi
7506
7507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7508 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7509           # Check whether --enable-longlong was given.
7510 if test "${enable_longlong+set}" = set; then
7511   enableval=$enable_longlong;
7512                           if test "$enableval" = yes; then
7513                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7514                           else
7515                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7516                           fi
7517
7518 else
7519
7520                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7521
7522 fi
7523
7524
7525           eval "$wx_cv_use_longlong"
7526
7527           if test x"$enablestring" = xdisable; then
7528             if test $wxUSE_LONGLONG = no; then
7529               result=yes
7530             else
7531               result=no
7532             fi
7533           else
7534             result=$wxUSE_LONGLONG
7535           fi
7536
7537           { echo "$as_me:$LINENO: result: $result" >&5
7538 echo "${ECHO_T}$result" >&6; }
7539
7540
7541           enablestring=
7542           defaultval=$wxUSE_ALL_FEATURES
7543           if test -z "$defaultval"; then
7544               if test x"$enablestring" = xdisable; then
7545                   defaultval=yes
7546               else
7547                   defaultval=no
7548               fi
7549           fi
7550
7551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7552 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7553           # Check whether --enable-mimetype was given.
7554 if test "${enable_mimetype+set}" = set; then
7555   enableval=$enable_mimetype;
7556                           if test "$enableval" = yes; then
7557                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7558                           else
7559                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7560                           fi
7561
7562 else
7563
7564                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7565
7566 fi
7567
7568
7569           eval "$wx_cv_use_mimetype"
7570
7571           if test x"$enablestring" = xdisable; then
7572             if test $wxUSE_MIMETYPE = no; then
7573               result=yes
7574             else
7575               result=no
7576             fi
7577           else
7578             result=$wxUSE_MIMETYPE
7579           fi
7580
7581           { echo "$as_me:$LINENO: result: $result" >&5
7582 echo "${ECHO_T}$result" >&6; }
7583
7584
7585           enablestring=
7586           defaultval=$wxUSE_ALL_FEATURES
7587           if test -z "$defaultval"; then
7588               if test x"$enablestring" = xdisable; then
7589                   defaultval=yes
7590               else
7591                   defaultval=no
7592               fi
7593           fi
7594
7595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7596 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7597           # Check whether --enable-printfposparam was given.
7598 if test "${enable_printfposparam+set}" = set; then
7599   enableval=$enable_printfposparam;
7600                           if test "$enableval" = yes; then
7601                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7602                           else
7603                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7604                           fi
7605
7606 else
7607
7608                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7609
7610 fi
7611
7612
7613           eval "$wx_cv_use_printfposparam"
7614
7615           if test x"$enablestring" = xdisable; then
7616             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7617               result=yes
7618             else
7619               result=no
7620             fi
7621           else
7622             result=$wxUSE_PRINTF_POS_PARAMS
7623           fi
7624
7625           { echo "$as_me:$LINENO: result: $result" >&5
7626 echo "${ECHO_T}$result" >&6; }
7627
7628
7629           enablestring=
7630           defaultval=$wxUSE_ALL_FEATURES
7631           if test -z "$defaultval"; then
7632               if test x"$enablestring" = xdisable; then
7633                   defaultval=yes
7634               else
7635                   defaultval=no
7636               fi
7637           fi
7638
7639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7640 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7641           # Check whether --enable-snglinst was given.
7642 if test "${enable_snglinst+set}" = set; then
7643   enableval=$enable_snglinst;
7644                           if test "$enableval" = yes; then
7645                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7646                           else
7647                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7648                           fi
7649
7650 else
7651
7652                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7653
7654 fi
7655
7656
7657           eval "$wx_cv_use_snglinst"
7658
7659           if test x"$enablestring" = xdisable; then
7660             if test $wxUSE_SNGLINST_CHECKER = no; then
7661               result=yes
7662             else
7663               result=no
7664             fi
7665           else
7666             result=$wxUSE_SNGLINST_CHECKER
7667           fi
7668
7669           { echo "$as_me:$LINENO: result: $result" >&5
7670 echo "${ECHO_T}$result" >&6; }
7671
7672
7673           enablestring=
7674           defaultval=$wxUSE_ALL_FEATURES
7675           if test -z "$defaultval"; then
7676               if test x"$enablestring" = xdisable; then
7677                   defaultval=yes
7678               else
7679                   defaultval=no
7680               fi
7681           fi
7682
7683           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7684 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7685           # Check whether --enable-sound was given.
7686 if test "${enable_sound+set}" = set; then
7687   enableval=$enable_sound;
7688                           if test "$enableval" = yes; then
7689                             wx_cv_use_sound='wxUSE_SOUND=yes'
7690                           else
7691                             wx_cv_use_sound='wxUSE_SOUND=no'
7692                           fi
7693
7694 else
7695
7696                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7697
7698 fi
7699
7700
7701           eval "$wx_cv_use_sound"
7702
7703           if test x"$enablestring" = xdisable; then
7704             if test $wxUSE_SOUND = no; then
7705               result=yes
7706             else
7707               result=no
7708             fi
7709           else
7710             result=$wxUSE_SOUND
7711           fi
7712
7713           { echo "$as_me:$LINENO: result: $result" >&5
7714 echo "${ECHO_T}$result" >&6; }
7715
7716
7717           enablestring=
7718           defaultval=$wxUSE_ALL_FEATURES
7719           if test -z "$defaultval"; then
7720               if test x"$enablestring" = xdisable; then
7721                   defaultval=yes
7722               else
7723                   defaultval=no
7724               fi
7725           fi
7726
7727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7728 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7729           # Check whether --enable-stdpaths was given.
7730 if test "${enable_stdpaths+set}" = set; then
7731   enableval=$enable_stdpaths;
7732                           if test "$enableval" = yes; then
7733                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7734                           else
7735                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7736                           fi
7737
7738 else
7739
7740                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7741
7742 fi
7743
7744
7745           eval "$wx_cv_use_stdpaths"
7746
7747           if test x"$enablestring" = xdisable; then
7748             if test $wxUSE_STDPATHS = no; then
7749               result=yes
7750             else
7751               result=no
7752             fi
7753           else
7754             result=$wxUSE_STDPATHS
7755           fi
7756
7757           { echo "$as_me:$LINENO: result: $result" >&5
7758 echo "${ECHO_T}$result" >&6; }
7759
7760
7761           enablestring=
7762           defaultval=$wxUSE_ALL_FEATURES
7763           if test -z "$defaultval"; then
7764               if test x"$enablestring" = xdisable; then
7765                   defaultval=yes
7766               else
7767                   defaultval=no
7768               fi
7769           fi
7770
7771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7772 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7773           # Check whether --enable-stopwatch was given.
7774 if test "${enable_stopwatch+set}" = set; then
7775   enableval=$enable_stopwatch;
7776                           if test "$enableval" = yes; then
7777                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7778                           else
7779                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7780                           fi
7781
7782 else
7783
7784                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7785
7786 fi
7787
7788
7789           eval "$wx_cv_use_stopwatch"
7790
7791           if test x"$enablestring" = xdisable; then
7792             if test $wxUSE_STOPWATCH = no; then
7793               result=yes
7794             else
7795               result=no
7796             fi
7797           else
7798             result=$wxUSE_STOPWATCH
7799           fi
7800
7801           { echo "$as_me:$LINENO: result: $result" >&5
7802 echo "${ECHO_T}$result" >&6; }
7803
7804
7805           enablestring=
7806           defaultval=$wxUSE_ALL_FEATURES
7807           if test -z "$defaultval"; then
7808               if test x"$enablestring" = xdisable; then
7809                   defaultval=yes
7810               else
7811                   defaultval=no
7812               fi
7813           fi
7814
7815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7816 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7817           # Check whether --enable-streams was given.
7818 if test "${enable_streams+set}" = set; then
7819   enableval=$enable_streams;
7820                           if test "$enableval" = yes; then
7821                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7822                           else
7823                             wx_cv_use_streams='wxUSE_STREAMS=no'
7824                           fi
7825
7826 else
7827
7828                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7829
7830 fi
7831
7832
7833           eval "$wx_cv_use_streams"
7834
7835           if test x"$enablestring" = xdisable; then
7836             if test $wxUSE_STREAMS = no; then
7837               result=yes
7838             else
7839               result=no
7840             fi
7841           else
7842             result=$wxUSE_STREAMS
7843           fi
7844
7845           { echo "$as_me:$LINENO: result: $result" >&5
7846 echo "${ECHO_T}$result" >&6; }
7847
7848
7849           enablestring=
7850           defaultval=$wxUSE_ALL_FEATURES
7851           if test -z "$defaultval"; then
7852               if test x"$enablestring" = xdisable; then
7853                   defaultval=yes
7854               else
7855                   defaultval=no
7856               fi
7857           fi
7858
7859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7860 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7861           # Check whether --enable-sysoptions was given.
7862 if test "${enable_sysoptions+set}" = set; then
7863   enableval=$enable_sysoptions;
7864                           if test "$enableval" = yes; then
7865                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7866                           else
7867                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7868                           fi
7869
7870 else
7871
7872                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7873
7874 fi
7875
7876
7877           eval "$wx_cv_use_sysoptions"
7878
7879           if test x"$enablestring" = xdisable; then
7880             if test $wxUSE_SYSTEM_OPTIONS = no; then
7881               result=yes
7882             else
7883               result=no
7884             fi
7885           else
7886             result=$wxUSE_SYSTEM_OPTIONS
7887           fi
7888
7889           { echo "$as_me:$LINENO: result: $result" >&5
7890 echo "${ECHO_T}$result" >&6; }
7891
7892
7893           enablestring=
7894           defaultval=$wxUSE_ALL_FEATURES
7895           if test -z "$defaultval"; then
7896               if test x"$enablestring" = xdisable; then
7897                   defaultval=yes
7898               else
7899                   defaultval=no
7900               fi
7901           fi
7902
7903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7904 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7905           # Check whether --enable-tarstream was given.
7906 if test "${enable_tarstream+set}" = set; then
7907   enableval=$enable_tarstream;
7908                           if test "$enableval" = yes; then
7909                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7910                           else
7911                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7912                           fi
7913
7914 else
7915
7916                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7917
7918 fi
7919
7920
7921           eval "$wx_cv_use_tarstream"
7922
7923           if test x"$enablestring" = xdisable; then
7924             if test $wxUSE_TARSTREAM = no; then
7925               result=yes
7926             else
7927               result=no
7928             fi
7929           else
7930             result=$wxUSE_TARSTREAM
7931           fi
7932
7933           { echo "$as_me:$LINENO: result: $result" >&5
7934 echo "${ECHO_T}$result" >&6; }
7935
7936
7937           enablestring=
7938           defaultval=$wxUSE_ALL_FEATURES
7939           if test -z "$defaultval"; then
7940               if test x"$enablestring" = xdisable; then
7941                   defaultval=yes
7942               else
7943                   defaultval=no
7944               fi
7945           fi
7946
7947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7948 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7949           # Check whether --enable-textbuf was given.
7950 if test "${enable_textbuf+set}" = set; then
7951   enableval=$enable_textbuf;
7952                           if test "$enableval" = yes; then
7953                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7954                           else
7955                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7956                           fi
7957
7958 else
7959
7960                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7961
7962 fi
7963
7964
7965           eval "$wx_cv_use_textbuf"
7966
7967           if test x"$enablestring" = xdisable; then
7968             if test $wxUSE_TEXTBUFFER = no; then
7969               result=yes
7970             else
7971               result=no
7972             fi
7973           else
7974             result=$wxUSE_TEXTBUFFER
7975           fi
7976
7977           { echo "$as_me:$LINENO: result: $result" >&5
7978 echo "${ECHO_T}$result" >&6; }
7979
7980
7981           enablestring=
7982           defaultval=$wxUSE_ALL_FEATURES
7983           if test -z "$defaultval"; then
7984               if test x"$enablestring" = xdisable; then
7985                   defaultval=yes
7986               else
7987                   defaultval=no
7988               fi
7989           fi
7990
7991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7992 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7993           # Check whether --enable-textfile was given.
7994 if test "${enable_textfile+set}" = set; then
7995   enableval=$enable_textfile;
7996                           if test "$enableval" = yes; then
7997                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7998                           else
7999                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8000                           fi
8001
8002 else
8003
8004                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8005
8006 fi
8007
8008
8009           eval "$wx_cv_use_textfile"
8010
8011           if test x"$enablestring" = xdisable; then
8012             if test $wxUSE_TEXTFILE = no; then
8013               result=yes
8014             else
8015               result=no
8016             fi
8017           else
8018             result=$wxUSE_TEXTFILE
8019           fi
8020
8021           { echo "$as_me:$LINENO: result: $result" >&5
8022 echo "${ECHO_T}$result" >&6; }
8023
8024
8025           enablestring=
8026           defaultval=$wxUSE_ALL_FEATURES
8027           if test -z "$defaultval"; then
8028               if test x"$enablestring" = xdisable; then
8029                   defaultval=yes
8030               else
8031                   defaultval=no
8032               fi
8033           fi
8034
8035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8036 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8037           # Check whether --enable-timer was given.
8038 if test "${enable_timer+set}" = set; then
8039   enableval=$enable_timer;
8040                           if test "$enableval" = yes; then
8041                             wx_cv_use_timer='wxUSE_TIMER=yes'
8042                           else
8043                             wx_cv_use_timer='wxUSE_TIMER=no'
8044                           fi
8045
8046 else
8047
8048                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8049
8050 fi
8051
8052
8053           eval "$wx_cv_use_timer"
8054
8055           if test x"$enablestring" = xdisable; then
8056             if test $wxUSE_TIMER = no; then
8057               result=yes
8058             else
8059               result=no
8060             fi
8061           else
8062             result=$wxUSE_TIMER
8063           fi
8064
8065           { echo "$as_me:$LINENO: result: $result" >&5
8066 echo "${ECHO_T}$result" >&6; }
8067
8068
8069           enablestring=
8070           defaultval=$wxUSE_ALL_FEATURES
8071           if test -z "$defaultval"; then
8072               if test x"$enablestring" = xdisable; then
8073                   defaultval=yes
8074               else
8075                   defaultval=no
8076               fi
8077           fi
8078
8079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8080 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8081           # Check whether --enable-variant was given.
8082 if test "${enable_variant+set}" = set; then
8083   enableval=$enable_variant;
8084                           if test "$enableval" = yes; then
8085                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8086                           else
8087                             wx_cv_use_variant='wxUSE_VARIANT=no'
8088                           fi
8089
8090 else
8091
8092                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8093
8094 fi
8095
8096
8097           eval "$wx_cv_use_variant"
8098
8099           if test x"$enablestring" = xdisable; then
8100             if test $wxUSE_VARIANT = no; then
8101               result=yes
8102             else
8103               result=no
8104             fi
8105           else
8106             result=$wxUSE_VARIANT
8107           fi
8108
8109           { echo "$as_me:$LINENO: result: $result" >&5
8110 echo "${ECHO_T}$result" >&6; }
8111
8112
8113           enablestring=
8114           defaultval=$wxUSE_ALL_FEATURES
8115           if test -z "$defaultval"; then
8116               if test x"$enablestring" = xdisable; then
8117                   defaultval=yes
8118               else
8119                   defaultval=no
8120               fi
8121           fi
8122
8123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8124 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8125           # Check whether --enable-zipstream was given.
8126 if test "${enable_zipstream+set}" = set; then
8127   enableval=$enable_zipstream;
8128                           if test "$enableval" = yes; then
8129                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8130                           else
8131                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8132                           fi
8133
8134 else
8135
8136                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8137
8138 fi
8139
8140
8141           eval "$wx_cv_use_zipstream"
8142
8143           if test x"$enablestring" = xdisable; then
8144             if test $wxUSE_ZIPSTREAM = no; then
8145               result=yes
8146             else
8147               result=no
8148             fi
8149           else
8150             result=$wxUSE_ZIPSTREAM
8151           fi
8152
8153           { echo "$as_me:$LINENO: result: $result" >&5
8154 echo "${ECHO_T}$result" >&6; }
8155
8156
8157
8158           enablestring=
8159           defaultval=$wxUSE_ALL_FEATURES
8160           if test -z "$defaultval"; then
8161               if test x"$enablestring" = xdisable; then
8162                   defaultval=yes
8163               else
8164                   defaultval=no
8165               fi
8166           fi
8167
8168           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8169 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8170           # Check whether --enable-url was given.
8171 if test "${enable_url+set}" = set; then
8172   enableval=$enable_url;
8173                           if test "$enableval" = yes; then
8174                             wx_cv_use_url='wxUSE_URL=yes'
8175                           else
8176                             wx_cv_use_url='wxUSE_URL=no'
8177                           fi
8178
8179 else
8180
8181                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8182
8183 fi
8184
8185
8186           eval "$wx_cv_use_url"
8187
8188           if test x"$enablestring" = xdisable; then
8189             if test $wxUSE_URL = no; then
8190               result=yes
8191             else
8192               result=no
8193             fi
8194           else
8195             result=$wxUSE_URL
8196           fi
8197
8198           { echo "$as_me:$LINENO: result: $result" >&5
8199 echo "${ECHO_T}$result" >&6; }
8200
8201
8202           enablestring=
8203           defaultval=$wxUSE_ALL_FEATURES
8204           if test -z "$defaultval"; then
8205               if test x"$enablestring" = xdisable; then
8206                   defaultval=yes
8207               else
8208                   defaultval=no
8209               fi
8210           fi
8211
8212           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8213 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8214           # Check whether --enable-protocol was given.
8215 if test "${enable_protocol+set}" = set; then
8216   enableval=$enable_protocol;
8217                           if test "$enableval" = yes; then
8218                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8219                           else
8220                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8221                           fi
8222
8223 else
8224
8225                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8226
8227 fi
8228
8229
8230           eval "$wx_cv_use_protocol"
8231
8232           if test x"$enablestring" = xdisable; then
8233             if test $wxUSE_PROTOCOL = no; then
8234               result=yes
8235             else
8236               result=no
8237             fi
8238           else
8239             result=$wxUSE_PROTOCOL
8240           fi
8241
8242           { echo "$as_me:$LINENO: result: $result" >&5
8243 echo "${ECHO_T}$result" >&6; }
8244
8245
8246           enablestring=
8247           defaultval=$wxUSE_ALL_FEATURES
8248           if test -z "$defaultval"; then
8249               if test x"$enablestring" = xdisable; then
8250                   defaultval=yes
8251               else
8252                   defaultval=no
8253               fi
8254           fi
8255
8256           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8257 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8258           # Check whether --enable-protocol_http was given.
8259 if test "${enable_protocol_http+set}" = set; then
8260   enableval=$enable_protocol_http;
8261                           if test "$enableval" = yes; then
8262                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8263                           else
8264                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8265                           fi
8266
8267 else
8268
8269                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8270
8271 fi
8272
8273
8274           eval "$wx_cv_use_protocol_http"
8275
8276           if test x"$enablestring" = xdisable; then
8277             if test $wxUSE_PROTOCOL_HTTP = no; then
8278               result=yes
8279             else
8280               result=no
8281             fi
8282           else
8283             result=$wxUSE_PROTOCOL_HTTP
8284           fi
8285
8286           { echo "$as_me:$LINENO: result: $result" >&5
8287 echo "${ECHO_T}$result" >&6; }
8288
8289
8290           enablestring=
8291           defaultval=$wxUSE_ALL_FEATURES
8292           if test -z "$defaultval"; then
8293               if test x"$enablestring" = xdisable; then
8294                   defaultval=yes
8295               else
8296                   defaultval=no
8297               fi
8298           fi
8299
8300           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8301 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8302           # Check whether --enable-protocol_ftp was given.
8303 if test "${enable_protocol_ftp+set}" = set; then
8304   enableval=$enable_protocol_ftp;
8305                           if test "$enableval" = yes; then
8306                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8307                           else
8308                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8309                           fi
8310
8311 else
8312
8313                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8314
8315 fi
8316
8317
8318           eval "$wx_cv_use_protocol_ftp"
8319
8320           if test x"$enablestring" = xdisable; then
8321             if test $wxUSE_PROTOCOL_FTP = no; then
8322               result=yes
8323             else
8324               result=no
8325             fi
8326           else
8327             result=$wxUSE_PROTOCOL_FTP
8328           fi
8329
8330           { echo "$as_me:$LINENO: result: $result" >&5
8331 echo "${ECHO_T}$result" >&6; }
8332
8333
8334           enablestring=
8335           defaultval=$wxUSE_ALL_FEATURES
8336           if test -z "$defaultval"; then
8337               if test x"$enablestring" = xdisable; then
8338                   defaultval=yes
8339               else
8340                   defaultval=no
8341               fi
8342           fi
8343
8344           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8345 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8346           # Check whether --enable-protocol_file was given.
8347 if test "${enable_protocol_file+set}" = set; then
8348   enableval=$enable_protocol_file;
8349                           if test "$enableval" = yes; then
8350                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8351                           else
8352                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8353                           fi
8354
8355 else
8356
8357                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8358
8359 fi
8360
8361
8362           eval "$wx_cv_use_protocol_file"
8363
8364           if test x"$enablestring" = xdisable; then
8365             if test $wxUSE_PROTOCOL_FILE = no; then
8366               result=yes
8367             else
8368               result=no
8369             fi
8370           else
8371             result=$wxUSE_PROTOCOL_FILE
8372           fi
8373
8374           { echo "$as_me:$LINENO: result: $result" >&5
8375 echo "${ECHO_T}$result" >&6; }
8376
8377
8378
8379           enablestring=
8380           defaultval=$wxUSE_ALL_FEATURES
8381           if test -z "$defaultval"; then
8382               if test x"$enablestring" = xdisable; then
8383                   defaultval=yes
8384               else
8385                   defaultval=no
8386               fi
8387           fi
8388
8389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8390 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8391           # Check whether --enable-threads was given.
8392 if test "${enable_threads+set}" = set; then
8393   enableval=$enable_threads;
8394                           if test "$enableval" = yes; then
8395                             wx_cv_use_threads='wxUSE_THREADS=yes'
8396                           else
8397                             wx_cv_use_threads='wxUSE_THREADS=no'
8398                           fi
8399
8400 else
8401
8402                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8403
8404 fi
8405
8406
8407           eval "$wx_cv_use_threads"
8408
8409           if test x"$enablestring" = xdisable; then
8410             if test $wxUSE_THREADS = no; then
8411               result=yes
8412             else
8413               result=no
8414             fi
8415           else
8416             result=$wxUSE_THREADS
8417           fi
8418
8419           { echo "$as_me:$LINENO: result: $result" >&5
8420 echo "${ECHO_T}$result" >&6; }
8421
8422
8423
8424           enablestring=
8425           defaultval=
8426           if test -z "$defaultval"; then
8427               if test x"$enablestring" = xdisable; then
8428                   defaultval=yes
8429               else
8430                   defaultval=no
8431               fi
8432           fi
8433
8434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8435 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8436           # Check whether --enable-iniconf was given.
8437 if test "${enable_iniconf+set}" = set; then
8438   enableval=$enable_iniconf;
8439                           if test "$enableval" = yes; then
8440                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8441                           else
8442                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8443                           fi
8444
8445 else
8446
8447                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8448
8449 fi
8450
8451
8452           eval "$wx_cv_use_iniconf"
8453
8454           if test x"$enablestring" = xdisable; then
8455             if test $wxUSE_INICONF = no; then
8456               result=yes
8457             else
8458               result=no
8459             fi
8460           else
8461             result=$wxUSE_INICONF
8462           fi
8463
8464           { echo "$as_me:$LINENO: result: $result" >&5
8465 echo "${ECHO_T}$result" >&6; }
8466
8467
8468           enablestring=
8469           defaultval=$wxUSE_ALL_FEATURES
8470           if test -z "$defaultval"; then
8471               if test x"$enablestring" = xdisable; then
8472                   defaultval=yes
8473               else
8474                   defaultval=no
8475               fi
8476           fi
8477
8478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8479 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8480           # Check whether --enable-regkey was given.
8481 if test "${enable_regkey+set}" = set; then
8482   enableval=$enable_regkey;
8483                           if test "$enableval" = yes; then
8484                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8485                           else
8486                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8487                           fi
8488
8489 else
8490
8491                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8492
8493 fi
8494
8495
8496           eval "$wx_cv_use_regkey"
8497
8498           if test x"$enablestring" = xdisable; then
8499             if test $wxUSE_REGKEY = no; then
8500               result=yes
8501             else
8502               result=no
8503             fi
8504           else
8505             result=$wxUSE_REGKEY
8506           fi
8507
8508           { echo "$as_me:$LINENO: result: $result" >&5
8509 echo "${ECHO_T}$result" >&6; }
8510
8511
8512 if test "$wxUSE_GUI" = "yes"; then
8513
8514
8515
8516           enablestring=
8517           defaultval=$wxUSE_ALL_FEATURES
8518           if test -z "$defaultval"; then
8519               if test x"$enablestring" = xdisable; then
8520                   defaultval=yes
8521               else
8522                   defaultval=no
8523               fi
8524           fi
8525
8526           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8527 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8528           # Check whether --enable-docview was given.
8529 if test "${enable_docview+set}" = set; then
8530   enableval=$enable_docview;
8531                           if test "$enableval" = yes; then
8532                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8533                           else
8534                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8535                           fi
8536
8537 else
8538
8539                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8540
8541 fi
8542
8543
8544           eval "$wx_cv_use_docview"
8545
8546           if test x"$enablestring" = xdisable; then
8547             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8548               result=yes
8549             else
8550               result=no
8551             fi
8552           else
8553             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8554           fi
8555
8556           { echo "$as_me:$LINENO: result: $result" >&5
8557 echo "${ECHO_T}$result" >&6; }
8558
8559
8560           enablestring=
8561           defaultval=$wxUSE_ALL_FEATURES
8562           if test -z "$defaultval"; then
8563               if test x"$enablestring" = xdisable; then
8564                   defaultval=yes
8565               else
8566                   defaultval=no
8567               fi
8568           fi
8569
8570           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8571 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8572           # Check whether --enable-help was given.
8573 if test "${enable_help+set}" = set; then
8574   enableval=$enable_help;
8575                           if test "$enableval" = yes; then
8576                             wx_cv_use_help='wxUSE_HELP=yes'
8577                           else
8578                             wx_cv_use_help='wxUSE_HELP=no'
8579                           fi
8580
8581 else
8582
8583                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8584
8585 fi
8586
8587
8588           eval "$wx_cv_use_help"
8589
8590           if test x"$enablestring" = xdisable; then
8591             if test $wxUSE_HELP = no; then
8592               result=yes
8593             else
8594               result=no
8595             fi
8596           else
8597             result=$wxUSE_HELP
8598           fi
8599
8600           { echo "$as_me:$LINENO: result: $result" >&5
8601 echo "${ECHO_T}$result" >&6; }
8602
8603
8604           enablestring=
8605           defaultval=$wxUSE_ALL_FEATURES
8606           if test -z "$defaultval"; then
8607               if test x"$enablestring" = xdisable; then
8608                   defaultval=yes
8609               else
8610                   defaultval=no
8611               fi
8612           fi
8613
8614           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8615 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8616           # Check whether --enable-mshtmlhelp was given.
8617 if test "${enable_mshtmlhelp+set}" = set; then
8618   enableval=$enable_mshtmlhelp;
8619                           if test "$enableval" = yes; then
8620                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8621                           else
8622                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8623                           fi
8624
8625 else
8626
8627                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8628
8629 fi
8630
8631
8632           eval "$wx_cv_use_mshtmlhelp"
8633
8634           if test x"$enablestring" = xdisable; then
8635             if test $wxUSE_MS_HTML_HELP = no; then
8636               result=yes
8637             else
8638               result=no
8639             fi
8640           else
8641             result=$wxUSE_MS_HTML_HELP
8642           fi
8643
8644           { echo "$as_me:$LINENO: result: $result" >&5
8645 echo "${ECHO_T}$result" >&6; }
8646
8647
8648           enablestring=
8649           defaultval=$wxUSE_ALL_FEATURES
8650           if test -z "$defaultval"; then
8651               if test x"$enablestring" = xdisable; then
8652                   defaultval=yes
8653               else
8654                   defaultval=no
8655               fi
8656           fi
8657
8658           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8659 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8660           # Check whether --enable-html was given.
8661 if test "${enable_html+set}" = set; then
8662   enableval=$enable_html;
8663                           if test "$enableval" = yes; then
8664                             wx_cv_use_html='wxUSE_HTML=yes'
8665                           else
8666                             wx_cv_use_html='wxUSE_HTML=no'
8667                           fi
8668
8669 else
8670
8671                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8672
8673 fi
8674
8675
8676           eval "$wx_cv_use_html"
8677
8678           if test x"$enablestring" = xdisable; then
8679             if test $wxUSE_HTML = no; then
8680               result=yes
8681             else
8682               result=no
8683             fi
8684           else
8685             result=$wxUSE_HTML
8686           fi
8687
8688           { echo "$as_me:$LINENO: result: $result" >&5
8689 echo "${ECHO_T}$result" >&6; }
8690
8691
8692           enablestring=
8693           defaultval=$wxUSE_ALL_FEATURES
8694           if test -z "$defaultval"; then
8695               if test x"$enablestring" = xdisable; then
8696                   defaultval=yes
8697               else
8698                   defaultval=no
8699               fi
8700           fi
8701
8702           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8703 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8704           # Check whether --enable-htmlhelp was given.
8705 if test "${enable_htmlhelp+set}" = set; then
8706   enableval=$enable_htmlhelp;
8707                           if test "$enableval" = yes; then
8708                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8709                           else
8710                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8711                           fi
8712
8713 else
8714
8715                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8716
8717 fi
8718
8719
8720           eval "$wx_cv_use_htmlhelp"
8721
8722           if test x"$enablestring" = xdisable; then
8723             if test $wxUSE_WXHTML_HELP = no; then
8724               result=yes
8725             else
8726               result=no
8727             fi
8728           else
8729             result=$wxUSE_WXHTML_HELP
8730           fi
8731
8732           { echo "$as_me:$LINENO: result: $result" >&5
8733 echo "${ECHO_T}$result" >&6; }
8734
8735
8736           enablestring=
8737           defaultval=$wxUSE_ALL_FEATURES
8738           if test -z "$defaultval"; then
8739               if test x"$enablestring" = xdisable; then
8740                   defaultval=yes
8741               else
8742                   defaultval=no
8743               fi
8744           fi
8745
8746           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8747 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8748           # Check whether --enable-xrc was given.
8749 if test "${enable_xrc+set}" = set; then
8750   enableval=$enable_xrc;
8751                           if test "$enableval" = yes; then
8752                             wx_cv_use_xrc='wxUSE_XRC=yes'
8753                           else
8754                             wx_cv_use_xrc='wxUSE_XRC=no'
8755                           fi
8756
8757 else
8758
8759                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8760
8761 fi
8762
8763
8764           eval "$wx_cv_use_xrc"
8765
8766           if test x"$enablestring" = xdisable; then
8767             if test $wxUSE_XRC = no; then
8768               result=yes
8769             else
8770               result=no
8771             fi
8772           else
8773             result=$wxUSE_XRC
8774           fi
8775
8776           { echo "$as_me:$LINENO: result: $result" >&5
8777 echo "${ECHO_T}$result" >&6; }
8778
8779
8780           enablestring=
8781           defaultval=$wxUSE_ALL_FEATURES
8782           if test -z "$defaultval"; then
8783               if test x"$enablestring" = xdisable; then
8784                   defaultval=yes
8785               else
8786                   defaultval=no
8787               fi
8788           fi
8789
8790           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8791 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8792           # Check whether --enable-aui was given.
8793 if test "${enable_aui+set}" = set; then
8794   enableval=$enable_aui;
8795                           if test "$enableval" = yes; then
8796                             wx_cv_use_aui='wxUSE_AUI=yes'
8797                           else
8798                             wx_cv_use_aui='wxUSE_AUI=no'
8799                           fi
8800
8801 else
8802
8803                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8804
8805 fi
8806
8807
8808           eval "$wx_cv_use_aui"
8809
8810           if test x"$enablestring" = xdisable; then
8811             if test $wxUSE_AUI = no; then
8812               result=yes
8813             else
8814               result=no
8815             fi
8816           else
8817             result=$wxUSE_AUI
8818           fi
8819
8820           { echo "$as_me:$LINENO: result: $result" >&5
8821 echo "${ECHO_T}$result" >&6; }
8822
8823
8824           enablestring=
8825           defaultval=$wxUSE_ALL_FEATURES
8826           if test -z "$defaultval"; then
8827               if test x"$enablestring" = xdisable; then
8828                   defaultval=yes
8829               else
8830                   defaultval=no
8831               fi
8832           fi
8833
8834           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8835 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8836           # Check whether --enable-propgrid was given.
8837 if test "${enable_propgrid+set}" = set; then
8838   enableval=$enable_propgrid;
8839                           if test "$enableval" = yes; then
8840                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8841                           else
8842                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8843                           fi
8844
8845 else
8846
8847                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8848
8849 fi
8850
8851
8852           eval "$wx_cv_use_propgrid"
8853
8854           if test x"$enablestring" = xdisable; then
8855             if test $wxUSE_PROPGRID = no; then
8856               result=yes
8857             else
8858               result=no
8859             fi
8860           else
8861             result=$wxUSE_PROPGRID
8862           fi
8863
8864           { echo "$as_me:$LINENO: result: $result" >&5
8865 echo "${ECHO_T}$result" >&6; }
8866
8867
8868           enablestring=
8869           defaultval=$wxUSE_ALL_FEATURES
8870           if test -z "$defaultval"; then
8871               if test x"$enablestring" = xdisable; then
8872                   defaultval=yes
8873               else
8874                   defaultval=no
8875               fi
8876           fi
8877
8878           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8879 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8880           # Check whether --enable-ribbon was given.
8881 if test "${enable_ribbon+set}" = set; then
8882   enableval=$enable_ribbon;
8883                           if test "$enableval" = yes; then
8884                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8885                           else
8886                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8887                           fi
8888
8889 else
8890
8891                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8892
8893 fi
8894
8895
8896           eval "$wx_cv_use_ribbon"
8897
8898           if test x"$enablestring" = xdisable; then
8899             if test $wxUSE_RIBBON = no; then
8900               result=yes
8901             else
8902               result=no
8903             fi
8904           else
8905             result=$wxUSE_RIBBON
8906           fi
8907
8908           { echo "$as_me:$LINENO: result: $result" >&5
8909 echo "${ECHO_T}$result" >&6; }
8910
8911
8912           enablestring=
8913           defaultval=$wxUSE_ALL_FEATURES
8914           if test -z "$defaultval"; then
8915               if test x"$enablestring" = xdisable; then
8916                   defaultval=yes
8917               else
8918                   defaultval=no
8919               fi
8920           fi
8921
8922           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8923 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8924           # Check whether --enable-stc was given.
8925 if test "${enable_stc+set}" = set; then
8926   enableval=$enable_stc;
8927                           if test "$enableval" = yes; then
8928                             wx_cv_use_stc='wxUSE_STC=yes'
8929                           else
8930                             wx_cv_use_stc='wxUSE_STC=no'
8931                           fi
8932
8933 else
8934
8935                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8936
8937 fi
8938
8939
8940           eval "$wx_cv_use_stc"
8941
8942           if test x"$enablestring" = xdisable; then
8943             if test $wxUSE_STC = no; then
8944               result=yes
8945             else
8946               result=no
8947             fi
8948           else
8949             result=$wxUSE_STC
8950           fi
8951
8952           { echo "$as_me:$LINENO: result: $result" >&5
8953 echo "${ECHO_T}$result" >&6; }
8954
8955
8956           enablestring=
8957           defaultval=$wxUSE_ALL_FEATURES
8958           if test -z "$defaultval"; then
8959               if test x"$enablestring" = xdisable; then
8960                   defaultval=yes
8961               else
8962                   defaultval=no
8963               fi
8964           fi
8965
8966           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8967 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8968           # Check whether --enable-constraints was given.
8969 if test "${enable_constraints+set}" = set; then
8970   enableval=$enable_constraints;
8971                           if test "$enableval" = yes; then
8972                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8973                           else
8974                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8975                           fi
8976
8977 else
8978
8979                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8980
8981 fi
8982
8983
8984           eval "$wx_cv_use_constraints"
8985
8986           if test x"$enablestring" = xdisable; then
8987             if test $wxUSE_CONSTRAINTS = no; then
8988               result=yes
8989             else
8990               result=no
8991             fi
8992           else
8993             result=$wxUSE_CONSTRAINTS
8994           fi
8995
8996           { echo "$as_me:$LINENO: result: $result" >&5
8997 echo "${ECHO_T}$result" >&6; }
8998
8999
9000           enablestring=
9001           defaultval=$wxUSE_ALL_FEATURES
9002           if test -z "$defaultval"; then
9003               if test x"$enablestring" = xdisable; then
9004                   defaultval=yes
9005               else
9006                   defaultval=no
9007               fi
9008           fi
9009
9010           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9011 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9012           # Check whether --enable-loggui was given.
9013 if test "${enable_loggui+set}" = set; then
9014   enableval=$enable_loggui;
9015                           if test "$enableval" = yes; then
9016                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9017                           else
9018                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9019                           fi
9020
9021 else
9022
9023                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9024
9025 fi
9026
9027
9028           eval "$wx_cv_use_loggui"
9029
9030           if test x"$enablestring" = xdisable; then
9031             if test $wxUSE_LOGGUI = no; then
9032               result=yes
9033             else
9034               result=no
9035             fi
9036           else
9037             result=$wxUSE_LOGGUI
9038           fi
9039
9040           { echo "$as_me:$LINENO: result: $result" >&5
9041 echo "${ECHO_T}$result" >&6; }
9042
9043
9044           enablestring=
9045           defaultval=$wxUSE_ALL_FEATURES
9046           if test -z "$defaultval"; then
9047               if test x"$enablestring" = xdisable; then
9048                   defaultval=yes
9049               else
9050                   defaultval=no
9051               fi
9052           fi
9053
9054           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9055 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9056           # Check whether --enable-logwin was given.
9057 if test "${enable_logwin+set}" = set; then
9058   enableval=$enable_logwin;
9059                           if test "$enableval" = yes; then
9060                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9061                           else
9062                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9063                           fi
9064
9065 else
9066
9067                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9068
9069 fi
9070
9071
9072           eval "$wx_cv_use_logwin"
9073
9074           if test x"$enablestring" = xdisable; then
9075             if test $wxUSE_LOGWINDOW = no; then
9076               result=yes
9077             else
9078               result=no
9079             fi
9080           else
9081             result=$wxUSE_LOGWINDOW
9082           fi
9083
9084           { echo "$as_me:$LINENO: result: $result" >&5
9085 echo "${ECHO_T}$result" >&6; }
9086
9087
9088           enablestring=
9089           defaultval=$wxUSE_ALL_FEATURES
9090           if test -z "$defaultval"; then
9091               if test x"$enablestring" = xdisable; then
9092                   defaultval=yes
9093               else
9094                   defaultval=no
9095               fi
9096           fi
9097
9098           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9099 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9100           # Check whether --enable-logdialog was given.
9101 if test "${enable_logdialog+set}" = set; then
9102   enableval=$enable_logdialog;
9103                           if test "$enableval" = yes; then
9104                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9105                           else
9106                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9107                           fi
9108
9109 else
9110
9111                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9112
9113 fi
9114
9115
9116           eval "$wx_cv_use_logdialog"
9117
9118           if test x"$enablestring" = xdisable; then
9119             if test $wxUSE_LOGDIALOG = no; then
9120               result=yes
9121             else
9122               result=no
9123             fi
9124           else
9125             result=$wxUSE_LOGDIALOG
9126           fi
9127
9128           { echo "$as_me:$LINENO: result: $result" >&5
9129 echo "${ECHO_T}$result" >&6; }
9130
9131
9132           enablestring=
9133           defaultval=$wxUSE_ALL_FEATURES
9134           if test -z "$defaultval"; then
9135               if test x"$enablestring" = xdisable; then
9136                   defaultval=yes
9137               else
9138                   defaultval=no
9139               fi
9140           fi
9141
9142           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9143 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9144           # Check whether --enable-mdi was given.
9145 if test "${enable_mdi+set}" = set; then
9146   enableval=$enable_mdi;
9147                           if test "$enableval" = yes; then
9148                             wx_cv_use_mdi='wxUSE_MDI=yes'
9149                           else
9150                             wx_cv_use_mdi='wxUSE_MDI=no'
9151                           fi
9152
9153 else
9154
9155                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9156
9157 fi
9158
9159
9160           eval "$wx_cv_use_mdi"
9161
9162           if test x"$enablestring" = xdisable; then
9163             if test $wxUSE_MDI = no; then
9164               result=yes
9165             else
9166               result=no
9167             fi
9168           else
9169             result=$wxUSE_MDI
9170           fi
9171
9172           { echo "$as_me:$LINENO: result: $result" >&5
9173 echo "${ECHO_T}$result" >&6; }
9174
9175
9176           enablestring=
9177           defaultval=$wxUSE_ALL_FEATURES
9178           if test -z "$defaultval"; then
9179               if test x"$enablestring" = xdisable; then
9180                   defaultval=yes
9181               else
9182                   defaultval=no
9183               fi
9184           fi
9185
9186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9187 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9188           # Check whether --enable-mdidoc was given.
9189 if test "${enable_mdidoc+set}" = set; then
9190   enableval=$enable_mdidoc;
9191                           if test "$enableval" = yes; then
9192                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9193                           else
9194                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9195                           fi
9196
9197 else
9198
9199                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9200
9201 fi
9202
9203
9204           eval "$wx_cv_use_mdidoc"
9205
9206           if test x"$enablestring" = xdisable; then
9207             if test $wxUSE_MDI_ARCHITECTURE = no; then
9208               result=yes
9209             else
9210               result=no
9211             fi
9212           else
9213             result=$wxUSE_MDI_ARCHITECTURE
9214           fi
9215
9216           { echo "$as_me:$LINENO: result: $result" >&5
9217 echo "${ECHO_T}$result" >&6; }
9218
9219
9220           enablestring=
9221           defaultval=$wxUSE_ALL_FEATURES
9222           if test -z "$defaultval"; then
9223               if test x"$enablestring" = xdisable; then
9224                   defaultval=yes
9225               else
9226                   defaultval=no
9227               fi
9228           fi
9229
9230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9231 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9232           # Check whether --enable-mediactrl was given.
9233 if test "${enable_mediactrl+set}" = set; then
9234   enableval=$enable_mediactrl;
9235                           if test "$enableval" = yes; then
9236                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9237                           else
9238                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9239                           fi
9240
9241 else
9242
9243                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9244
9245 fi
9246
9247
9248           eval "$wx_cv_use_mediactrl"
9249
9250           if test x"$enablestring" = xdisable; then
9251             if test $wxUSE_MEDIACTRL = no; then
9252               result=yes
9253             else
9254               result=no
9255             fi
9256           else
9257             result=$wxUSE_MEDIACTRL
9258           fi
9259
9260           { echo "$as_me:$LINENO: result: $result" >&5
9261 echo "${ECHO_T}$result" >&6; }
9262
9263
9264           enablestring=
9265           defaultval=$wxUSE_ALL_FEATURES
9266           if test -z "$defaultval"; then
9267               if test x"$enablestring" = xdisable; then
9268                   defaultval=yes
9269               else
9270                   defaultval=no
9271               fi
9272           fi
9273
9274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9275 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9276           # Check whether --enable-gstreamer8 was given.
9277 if test "${enable_gstreamer8+set}" = set; then
9278   enableval=$enable_gstreamer8;
9279                           if test "$enableval" = yes; then
9280                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9281                           else
9282                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9283                           fi
9284
9285 else
9286
9287                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9288
9289 fi
9290
9291
9292           eval "$wx_cv_use_gstreamer8"
9293
9294           if test x"$enablestring" = xdisable; then
9295             if test $wxUSE_GSTREAMER8 = no; then
9296               result=yes
9297             else
9298               result=no
9299             fi
9300           else
9301             result=$wxUSE_GSTREAMER8
9302           fi
9303
9304           { echo "$as_me:$LINENO: result: $result" >&5
9305 echo "${ECHO_T}$result" >&6; }
9306
9307
9308           enablestring=
9309           defaultval=$wxUSE_ALL_FEATURES
9310           if test -z "$defaultval"; then
9311               if test x"$enablestring" = xdisable; then
9312                   defaultval=yes
9313               else
9314                   defaultval=no
9315               fi
9316           fi
9317
9318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9319 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9320           # Check whether --enable-webkit was given.
9321 if test "${enable_webkit+set}" = set; then
9322   enableval=$enable_webkit;
9323                           if test "$enableval" = yes; then
9324                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9325                           else
9326                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9327                           fi
9328
9329 else
9330
9331                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9332
9333 fi
9334
9335
9336           eval "$wx_cv_use_webkit"
9337
9338           if test x"$enablestring" = xdisable; then
9339             if test $wxUSE_WEBKIT = no; then
9340               result=yes
9341             else
9342               result=no
9343             fi
9344           else
9345             result=$wxUSE_WEBKIT
9346           fi
9347
9348           { echo "$as_me:$LINENO: result: $result" >&5
9349 echo "${ECHO_T}$result" >&6; }
9350
9351
9352           enablestring=
9353           defaultval=$wxUSE_ALL_FEATURES
9354           if test -z "$defaultval"; then
9355               if test x"$enablestring" = xdisable; then
9356                   defaultval=yes
9357               else
9358                   defaultval=no
9359               fi
9360           fi
9361
9362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9363 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9364           # Check whether --enable-richtext was given.
9365 if test "${enable_richtext+set}" = set; then
9366   enableval=$enable_richtext;
9367                           if test "$enableval" = yes; then
9368                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9369                           else
9370                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9371                           fi
9372
9373 else
9374
9375                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9376
9377 fi
9378
9379
9380           eval "$wx_cv_use_richtext"
9381
9382           if test x"$enablestring" = xdisable; then
9383             if test $wxUSE_RICHTEXT = no; then
9384               result=yes
9385             else
9386               result=no
9387             fi
9388           else
9389             result=$wxUSE_RICHTEXT
9390           fi
9391
9392           { echo "$as_me:$LINENO: result: $result" >&5
9393 echo "${ECHO_T}$result" >&6; }
9394
9395
9396           enablestring=
9397           defaultval=$wxUSE_ALL_FEATURES
9398           if test -z "$defaultval"; then
9399               if test x"$enablestring" = xdisable; then
9400                   defaultval=yes
9401               else
9402                   defaultval=no
9403               fi
9404           fi
9405
9406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9407 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9408           # Check whether --enable-postscript was given.
9409 if test "${enable_postscript+set}" = set; then
9410   enableval=$enable_postscript;
9411                           if test "$enableval" = yes; then
9412                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9413                           else
9414                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9415                           fi
9416
9417 else
9418
9419                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9420
9421 fi
9422
9423
9424           eval "$wx_cv_use_postscript"
9425
9426           if test x"$enablestring" = xdisable; then
9427             if test $wxUSE_POSTSCRIPT = no; then
9428               result=yes
9429             else
9430               result=no
9431             fi
9432           else
9433             result=$wxUSE_POSTSCRIPT
9434           fi
9435
9436           { echo "$as_me:$LINENO: result: $result" >&5
9437 echo "${ECHO_T}$result" >&6; }
9438
9439
9440           enablestring=
9441           defaultval=$wxUSE_ALL_FEATURES
9442           if test -z "$defaultval"; then
9443               if test x"$enablestring" = xdisable; then
9444                   defaultval=yes
9445               else
9446                   defaultval=no
9447               fi
9448           fi
9449
9450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9451 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9452           # Check whether --enable-printarch was given.
9453 if test "${enable_printarch+set}" = set; then
9454   enableval=$enable_printarch;
9455                           if test "$enableval" = yes; then
9456                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9457                           else
9458                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9459                           fi
9460
9461 else
9462
9463                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9464
9465 fi
9466
9467
9468           eval "$wx_cv_use_printarch"
9469
9470           if test x"$enablestring" = xdisable; then
9471             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9472               result=yes
9473             else
9474               result=no
9475             fi
9476           else
9477             result=$wxUSE_PRINTING_ARCHITECTURE
9478           fi
9479
9480           { echo "$as_me:$LINENO: result: $result" >&5
9481 echo "${ECHO_T}$result" >&6; }
9482
9483
9484           enablestring=
9485           defaultval=$wxUSE_ALL_FEATURES
9486           if test -z "$defaultval"; then
9487               if test x"$enablestring" = xdisable; then
9488                   defaultval=yes
9489               else
9490                   defaultval=no
9491               fi
9492           fi
9493
9494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9495 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9496           # Check whether --enable-svg was given.
9497 if test "${enable_svg+set}" = set; then
9498   enableval=$enable_svg;
9499                           if test "$enableval" = yes; then
9500                             wx_cv_use_svg='wxUSE_SVG=yes'
9501                           else
9502                             wx_cv_use_svg='wxUSE_SVG=no'
9503                           fi
9504
9505 else
9506
9507                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9508
9509 fi
9510
9511
9512           eval "$wx_cv_use_svg"
9513
9514           if test x"$enablestring" = xdisable; then
9515             if test $wxUSE_SVG = no; then
9516               result=yes
9517             else
9518               result=no
9519             fi
9520           else
9521             result=$wxUSE_SVG
9522           fi
9523
9524           { echo "$as_me:$LINENO: result: $result" >&5
9525 echo "${ECHO_T}$result" >&6; }
9526
9527
9528 if test "$wxUSE_MAC" != 1; then
9529
9530           enablestring=
9531           defaultval=$wxUSE_ALL_FEATURES
9532           if test -z "$defaultval"; then
9533               if test x"$enablestring" = xdisable; then
9534                   defaultval=yes
9535               else
9536                   defaultval=no
9537               fi
9538           fi
9539
9540           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9541 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9542           # Check whether --enable-graphics_ctx was given.
9543 if test "${enable_graphics_ctx+set}" = set; then
9544   enableval=$enable_graphics_ctx;
9545                           if test "$enableval" = yes; then
9546                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9547                           else
9548                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9549                           fi
9550
9551 else
9552
9553                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9554
9555 fi
9556
9557
9558           eval "$wx_cv_use_graphics_ctx"
9559
9560           if test x"$enablestring" = xdisable; then
9561             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9562               result=yes
9563             else
9564               result=no
9565             fi
9566           else
9567             result=$wxUSE_GRAPHICS_CONTEXT
9568           fi
9569
9570           { echo "$as_me:$LINENO: result: $result" >&5
9571 echo "${ECHO_T}$result" >&6; }
9572
9573 fi
9574
9575
9576
9577           enablestring=
9578           defaultval=$wxUSE_ALL_FEATURES
9579           if test -z "$defaultval"; then
9580               if test x"$enablestring" = xdisable; then
9581                   defaultval=yes
9582               else
9583                   defaultval=no
9584               fi
9585           fi
9586
9587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9588 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9589           # Check whether --enable-clipboard was given.
9590 if test "${enable_clipboard+set}" = set; then
9591   enableval=$enable_clipboard;
9592                           if test "$enableval" = yes; then
9593                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9594                           else
9595                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9596                           fi
9597
9598 else
9599
9600                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9601
9602 fi
9603
9604
9605           eval "$wx_cv_use_clipboard"
9606
9607           if test x"$enablestring" = xdisable; then
9608             if test $wxUSE_CLIPBOARD = no; then
9609               result=yes
9610             else
9611               result=no
9612             fi
9613           else
9614             result=$wxUSE_CLIPBOARD
9615           fi
9616
9617           { echo "$as_me:$LINENO: result: $result" >&5
9618 echo "${ECHO_T}$result" >&6; }
9619
9620
9621           enablestring=
9622           defaultval=$wxUSE_ALL_FEATURES
9623           if test -z "$defaultval"; then
9624               if test x"$enablestring" = xdisable; then
9625                   defaultval=yes
9626               else
9627                   defaultval=no
9628               fi
9629           fi
9630
9631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9632 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9633           # Check whether --enable-dnd was given.
9634 if test "${enable_dnd+set}" = set; then
9635   enableval=$enable_dnd;
9636                           if test "$enableval" = yes; then
9637                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9638                           else
9639                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9640                           fi
9641
9642 else
9643
9644                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9645
9646 fi
9647
9648
9649           eval "$wx_cv_use_dnd"
9650
9651           if test x"$enablestring" = xdisable; then
9652             if test $wxUSE_DRAG_AND_DROP = no; then
9653               result=yes
9654             else
9655               result=no
9656             fi
9657           else
9658             result=$wxUSE_DRAG_AND_DROP
9659           fi
9660
9661           { echo "$as_me:$LINENO: result: $result" >&5
9662 echo "${ECHO_T}$result" >&6; }
9663
9664
9665           enablestring=
9666           defaultval=$wxUSE_ALL_FEATURES
9667           if test -z "$defaultval"; then
9668               if test x"$enablestring" = xdisable; then
9669                   defaultval=yes
9670               else
9671                   defaultval=no
9672               fi
9673           fi
9674
9675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9676 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9677           # Check whether --enable-metafile was given.
9678 if test "${enable_metafile+set}" = set; then
9679   enableval=$enable_metafile;
9680                           if test "$enableval" = yes; then
9681                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9682                           else
9683                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9684                           fi
9685
9686 else
9687
9688                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9689
9690 fi
9691
9692
9693           eval "$wx_cv_use_metafile"
9694
9695           if test x"$enablestring" = xdisable; then
9696             if test $wxUSE_METAFILE = no; then
9697               result=yes
9698             else
9699               result=no
9700             fi
9701           else
9702             result=$wxUSE_METAFILE
9703           fi
9704
9705           { echo "$as_me:$LINENO: result: $result" >&5
9706 echo "${ECHO_T}$result" >&6; }
9707
9708
9709
9710 DEFAULT_wxUSE_CONTROLS=none
9711
9712           enablestring=disable
9713           defaultval=
9714           if test -z "$defaultval"; then
9715               if test x"$enablestring" = xdisable; then
9716                   defaultval=yes
9717               else
9718                   defaultval=no
9719               fi
9720           fi
9721
9722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9723 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9724           # Check whether --enable-controls was given.
9725 if test "${enable_controls+set}" = set; then
9726   enableval=$enable_controls;
9727                           if test "$enableval" = yes; then
9728                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9729                           else
9730                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9731                           fi
9732
9733 else
9734
9735                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9736
9737 fi
9738
9739
9740           eval "$wx_cv_use_controls"
9741
9742           if test x"$enablestring" = xdisable; then
9743             if test $wxUSE_CONTROLS = no; then
9744               result=yes
9745             else
9746               result=no
9747             fi
9748           else
9749             result=$wxUSE_CONTROLS
9750           fi
9751
9752           { echo "$as_me:$LINENO: result: $result" >&5
9753 echo "${ECHO_T}$result" >&6; }
9754
9755
9756 if test "$wxUSE_CONTROLS" = "no"; then
9757     DEFAULT_wxUSE_ACCEL=no
9758     DEFAULT_wxUSE_ANIMATIONCTRL=no
9759     DEFAULT_wxUSE_BMPBUTTON=no
9760     DEFAULT_wxUSE_BUTTON=no
9761     DEFAULT_wxUSE_CALCTRL=no
9762     DEFAULT_wxUSE_CARET=no
9763     DEFAULT_wxUSE_CHECKBOX=no
9764     DEFAULT_wxUSE_CHECKLISTBOX=no
9765     DEFAULT_wxUSE_CHOICE=no
9766     DEFAULT_wxUSE_CHOICEBOOK=no
9767     DEFAULT_wxUSE_COLLPANE=no
9768     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9769     DEFAULT_wxUSE_COMBOBOX=no
9770     DEFAULT_wxUSE_COMBOBOX=no
9771     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9772     DEFAULT_wxUSE_DATAVIEWCTRL=no
9773     DEFAULT_wxUSE_DATEPICKCTRL=no
9774     DEFAULT_wxUSE_DETECT_SM=no
9775     DEFAULT_wxUSE_DIRPICKERCTRL=no
9776     DEFAULT_wxUSE_DISPLAY=no
9777     DEFAULT_wxUSE_FILECTRL=no
9778     DEFAULT_wxUSE_FILEPICKERCTRL=no
9779     DEFAULT_wxUSE_FONTPICKERCTRL=no
9780     DEFAULT_wxUSE_GAUGE=no
9781     DEFAULT_wxUSE_GRID=no
9782     DEFAULT_wxUSE_HEADERCTRL=no
9783     DEFAULT_wxUSE_HYPERLINKCTRL=no
9784     DEFAULT_wxUSE_IMAGLIST=no
9785     DEFAULT_wxUSE_LISTBOOK=no
9786     DEFAULT_wxUSE_LISTBOX=no
9787     DEFAULT_wxUSE_LISTCTRL=no
9788     DEFAULT_wxUSE_MARKUP=no
9789     DEFAULT_wxUSE_NOTEBOOK=no
9790     DEFAULT_wxUSE_POPUPWIN=no
9791     DEFAULT_wxUSE_RADIOBOX=no
9792     DEFAULT_wxUSE_RADIOBTN=no
9793     DEFAULT_wxUSE_RICHMSGDLG=no
9794     DEFAULT_wxUSE_REARRANGECTRL=no
9795     DEFAULT_wxUSE_SASH=no
9796     DEFAULT_wxUSE_SCROLLBAR=no
9797     DEFAULT_wxUSE_SEARCHCTRL=no
9798     DEFAULT_wxUSE_SLIDER=no
9799     DEFAULT_wxUSE_SPINBTN=no
9800     DEFAULT_wxUSE_SPINCTRL=no
9801     DEFAULT_wxUSE_SPLITTER=no
9802     DEFAULT_wxUSE_STATBMP=no
9803     DEFAULT_wxUSE_STATBOX=no
9804     DEFAULT_wxUSE_STATLINE=no
9805     DEFAULT_wxUSE_STATUSBAR=no
9806     DEFAULT_wxUSE_TIPWINDOW=no
9807     DEFAULT_wxUSE_TOGGLEBTN=no
9808     DEFAULT_wxUSE_TOOLBAR=no
9809     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9810     DEFAULT_wxUSE_TOOLBOOK=no
9811     DEFAULT_wxUSE_TOOLTIPS=no
9812     DEFAULT_wxUSE_TREEBOOK=no
9813     DEFAULT_wxUSE_TREECTRL=no
9814 fi
9815
9816
9817           enablestring=
9818           defaultval=$wxUSE_ALL_FEATURES
9819           if test -z "$defaultval"; then
9820               if test x"$enablestring" = xdisable; then
9821                   defaultval=yes
9822               else
9823                   defaultval=no
9824               fi
9825           fi
9826
9827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9828 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9829           # Check whether --enable-markup was given.
9830 if test "${enable_markup+set}" = set; then
9831   enableval=$enable_markup;
9832                           if test "$enableval" = yes; then
9833                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9834                           else
9835                             wx_cv_use_markup='wxUSE_MARKUP=no'
9836                           fi
9837
9838 else
9839
9840                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9841
9842 fi
9843
9844
9845           eval "$wx_cv_use_markup"
9846
9847           if test x"$enablestring" = xdisable; then
9848             if test $wxUSE_MARKUP = no; then
9849               result=yes
9850             else
9851               result=no
9852             fi
9853           else
9854             result=$wxUSE_MARKUP
9855           fi
9856
9857           { echo "$as_me:$LINENO: result: $result" >&5
9858 echo "${ECHO_T}$result" >&6; }
9859
9860
9861
9862           enablestring=
9863           defaultval=$wxUSE_ALL_FEATURES
9864           if test -z "$defaultval"; then
9865               if test x"$enablestring" = xdisable; then
9866                   defaultval=yes
9867               else
9868                   defaultval=no
9869               fi
9870           fi
9871
9872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9873 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9874           # Check whether --enable-accel was given.
9875 if test "${enable_accel+set}" = set; then
9876   enableval=$enable_accel;
9877                           if test "$enableval" = yes; then
9878                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9879                           else
9880                             wx_cv_use_accel='wxUSE_ACCEL=no'
9881                           fi
9882
9883 else
9884
9885                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9886
9887 fi
9888
9889
9890           eval "$wx_cv_use_accel"
9891
9892           if test x"$enablestring" = xdisable; then
9893             if test $wxUSE_ACCEL = no; then
9894               result=yes
9895             else
9896               result=no
9897             fi
9898           else
9899             result=$wxUSE_ACCEL
9900           fi
9901
9902           { echo "$as_me:$LINENO: result: $result" >&5
9903 echo "${ECHO_T}$result" >&6; }
9904
9905
9906           enablestring=
9907           defaultval=$wxUSE_ALL_FEATURES
9908           if test -z "$defaultval"; then
9909               if test x"$enablestring" = xdisable; then
9910                   defaultval=yes
9911               else
9912                   defaultval=no
9913               fi
9914           fi
9915
9916           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9917 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9918           # Check whether --enable-animatectrl was given.
9919 if test "${enable_animatectrl+set}" = set; then
9920   enableval=$enable_animatectrl;
9921                           if test "$enableval" = yes; then
9922                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9923                           else
9924                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9925                           fi
9926
9927 else
9928
9929                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9930
9931 fi
9932
9933
9934           eval "$wx_cv_use_animatectrl"
9935
9936           if test x"$enablestring" = xdisable; then
9937             if test $wxUSE_ANIMATIONCTRL = no; then
9938               result=yes
9939             else
9940               result=no
9941             fi
9942           else
9943             result=$wxUSE_ANIMATIONCTRL
9944           fi
9945
9946           { echo "$as_me:$LINENO: result: $result" >&5
9947 echo "${ECHO_T}$result" >&6; }
9948
9949
9950           enablestring=
9951           defaultval=$wxUSE_ALL_FEATURES
9952           if test -z "$defaultval"; then
9953               if test x"$enablestring" = xdisable; then
9954                   defaultval=yes
9955               else
9956                   defaultval=no
9957               fi
9958           fi
9959
9960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
9961 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
9962           # Check whether --enable-artstd was given.
9963 if test "${enable_artstd+set}" = set; then
9964   enableval=$enable_artstd;
9965                           if test "$enableval" = yes; then
9966                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
9967                           else
9968                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
9969                           fi
9970
9971 else
9972
9973                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
9974
9975 fi
9976
9977
9978           eval "$wx_cv_use_artstd"
9979
9980           if test x"$enablestring" = xdisable; then
9981             if test $wxUSE_ARTPROVIDER_STD = no; then
9982               result=yes
9983             else
9984               result=no
9985             fi
9986           else
9987             result=$wxUSE_ARTPROVIDER_STD
9988           fi
9989
9990           { echo "$as_me:$LINENO: result: $result" >&5
9991 echo "${ECHO_T}$result" >&6; }
9992
9993
9994           enablestring=
9995           defaultval=$wxUSE_ALL_FEATURES
9996           if test -z "$defaultval"; then
9997               if test x"$enablestring" = xdisable; then
9998                   defaultval=yes
9999               else
10000                   defaultval=no
10001               fi
10002           fi
10003
10004           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10005 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10006           # Check whether --enable-arttango was given.
10007 if test "${enable_arttango+set}" = set; then
10008   enableval=$enable_arttango;
10009                           if test "$enableval" = yes; then
10010                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10011                           else
10012                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10013                           fi
10014
10015 else
10016
10017                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10018
10019 fi
10020
10021
10022           eval "$wx_cv_use_arttango"
10023
10024           if test x"$enablestring" = xdisable; then
10025             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10026               result=yes
10027             else
10028               result=no
10029             fi
10030           else
10031             result=$wxUSE_ARTPROVIDER_TANGO
10032           fi
10033
10034           { echo "$as_me:$LINENO: result: $result" >&5
10035 echo "${ECHO_T}$result" >&6; }
10036
10037
10038           enablestring=
10039           defaultval=$wxUSE_ALL_FEATURES
10040           if test -z "$defaultval"; then
10041               if test x"$enablestring" = xdisable; then
10042                   defaultval=yes
10043               else
10044                   defaultval=no
10045               fi
10046           fi
10047
10048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10049 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10050           # Check whether --enable-bmpbutton was given.
10051 if test "${enable_bmpbutton+set}" = set; then
10052   enableval=$enable_bmpbutton;
10053                           if test "$enableval" = yes; then
10054                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10055                           else
10056                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10057                           fi
10058
10059 else
10060
10061                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10062
10063 fi
10064
10065
10066           eval "$wx_cv_use_bmpbutton"
10067
10068           if test x"$enablestring" = xdisable; then
10069             if test $wxUSE_BMPBUTTON = no; then
10070               result=yes
10071             else
10072               result=no
10073             fi
10074           else
10075             result=$wxUSE_BMPBUTTON
10076           fi
10077
10078           { echo "$as_me:$LINENO: result: $result" >&5
10079 echo "${ECHO_T}$result" >&6; }
10080
10081
10082           enablestring=
10083           defaultval=$wxUSE_ALL_FEATURES
10084           if test -z "$defaultval"; then
10085               if test x"$enablestring" = xdisable; then
10086                   defaultval=yes
10087               else
10088                   defaultval=no
10089               fi
10090           fi
10091
10092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10093 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10094           # Check whether --enable-bmpcombobox was given.
10095 if test "${enable_bmpcombobox+set}" = set; then
10096   enableval=$enable_bmpcombobox;
10097                           if test "$enableval" = yes; then
10098                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10099                           else
10100                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10101                           fi
10102
10103 else
10104
10105                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10106
10107 fi
10108
10109
10110           eval "$wx_cv_use_bmpcombobox"
10111
10112           if test x"$enablestring" = xdisable; then
10113             if test $wxUSE_BITMAPCOMBOBOX = no; then
10114               result=yes
10115             else
10116               result=no
10117             fi
10118           else
10119             result=$wxUSE_BITMAPCOMBOBOX
10120           fi
10121
10122           { echo "$as_me:$LINENO: result: $result" >&5
10123 echo "${ECHO_T}$result" >&6; }
10124
10125
10126           enablestring=
10127           defaultval=$wxUSE_ALL_FEATURES
10128           if test -z "$defaultval"; then
10129               if test x"$enablestring" = xdisable; then
10130                   defaultval=yes
10131               else
10132                   defaultval=no
10133               fi
10134           fi
10135
10136           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10137 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10138           # Check whether --enable-button was given.
10139 if test "${enable_button+set}" = set; then
10140   enableval=$enable_button;
10141                           if test "$enableval" = yes; then
10142                             wx_cv_use_button='wxUSE_BUTTON=yes'
10143                           else
10144                             wx_cv_use_button='wxUSE_BUTTON=no'
10145                           fi
10146
10147 else
10148
10149                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10150
10151 fi
10152
10153
10154           eval "$wx_cv_use_button"
10155
10156           if test x"$enablestring" = xdisable; then
10157             if test $wxUSE_BUTTON = no; then
10158               result=yes
10159             else
10160               result=no
10161             fi
10162           else
10163             result=$wxUSE_BUTTON
10164           fi
10165
10166           { echo "$as_me:$LINENO: result: $result" >&5
10167 echo "${ECHO_T}$result" >&6; }
10168
10169
10170           enablestring=
10171           defaultval=$wxUSE_ALL_FEATURES
10172           if test -z "$defaultval"; then
10173               if test x"$enablestring" = xdisable; then
10174                   defaultval=yes
10175               else
10176                   defaultval=no
10177               fi
10178           fi
10179
10180           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10181 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10182           # Check whether --enable-calendar was given.
10183 if test "${enable_calendar+set}" = set; then
10184   enableval=$enable_calendar;
10185                           if test "$enableval" = yes; then
10186                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10187                           else
10188                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10189                           fi
10190
10191 else
10192
10193                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10194
10195 fi
10196
10197
10198           eval "$wx_cv_use_calendar"
10199
10200           if test x"$enablestring" = xdisable; then
10201             if test $wxUSE_CALCTRL = no; then
10202               result=yes
10203             else
10204               result=no
10205             fi
10206           else
10207             result=$wxUSE_CALCTRL
10208           fi
10209
10210           { echo "$as_me:$LINENO: result: $result" >&5
10211 echo "${ECHO_T}$result" >&6; }
10212
10213
10214           enablestring=
10215           defaultval=$wxUSE_ALL_FEATURES
10216           if test -z "$defaultval"; then
10217               if test x"$enablestring" = xdisable; then
10218                   defaultval=yes
10219               else
10220                   defaultval=no
10221               fi
10222           fi
10223
10224           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10225 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10226           # Check whether --enable-caret was given.
10227 if test "${enable_caret+set}" = set; then
10228   enableval=$enable_caret;
10229                           if test "$enableval" = yes; then
10230                             wx_cv_use_caret='wxUSE_CARET=yes'
10231                           else
10232                             wx_cv_use_caret='wxUSE_CARET=no'
10233                           fi
10234
10235 else
10236
10237                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10238
10239 fi
10240
10241
10242           eval "$wx_cv_use_caret"
10243
10244           if test x"$enablestring" = xdisable; then
10245             if test $wxUSE_CARET = no; then
10246               result=yes
10247             else
10248               result=no
10249             fi
10250           else
10251             result=$wxUSE_CARET
10252           fi
10253
10254           { echo "$as_me:$LINENO: result: $result" >&5
10255 echo "${ECHO_T}$result" >&6; }
10256
10257
10258           enablestring=
10259           defaultval=$wxUSE_ALL_FEATURES
10260           if test -z "$defaultval"; then
10261               if test x"$enablestring" = xdisable; then
10262                   defaultval=yes
10263               else
10264                   defaultval=no
10265               fi
10266           fi
10267
10268           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10269 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10270           # Check whether --enable-checkbox was given.
10271 if test "${enable_checkbox+set}" = set; then
10272   enableval=$enable_checkbox;
10273                           if test "$enableval" = yes; then
10274                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10275                           else
10276                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10277                           fi
10278
10279 else
10280
10281                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10282
10283 fi
10284
10285
10286           eval "$wx_cv_use_checkbox"
10287
10288           if test x"$enablestring" = xdisable; then
10289             if test $wxUSE_CHECKBOX = no; then
10290               result=yes
10291             else
10292               result=no
10293             fi
10294           else
10295             result=$wxUSE_CHECKBOX
10296           fi
10297
10298           { echo "$as_me:$LINENO: result: $result" >&5
10299 echo "${ECHO_T}$result" >&6; }
10300
10301
10302           enablestring=
10303           defaultval=$wxUSE_ALL_FEATURES
10304           if test -z "$defaultval"; then
10305               if test x"$enablestring" = xdisable; then
10306                   defaultval=yes
10307               else
10308                   defaultval=no
10309               fi
10310           fi
10311
10312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10313 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10314           # Check whether --enable-checklst was given.
10315 if test "${enable_checklst+set}" = set; then
10316   enableval=$enable_checklst;
10317                           if test "$enableval" = yes; then
10318                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10319                           else
10320                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10321                           fi
10322
10323 else
10324
10325                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10326
10327 fi
10328
10329
10330           eval "$wx_cv_use_checklst"
10331
10332           if test x"$enablestring" = xdisable; then
10333             if test $wxUSE_CHECKLST = no; then
10334               result=yes
10335             else
10336               result=no
10337             fi
10338           else
10339             result=$wxUSE_CHECKLST
10340           fi
10341
10342           { echo "$as_me:$LINENO: result: $result" >&5
10343 echo "${ECHO_T}$result" >&6; }
10344
10345
10346           enablestring=
10347           defaultval=$wxUSE_ALL_FEATURES
10348           if test -z "$defaultval"; then
10349               if test x"$enablestring" = xdisable; then
10350                   defaultval=yes
10351               else
10352                   defaultval=no
10353               fi
10354           fi
10355
10356           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10357 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10358           # Check whether --enable-choice was given.
10359 if test "${enable_choice+set}" = set; then
10360   enableval=$enable_choice;
10361                           if test "$enableval" = yes; then
10362                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10363                           else
10364                             wx_cv_use_choice='wxUSE_CHOICE=no'
10365                           fi
10366
10367 else
10368
10369                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10370
10371 fi
10372
10373
10374           eval "$wx_cv_use_choice"
10375
10376           if test x"$enablestring" = xdisable; then
10377             if test $wxUSE_CHOICE = no; then
10378               result=yes
10379             else
10380               result=no
10381             fi
10382           else
10383             result=$wxUSE_CHOICE
10384           fi
10385
10386           { echo "$as_me:$LINENO: result: $result" >&5
10387 echo "${ECHO_T}$result" >&6; }
10388
10389
10390           enablestring=
10391           defaultval=$wxUSE_ALL_FEATURES
10392           if test -z "$defaultval"; then
10393               if test x"$enablestring" = xdisable; then
10394                   defaultval=yes
10395               else
10396                   defaultval=no
10397               fi
10398           fi
10399
10400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10401 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10402           # Check whether --enable-choicebook was given.
10403 if test "${enable_choicebook+set}" = set; then
10404   enableval=$enable_choicebook;
10405                           if test "$enableval" = yes; then
10406                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10407                           else
10408                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10409                           fi
10410
10411 else
10412
10413                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10414
10415 fi
10416
10417
10418           eval "$wx_cv_use_choicebook"
10419
10420           if test x"$enablestring" = xdisable; then
10421             if test $wxUSE_CHOICEBOOK = no; then
10422               result=yes
10423             else
10424               result=no
10425             fi
10426           else
10427             result=$wxUSE_CHOICEBOOK
10428           fi
10429
10430           { echo "$as_me:$LINENO: result: $result" >&5
10431 echo "${ECHO_T}$result" >&6; }
10432
10433
10434           enablestring=
10435           defaultval=$wxUSE_ALL_FEATURES
10436           if test -z "$defaultval"; then
10437               if test x"$enablestring" = xdisable; then
10438                   defaultval=yes
10439               else
10440                   defaultval=no
10441               fi
10442           fi
10443
10444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10445 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10446           # Check whether --enable-collpane was given.
10447 if test "${enable_collpane+set}" = set; then
10448   enableval=$enable_collpane;
10449                           if test "$enableval" = yes; then
10450                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10451                           else
10452                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10453                           fi
10454
10455 else
10456
10457                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10458
10459 fi
10460
10461
10462           eval "$wx_cv_use_collpane"
10463
10464           if test x"$enablestring" = xdisable; then
10465             if test $wxUSE_COLLPANE = no; then
10466               result=yes
10467             else
10468               result=no
10469             fi
10470           else
10471             result=$wxUSE_COLLPANE
10472           fi
10473
10474           { echo "$as_me:$LINENO: result: $result" >&5
10475 echo "${ECHO_T}$result" >&6; }
10476
10477
10478           enablestring=
10479           defaultval=$wxUSE_ALL_FEATURES
10480           if test -z "$defaultval"; then
10481               if test x"$enablestring" = xdisable; then
10482                   defaultval=yes
10483               else
10484                   defaultval=no
10485               fi
10486           fi
10487
10488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10489 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10490           # Check whether --enable-colourpicker was given.
10491 if test "${enable_colourpicker+set}" = set; then
10492   enableval=$enable_colourpicker;
10493                           if test "$enableval" = yes; then
10494                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10495                           else
10496                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10497                           fi
10498
10499 else
10500
10501                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10502
10503 fi
10504
10505
10506           eval "$wx_cv_use_colourpicker"
10507
10508           if test x"$enablestring" = xdisable; then
10509             if test $wxUSE_COLOURPICKERCTRL = no; then
10510               result=yes
10511             else
10512               result=no
10513             fi
10514           else
10515             result=$wxUSE_COLOURPICKERCTRL
10516           fi
10517
10518           { echo "$as_me:$LINENO: result: $result" >&5
10519 echo "${ECHO_T}$result" >&6; }
10520
10521
10522           enablestring=
10523           defaultval=$wxUSE_ALL_FEATURES
10524           if test -z "$defaultval"; then
10525               if test x"$enablestring" = xdisable; then
10526                   defaultval=yes
10527               else
10528                   defaultval=no
10529               fi
10530           fi
10531
10532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10533 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10534           # Check whether --enable-combobox was given.
10535 if test "${enable_combobox+set}" = set; then
10536   enableval=$enable_combobox;
10537                           if test "$enableval" = yes; then
10538                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10539                           else
10540                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10541                           fi
10542
10543 else
10544
10545                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10546
10547 fi
10548
10549
10550           eval "$wx_cv_use_combobox"
10551
10552           if test x"$enablestring" = xdisable; then
10553             if test $wxUSE_COMBOBOX = no; then
10554               result=yes
10555             else
10556               result=no
10557             fi
10558           else
10559             result=$wxUSE_COMBOBOX
10560           fi
10561
10562           { echo "$as_me:$LINENO: result: $result" >&5
10563 echo "${ECHO_T}$result" >&6; }
10564
10565
10566           enablestring=
10567           defaultval=$wxUSE_ALL_FEATURES
10568           if test -z "$defaultval"; then
10569               if test x"$enablestring" = xdisable; then
10570                   defaultval=yes
10571               else
10572                   defaultval=no
10573               fi
10574           fi
10575
10576           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10577 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10578           # Check whether --enable-comboctrl was given.
10579 if test "${enable_comboctrl+set}" = set; then
10580   enableval=$enable_comboctrl;
10581                           if test "$enableval" = yes; then
10582                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10583                           else
10584                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10585                           fi
10586
10587 else
10588
10589                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10590
10591 fi
10592
10593
10594           eval "$wx_cv_use_comboctrl"
10595
10596           if test x"$enablestring" = xdisable; then
10597             if test $wxUSE_COMBOCTRL = no; then
10598               result=yes
10599             else
10600               result=no
10601             fi
10602           else
10603             result=$wxUSE_COMBOCTRL
10604           fi
10605
10606           { echo "$as_me:$LINENO: result: $result" >&5
10607 echo "${ECHO_T}$result" >&6; }
10608
10609
10610           enablestring=
10611           defaultval=$wxUSE_ALL_FEATURES
10612           if test -z "$defaultval"; then
10613               if test x"$enablestring" = xdisable; then
10614                   defaultval=yes
10615               else
10616                   defaultval=no
10617               fi
10618           fi
10619
10620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10621 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10622           # Check whether --enable-commandlinkbutton was given.
10623 if test "${enable_commandlinkbutton+set}" = set; then
10624   enableval=$enable_commandlinkbutton;
10625                           if test "$enableval" = yes; then
10626                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10627                           else
10628                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10629                           fi
10630
10631 else
10632
10633                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10634
10635 fi
10636
10637
10638           eval "$wx_cv_use_commandlinkbutton"
10639
10640           if test x"$enablestring" = xdisable; then
10641             if test $wxUSE_COMMANDLINKBUTTON = no; then
10642               result=yes
10643             else
10644               result=no
10645             fi
10646           else
10647             result=$wxUSE_COMMANDLINKBUTTON
10648           fi
10649
10650           { echo "$as_me:$LINENO: result: $result" >&5
10651 echo "${ECHO_T}$result" >&6; }
10652
10653
10654           enablestring=
10655           defaultval=$wxUSE_ALL_FEATURES
10656           if test -z "$defaultval"; then
10657               if test x"$enablestring" = xdisable; then
10658                   defaultval=yes
10659               else
10660                   defaultval=no
10661               fi
10662           fi
10663
10664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10665 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10666           # Check whether --enable-dataviewctrl was given.
10667 if test "${enable_dataviewctrl+set}" = set; then
10668   enableval=$enable_dataviewctrl;
10669                           if test "$enableval" = yes; then
10670                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10671                           else
10672                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10673                           fi
10674
10675 else
10676
10677                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10678
10679 fi
10680
10681
10682           eval "$wx_cv_use_dataviewctrl"
10683
10684           if test x"$enablestring" = xdisable; then
10685             if test $wxUSE_DATAVIEWCTRL = no; then
10686               result=yes
10687             else
10688               result=no
10689             fi
10690           else
10691             result=$wxUSE_DATAVIEWCTRL
10692           fi
10693
10694           { echo "$as_me:$LINENO: result: $result" >&5
10695 echo "${ECHO_T}$result" >&6; }
10696
10697
10698           enablestring=
10699           defaultval=$wxUSE_ALL_FEATURES
10700           if test -z "$defaultval"; then
10701               if test x"$enablestring" = xdisable; then
10702                   defaultval=yes
10703               else
10704                   defaultval=no
10705               fi
10706           fi
10707
10708           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10709 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10710           # Check whether --enable-datepick was given.
10711 if test "${enable_datepick+set}" = set; then
10712   enableval=$enable_datepick;
10713                           if test "$enableval" = yes; then
10714                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10715                           else
10716                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10717                           fi
10718
10719 else
10720
10721                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10722
10723 fi
10724
10725
10726           eval "$wx_cv_use_datepick"
10727
10728           if test x"$enablestring" = xdisable; then
10729             if test $wxUSE_DATEPICKCTRL = no; then
10730               result=yes
10731             else
10732               result=no
10733             fi
10734           else
10735             result=$wxUSE_DATEPICKCTRL
10736           fi
10737
10738           { echo "$as_me:$LINENO: result: $result" >&5
10739 echo "${ECHO_T}$result" >&6; }
10740
10741
10742           enablestring=
10743           defaultval=$wxUSE_ALL_FEATURES
10744           if test -z "$defaultval"; then
10745               if test x"$enablestring" = xdisable; then
10746                   defaultval=yes
10747               else
10748                   defaultval=no
10749               fi
10750           fi
10751
10752           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10753 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10754           # Check whether --enable-detect_sm was given.
10755 if test "${enable_detect_sm+set}" = set; then
10756   enableval=$enable_detect_sm;
10757                           if test "$enableval" = yes; then
10758                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10759                           else
10760                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10761                           fi
10762
10763 else
10764
10765                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10766
10767 fi
10768
10769
10770           eval "$wx_cv_use_detect_sm"
10771
10772           if test x"$enablestring" = xdisable; then
10773             if test $wxUSE_DETECT_SM = no; then
10774               result=yes
10775             else
10776               result=no
10777             fi
10778           else
10779             result=$wxUSE_DETECT_SM
10780           fi
10781
10782           { echo "$as_me:$LINENO: result: $result" >&5
10783 echo "${ECHO_T}$result" >&6; }
10784
10785
10786           enablestring=
10787           defaultval=$wxUSE_ALL_FEATURES
10788           if test -z "$defaultval"; then
10789               if test x"$enablestring" = xdisable; then
10790                   defaultval=yes
10791               else
10792                   defaultval=no
10793               fi
10794           fi
10795
10796           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10797 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10798           # Check whether --enable-dirpicker was given.
10799 if test "${enable_dirpicker+set}" = set; then
10800   enableval=$enable_dirpicker;
10801                           if test "$enableval" = yes; then
10802                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10803                           else
10804                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10805                           fi
10806
10807 else
10808
10809                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10810
10811 fi
10812
10813
10814           eval "$wx_cv_use_dirpicker"
10815
10816           if test x"$enablestring" = xdisable; then
10817             if test $wxUSE_DIRPICKERCTRL = no; then
10818               result=yes
10819             else
10820               result=no
10821             fi
10822           else
10823             result=$wxUSE_DIRPICKERCTRL
10824           fi
10825
10826           { echo "$as_me:$LINENO: result: $result" >&5
10827 echo "${ECHO_T}$result" >&6; }
10828
10829
10830           enablestring=
10831           defaultval=$wxUSE_ALL_FEATURES
10832           if test -z "$defaultval"; then
10833               if test x"$enablestring" = xdisable; then
10834                   defaultval=yes
10835               else
10836                   defaultval=no
10837               fi
10838           fi
10839
10840           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10841 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10842           # Check whether --enable-display was given.
10843 if test "${enable_display+set}" = set; then
10844   enableval=$enable_display;
10845                           if test "$enableval" = yes; then
10846                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10847                           else
10848                             wx_cv_use_display='wxUSE_DISPLAY=no'
10849                           fi
10850
10851 else
10852
10853                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10854
10855 fi
10856
10857
10858           eval "$wx_cv_use_display"
10859
10860           if test x"$enablestring" = xdisable; then
10861             if test $wxUSE_DISPLAY = no; then
10862               result=yes
10863             else
10864               result=no
10865             fi
10866           else
10867             result=$wxUSE_DISPLAY
10868           fi
10869
10870           { echo "$as_me:$LINENO: result: $result" >&5
10871 echo "${ECHO_T}$result" >&6; }
10872
10873
10874           enablestring=
10875           defaultval=$wxUSE_ALL_FEATURES
10876           if test -z "$defaultval"; then
10877               if test x"$enablestring" = xdisable; then
10878                   defaultval=yes
10879               else
10880                   defaultval=no
10881               fi
10882           fi
10883
10884           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10885 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10886           # Check whether --enable-editablebox was given.
10887 if test "${enable_editablebox+set}" = set; then
10888   enableval=$enable_editablebox;
10889                           if test "$enableval" = yes; then
10890                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10891                           else
10892                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10893                           fi
10894
10895 else
10896
10897                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10898
10899 fi
10900
10901
10902           eval "$wx_cv_use_editablebox"
10903
10904           if test x"$enablestring" = xdisable; then
10905             if test $wxUSE_EDITABLELISTBOX = no; then
10906               result=yes
10907             else
10908               result=no
10909             fi
10910           else
10911             result=$wxUSE_EDITABLELISTBOX
10912           fi
10913
10914           { echo "$as_me:$LINENO: result: $result" >&5
10915 echo "${ECHO_T}$result" >&6; }
10916
10917
10918           enablestring=
10919           defaultval=$wxUSE_ALL_FEATURES
10920           if test -z "$defaultval"; then
10921               if test x"$enablestring" = xdisable; then
10922                   defaultval=yes
10923               else
10924                   defaultval=no
10925               fi
10926           fi
10927
10928           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10929 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10930           # Check whether --enable-filectrl was given.
10931 if test "${enable_filectrl+set}" = set; then
10932   enableval=$enable_filectrl;
10933                           if test "$enableval" = yes; then
10934                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10935                           else
10936                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10937                           fi
10938
10939 else
10940
10941                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10942
10943 fi
10944
10945
10946           eval "$wx_cv_use_filectrl"
10947
10948           if test x"$enablestring" = xdisable; then
10949             if test $wxUSE_FILECTRL = no; then
10950               result=yes
10951             else
10952               result=no
10953             fi
10954           else
10955             result=$wxUSE_FILECTRL
10956           fi
10957
10958           { echo "$as_me:$LINENO: result: $result" >&5
10959 echo "${ECHO_T}$result" >&6; }
10960
10961
10962           enablestring=
10963           defaultval=$wxUSE_ALL_FEATURES
10964           if test -z "$defaultval"; then
10965               if test x"$enablestring" = xdisable; then
10966                   defaultval=yes
10967               else
10968                   defaultval=no
10969               fi
10970           fi
10971
10972           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10973 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10974           # Check whether --enable-filepicker was given.
10975 if test "${enable_filepicker+set}" = set; then
10976   enableval=$enable_filepicker;
10977                           if test "$enableval" = yes; then
10978                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10979                           else
10980                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10981                           fi
10982
10983 else
10984
10985                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10986
10987 fi
10988
10989
10990           eval "$wx_cv_use_filepicker"
10991
10992           if test x"$enablestring" = xdisable; then
10993             if test $wxUSE_FILEPICKERCTRL = no; then
10994               result=yes
10995             else
10996               result=no
10997             fi
10998           else
10999             result=$wxUSE_FILEPICKERCTRL
11000           fi
11001
11002           { echo "$as_me:$LINENO: result: $result" >&5
11003 echo "${ECHO_T}$result" >&6; }
11004
11005
11006           enablestring=
11007           defaultval=$wxUSE_ALL_FEATURES
11008           if test -z "$defaultval"; then
11009               if test x"$enablestring" = xdisable; then
11010                   defaultval=yes
11011               else
11012                   defaultval=no
11013               fi
11014           fi
11015
11016           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11017 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11018           # Check whether --enable-fontpicker was given.
11019 if test "${enable_fontpicker+set}" = set; then
11020   enableval=$enable_fontpicker;
11021                           if test "$enableval" = yes; then
11022                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11023                           else
11024                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11025                           fi
11026
11027 else
11028
11029                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11030
11031 fi
11032
11033
11034           eval "$wx_cv_use_fontpicker"
11035
11036           if test x"$enablestring" = xdisable; then
11037             if test $wxUSE_FONTPICKERCTRL = no; then
11038               result=yes
11039             else
11040               result=no
11041             fi
11042           else
11043             result=$wxUSE_FONTPICKERCTRL
11044           fi
11045
11046           { echo "$as_me:$LINENO: result: $result" >&5
11047 echo "${ECHO_T}$result" >&6; }
11048
11049
11050           enablestring=
11051           defaultval=$wxUSE_ALL_FEATURES
11052           if test -z "$defaultval"; then
11053               if test x"$enablestring" = xdisable; then
11054                   defaultval=yes
11055               else
11056                   defaultval=no
11057               fi
11058           fi
11059
11060           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11061 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11062           # Check whether --enable-gauge was given.
11063 if test "${enable_gauge+set}" = set; then
11064   enableval=$enable_gauge;
11065                           if test "$enableval" = yes; then
11066                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11067                           else
11068                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11069                           fi
11070
11071 else
11072
11073                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11074
11075 fi
11076
11077
11078           eval "$wx_cv_use_gauge"
11079
11080           if test x"$enablestring" = xdisable; then
11081             if test $wxUSE_GAUGE = no; then
11082               result=yes
11083             else
11084               result=no
11085             fi
11086           else
11087             result=$wxUSE_GAUGE
11088           fi
11089
11090           { echo "$as_me:$LINENO: result: $result" >&5
11091 echo "${ECHO_T}$result" >&6; }
11092
11093
11094           enablestring=
11095           defaultval=$wxUSE_ALL_FEATURES
11096           if test -z "$defaultval"; then
11097               if test x"$enablestring" = xdisable; then
11098                   defaultval=yes
11099               else
11100                   defaultval=no
11101               fi
11102           fi
11103
11104           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11105 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11106           # Check whether --enable-grid was given.
11107 if test "${enable_grid+set}" = set; then
11108   enableval=$enable_grid;
11109                           if test "$enableval" = yes; then
11110                             wx_cv_use_grid='wxUSE_GRID=yes'
11111                           else
11112                             wx_cv_use_grid='wxUSE_GRID=no'
11113                           fi
11114
11115 else
11116
11117                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11118
11119 fi
11120
11121
11122           eval "$wx_cv_use_grid"
11123
11124           if test x"$enablestring" = xdisable; then
11125             if test $wxUSE_GRID = no; then
11126               result=yes
11127             else
11128               result=no
11129             fi
11130           else
11131             result=$wxUSE_GRID
11132           fi
11133
11134           { echo "$as_me:$LINENO: result: $result" >&5
11135 echo "${ECHO_T}$result" >&6; }
11136
11137
11138           enablestring=
11139           defaultval=$wxUSE_ALL_FEATURES
11140           if test -z "$defaultval"; then
11141               if test x"$enablestring" = xdisable; then
11142                   defaultval=yes
11143               else
11144                   defaultval=no
11145               fi
11146           fi
11147
11148           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11149 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11150           # Check whether --enable-headerctrl was given.
11151 if test "${enable_headerctrl+set}" = set; then
11152   enableval=$enable_headerctrl;
11153                           if test "$enableval" = yes; then
11154                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11155                           else
11156                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11157                           fi
11158
11159 else
11160
11161                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11162
11163 fi
11164
11165
11166           eval "$wx_cv_use_headerctrl"
11167
11168           if test x"$enablestring" = xdisable; then
11169             if test $wxUSE_HEADERCTRL = no; then
11170               result=yes
11171             else
11172               result=no
11173             fi
11174           else
11175             result=$wxUSE_HEADERCTRL
11176           fi
11177
11178           { echo "$as_me:$LINENO: result: $result" >&5
11179 echo "${ECHO_T}$result" >&6; }
11180
11181
11182           enablestring=
11183           defaultval=$wxUSE_ALL_FEATURES
11184           if test -z "$defaultval"; then
11185               if test x"$enablestring" = xdisable; then
11186                   defaultval=yes
11187               else
11188                   defaultval=no
11189               fi
11190           fi
11191
11192           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11193 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11194           # Check whether --enable-hyperlink was given.
11195 if test "${enable_hyperlink+set}" = set; then
11196   enableval=$enable_hyperlink;
11197                           if test "$enableval" = yes; then
11198                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11199                           else
11200                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11201                           fi
11202
11203 else
11204
11205                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11206
11207 fi
11208
11209
11210           eval "$wx_cv_use_hyperlink"
11211
11212           if test x"$enablestring" = xdisable; then
11213             if test $wxUSE_HYPERLINKCTRL = no; then
11214               result=yes
11215             else
11216               result=no
11217             fi
11218           else
11219             result=$wxUSE_HYPERLINKCTRL
11220           fi
11221
11222           { echo "$as_me:$LINENO: result: $result" >&5
11223 echo "${ECHO_T}$result" >&6; }
11224
11225
11226           enablestring=
11227           defaultval=$wxUSE_ALL_FEATURES
11228           if test -z "$defaultval"; then
11229               if test x"$enablestring" = xdisable; then
11230                   defaultval=yes
11231               else
11232                   defaultval=no
11233               fi
11234           fi
11235
11236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11237 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11238           # Check whether --enable-imaglist was given.
11239 if test "${enable_imaglist+set}" = set; then
11240   enableval=$enable_imaglist;
11241                           if test "$enableval" = yes; then
11242                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11243                           else
11244                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11245                           fi
11246
11247 else
11248
11249                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11250
11251 fi
11252
11253
11254           eval "$wx_cv_use_imaglist"
11255
11256           if test x"$enablestring" = xdisable; then
11257             if test $wxUSE_IMAGLIST = no; then
11258               result=yes
11259             else
11260               result=no
11261             fi
11262           else
11263             result=$wxUSE_IMAGLIST
11264           fi
11265
11266           { echo "$as_me:$LINENO: result: $result" >&5
11267 echo "${ECHO_T}$result" >&6; }
11268
11269
11270           enablestring=
11271           defaultval=$wxUSE_ALL_FEATURES
11272           if test -z "$defaultval"; then
11273               if test x"$enablestring" = xdisable; then
11274                   defaultval=yes
11275               else
11276                   defaultval=no
11277               fi
11278           fi
11279
11280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11281 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11282           # Check whether --enable-infobar was given.
11283 if test "${enable_infobar+set}" = set; then
11284   enableval=$enable_infobar;
11285                           if test "$enableval" = yes; then
11286                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11287                           else
11288                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11289                           fi
11290
11291 else
11292
11293                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11294
11295 fi
11296
11297
11298           eval "$wx_cv_use_infobar"
11299
11300           if test x"$enablestring" = xdisable; then
11301             if test $wxUSE_INFOBAR = no; then
11302               result=yes
11303             else
11304               result=no
11305             fi
11306           else
11307             result=$wxUSE_INFOBAR
11308           fi
11309
11310           { echo "$as_me:$LINENO: result: $result" >&5
11311 echo "${ECHO_T}$result" >&6; }
11312
11313
11314           enablestring=
11315           defaultval=$wxUSE_ALL_FEATURES
11316           if test -z "$defaultval"; then
11317               if test x"$enablestring" = xdisable; then
11318                   defaultval=yes
11319               else
11320                   defaultval=no
11321               fi
11322           fi
11323
11324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11325 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11326           # Check whether --enable-listbook was given.
11327 if test "${enable_listbook+set}" = set; then
11328   enableval=$enable_listbook;
11329                           if test "$enableval" = yes; then
11330                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11331                           else
11332                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11333                           fi
11334
11335 else
11336
11337                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11338
11339 fi
11340
11341
11342           eval "$wx_cv_use_listbook"
11343
11344           if test x"$enablestring" = xdisable; then
11345             if test $wxUSE_LISTBOOK = no; then
11346               result=yes
11347             else
11348               result=no
11349             fi
11350           else
11351             result=$wxUSE_LISTBOOK
11352           fi
11353
11354           { echo "$as_me:$LINENO: result: $result" >&5
11355 echo "${ECHO_T}$result" >&6; }
11356
11357
11358           enablestring=
11359           defaultval=$wxUSE_ALL_FEATURES
11360           if test -z "$defaultval"; then
11361               if test x"$enablestring" = xdisable; then
11362                   defaultval=yes
11363               else
11364                   defaultval=no
11365               fi
11366           fi
11367
11368           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11369 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11370           # Check whether --enable-listbox was given.
11371 if test "${enable_listbox+set}" = set; then
11372   enableval=$enable_listbox;
11373                           if test "$enableval" = yes; then
11374                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11375                           else
11376                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11377                           fi
11378
11379 else
11380
11381                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11382
11383 fi
11384
11385
11386           eval "$wx_cv_use_listbox"
11387
11388           if test x"$enablestring" = xdisable; then
11389             if test $wxUSE_LISTBOX = no; then
11390               result=yes
11391             else
11392               result=no
11393             fi
11394           else
11395             result=$wxUSE_LISTBOX
11396           fi
11397
11398           { echo "$as_me:$LINENO: result: $result" >&5
11399 echo "${ECHO_T}$result" >&6; }
11400
11401
11402           enablestring=
11403           defaultval=$wxUSE_ALL_FEATURES
11404           if test -z "$defaultval"; then
11405               if test x"$enablestring" = xdisable; then
11406                   defaultval=yes
11407               else
11408                   defaultval=no
11409               fi
11410           fi
11411
11412           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11413 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11414           # Check whether --enable-listctrl was given.
11415 if test "${enable_listctrl+set}" = set; then
11416   enableval=$enable_listctrl;
11417                           if test "$enableval" = yes; then
11418                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11419                           else
11420                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11421                           fi
11422
11423 else
11424
11425                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11426
11427 fi
11428
11429
11430           eval "$wx_cv_use_listctrl"
11431
11432           if test x"$enablestring" = xdisable; then
11433             if test $wxUSE_LISTCTRL = no; then
11434               result=yes
11435             else
11436               result=no
11437             fi
11438           else
11439             result=$wxUSE_LISTCTRL
11440           fi
11441
11442           { echo "$as_me:$LINENO: result: $result" >&5
11443 echo "${ECHO_T}$result" >&6; }
11444
11445
11446           enablestring=
11447           defaultval=$wxUSE_ALL_FEATURES
11448           if test -z "$defaultval"; then
11449               if test x"$enablestring" = xdisable; then
11450                   defaultval=yes
11451               else
11452                   defaultval=no
11453               fi
11454           fi
11455
11456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11457 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11458           # Check whether --enable-notebook was given.
11459 if test "${enable_notebook+set}" = set; then
11460   enableval=$enable_notebook;
11461                           if test "$enableval" = yes; then
11462                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11463                           else
11464                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11465                           fi
11466
11467 else
11468
11469                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11470
11471 fi
11472
11473
11474           eval "$wx_cv_use_notebook"
11475
11476           if test x"$enablestring" = xdisable; then
11477             if test $wxUSE_NOTEBOOK = no; then
11478               result=yes
11479             else
11480               result=no
11481             fi
11482           else
11483             result=$wxUSE_NOTEBOOK
11484           fi
11485
11486           { echo "$as_me:$LINENO: result: $result" >&5
11487 echo "${ECHO_T}$result" >&6; }
11488
11489
11490           enablestring=
11491           defaultval=$wxUSE_ALL_FEATURES
11492           if test -z "$defaultval"; then
11493               if test x"$enablestring" = xdisable; then
11494                   defaultval=yes
11495               else
11496                   defaultval=no
11497               fi
11498           fi
11499
11500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11501 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11502           # Check whether --enable-notifmsg was given.
11503 if test "${enable_notifmsg+set}" = set; then
11504   enableval=$enable_notifmsg;
11505                           if test "$enableval" = yes; then
11506                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11507                           else
11508                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11509                           fi
11510
11511 else
11512
11513                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11514
11515 fi
11516
11517
11518           eval "$wx_cv_use_notifmsg"
11519
11520           if test x"$enablestring" = xdisable; then
11521             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11522               result=yes
11523             else
11524               result=no
11525             fi
11526           else
11527             result=$wxUSE_NOTIFICATION_MESSAGE
11528           fi
11529
11530           { echo "$as_me:$LINENO: result: $result" >&5
11531 echo "${ECHO_T}$result" >&6; }
11532
11533
11534           enablestring=
11535           defaultval=$wxUSE_ALL_FEATURES
11536           if test -z "$defaultval"; then
11537               if test x"$enablestring" = xdisable; then
11538                   defaultval=yes
11539               else
11540                   defaultval=no
11541               fi
11542           fi
11543
11544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11545 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11546           # Check whether --enable-odcombobox was given.
11547 if test "${enable_odcombobox+set}" = set; then
11548   enableval=$enable_odcombobox;
11549                           if test "$enableval" = yes; then
11550                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11551                           else
11552                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11553                           fi
11554
11555 else
11556
11557                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11558
11559 fi
11560
11561
11562           eval "$wx_cv_use_odcombobox"
11563
11564           if test x"$enablestring" = xdisable; then
11565             if test $wxUSE_ODCOMBOBOX = no; then
11566               result=yes
11567             else
11568               result=no
11569             fi
11570           else
11571             result=$wxUSE_ODCOMBOBOX
11572           fi
11573
11574           { echo "$as_me:$LINENO: result: $result" >&5
11575 echo "${ECHO_T}$result" >&6; }
11576
11577
11578           enablestring=
11579           defaultval=$wxUSE_ALL_FEATURES
11580           if test -z "$defaultval"; then
11581               if test x"$enablestring" = xdisable; then
11582                   defaultval=yes
11583               else
11584                   defaultval=no
11585               fi
11586           fi
11587
11588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11589 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11590           # Check whether --enable-popupwin was given.
11591 if test "${enable_popupwin+set}" = set; then
11592   enableval=$enable_popupwin;
11593                           if test "$enableval" = yes; then
11594                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11595                           else
11596                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11597                           fi
11598
11599 else
11600
11601                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11602
11603 fi
11604
11605
11606           eval "$wx_cv_use_popupwin"
11607
11608           if test x"$enablestring" = xdisable; then
11609             if test $wxUSE_POPUPWIN = no; then
11610               result=yes
11611             else
11612               result=no
11613             fi
11614           else
11615             result=$wxUSE_POPUPWIN
11616           fi
11617
11618           { echo "$as_me:$LINENO: result: $result" >&5
11619 echo "${ECHO_T}$result" >&6; }
11620
11621
11622           enablestring=
11623           defaultval=$wxUSE_ALL_FEATURES
11624           if test -z "$defaultval"; then
11625               if test x"$enablestring" = xdisable; then
11626                   defaultval=yes
11627               else
11628                   defaultval=no
11629               fi
11630           fi
11631
11632           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11633 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11634           # Check whether --enable-radiobox was given.
11635 if test "${enable_radiobox+set}" = set; then
11636   enableval=$enable_radiobox;
11637                           if test "$enableval" = yes; then
11638                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11639                           else
11640                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11641                           fi
11642
11643 else
11644
11645                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11646
11647 fi
11648
11649
11650           eval "$wx_cv_use_radiobox"
11651
11652           if test x"$enablestring" = xdisable; then
11653             if test $wxUSE_RADIOBOX = no; then
11654               result=yes
11655             else
11656               result=no
11657             fi
11658           else
11659             result=$wxUSE_RADIOBOX
11660           fi
11661
11662           { echo "$as_me:$LINENO: result: $result" >&5
11663 echo "${ECHO_T}$result" >&6; }
11664
11665
11666           enablestring=
11667           defaultval=$wxUSE_ALL_FEATURES
11668           if test -z "$defaultval"; then
11669               if test x"$enablestring" = xdisable; then
11670                   defaultval=yes
11671               else
11672                   defaultval=no
11673               fi
11674           fi
11675
11676           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11677 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11678           # Check whether --enable-radiobtn was given.
11679 if test "${enable_radiobtn+set}" = set; then
11680   enableval=$enable_radiobtn;
11681                           if test "$enableval" = yes; then
11682                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11683                           else
11684                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11685                           fi
11686
11687 else
11688
11689                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11690
11691 fi
11692
11693
11694           eval "$wx_cv_use_radiobtn"
11695
11696           if test x"$enablestring" = xdisable; then
11697             if test $wxUSE_RADIOBTN = no; then
11698               result=yes
11699             else
11700               result=no
11701             fi
11702           else
11703             result=$wxUSE_RADIOBTN
11704           fi
11705
11706           { echo "$as_me:$LINENO: result: $result" >&5
11707 echo "${ECHO_T}$result" >&6; }
11708
11709
11710           enablestring=
11711           defaultval=$wxUSE_ALL_FEATURES
11712           if test -z "$defaultval"; then
11713               if test x"$enablestring" = xdisable; then
11714                   defaultval=yes
11715               else
11716                   defaultval=no
11717               fi
11718           fi
11719
11720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11721 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11722           # Check whether --enable-richmsgdlg was given.
11723 if test "${enable_richmsgdlg+set}" = set; then
11724   enableval=$enable_richmsgdlg;
11725                           if test "$enableval" = yes; then
11726                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11727                           else
11728                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11729                           fi
11730
11731 else
11732
11733                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11734
11735 fi
11736
11737
11738           eval "$wx_cv_use_richmsgdlg"
11739
11740           if test x"$enablestring" = xdisable; then
11741             if test $wxUSE_RICHMSGDLG = no; then
11742               result=yes
11743             else
11744               result=no
11745             fi
11746           else
11747             result=$wxUSE_RICHMSGDLG
11748           fi
11749
11750           { echo "$as_me:$LINENO: result: $result" >&5
11751 echo "${ECHO_T}$result" >&6; }
11752
11753
11754           enablestring=
11755           defaultval=$wxUSE_ALL_FEATURES
11756           if test -z "$defaultval"; then
11757               if test x"$enablestring" = xdisable; then
11758                   defaultval=yes
11759               else
11760                   defaultval=no
11761               fi
11762           fi
11763
11764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11765 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11766           # Check whether --enable-rearrangectrl was given.
11767 if test "${enable_rearrangectrl+set}" = set; then
11768   enableval=$enable_rearrangectrl;
11769                           if test "$enableval" = yes; then
11770                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11771                           else
11772                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11773                           fi
11774
11775 else
11776
11777                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11778
11779 fi
11780
11781
11782           eval "$wx_cv_use_rearrangectrl"
11783
11784           if test x"$enablestring" = xdisable; then
11785             if test $wxUSE_REARRANGECTRL = no; then
11786               result=yes
11787             else
11788               result=no
11789             fi
11790           else
11791             result=$wxUSE_REARRANGECTRL
11792           fi
11793
11794           { echo "$as_me:$LINENO: result: $result" >&5
11795 echo "${ECHO_T}$result" >&6; }
11796
11797
11798           enablestring=
11799           defaultval=$wxUSE_ALL_FEATURES
11800           if test -z "$defaultval"; then
11801               if test x"$enablestring" = xdisable; then
11802                   defaultval=yes
11803               else
11804                   defaultval=no
11805               fi
11806           fi
11807
11808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11809 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11810           # Check whether --enable-sash was given.
11811 if test "${enable_sash+set}" = set; then
11812   enableval=$enable_sash;
11813                           if test "$enableval" = yes; then
11814                             wx_cv_use_sash='wxUSE_SASH=yes'
11815                           else
11816                             wx_cv_use_sash='wxUSE_SASH=no'
11817                           fi
11818
11819 else
11820
11821                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11822
11823 fi
11824
11825
11826           eval "$wx_cv_use_sash"
11827
11828           if test x"$enablestring" = xdisable; then
11829             if test $wxUSE_SASH = no; then
11830               result=yes
11831             else
11832               result=no
11833             fi
11834           else
11835             result=$wxUSE_SASH
11836           fi
11837
11838           { echo "$as_me:$LINENO: result: $result" >&5
11839 echo "${ECHO_T}$result" >&6; }
11840
11841
11842           enablestring=
11843           defaultval=$wxUSE_ALL_FEATURES
11844           if test -z "$defaultval"; then
11845               if test x"$enablestring" = xdisable; then
11846                   defaultval=yes
11847               else
11848                   defaultval=no
11849               fi
11850           fi
11851
11852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11853 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11854           # Check whether --enable-scrollbar was given.
11855 if test "${enable_scrollbar+set}" = set; then
11856   enableval=$enable_scrollbar;
11857                           if test "$enableval" = yes; then
11858                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11859                           else
11860                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11861                           fi
11862
11863 else
11864
11865                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11866
11867 fi
11868
11869
11870           eval "$wx_cv_use_scrollbar"
11871
11872           if test x"$enablestring" = xdisable; then
11873             if test $wxUSE_SCROLLBAR = no; then
11874               result=yes
11875             else
11876               result=no
11877             fi
11878           else
11879             result=$wxUSE_SCROLLBAR
11880           fi
11881
11882           { echo "$as_me:$LINENO: result: $result" >&5
11883 echo "${ECHO_T}$result" >&6; }
11884
11885
11886           enablestring=
11887           defaultval=$wxUSE_ALL_FEATURES
11888           if test -z "$defaultval"; then
11889               if test x"$enablestring" = xdisable; then
11890                   defaultval=yes
11891               else
11892                   defaultval=no
11893               fi
11894           fi
11895
11896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11897 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11898           # Check whether --enable-searchctrl was given.
11899 if test "${enable_searchctrl+set}" = set; then
11900   enableval=$enable_searchctrl;
11901                           if test "$enableval" = yes; then
11902                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11903                           else
11904                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11905                           fi
11906
11907 else
11908
11909                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11910
11911 fi
11912
11913
11914           eval "$wx_cv_use_searchctrl"
11915
11916           if test x"$enablestring" = xdisable; then
11917             if test $wxUSE_SEARCHCTRL = no; then
11918               result=yes
11919             else
11920               result=no
11921             fi
11922           else
11923             result=$wxUSE_SEARCHCTRL
11924           fi
11925
11926           { echo "$as_me:$LINENO: result: $result" >&5
11927 echo "${ECHO_T}$result" >&6; }
11928
11929
11930           enablestring=
11931           defaultval=$wxUSE_ALL_FEATURES
11932           if test -z "$defaultval"; then
11933               if test x"$enablestring" = xdisable; then
11934                   defaultval=yes
11935               else
11936                   defaultval=no
11937               fi
11938           fi
11939
11940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11941 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11942           # Check whether --enable-slider was given.
11943 if test "${enable_slider+set}" = set; then
11944   enableval=$enable_slider;
11945                           if test "$enableval" = yes; then
11946                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11947                           else
11948                             wx_cv_use_slider='wxUSE_SLIDER=no'
11949                           fi
11950
11951 else
11952
11953                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11954
11955 fi
11956
11957
11958           eval "$wx_cv_use_slider"
11959
11960           if test x"$enablestring" = xdisable; then
11961             if test $wxUSE_SLIDER = no; then
11962               result=yes
11963             else
11964               result=no
11965             fi
11966           else
11967             result=$wxUSE_SLIDER
11968           fi
11969
11970           { echo "$as_me:$LINENO: result: $result" >&5
11971 echo "${ECHO_T}$result" >&6; }
11972
11973
11974           enablestring=
11975           defaultval=$wxUSE_ALL_FEATURES
11976           if test -z "$defaultval"; then
11977               if test x"$enablestring" = xdisable; then
11978                   defaultval=yes
11979               else
11980                   defaultval=no
11981               fi
11982           fi
11983
11984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11985 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11986           # Check whether --enable-spinbtn was given.
11987 if test "${enable_spinbtn+set}" = set; then
11988   enableval=$enable_spinbtn;
11989                           if test "$enableval" = yes; then
11990                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11991                           else
11992                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11993                           fi
11994
11995 else
11996
11997                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11998
11999 fi
12000
12001
12002           eval "$wx_cv_use_spinbtn"
12003
12004           if test x"$enablestring" = xdisable; then
12005             if test $wxUSE_SPINBTN = no; then
12006               result=yes
12007             else
12008               result=no
12009             fi
12010           else
12011             result=$wxUSE_SPINBTN
12012           fi
12013
12014           { echo "$as_me:$LINENO: result: $result" >&5
12015 echo "${ECHO_T}$result" >&6; }
12016
12017
12018           enablestring=
12019           defaultval=$wxUSE_ALL_FEATURES
12020           if test -z "$defaultval"; then
12021               if test x"$enablestring" = xdisable; then
12022                   defaultval=yes
12023               else
12024                   defaultval=no
12025               fi
12026           fi
12027
12028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12029 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12030           # Check whether --enable-spinctrl was given.
12031 if test "${enable_spinctrl+set}" = set; then
12032   enableval=$enable_spinctrl;
12033                           if test "$enableval" = yes; then
12034                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12035                           else
12036                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12037                           fi
12038
12039 else
12040
12041                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12042
12043 fi
12044
12045
12046           eval "$wx_cv_use_spinctrl"
12047
12048           if test x"$enablestring" = xdisable; then
12049             if test $wxUSE_SPINCTRL = no; then
12050               result=yes
12051             else
12052               result=no
12053             fi
12054           else
12055             result=$wxUSE_SPINCTRL
12056           fi
12057
12058           { echo "$as_me:$LINENO: result: $result" >&5
12059 echo "${ECHO_T}$result" >&6; }
12060
12061
12062           enablestring=
12063           defaultval=$wxUSE_ALL_FEATURES
12064           if test -z "$defaultval"; then
12065               if test x"$enablestring" = xdisable; then
12066                   defaultval=yes
12067               else
12068                   defaultval=no
12069               fi
12070           fi
12071
12072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12073 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12074           # Check whether --enable-splitter was given.
12075 if test "${enable_splitter+set}" = set; then
12076   enableval=$enable_splitter;
12077                           if test "$enableval" = yes; then
12078                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12079                           else
12080                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12081                           fi
12082
12083 else
12084
12085                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12086
12087 fi
12088
12089
12090           eval "$wx_cv_use_splitter"
12091
12092           if test x"$enablestring" = xdisable; then
12093             if test $wxUSE_SPLITTER = no; then
12094               result=yes
12095             else
12096               result=no
12097             fi
12098           else
12099             result=$wxUSE_SPLITTER
12100           fi
12101
12102           { echo "$as_me:$LINENO: result: $result" >&5
12103 echo "${ECHO_T}$result" >&6; }
12104
12105
12106           enablestring=
12107           defaultval=$wxUSE_ALL_FEATURES
12108           if test -z "$defaultval"; then
12109               if test x"$enablestring" = xdisable; then
12110                   defaultval=yes
12111               else
12112                   defaultval=no
12113               fi
12114           fi
12115
12116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12117 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12118           # Check whether --enable-statbmp was given.
12119 if test "${enable_statbmp+set}" = set; then
12120   enableval=$enable_statbmp;
12121                           if test "$enableval" = yes; then
12122                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12123                           else
12124                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12125                           fi
12126
12127 else
12128
12129                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12130
12131 fi
12132
12133
12134           eval "$wx_cv_use_statbmp"
12135
12136           if test x"$enablestring" = xdisable; then
12137             if test $wxUSE_STATBMP = no; then
12138               result=yes
12139             else
12140               result=no
12141             fi
12142           else
12143             result=$wxUSE_STATBMP
12144           fi
12145
12146           { echo "$as_me:$LINENO: result: $result" >&5
12147 echo "${ECHO_T}$result" >&6; }
12148
12149
12150           enablestring=
12151           defaultval=$wxUSE_ALL_FEATURES
12152           if test -z "$defaultval"; then
12153               if test x"$enablestring" = xdisable; then
12154                   defaultval=yes
12155               else
12156                   defaultval=no
12157               fi
12158           fi
12159
12160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12161 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12162           # Check whether --enable-statbox was given.
12163 if test "${enable_statbox+set}" = set; then
12164   enableval=$enable_statbox;
12165                           if test "$enableval" = yes; then
12166                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12167                           else
12168                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12169                           fi
12170
12171 else
12172
12173                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12174
12175 fi
12176
12177
12178           eval "$wx_cv_use_statbox"
12179
12180           if test x"$enablestring" = xdisable; then
12181             if test $wxUSE_STATBOX = no; then
12182               result=yes
12183             else
12184               result=no
12185             fi
12186           else
12187             result=$wxUSE_STATBOX
12188           fi
12189
12190           { echo "$as_me:$LINENO: result: $result" >&5
12191 echo "${ECHO_T}$result" >&6; }
12192
12193
12194           enablestring=
12195           defaultval=$wxUSE_ALL_FEATURES
12196           if test -z "$defaultval"; then
12197               if test x"$enablestring" = xdisable; then
12198                   defaultval=yes
12199               else
12200                   defaultval=no
12201               fi
12202           fi
12203
12204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12205 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12206           # Check whether --enable-statline was given.
12207 if test "${enable_statline+set}" = set; then
12208   enableval=$enable_statline;
12209                           if test "$enableval" = yes; then
12210                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12211                           else
12212                             wx_cv_use_statline='wxUSE_STATLINE=no'
12213                           fi
12214
12215 else
12216
12217                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12218
12219 fi
12220
12221
12222           eval "$wx_cv_use_statline"
12223
12224           if test x"$enablestring" = xdisable; then
12225             if test $wxUSE_STATLINE = no; then
12226               result=yes
12227             else
12228               result=no
12229             fi
12230           else
12231             result=$wxUSE_STATLINE
12232           fi
12233
12234           { echo "$as_me:$LINENO: result: $result" >&5
12235 echo "${ECHO_T}$result" >&6; }
12236
12237
12238           enablestring=
12239           defaultval=$wxUSE_ALL_FEATURES
12240           if test -z "$defaultval"; then
12241               if test x"$enablestring" = xdisable; then
12242                   defaultval=yes
12243               else
12244                   defaultval=no
12245               fi
12246           fi
12247
12248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12249 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12250           # Check whether --enable-stattext was given.
12251 if test "${enable_stattext+set}" = set; then
12252   enableval=$enable_stattext;
12253                           if test "$enableval" = yes; then
12254                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12255                           else
12256                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12257                           fi
12258
12259 else
12260
12261                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12262
12263 fi
12264
12265
12266           eval "$wx_cv_use_stattext"
12267
12268           if test x"$enablestring" = xdisable; then
12269             if test $wxUSE_STATTEXT = no; then
12270               result=yes
12271             else
12272               result=no
12273             fi
12274           else
12275             result=$wxUSE_STATTEXT
12276           fi
12277
12278           { echo "$as_me:$LINENO: result: $result" >&5
12279 echo "${ECHO_T}$result" >&6; }
12280
12281
12282           enablestring=
12283           defaultval=$wxUSE_ALL_FEATURES
12284           if test -z "$defaultval"; then
12285               if test x"$enablestring" = xdisable; then
12286                   defaultval=yes
12287               else
12288                   defaultval=no
12289               fi
12290           fi
12291
12292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12293 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12294           # Check whether --enable-statusbar was given.
12295 if test "${enable_statusbar+set}" = set; then
12296   enableval=$enable_statusbar;
12297                           if test "$enableval" = yes; then
12298                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12299                           else
12300                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12301                           fi
12302
12303 else
12304
12305                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12306
12307 fi
12308
12309
12310           eval "$wx_cv_use_statusbar"
12311
12312           if test x"$enablestring" = xdisable; then
12313             if test $wxUSE_STATUSBAR = no; then
12314               result=yes
12315             else
12316               result=no
12317             fi
12318           else
12319             result=$wxUSE_STATUSBAR
12320           fi
12321
12322           { echo "$as_me:$LINENO: result: $result" >&5
12323 echo "${ECHO_T}$result" >&6; }
12324
12325
12326           enablestring=
12327           defaultval=$wxUSE_ALL_FEATURES
12328           if test -z "$defaultval"; then
12329               if test x"$enablestring" = xdisable; then
12330                   defaultval=yes
12331               else
12332                   defaultval=no
12333               fi
12334           fi
12335
12336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12337 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12338           # Check whether --enable-taskbaricon was given.
12339 if test "${enable_taskbaricon+set}" = set; then
12340   enableval=$enable_taskbaricon;
12341                           if test "$enableval" = yes; then
12342                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12343                           else
12344                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12345                           fi
12346
12347 else
12348
12349                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12350
12351 fi
12352
12353
12354           eval "$wx_cv_use_taskbaricon"
12355
12356           if test x"$enablestring" = xdisable; then
12357             if test $wxUSE_TASKBARICON = no; then
12358               result=yes
12359             else
12360               result=no
12361             fi
12362           else
12363             result=$wxUSE_TASKBARICON
12364           fi
12365
12366           { echo "$as_me:$LINENO: result: $result" >&5
12367 echo "${ECHO_T}$result" >&6; }
12368
12369
12370           enablestring=
12371           defaultval=$wxUSE_ALL_FEATURES
12372           if test -z "$defaultval"; then
12373               if test x"$enablestring" = xdisable; then
12374                   defaultval=yes
12375               else
12376                   defaultval=no
12377               fi
12378           fi
12379
12380           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12381 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12382           # Check whether --enable-tbarnative was given.
12383 if test "${enable_tbarnative+set}" = set; then
12384   enableval=$enable_tbarnative;
12385                           if test "$enableval" = yes; then
12386                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12387                           else
12388                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12389                           fi
12390
12391 else
12392
12393                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12394
12395 fi
12396
12397
12398           eval "$wx_cv_use_tbarnative"
12399
12400           if test x"$enablestring" = xdisable; then
12401             if test $wxUSE_TOOLBAR_NATIVE = no; then
12402               result=yes
12403             else
12404               result=no
12405             fi
12406           else
12407             result=$wxUSE_TOOLBAR_NATIVE
12408           fi
12409
12410           { echo "$as_me:$LINENO: result: $result" >&5
12411 echo "${ECHO_T}$result" >&6; }
12412
12413
12414           enablestring=
12415           defaultval=$wxUSE_ALL_FEATURES
12416           if test -z "$defaultval"; then
12417               if test x"$enablestring" = xdisable; then
12418                   defaultval=yes
12419               else
12420                   defaultval=no
12421               fi
12422           fi
12423
12424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12425 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12426           # Check whether --enable-textctrl was given.
12427 if test "${enable_textctrl+set}" = set; then
12428   enableval=$enable_textctrl;
12429                           if test "$enableval" = yes; then
12430                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12431                           else
12432                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12433                           fi
12434
12435 else
12436
12437                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12438
12439 fi
12440
12441
12442           eval "$wx_cv_use_textctrl"
12443
12444           if test x"$enablestring" = xdisable; then
12445             if test $wxUSE_TEXTCTRL = no; then
12446               result=yes
12447             else
12448               result=no
12449             fi
12450           else
12451             result=$wxUSE_TEXTCTRL
12452           fi
12453
12454           { echo "$as_me:$LINENO: result: $result" >&5
12455 echo "${ECHO_T}$result" >&6; }
12456
12457
12458           enablestring=
12459           defaultval=$wxUSE_ALL_FEATURES
12460           if test -z "$defaultval"; then
12461               if test x"$enablestring" = xdisable; then
12462                   defaultval=yes
12463               else
12464                   defaultval=no
12465               fi
12466           fi
12467
12468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12469 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12470           # Check whether --enable-tipwindow was given.
12471 if test "${enable_tipwindow+set}" = set; then
12472   enableval=$enable_tipwindow;
12473                           if test "$enableval" = yes; then
12474                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12475                           else
12476                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12477                           fi
12478
12479 else
12480
12481                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12482
12483 fi
12484
12485
12486           eval "$wx_cv_use_tipwindow"
12487
12488           if test x"$enablestring" = xdisable; then
12489             if test $wxUSE_TIPWINDOW = no; then
12490               result=yes
12491             else
12492               result=no
12493             fi
12494           else
12495             result=$wxUSE_TIPWINDOW
12496           fi
12497
12498           { echo "$as_me:$LINENO: result: $result" >&5
12499 echo "${ECHO_T}$result" >&6; }
12500
12501
12502           enablestring=
12503           defaultval=$wxUSE_ALL_FEATURES
12504           if test -z "$defaultval"; then
12505               if test x"$enablestring" = xdisable; then
12506                   defaultval=yes
12507               else
12508                   defaultval=no
12509               fi
12510           fi
12511
12512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12513 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12514           # Check whether --enable-togglebtn was given.
12515 if test "${enable_togglebtn+set}" = set; then
12516   enableval=$enable_togglebtn;
12517                           if test "$enableval" = yes; then
12518                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12519                           else
12520                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12521                           fi
12522
12523 else
12524
12525                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12526
12527 fi
12528
12529
12530           eval "$wx_cv_use_togglebtn"
12531
12532           if test x"$enablestring" = xdisable; then
12533             if test $wxUSE_TOGGLEBTN = no; then
12534               result=yes
12535             else
12536               result=no
12537             fi
12538           else
12539             result=$wxUSE_TOGGLEBTN
12540           fi
12541
12542           { echo "$as_me:$LINENO: result: $result" >&5
12543 echo "${ECHO_T}$result" >&6; }
12544
12545
12546           enablestring=
12547           defaultval=$wxUSE_ALL_FEATURES
12548           if test -z "$defaultval"; then
12549               if test x"$enablestring" = xdisable; then
12550                   defaultval=yes
12551               else
12552                   defaultval=no
12553               fi
12554           fi
12555
12556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12557 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12558           # Check whether --enable-toolbar was given.
12559 if test "${enable_toolbar+set}" = set; then
12560   enableval=$enable_toolbar;
12561                           if test "$enableval" = yes; then
12562                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12563                           else
12564                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12565                           fi
12566
12567 else
12568
12569                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12570
12571 fi
12572
12573
12574           eval "$wx_cv_use_toolbar"
12575
12576           if test x"$enablestring" = xdisable; then
12577             if test $wxUSE_TOOLBAR = no; then
12578               result=yes
12579             else
12580               result=no
12581             fi
12582           else
12583             result=$wxUSE_TOOLBAR
12584           fi
12585
12586           { echo "$as_me:$LINENO: result: $result" >&5
12587 echo "${ECHO_T}$result" >&6; }
12588
12589
12590           enablestring=
12591           defaultval=$wxUSE_ALL_FEATURES
12592           if test -z "$defaultval"; then
12593               if test x"$enablestring" = xdisable; then
12594                   defaultval=yes
12595               else
12596                   defaultval=no
12597               fi
12598           fi
12599
12600           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12601 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12602           # Check whether --enable-toolbook was given.
12603 if test "${enable_toolbook+set}" = set; then
12604   enableval=$enable_toolbook;
12605                           if test "$enableval" = yes; then
12606                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12607                           else
12608                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12609                           fi
12610
12611 else
12612
12613                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12614
12615 fi
12616
12617
12618           eval "$wx_cv_use_toolbook"
12619
12620           if test x"$enablestring" = xdisable; then
12621             if test $wxUSE_TOOLBOOK = no; then
12622               result=yes
12623             else
12624               result=no
12625             fi
12626           else
12627             result=$wxUSE_TOOLBOOK
12628           fi
12629
12630           { echo "$as_me:$LINENO: result: $result" >&5
12631 echo "${ECHO_T}$result" >&6; }
12632
12633
12634           enablestring=
12635           defaultval=$wxUSE_ALL_FEATURES
12636           if test -z "$defaultval"; then
12637               if test x"$enablestring" = xdisable; then
12638                   defaultval=yes
12639               else
12640                   defaultval=no
12641               fi
12642           fi
12643
12644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12645 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12646           # Check whether --enable-treebook was given.
12647 if test "${enable_treebook+set}" = set; then
12648   enableval=$enable_treebook;
12649                           if test "$enableval" = yes; then
12650                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12651                           else
12652                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12653                           fi
12654
12655 else
12656
12657                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12658
12659 fi
12660
12661
12662           eval "$wx_cv_use_treebook"
12663
12664           if test x"$enablestring" = xdisable; then
12665             if test $wxUSE_TREEBOOK = no; then
12666               result=yes
12667             else
12668               result=no
12669             fi
12670           else
12671             result=$wxUSE_TREEBOOK
12672           fi
12673
12674           { echo "$as_me:$LINENO: result: $result" >&5
12675 echo "${ECHO_T}$result" >&6; }
12676
12677
12678           enablestring=
12679           defaultval=$wxUSE_ALL_FEATURES
12680           if test -z "$defaultval"; then
12681               if test x"$enablestring" = xdisable; then
12682                   defaultval=yes
12683               else
12684                   defaultval=no
12685               fi
12686           fi
12687
12688           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12689 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12690           # Check whether --enable-treectrl was given.
12691 if test "${enable_treectrl+set}" = set; then
12692   enableval=$enable_treectrl;
12693                           if test "$enableval" = yes; then
12694                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12695                           else
12696                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12697                           fi
12698
12699 else
12700
12701                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12702
12703 fi
12704
12705
12706           eval "$wx_cv_use_treectrl"
12707
12708           if test x"$enablestring" = xdisable; then
12709             if test $wxUSE_TREECTRL = no; then
12710               result=yes
12711             else
12712               result=no
12713             fi
12714           else
12715             result=$wxUSE_TREECTRL
12716           fi
12717
12718           { echo "$as_me:$LINENO: result: $result" >&5
12719 echo "${ECHO_T}$result" >&6; }
12720
12721
12722
12723
12724           enablestring=
12725           defaultval=$wxUSE_ALL_FEATURES
12726           if test -z "$defaultval"; then
12727               if test x"$enablestring" = xdisable; then
12728                   defaultval=yes
12729               else
12730                   defaultval=no
12731               fi
12732           fi
12733
12734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12735 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12736           # Check whether --enable-commondlg was given.
12737 if test "${enable_commondlg+set}" = set; then
12738   enableval=$enable_commondlg;
12739                           if test "$enableval" = yes; then
12740                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12741                           else
12742                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12743                           fi
12744
12745 else
12746
12747                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12748
12749 fi
12750
12751
12752           eval "$wx_cv_use_commondlg"
12753
12754           if test x"$enablestring" = xdisable; then
12755             if test $wxUSE_COMMONDLGS = no; then
12756               result=yes
12757             else
12758               result=no
12759             fi
12760           else
12761             result=$wxUSE_COMMONDLGS
12762           fi
12763
12764           { echo "$as_me:$LINENO: result: $result" >&5
12765 echo "${ECHO_T}$result" >&6; }
12766
12767
12768           enablestring=
12769           defaultval=$wxUSE_ALL_FEATURES
12770           if test -z "$defaultval"; then
12771               if test x"$enablestring" = xdisable; then
12772                   defaultval=yes
12773               else
12774                   defaultval=no
12775               fi
12776           fi
12777
12778           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12779 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12780           # Check whether --enable-aboutdlg was given.
12781 if test "${enable_aboutdlg+set}" = set; then
12782   enableval=$enable_aboutdlg;
12783                           if test "$enableval" = yes; then
12784                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12785                           else
12786                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12787                           fi
12788
12789 else
12790
12791                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12792
12793 fi
12794
12795
12796           eval "$wx_cv_use_aboutdlg"
12797
12798           if test x"$enablestring" = xdisable; then
12799             if test $wxUSE_ABOUTDLG = no; then
12800               result=yes
12801             else
12802               result=no
12803             fi
12804           else
12805             result=$wxUSE_ABOUTDLG
12806           fi
12807
12808           { echo "$as_me:$LINENO: result: $result" >&5
12809 echo "${ECHO_T}$result" >&6; }
12810
12811
12812           enablestring=
12813           defaultval=$wxUSE_ALL_FEATURES
12814           if test -z "$defaultval"; then
12815               if test x"$enablestring" = xdisable; then
12816                   defaultval=yes
12817               else
12818                   defaultval=no
12819               fi
12820           fi
12821
12822           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12823 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12824           # Check whether --enable-choicedlg was given.
12825 if test "${enable_choicedlg+set}" = set; then
12826   enableval=$enable_choicedlg;
12827                           if test "$enableval" = yes; then
12828                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12829                           else
12830                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12831                           fi
12832
12833 else
12834
12835                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12836
12837 fi
12838
12839
12840           eval "$wx_cv_use_choicedlg"
12841
12842           if test x"$enablestring" = xdisable; then
12843             if test $wxUSE_CHOICEDLG = no; then
12844               result=yes
12845             else
12846               result=no
12847             fi
12848           else
12849             result=$wxUSE_CHOICEDLG
12850           fi
12851
12852           { echo "$as_me:$LINENO: result: $result" >&5
12853 echo "${ECHO_T}$result" >&6; }
12854
12855
12856           enablestring=
12857           defaultval=$wxUSE_ALL_FEATURES
12858           if test -z "$defaultval"; then
12859               if test x"$enablestring" = xdisable; then
12860                   defaultval=yes
12861               else
12862                   defaultval=no
12863               fi
12864           fi
12865
12866           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12867 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12868           # Check whether --enable-coldlg was given.
12869 if test "${enable_coldlg+set}" = set; then
12870   enableval=$enable_coldlg;
12871                           if test "$enableval" = yes; then
12872                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12873                           else
12874                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12875                           fi
12876
12877 else
12878
12879                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12880
12881 fi
12882
12883
12884           eval "$wx_cv_use_coldlg"
12885
12886           if test x"$enablestring" = xdisable; then
12887             if test $wxUSE_COLOURDLG = no; then
12888               result=yes
12889             else
12890               result=no
12891             fi
12892           else
12893             result=$wxUSE_COLOURDLG
12894           fi
12895
12896           { echo "$as_me:$LINENO: result: $result" >&5
12897 echo "${ECHO_T}$result" >&6; }
12898
12899
12900           enablestring=
12901           defaultval=$wxUSE_ALL_FEATURES
12902           if test -z "$defaultval"; then
12903               if test x"$enablestring" = xdisable; then
12904                   defaultval=yes
12905               else
12906                   defaultval=no
12907               fi
12908           fi
12909
12910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12911 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12912           # Check whether --enable-filedlg was given.
12913 if test "${enable_filedlg+set}" = set; then
12914   enableval=$enable_filedlg;
12915                           if test "$enableval" = yes; then
12916                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12917                           else
12918                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12919                           fi
12920
12921 else
12922
12923                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12924
12925 fi
12926
12927
12928           eval "$wx_cv_use_filedlg"
12929
12930           if test x"$enablestring" = xdisable; then
12931             if test $wxUSE_FILEDLG = no; then
12932               result=yes
12933             else
12934               result=no
12935             fi
12936           else
12937             result=$wxUSE_FILEDLG
12938           fi
12939
12940           { echo "$as_me:$LINENO: result: $result" >&5
12941 echo "${ECHO_T}$result" >&6; }
12942
12943
12944           enablestring=
12945           defaultval=$wxUSE_ALL_FEATURES
12946           if test -z "$defaultval"; then
12947               if test x"$enablestring" = xdisable; then
12948                   defaultval=yes
12949               else
12950                   defaultval=no
12951               fi
12952           fi
12953
12954           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12955 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12956           # Check whether --enable-finddlg was given.
12957 if test "${enable_finddlg+set}" = set; then
12958   enableval=$enable_finddlg;
12959                           if test "$enableval" = yes; then
12960                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12961                           else
12962                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12963                           fi
12964
12965 else
12966
12967                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12968
12969 fi
12970
12971
12972           eval "$wx_cv_use_finddlg"
12973
12974           if test x"$enablestring" = xdisable; then
12975             if test $wxUSE_FINDREPLDLG = no; then
12976               result=yes
12977             else
12978               result=no
12979             fi
12980           else
12981             result=$wxUSE_FINDREPLDLG
12982           fi
12983
12984           { echo "$as_me:$LINENO: result: $result" >&5
12985 echo "${ECHO_T}$result" >&6; }
12986
12987
12988           enablestring=
12989           defaultval=$wxUSE_ALL_FEATURES
12990           if test -z "$defaultval"; then
12991               if test x"$enablestring" = xdisable; then
12992                   defaultval=yes
12993               else
12994                   defaultval=no
12995               fi
12996           fi
12997
12998           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12999 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13000           # Check whether --enable-fontdlg was given.
13001 if test "${enable_fontdlg+set}" = set; then
13002   enableval=$enable_fontdlg;
13003                           if test "$enableval" = yes; then
13004                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13005                           else
13006                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13007                           fi
13008
13009 else
13010
13011                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13012
13013 fi
13014
13015
13016           eval "$wx_cv_use_fontdlg"
13017
13018           if test x"$enablestring" = xdisable; then
13019             if test $wxUSE_FONTDLG = no; then
13020               result=yes
13021             else
13022               result=no
13023             fi
13024           else
13025             result=$wxUSE_FONTDLG
13026           fi
13027
13028           { echo "$as_me:$LINENO: result: $result" >&5
13029 echo "${ECHO_T}$result" >&6; }
13030
13031
13032           enablestring=
13033           defaultval=$wxUSE_ALL_FEATURES
13034           if test -z "$defaultval"; then
13035               if test x"$enablestring" = xdisable; then
13036                   defaultval=yes
13037               else
13038                   defaultval=no
13039               fi
13040           fi
13041
13042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13043 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13044           # Check whether --enable-dirdlg was given.
13045 if test "${enable_dirdlg+set}" = set; then
13046   enableval=$enable_dirdlg;
13047                           if test "$enableval" = yes; then
13048                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13049                           else
13050                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13051                           fi
13052
13053 else
13054
13055                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13056
13057 fi
13058
13059
13060           eval "$wx_cv_use_dirdlg"
13061
13062           if test x"$enablestring" = xdisable; then
13063             if test $wxUSE_DIRDLG = no; then
13064               result=yes
13065             else
13066               result=no
13067             fi
13068           else
13069             result=$wxUSE_DIRDLG
13070           fi
13071
13072           { echo "$as_me:$LINENO: result: $result" >&5
13073 echo "${ECHO_T}$result" >&6; }
13074
13075
13076           enablestring=
13077           defaultval=$wxUSE_ALL_FEATURES
13078           if test -z "$defaultval"; then
13079               if test x"$enablestring" = xdisable; then
13080                   defaultval=yes
13081               else
13082                   defaultval=no
13083               fi
13084           fi
13085
13086           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13087 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13088           # Check whether --enable-msgdlg was given.
13089 if test "${enable_msgdlg+set}" = set; then
13090   enableval=$enable_msgdlg;
13091                           if test "$enableval" = yes; then
13092                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13093                           else
13094                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13095                           fi
13096
13097 else
13098
13099                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13100
13101 fi
13102
13103
13104           eval "$wx_cv_use_msgdlg"
13105
13106           if test x"$enablestring" = xdisable; then
13107             if test $wxUSE_MSGDLG = no; then
13108               result=yes
13109             else
13110               result=no
13111             fi
13112           else
13113             result=$wxUSE_MSGDLG
13114           fi
13115
13116           { echo "$as_me:$LINENO: result: $result" >&5
13117 echo "${ECHO_T}$result" >&6; }
13118
13119
13120           enablestring=
13121           defaultval=$wxUSE_ALL_FEATURES
13122           if test -z "$defaultval"; then
13123               if test x"$enablestring" = xdisable; then
13124                   defaultval=yes
13125               else
13126                   defaultval=no
13127               fi
13128           fi
13129
13130           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13131 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13132           # Check whether --enable-numberdlg was given.
13133 if test "${enable_numberdlg+set}" = set; then
13134   enableval=$enable_numberdlg;
13135                           if test "$enableval" = yes; then
13136                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13137                           else
13138                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13139                           fi
13140
13141 else
13142
13143                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13144
13145 fi
13146
13147
13148           eval "$wx_cv_use_numberdlg"
13149
13150           if test x"$enablestring" = xdisable; then
13151             if test $wxUSE_NUMBERDLG = no; then
13152               result=yes
13153             else
13154               result=no
13155             fi
13156           else
13157             result=$wxUSE_NUMBERDLG
13158           fi
13159
13160           { echo "$as_me:$LINENO: result: $result" >&5
13161 echo "${ECHO_T}$result" >&6; }
13162
13163
13164           enablestring=
13165           defaultval=$wxUSE_ALL_FEATURES
13166           if test -z "$defaultval"; then
13167               if test x"$enablestring" = xdisable; then
13168                   defaultval=yes
13169               else
13170                   defaultval=no
13171               fi
13172           fi
13173
13174           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13175 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13176           # Check whether --enable-splash was given.
13177 if test "${enable_splash+set}" = set; then
13178   enableval=$enable_splash;
13179                           if test "$enableval" = yes; then
13180                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13181                           else
13182                             wx_cv_use_splash='wxUSE_SPLASH=no'
13183                           fi
13184
13185 else
13186
13187                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13188
13189 fi
13190
13191
13192           eval "$wx_cv_use_splash"
13193
13194           if test x"$enablestring" = xdisable; then
13195             if test $wxUSE_SPLASH = no; then
13196               result=yes
13197             else
13198               result=no
13199             fi
13200           else
13201             result=$wxUSE_SPLASH
13202           fi
13203
13204           { echo "$as_me:$LINENO: result: $result" >&5
13205 echo "${ECHO_T}$result" >&6; }
13206
13207
13208           enablestring=
13209           defaultval=$wxUSE_ALL_FEATURES
13210           if test -z "$defaultval"; then
13211               if test x"$enablestring" = xdisable; then
13212                   defaultval=yes
13213               else
13214                   defaultval=no
13215               fi
13216           fi
13217
13218           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13219 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13220           # Check whether --enable-textdlg was given.
13221 if test "${enable_textdlg+set}" = set; then
13222   enableval=$enable_textdlg;
13223                           if test "$enableval" = yes; then
13224                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13225                           else
13226                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13227                           fi
13228
13229 else
13230
13231                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13232
13233 fi
13234
13235
13236           eval "$wx_cv_use_textdlg"
13237
13238           if test x"$enablestring" = xdisable; then
13239             if test $wxUSE_TEXTDLG = no; then
13240               result=yes
13241             else
13242               result=no
13243             fi
13244           else
13245             result=$wxUSE_TEXTDLG
13246           fi
13247
13248           { echo "$as_me:$LINENO: result: $result" >&5
13249 echo "${ECHO_T}$result" >&6; }
13250
13251
13252           enablestring=
13253           defaultval=$wxUSE_ALL_FEATURES
13254           if test -z "$defaultval"; then
13255               if test x"$enablestring" = xdisable; then
13256                   defaultval=yes
13257               else
13258                   defaultval=no
13259               fi
13260           fi
13261
13262           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13263 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13264           # Check whether --enable-tipdlg was given.
13265 if test "${enable_tipdlg+set}" = set; then
13266   enableval=$enable_tipdlg;
13267                           if test "$enableval" = yes; then
13268                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13269                           else
13270                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13271                           fi
13272
13273 else
13274
13275                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13276
13277 fi
13278
13279
13280           eval "$wx_cv_use_tipdlg"
13281
13282           if test x"$enablestring" = xdisable; then
13283             if test $wxUSE_STARTUP_TIPS = no; then
13284               result=yes
13285             else
13286               result=no
13287             fi
13288           else
13289             result=$wxUSE_STARTUP_TIPS
13290           fi
13291
13292           { echo "$as_me:$LINENO: result: $result" >&5
13293 echo "${ECHO_T}$result" >&6; }
13294
13295
13296           enablestring=
13297           defaultval=$wxUSE_ALL_FEATURES
13298           if test -z "$defaultval"; then
13299               if test x"$enablestring" = xdisable; then
13300                   defaultval=yes
13301               else
13302                   defaultval=no
13303               fi
13304           fi
13305
13306           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13307 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13308           # Check whether --enable-progressdlg was given.
13309 if test "${enable_progressdlg+set}" = set; then
13310   enableval=$enable_progressdlg;
13311                           if test "$enableval" = yes; then
13312                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13313                           else
13314                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13315                           fi
13316
13317 else
13318
13319                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13320
13321 fi
13322
13323
13324           eval "$wx_cv_use_progressdlg"
13325
13326           if test x"$enablestring" = xdisable; then
13327             if test $wxUSE_PROGRESSDLG = no; then
13328               result=yes
13329             else
13330               result=no
13331             fi
13332           else
13333             result=$wxUSE_PROGRESSDLG
13334           fi
13335
13336           { echo "$as_me:$LINENO: result: $result" >&5
13337 echo "${ECHO_T}$result" >&6; }
13338
13339
13340           enablestring=
13341           defaultval=$wxUSE_ALL_FEATURES
13342           if test -z "$defaultval"; then
13343               if test x"$enablestring" = xdisable; then
13344                   defaultval=yes
13345               else
13346                   defaultval=no
13347               fi
13348           fi
13349
13350           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13351 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13352           # Check whether --enable-wizarddlg was given.
13353 if test "${enable_wizarddlg+set}" = set; then
13354   enableval=$enable_wizarddlg;
13355                           if test "$enableval" = yes; then
13356                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13357                           else
13358                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13359                           fi
13360
13361 else
13362
13363                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13364
13365 fi
13366
13367
13368           eval "$wx_cv_use_wizarddlg"
13369
13370           if test x"$enablestring" = xdisable; then
13371             if test $wxUSE_WIZARDDLG = no; then
13372               result=yes
13373             else
13374               result=no
13375             fi
13376           else
13377             result=$wxUSE_WIZARDDLG
13378           fi
13379
13380           { echo "$as_me:$LINENO: result: $result" >&5
13381 echo "${ECHO_T}$result" >&6; }
13382
13383
13384
13385
13386           enablestring=
13387           defaultval=$wxUSE_ALL_FEATURES
13388           if test -z "$defaultval"; then
13389               if test x"$enablestring" = xdisable; then
13390                   defaultval=yes
13391               else
13392                   defaultval=no
13393               fi
13394           fi
13395
13396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13397 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13398           # Check whether --enable-menus was given.
13399 if test "${enable_menus+set}" = set; then
13400   enableval=$enable_menus;
13401                           if test "$enableval" = yes; then
13402                             wx_cv_use_menus='wxUSE_MENUS=yes'
13403                           else
13404                             wx_cv_use_menus='wxUSE_MENUS=no'
13405                           fi
13406
13407 else
13408
13409                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13410
13411 fi
13412
13413
13414           eval "$wx_cv_use_menus"
13415
13416           if test x"$enablestring" = xdisable; then
13417             if test $wxUSE_MENUS = no; then
13418               result=yes
13419             else
13420               result=no
13421             fi
13422           else
13423             result=$wxUSE_MENUS
13424           fi
13425
13426           { echo "$as_me:$LINENO: result: $result" >&5
13427 echo "${ECHO_T}$result" >&6; }
13428
13429
13430           enablestring=
13431           defaultval=$wxUSE_ALL_FEATURES
13432           if test -z "$defaultval"; then
13433               if test x"$enablestring" = xdisable; then
13434                   defaultval=yes
13435               else
13436                   defaultval=no
13437               fi
13438           fi
13439
13440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13441 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13442           # Check whether --enable-miniframe was given.
13443 if test "${enable_miniframe+set}" = set; then
13444   enableval=$enable_miniframe;
13445                           if test "$enableval" = yes; then
13446                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13447                           else
13448                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13449                           fi
13450
13451 else
13452
13453                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13454
13455 fi
13456
13457
13458           eval "$wx_cv_use_miniframe"
13459
13460           if test x"$enablestring" = xdisable; then
13461             if test $wxUSE_MINIFRAME = no; then
13462               result=yes
13463             else
13464               result=no
13465             fi
13466           else
13467             result=$wxUSE_MINIFRAME
13468           fi
13469
13470           { echo "$as_me:$LINENO: result: $result" >&5
13471 echo "${ECHO_T}$result" >&6; }
13472
13473
13474           enablestring=
13475           defaultval=$wxUSE_ALL_FEATURES
13476           if test -z "$defaultval"; then
13477               if test x"$enablestring" = xdisable; then
13478                   defaultval=yes
13479               else
13480                   defaultval=no
13481               fi
13482           fi
13483
13484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13485 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13486           # Check whether --enable-tooltips was given.
13487 if test "${enable_tooltips+set}" = set; then
13488   enableval=$enable_tooltips;
13489                           if test "$enableval" = yes; then
13490                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13491                           else
13492                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13493                           fi
13494
13495 else
13496
13497                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13498
13499 fi
13500
13501
13502           eval "$wx_cv_use_tooltips"
13503
13504           if test x"$enablestring" = xdisable; then
13505             if test $wxUSE_TOOLTIPS = no; then
13506               result=yes
13507             else
13508               result=no
13509             fi
13510           else
13511             result=$wxUSE_TOOLTIPS
13512           fi
13513
13514           { echo "$as_me:$LINENO: result: $result" >&5
13515 echo "${ECHO_T}$result" >&6; }
13516
13517
13518           enablestring=
13519           defaultval=$wxUSE_ALL_FEATURES
13520           if test -z "$defaultval"; then
13521               if test x"$enablestring" = xdisable; then
13522                   defaultval=yes
13523               else
13524                   defaultval=no
13525               fi
13526           fi
13527
13528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13529 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13530           # Check whether --enable-splines was given.
13531 if test "${enable_splines+set}" = set; then
13532   enableval=$enable_splines;
13533                           if test "$enableval" = yes; then
13534                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13535                           else
13536                             wx_cv_use_splines='wxUSE_SPLINES=no'
13537                           fi
13538
13539 else
13540
13541                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13542
13543 fi
13544
13545
13546           eval "$wx_cv_use_splines"
13547
13548           if test x"$enablestring" = xdisable; then
13549             if test $wxUSE_SPLINES = no; then
13550               result=yes
13551             else
13552               result=no
13553             fi
13554           else
13555             result=$wxUSE_SPLINES
13556           fi
13557
13558           { echo "$as_me:$LINENO: result: $result" >&5
13559 echo "${ECHO_T}$result" >&6; }
13560
13561
13562           enablestring=
13563           defaultval=$wxUSE_ALL_FEATURES
13564           if test -z "$defaultval"; then
13565               if test x"$enablestring" = xdisable; then
13566                   defaultval=yes
13567               else
13568                   defaultval=no
13569               fi
13570           fi
13571
13572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13573 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13574           # Check whether --enable-mousewheel was given.
13575 if test "${enable_mousewheel+set}" = set; then
13576   enableval=$enable_mousewheel;
13577                           if test "$enableval" = yes; then
13578                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13579                           else
13580                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13581                           fi
13582
13583 else
13584
13585                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13586
13587 fi
13588
13589
13590           eval "$wx_cv_use_mousewheel"
13591
13592           if test x"$enablestring" = xdisable; then
13593             if test $wxUSE_MOUSEWHEEL = no; then
13594               result=yes
13595             else
13596               result=no
13597             fi
13598           else
13599             result=$wxUSE_MOUSEWHEEL
13600           fi
13601
13602           { echo "$as_me:$LINENO: result: $result" >&5
13603 echo "${ECHO_T}$result" >&6; }
13604
13605
13606           enablestring=
13607           defaultval=$wxUSE_ALL_FEATURES
13608           if test -z "$defaultval"; then
13609               if test x"$enablestring" = xdisable; then
13610                   defaultval=yes
13611               else
13612                   defaultval=no
13613               fi
13614           fi
13615
13616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13617 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13618           # Check whether --enable-validators was given.
13619 if test "${enable_validators+set}" = set; then
13620   enableval=$enable_validators;
13621                           if test "$enableval" = yes; then
13622                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13623                           else
13624                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13625                           fi
13626
13627 else
13628
13629                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13630
13631 fi
13632
13633
13634           eval "$wx_cv_use_validators"
13635
13636           if test x"$enablestring" = xdisable; then
13637             if test $wxUSE_VALIDATORS = no; then
13638               result=yes
13639             else
13640               result=no
13641             fi
13642           else
13643             result=$wxUSE_VALIDATORS
13644           fi
13645
13646           { echo "$as_me:$LINENO: result: $result" >&5
13647 echo "${ECHO_T}$result" >&6; }
13648
13649
13650           enablestring=
13651           defaultval=$wxUSE_ALL_FEATURES
13652           if test -z "$defaultval"; then
13653               if test x"$enablestring" = xdisable; then
13654                   defaultval=yes
13655               else
13656                   defaultval=no
13657               fi
13658           fi
13659
13660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13661 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13662           # Check whether --enable-busyinfo was given.
13663 if test "${enable_busyinfo+set}" = set; then
13664   enableval=$enable_busyinfo;
13665                           if test "$enableval" = yes; then
13666                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13667                           else
13668                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13669                           fi
13670
13671 else
13672
13673                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13674
13675 fi
13676
13677
13678           eval "$wx_cv_use_busyinfo"
13679
13680           if test x"$enablestring" = xdisable; then
13681             if test $wxUSE_BUSYINFO = no; then
13682               result=yes
13683             else
13684               result=no
13685             fi
13686           else
13687             result=$wxUSE_BUSYINFO
13688           fi
13689
13690           { echo "$as_me:$LINENO: result: $result" >&5
13691 echo "${ECHO_T}$result" >&6; }
13692
13693
13694           enablestring=
13695           defaultval=$wxUSE_ALL_FEATURES
13696           if test -z "$defaultval"; then
13697               if test x"$enablestring" = xdisable; then
13698                   defaultval=yes
13699               else
13700                   defaultval=no
13701               fi
13702           fi
13703
13704           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13705 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13706           # Check whether --enable-joystick was given.
13707 if test "${enable_joystick+set}" = set; then
13708   enableval=$enable_joystick;
13709                           if test "$enableval" = yes; then
13710                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13711                           else
13712                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13713                           fi
13714
13715 else
13716
13717                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13718
13719 fi
13720
13721
13722           eval "$wx_cv_use_joystick"
13723
13724           if test x"$enablestring" = xdisable; then
13725             if test $wxUSE_JOYSTICK = no; then
13726               result=yes
13727             else
13728               result=no
13729             fi
13730           else
13731             result=$wxUSE_JOYSTICK
13732           fi
13733
13734           { echo "$as_me:$LINENO: result: $result" >&5
13735 echo "${ECHO_T}$result" >&6; }
13736
13737
13738           enablestring=
13739           defaultval=$wxUSE_ALL_FEATURES
13740           if test -z "$defaultval"; then
13741               if test x"$enablestring" = xdisable; then
13742                   defaultval=yes
13743               else
13744                   defaultval=no
13745               fi
13746           fi
13747
13748           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13749 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13750           # Check whether --enable-metafile was given.
13751 if test "${enable_metafile+set}" = set; then
13752   enableval=$enable_metafile;
13753                           if test "$enableval" = yes; then
13754                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13755                           else
13756                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13757                           fi
13758
13759 else
13760
13761                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13762
13763 fi
13764
13765
13766           eval "$wx_cv_use_metafile"
13767
13768           if test x"$enablestring" = xdisable; then
13769             if test $wxUSE_METAFILE = no; then
13770               result=yes
13771             else
13772               result=no
13773             fi
13774           else
13775             result=$wxUSE_METAFILE
13776           fi
13777
13778           { echo "$as_me:$LINENO: result: $result" >&5
13779 echo "${ECHO_T}$result" >&6; }
13780
13781
13782           enablestring=
13783           defaultval=$wxUSE_ALL_FEATURES
13784           if test -z "$defaultval"; then
13785               if test x"$enablestring" = xdisable; then
13786                   defaultval=yes
13787               else
13788                   defaultval=no
13789               fi
13790           fi
13791
13792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13793 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13794           # Check whether --enable-dragimage was given.
13795 if test "${enable_dragimage+set}" = set; then
13796   enableval=$enable_dragimage;
13797                           if test "$enableval" = yes; then
13798                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13799                           else
13800                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13801                           fi
13802
13803 else
13804
13805                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13806
13807 fi
13808
13809
13810           eval "$wx_cv_use_dragimage"
13811
13812           if test x"$enablestring" = xdisable; then
13813             if test $wxUSE_DRAGIMAGE = no; then
13814               result=yes
13815             else
13816               result=no
13817             fi
13818           else
13819             result=$wxUSE_DRAGIMAGE
13820           fi
13821
13822           { echo "$as_me:$LINENO: result: $result" >&5
13823 echo "${ECHO_T}$result" >&6; }
13824
13825
13826           enablestring=
13827           defaultval=$wxUSE_ALL_FEATURES
13828           if test -z "$defaultval"; then
13829               if test x"$enablestring" = xdisable; then
13830                   defaultval=yes
13831               else
13832                   defaultval=no
13833               fi
13834           fi
13835
13836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13837 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13838           # Check whether --enable-accessibility was given.
13839 if test "${enable_accessibility+set}" = set; then
13840   enableval=$enable_accessibility;
13841                           if test "$enableval" = yes; then
13842                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13843                           else
13844                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13845                           fi
13846
13847 else
13848
13849                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13850
13851 fi
13852
13853
13854           eval "$wx_cv_use_accessibility"
13855
13856           if test x"$enablestring" = xdisable; then
13857             if test $wxUSE_ACCESSIBILITY = no; then
13858               result=yes
13859             else
13860               result=no
13861             fi
13862           else
13863             result=$wxUSE_ACCESSIBILITY
13864           fi
13865
13866           { echo "$as_me:$LINENO: result: $result" >&5
13867 echo "${ECHO_T}$result" >&6; }
13868
13869
13870           enablestring=
13871           defaultval=$wxUSE_ALL_FEATURES
13872           if test -z "$defaultval"; then
13873               if test x"$enablestring" = xdisable; then
13874                   defaultval=yes
13875               else
13876                   defaultval=no
13877               fi
13878           fi
13879
13880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
13881 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
13882           # Check whether --enable-uiactionsim was given.
13883 if test "${enable_uiactionsim+set}" = set; then
13884   enableval=$enable_uiactionsim;
13885                           if test "$enableval" = yes; then
13886                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
13887                           else
13888                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
13889                           fi
13890
13891 else
13892
13893                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
13894
13895 fi
13896
13897
13898           eval "$wx_cv_use_uiactionsim"
13899
13900           if test x"$enablestring" = xdisable; then
13901             if test $wxUSE_UIACTIONSIMULATOR = no; then
13902               result=yes
13903             else
13904               result=no
13905             fi
13906           else
13907             result=$wxUSE_UIACTIONSIMULATOR
13908           fi
13909
13910           { echo "$as_me:$LINENO: result: $result" >&5
13911 echo "${ECHO_T}$result" >&6; }
13912
13913
13914
13915
13916           enablestring=
13917           defaultval=$wxUSE_ALL_FEATURES
13918           if test -z "$defaultval"; then
13919               if test x"$enablestring" = xdisable; then
13920                   defaultval=yes
13921               else
13922                   defaultval=no
13923               fi
13924           fi
13925
13926           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13927 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13928           # Check whether --enable-palette was given.
13929 if test "${enable_palette+set}" = set; then
13930   enableval=$enable_palette;
13931                           if test "$enableval" = yes; then
13932                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13933                           else
13934                             wx_cv_use_palette='wxUSE_PALETTE=no'
13935                           fi
13936
13937 else
13938
13939                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13940
13941 fi
13942
13943
13944           eval "$wx_cv_use_palette"
13945
13946           if test x"$enablestring" = xdisable; then
13947             if test $wxUSE_PALETTE = no; then
13948               result=yes
13949             else
13950               result=no
13951             fi
13952           else
13953             result=$wxUSE_PALETTE
13954           fi
13955
13956           { echo "$as_me:$LINENO: result: $result" >&5
13957 echo "${ECHO_T}$result" >&6; }
13958
13959
13960           enablestring=
13961           defaultval=$wxUSE_ALL_FEATURES
13962           if test -z "$defaultval"; then
13963               if test x"$enablestring" = xdisable; then
13964                   defaultval=yes
13965               else
13966                   defaultval=no
13967               fi
13968           fi
13969
13970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13971 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13972           # Check whether --enable-image was given.
13973 if test "${enable_image+set}" = set; then
13974   enableval=$enable_image;
13975                           if test "$enableval" = yes; then
13976                             wx_cv_use_image='wxUSE_IMAGE=yes'
13977                           else
13978                             wx_cv_use_image='wxUSE_IMAGE=no'
13979                           fi
13980
13981 else
13982
13983                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13984
13985 fi
13986
13987
13988           eval "$wx_cv_use_image"
13989
13990           if test x"$enablestring" = xdisable; then
13991             if test $wxUSE_IMAGE = no; then
13992               result=yes
13993             else
13994               result=no
13995             fi
13996           else
13997             result=$wxUSE_IMAGE
13998           fi
13999
14000           { echo "$as_me:$LINENO: result: $result" >&5
14001 echo "${ECHO_T}$result" >&6; }
14002
14003
14004           enablestring=
14005           defaultval=$wxUSE_ALL_FEATURES
14006           if test -z "$defaultval"; then
14007               if test x"$enablestring" = xdisable; then
14008                   defaultval=yes
14009               else
14010                   defaultval=no
14011               fi
14012           fi
14013
14014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14015 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14016           # Check whether --enable-gif was given.
14017 if test "${enable_gif+set}" = set; then
14018   enableval=$enable_gif;
14019                           if test "$enableval" = yes; then
14020                             wx_cv_use_gif='wxUSE_GIF=yes'
14021                           else
14022                             wx_cv_use_gif='wxUSE_GIF=no'
14023                           fi
14024
14025 else
14026
14027                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14028
14029 fi
14030
14031
14032           eval "$wx_cv_use_gif"
14033
14034           if test x"$enablestring" = xdisable; then
14035             if test $wxUSE_GIF = no; then
14036               result=yes
14037             else
14038               result=no
14039             fi
14040           else
14041             result=$wxUSE_GIF
14042           fi
14043
14044           { echo "$as_me:$LINENO: result: $result" >&5
14045 echo "${ECHO_T}$result" >&6; }
14046
14047
14048           enablestring=
14049           defaultval=$wxUSE_ALL_FEATURES
14050           if test -z "$defaultval"; then
14051               if test x"$enablestring" = xdisable; then
14052                   defaultval=yes
14053               else
14054                   defaultval=no
14055               fi
14056           fi
14057
14058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14059 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14060           # Check whether --enable-pcx was given.
14061 if test "${enable_pcx+set}" = set; then
14062   enableval=$enable_pcx;
14063                           if test "$enableval" = yes; then
14064                             wx_cv_use_pcx='wxUSE_PCX=yes'
14065                           else
14066                             wx_cv_use_pcx='wxUSE_PCX=no'
14067                           fi
14068
14069 else
14070
14071                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14072
14073 fi
14074
14075
14076           eval "$wx_cv_use_pcx"
14077
14078           if test x"$enablestring" = xdisable; then
14079             if test $wxUSE_PCX = no; then
14080               result=yes
14081             else
14082               result=no
14083             fi
14084           else
14085             result=$wxUSE_PCX
14086           fi
14087
14088           { echo "$as_me:$LINENO: result: $result" >&5
14089 echo "${ECHO_T}$result" >&6; }
14090
14091
14092           enablestring=
14093           defaultval=$wxUSE_ALL_FEATURES
14094           if test -z "$defaultval"; then
14095               if test x"$enablestring" = xdisable; then
14096                   defaultval=yes
14097               else
14098                   defaultval=no
14099               fi
14100           fi
14101
14102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14103 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14104           # Check whether --enable-tga was given.
14105 if test "${enable_tga+set}" = set; then
14106   enableval=$enable_tga;
14107                           if test "$enableval" = yes; then
14108                             wx_cv_use_tga='wxUSE_TGA=yes'
14109                           else
14110                             wx_cv_use_tga='wxUSE_TGA=no'
14111                           fi
14112
14113 else
14114
14115                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14116
14117 fi
14118
14119
14120           eval "$wx_cv_use_tga"
14121
14122           if test x"$enablestring" = xdisable; then
14123             if test $wxUSE_TGA = no; then
14124               result=yes
14125             else
14126               result=no
14127             fi
14128           else
14129             result=$wxUSE_TGA
14130           fi
14131
14132           { echo "$as_me:$LINENO: result: $result" >&5
14133 echo "${ECHO_T}$result" >&6; }
14134
14135
14136           enablestring=
14137           defaultval=$wxUSE_ALL_FEATURES
14138           if test -z "$defaultval"; then
14139               if test x"$enablestring" = xdisable; then
14140                   defaultval=yes
14141               else
14142                   defaultval=no
14143               fi
14144           fi
14145
14146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14147 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14148           # Check whether --enable-iff was given.
14149 if test "${enable_iff+set}" = set; then
14150   enableval=$enable_iff;
14151                           if test "$enableval" = yes; then
14152                             wx_cv_use_iff='wxUSE_IFF=yes'
14153                           else
14154                             wx_cv_use_iff='wxUSE_IFF=no'
14155                           fi
14156
14157 else
14158
14159                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14160
14161 fi
14162
14163
14164           eval "$wx_cv_use_iff"
14165
14166           if test x"$enablestring" = xdisable; then
14167             if test $wxUSE_IFF = no; then
14168               result=yes
14169             else
14170               result=no
14171             fi
14172           else
14173             result=$wxUSE_IFF
14174           fi
14175
14176           { echo "$as_me:$LINENO: result: $result" >&5
14177 echo "${ECHO_T}$result" >&6; }
14178
14179
14180           enablestring=
14181           defaultval=$wxUSE_ALL_FEATURES
14182           if test -z "$defaultval"; then
14183               if test x"$enablestring" = xdisable; then
14184                   defaultval=yes
14185               else
14186                   defaultval=no
14187               fi
14188           fi
14189
14190           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14191 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14192           # Check whether --enable-pnm was given.
14193 if test "${enable_pnm+set}" = set; then
14194   enableval=$enable_pnm;
14195                           if test "$enableval" = yes; then
14196                             wx_cv_use_pnm='wxUSE_PNM=yes'
14197                           else
14198                             wx_cv_use_pnm='wxUSE_PNM=no'
14199                           fi
14200
14201 else
14202
14203                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14204
14205 fi
14206
14207
14208           eval "$wx_cv_use_pnm"
14209
14210           if test x"$enablestring" = xdisable; then
14211             if test $wxUSE_PNM = no; then
14212               result=yes
14213             else
14214               result=no
14215             fi
14216           else
14217             result=$wxUSE_PNM
14218           fi
14219
14220           { echo "$as_me:$LINENO: result: $result" >&5
14221 echo "${ECHO_T}$result" >&6; }
14222
14223
14224           enablestring=
14225           defaultval=$wxUSE_ALL_FEATURES
14226           if test -z "$defaultval"; then
14227               if test x"$enablestring" = xdisable; then
14228                   defaultval=yes
14229               else
14230                   defaultval=no
14231               fi
14232           fi
14233
14234           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14235 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14236           # Check whether --enable-xpm was given.
14237 if test "${enable_xpm+set}" = set; then
14238   enableval=$enable_xpm;
14239                           if test "$enableval" = yes; then
14240                             wx_cv_use_xpm='wxUSE_XPM=yes'
14241                           else
14242                             wx_cv_use_xpm='wxUSE_XPM=no'
14243                           fi
14244
14245 else
14246
14247                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14248
14249 fi
14250
14251
14252           eval "$wx_cv_use_xpm"
14253
14254           if test x"$enablestring" = xdisable; then
14255             if test $wxUSE_XPM = no; then
14256               result=yes
14257             else
14258               result=no
14259             fi
14260           else
14261             result=$wxUSE_XPM
14262           fi
14263
14264           { echo "$as_me:$LINENO: result: $result" >&5
14265 echo "${ECHO_T}$result" >&6; }
14266
14267
14268           enablestring=
14269           defaultval=$wxUSE_ALL_FEATURES
14270           if test -z "$defaultval"; then
14271               if test x"$enablestring" = xdisable; then
14272                   defaultval=yes
14273               else
14274                   defaultval=no
14275               fi
14276           fi
14277
14278           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14279 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14280           # Check whether --enable-ico_cur was given.
14281 if test "${enable_ico_cur+set}" = set; then
14282   enableval=$enable_ico_cur;
14283                           if test "$enableval" = yes; then
14284                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14285                           else
14286                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14287                           fi
14288
14289 else
14290
14291                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14292
14293 fi
14294
14295
14296           eval "$wx_cv_use_ico_cur"
14297
14298           if test x"$enablestring" = xdisable; then
14299             if test $wxUSE_ICO_CUR = no; then
14300               result=yes
14301             else
14302               result=no
14303             fi
14304           else
14305             result=$wxUSE_ICO_CUR
14306           fi
14307
14308           { echo "$as_me:$LINENO: result: $result" >&5
14309 echo "${ECHO_T}$result" >&6; }
14310
14311
14312
14313
14314           enablestring=
14315           defaultval=$wxUSE_ALL_FEATURES
14316           if test -z "$defaultval"; then
14317               if test x"$enablestring" = xdisable; then
14318                   defaultval=yes
14319               else
14320                   defaultval=no
14321               fi
14322           fi
14323
14324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14325 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14326           # Check whether --enable-dccache was given.
14327 if test "${enable_dccache+set}" = set; then
14328   enableval=$enable_dccache;
14329                           if test "$enableval" = yes; then
14330                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14331                           else
14332                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14333                           fi
14334
14335 else
14336
14337                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14338
14339 fi
14340
14341
14342           eval "$wx_cv_use_dccache"
14343
14344           if test x"$enablestring" = xdisable; then
14345             if test $wxUSE_DC_CACHEING = no; then
14346               result=yes
14347             else
14348               result=no
14349             fi
14350           else
14351             result=$wxUSE_DC_CACHEING
14352           fi
14353
14354           { echo "$as_me:$LINENO: result: $result" >&5
14355 echo "${ECHO_T}$result" >&6; }
14356
14357
14358           enablestring=
14359           defaultval=$wxUSE_ALL_FEATURES
14360           if test -z "$defaultval"; then
14361               if test x"$enablestring" = xdisable; then
14362                   defaultval=yes
14363               else
14364                   defaultval=no
14365               fi
14366           fi
14367
14368           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14369 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14370           # Check whether --enable-ps-in-msw was given.
14371 if test "${enable_ps_in_msw+set}" = set; then
14372   enableval=$enable_ps_in_msw;
14373                           if test "$enableval" = yes; then
14374                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14375                           else
14376                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14377                           fi
14378
14379 else
14380
14381                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14382
14383 fi
14384
14385
14386           eval "$wx_cv_use_ps_in_msw"
14387
14388           if test x"$enablestring" = xdisable; then
14389             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14390               result=yes
14391             else
14392               result=no
14393             fi
14394           else
14395             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14396           fi
14397
14398           { echo "$as_me:$LINENO: result: $result" >&5
14399 echo "${ECHO_T}$result" >&6; }
14400
14401
14402           enablestring=
14403           defaultval=$wxUSE_ALL_FEATURES
14404           if test -z "$defaultval"; then
14405               if test x"$enablestring" = xdisable; then
14406                   defaultval=yes
14407               else
14408                   defaultval=no
14409               fi
14410           fi
14411
14412           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14413 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14414           # Check whether --enable-ownerdrawn was given.
14415 if test "${enable_ownerdrawn+set}" = set; then
14416   enableval=$enable_ownerdrawn;
14417                           if test "$enableval" = yes; then
14418                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14419                           else
14420                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14421                           fi
14422
14423 else
14424
14425                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14426
14427 fi
14428
14429
14430           eval "$wx_cv_use_ownerdrawn"
14431
14432           if test x"$enablestring" = xdisable; then
14433             if test $wxUSE_OWNER_DRAWN = no; then
14434               result=yes
14435             else
14436               result=no
14437             fi
14438           else
14439             result=$wxUSE_OWNER_DRAWN
14440           fi
14441
14442           { echo "$as_me:$LINENO: result: $result" >&5
14443 echo "${ECHO_T}$result" >&6; }
14444
14445
14446           enablestring=
14447           defaultval=$wxUSE_ALL_FEATURES
14448           if test -z "$defaultval"; then
14449               if test x"$enablestring" = xdisable; then
14450                   defaultval=yes
14451               else
14452                   defaultval=no
14453               fi
14454           fi
14455
14456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14457 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14458           # Check whether --enable-uxtheme was given.
14459 if test "${enable_uxtheme+set}" = set; then
14460   enableval=$enable_uxtheme;
14461                           if test "$enableval" = yes; then
14462                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14463                           else
14464                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14465                           fi
14466
14467 else
14468
14469                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14470
14471 fi
14472
14473
14474           eval "$wx_cv_use_uxtheme"
14475
14476           if test x"$enablestring" = xdisable; then
14477             if test $wxUSE_UXTHEME = no; then
14478               result=yes
14479             else
14480               result=no
14481             fi
14482           else
14483             result=$wxUSE_UXTHEME
14484           fi
14485
14486           { echo "$as_me:$LINENO: result: $result" >&5
14487 echo "${ECHO_T}$result" >&6; }
14488
14489
14490           enablestring=
14491           defaultval=$wxUSE_ALL_FEATURES
14492           if test -z "$defaultval"; then
14493               if test x"$enablestring" = xdisable; then
14494                   defaultval=yes
14495               else
14496                   defaultval=no
14497               fi
14498           fi
14499
14500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14501 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14502           # Check whether --enable-wxdib was given.
14503 if test "${enable_wxdib+set}" = set; then
14504   enableval=$enable_wxdib;
14505                           if test "$enableval" = yes; then
14506                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14507                           else
14508                             wx_cv_use_wxdib='wxUSE_DIB=no'
14509                           fi
14510
14511 else
14512
14513                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14514
14515 fi
14516
14517
14518           eval "$wx_cv_use_wxdib"
14519
14520           if test x"$enablestring" = xdisable; then
14521             if test $wxUSE_DIB = no; then
14522               result=yes
14523             else
14524               result=no
14525             fi
14526           else
14527             result=$wxUSE_DIB
14528           fi
14529
14530           { echo "$as_me:$LINENO: result: $result" >&5
14531 echo "${ECHO_T}$result" >&6; }
14532
14533
14534 if test "$wxUSE_MSW" != 1; then
14535     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14536 fi
14537
14538
14539           enablestring=
14540           defaultval=$wxUSE_ALL_FEATURES
14541           if test -z "$defaultval"; then
14542               if test x"$enablestring" = xdisable; then
14543                   defaultval=yes
14544               else
14545                   defaultval=no
14546               fi
14547           fi
14548
14549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14550 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14551           # Check whether --enable-autoidman was given.
14552 if test "${enable_autoidman+set}" = set; then
14553   enableval=$enable_autoidman;
14554                           if test "$enableval" = yes; then
14555                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14556                           else
14557                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14558                           fi
14559
14560 else
14561
14562                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14563
14564 fi
14565
14566
14567           eval "$wx_cv_use_autoidman"
14568
14569           if test x"$enablestring" = xdisable; then
14570             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14571               result=yes
14572             else
14573               result=no
14574             fi
14575           else
14576             result=$wxUSE_AUTOID_MANAGEMENT
14577           fi
14578
14579           { echo "$as_me:$LINENO: result: $result" >&5
14580 echo "${ECHO_T}$result" >&6; }
14581
14582
14583 fi
14584
14585
14586 cat >confcache <<\_ACEOF
14587 # This file is a shell script that caches the results of configure
14588 # tests run on this system so they can be shared between configure
14589 # scripts and configure runs, see configure's option --config-cache.
14590 # It is not useful on other systems.  If it contains results you don't
14591 # want to keep, you may remove or edit it.
14592 #
14593 # config.status only pays attention to the cache file if you give it
14594 # the --recheck option to rerun configure.
14595 #
14596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14598 # following values.
14599
14600 _ACEOF
14601
14602 # The following way of writing the cache mishandles newlines in values,
14603 # but we know of no workaround that is simple, portable, and efficient.
14604 # So, we kill variables containing newlines.
14605 # Ultrix sh set writes to stderr and can't be redirected directly,
14606 # and sets the high bit in the cache file unless we assign to the vars.
14607 (
14608   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14609     eval ac_val=\$$ac_var
14610     case $ac_val in #(
14611     *${as_nl}*)
14612       case $ac_var in #(
14613       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14614 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14615       esac
14616       case $ac_var in #(
14617       _ | IFS | as_nl) ;; #(
14618       *) $as_unset $ac_var ;;
14619       esac ;;
14620     esac
14621   done
14622
14623   (set) 2>&1 |
14624     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14625     *${as_nl}ac_space=\ *)
14626       # `set' does not quote correctly, so add quotes (double-quote
14627       # substitution turns \\\\ into \\, and sed turns \\ into \).
14628       sed -n \
14629         "s/'/'\\\\''/g;
14630           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14631       ;; #(
14632     *)
14633       # `set' quotes correctly as required by POSIX, so do not add quotes.
14634       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14635       ;;
14636     esac |
14637     sort
14638 ) |
14639   sed '
14640      /^ac_cv_env_/b end
14641      t clear
14642      :clear
14643      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14644      t end
14645      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14646      :end' >>confcache
14647 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14648   if test -w "$cache_file"; then
14649     test "x$cache_file" != "x/dev/null" &&
14650       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14651 echo "$as_me: updating cache $cache_file" >&6;}
14652     cat confcache >$cache_file
14653   else
14654     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14655 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14656   fi
14657 fi
14658 rm -f confcache
14659
14660 CFLAGS=${CFLAGS:=}
14661 ac_ext=c
14662 ac_cpp='$CPP $CPPFLAGS'
14663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14666 if test -n "$ac_tool_prefix"; then
14667   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14668 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14671 if test "${ac_cv_prog_CC+set}" = set; then
14672   echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674   if test -n "$CC"; then
14675   ac_cv_prog_CC="$CC" # Let the user override the test.
14676 else
14677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14678 for as_dir in $PATH
14679 do
14680   IFS=$as_save_IFS
14681   test -z "$as_dir" && as_dir=.
14682   for ac_exec_ext in '' $ac_executable_extensions; do
14683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14684     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14686     break 2
14687   fi
14688 done
14689 done
14690 IFS=$as_save_IFS
14691
14692 fi
14693 fi
14694 CC=$ac_cv_prog_CC
14695 if test -n "$CC"; then
14696   { echo "$as_me:$LINENO: result: $CC" >&5
14697 echo "${ECHO_T}$CC" >&6; }
14698 else
14699   { echo "$as_me:$LINENO: result: no" >&5
14700 echo "${ECHO_T}no" >&6; }
14701 fi
14702
14703
14704 fi
14705 if test -z "$ac_cv_prog_CC"; then
14706   ac_ct_CC=$CC
14707   # Extract the first word of "gcc", so it can be a program name with args.
14708 set dummy gcc; ac_word=$2
14709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 else
14714   if test -n "$ac_ct_CC"; then
14715   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14716 else
14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14719 do
14720   IFS=$as_save_IFS
14721   test -z "$as_dir" && as_dir=.
14722   for ac_exec_ext in '' $ac_executable_extensions; do
14723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14724     ac_cv_prog_ac_ct_CC="gcc"
14725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14726     break 2
14727   fi
14728 done
14729 done
14730 IFS=$as_save_IFS
14731
14732 fi
14733 fi
14734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14735 if test -n "$ac_ct_CC"; then
14736   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14737 echo "${ECHO_T}$ac_ct_CC" >&6; }
14738 else
14739   { echo "$as_me:$LINENO: result: no" >&5
14740 echo "${ECHO_T}no" >&6; }
14741 fi
14742
14743   if test "x$ac_ct_CC" = x; then
14744     CC=""
14745   else
14746     case $cross_compiling:$ac_tool_warned in
14747 yes:)
14748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14749 whose name does not start with the host triplet.  If you think this
14750 configuration is useful to you, please write to autoconf@gnu.org." >&5
14751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14752 whose name does not start with the host triplet.  If you think this
14753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14754 ac_tool_warned=yes ;;
14755 esac
14756     CC=$ac_ct_CC
14757   fi
14758 else
14759   CC="$ac_cv_prog_CC"
14760 fi
14761
14762 if test -z "$CC"; then
14763           if test -n "$ac_tool_prefix"; then
14764     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14765 set dummy ${ac_tool_prefix}cc; ac_word=$2
14766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14768 if test "${ac_cv_prog_CC+set}" = set; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771   if test -n "$CC"; then
14772   ac_cv_prog_CC="$CC" # Let the user override the test.
14773 else
14774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775 for as_dir in $PATH
14776 do
14777   IFS=$as_save_IFS
14778   test -z "$as_dir" && as_dir=.
14779   for ac_exec_ext in '' $ac_executable_extensions; do
14780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14781     ac_cv_prog_CC="${ac_tool_prefix}cc"
14782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14783     break 2
14784   fi
14785 done
14786 done
14787 IFS=$as_save_IFS
14788
14789 fi
14790 fi
14791 CC=$ac_cv_prog_CC
14792 if test -n "$CC"; then
14793   { echo "$as_me:$LINENO: result: $CC" >&5
14794 echo "${ECHO_T}$CC" >&6; }
14795 else
14796   { echo "$as_me:$LINENO: result: no" >&5
14797 echo "${ECHO_T}no" >&6; }
14798 fi
14799
14800
14801   fi
14802 fi
14803 if test -z "$CC"; then
14804   # Extract the first word of "cc", so it can be a program name with args.
14805 set dummy cc; ac_word=$2
14806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14808 if test "${ac_cv_prog_CC+set}" = set; then
14809   echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811   if test -n "$CC"; then
14812   ac_cv_prog_CC="$CC" # Let the user override the test.
14813 else
14814   ac_prog_rejected=no
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14817 do
14818   IFS=$as_save_IFS
14819   test -z "$as_dir" && as_dir=.
14820   for ac_exec_ext in '' $ac_executable_extensions; do
14821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14822     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14823        ac_prog_rejected=yes
14824        continue
14825      fi
14826     ac_cv_prog_CC="cc"
14827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14828     break 2
14829   fi
14830 done
14831 done
14832 IFS=$as_save_IFS
14833
14834 if test $ac_prog_rejected = yes; then
14835   # We found a bogon in the path, so make sure we never use it.
14836   set dummy $ac_cv_prog_CC
14837   shift
14838   if test $# != 0; then
14839     # We chose a different compiler from the bogus one.
14840     # However, it has the same basename, so the bogon will be chosen
14841     # first if we set CC to just the basename; use the full file name.
14842     shift
14843     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14844   fi
14845 fi
14846 fi
14847 fi
14848 CC=$ac_cv_prog_CC
14849 if test -n "$CC"; then
14850   { echo "$as_me:$LINENO: result: $CC" >&5
14851 echo "${ECHO_T}$CC" >&6; }
14852 else
14853   { echo "$as_me:$LINENO: result: no" >&5
14854 echo "${ECHO_T}no" >&6; }
14855 fi
14856
14857
14858 fi
14859 if test -z "$CC"; then
14860   if test -n "$ac_tool_prefix"; then
14861   for ac_prog in cl.exe
14862   do
14863     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14867 if test "${ac_cv_prog_CC+set}" = set; then
14868   echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870   if test -n "$CC"; then
14871   ac_cv_prog_CC="$CC" # Let the user override the test.
14872 else
14873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874 for as_dir in $PATH
14875 do
14876   IFS=$as_save_IFS
14877   test -z "$as_dir" && as_dir=.
14878   for ac_exec_ext in '' $ac_executable_extensions; do
14879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14880     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14882     break 2
14883   fi
14884 done
14885 done
14886 IFS=$as_save_IFS
14887
14888 fi
14889 fi
14890 CC=$ac_cv_prog_CC
14891 if test -n "$CC"; then
14892   { echo "$as_me:$LINENO: result: $CC" >&5
14893 echo "${ECHO_T}$CC" >&6; }
14894 else
14895   { echo "$as_me:$LINENO: result: no" >&5
14896 echo "${ECHO_T}no" >&6; }
14897 fi
14898
14899
14900     test -n "$CC" && break
14901   done
14902 fi
14903 if test -z "$CC"; then
14904   ac_ct_CC=$CC
14905   for ac_prog in cl.exe
14906 do
14907   # Extract the first word of "$ac_prog", so it can be a program name with args.
14908 set dummy $ac_prog; ac_word=$2
14909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914   if test -n "$ac_ct_CC"; then
14915   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14916 else
14917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14919 do
14920   IFS=$as_save_IFS
14921   test -z "$as_dir" && as_dir=.
14922   for ac_exec_ext in '' $ac_executable_extensions; do
14923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14924     ac_cv_prog_ac_ct_CC="$ac_prog"
14925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14926     break 2
14927   fi
14928 done
14929 done
14930 IFS=$as_save_IFS
14931
14932 fi
14933 fi
14934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14935 if test -n "$ac_ct_CC"; then
14936   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14937 echo "${ECHO_T}$ac_ct_CC" >&6; }
14938 else
14939   { echo "$as_me:$LINENO: result: no" >&5
14940 echo "${ECHO_T}no" >&6; }
14941 fi
14942
14943
14944   test -n "$ac_ct_CC" && break
14945 done
14946
14947   if test "x$ac_ct_CC" = x; then
14948     CC=""
14949   else
14950     case $cross_compiling:$ac_tool_warned in
14951 yes:)
14952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14953 whose name does not start with the host triplet.  If you think this
14954 configuration is useful to you, please write to autoconf@gnu.org." >&5
14955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14956 whose name does not start with the host triplet.  If you think this
14957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14958 ac_tool_warned=yes ;;
14959 esac
14960     CC=$ac_ct_CC
14961   fi
14962 fi
14963
14964 fi
14965
14966
14967 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14968 See \`config.log' for more details." >&5
14969 echo "$as_me: error: no acceptable C compiler found in \$PATH
14970 See \`config.log' for more details." >&2;}
14971    { (exit 1); exit 1; }; }
14972
14973 # Provide some information about the compiler.
14974 echo "$as_me:$LINENO: checking for C compiler version" >&5
14975 ac_compiler=`set X $ac_compile; echo $2`
14976 { (ac_try="$ac_compiler --version >&5"
14977 case "(($ac_try" in
14978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979   *) ac_try_echo=$ac_try;;
14980 esac
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982   (eval "$ac_compiler --version >&5") 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }
14986 { (ac_try="$ac_compiler -v >&5"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_compiler -v >&5") 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }
14996 { (ac_try="$ac_compiler -V >&5"
14997 case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_compiler -V >&5") 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }
15006
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013
15014 int
15015 main ()
15016 {
15017
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 ac_clean_files_save=$ac_clean_files
15023 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15024 # Try to create an executable without -o first, disregard a.out.
15025 # It will help us diagnose broken compilers, and finding out an intuition
15026 # of exeext.
15027 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15028 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15029 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15030 #
15031 # List of possible output files, starting from the most likely.
15032 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15033 # only as a last resort.  b.out is created by i960 compilers.
15034 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15035 #
15036 # The IRIX 6 linker writes into existing files which may not be
15037 # executable, retaining their permissions.  Remove them first so a
15038 # subsequent execution test works.
15039 ac_rmfiles=
15040 for ac_file in $ac_files
15041 do
15042   case $ac_file in
15043     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15044     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15045   esac
15046 done
15047 rm -f $ac_rmfiles
15048
15049 if { (ac_try="$ac_link_default"
15050 case "(($ac_try" in
15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052   *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055   (eval "$ac_link_default") 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; then
15059   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15060 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15061 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15062 # so that the user can short-circuit this test for compilers unknown to
15063 # Autoconf.
15064 for ac_file in $ac_files ''
15065 do
15066   test -f "$ac_file" || continue
15067   case $ac_file in
15068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15069         ;;
15070     [ab].out )
15071         # We found the default executable, but exeext='' is most
15072         # certainly right.
15073         break;;
15074     *.* )
15075         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15076         then :; else
15077            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15078         fi
15079         # We set ac_cv_exeext here because the later test for it is not
15080         # safe: cross compilers may not add the suffix if given an `-o'
15081         # argument, so we may need to know it at that point already.
15082         # Even if this section looks crufty: it has the advantage of
15083         # actually working.
15084         break;;
15085     * )
15086         break;;
15087   esac
15088 done
15089 test "$ac_cv_exeext" = no && ac_cv_exeext=
15090
15091 else
15092   ac_file=''
15093 fi
15094
15095 { echo "$as_me:$LINENO: result: $ac_file" >&5
15096 echo "${ECHO_T}$ac_file" >&6; }
15097 if test -z "$ac_file"; then
15098   echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15102 See \`config.log' for more details." >&5
15103 echo "$as_me: error: C compiler cannot create executables
15104 See \`config.log' for more details." >&2;}
15105    { (exit 77); exit 77; }; }
15106 fi
15107
15108 ac_exeext=$ac_cv_exeext
15109
15110 # Check that the compiler produces executables we can run.  If not, either
15111 # the compiler is broken, or we cross compile.
15112 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15113 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15114 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15115 # If not cross compiling, check that we can run a simple program.
15116 if test "$cross_compiling" != yes; then
15117   if { ac_try='./$ac_file'
15118   { (case "(($ac_try" in
15119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120   *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123   (eval "$ac_try") 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127     cross_compiling=no
15128   else
15129     if test "$cross_compiling" = maybe; then
15130         cross_compiling=yes
15131     else
15132         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15133 If you meant to cross compile, use \`--host'.
15134 See \`config.log' for more details." >&5
15135 echo "$as_me: error: cannot run C compiled programs.
15136 If you meant to cross compile, use \`--host'.
15137 See \`config.log' for more details." >&2;}
15138    { (exit 1); exit 1; }; }
15139     fi
15140   fi
15141 fi
15142 { echo "$as_me:$LINENO: result: yes" >&5
15143 echo "${ECHO_T}yes" >&6; }
15144
15145 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15146 ac_clean_files=$ac_clean_files_save
15147 # Check that the compiler produces executables we can run.  If not, either
15148 # the compiler is broken, or we cross compile.
15149 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15150 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15151 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15152 echo "${ECHO_T}$cross_compiling" >&6; }
15153
15154 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15155 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_link") 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; then
15166   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15167 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15168 # work properly (i.e., refer to `conftest.exe'), while it won't with
15169 # `rm'.
15170 for ac_file in conftest.exe conftest conftest.*; do
15171   test -f "$ac_file" || continue
15172   case $ac_file in
15173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15174     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15175           break;;
15176     * ) break;;
15177   esac
15178 done
15179 else
15180   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15181 See \`config.log' for more details." >&5
15182 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15183 See \`config.log' for more details." >&2;}
15184    { (exit 1); exit 1; }; }
15185 fi
15186
15187 rm -f conftest$ac_cv_exeext
15188 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15189 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15190
15191 rm -f conftest.$ac_ext
15192 EXEEXT=$ac_cv_exeext
15193 ac_exeext=$EXEEXT
15194 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15195 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15196 if test "${ac_cv_objext+set}" = set; then
15197   echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199   cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h.  */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h.  */
15205
15206 int
15207 main ()
15208 {
15209
15210   ;
15211   return 0;
15212 }
15213 _ACEOF
15214 rm -f conftest.o conftest.obj
15215 if { (ac_try="$ac_compile"
15216 case "(($ac_try" in
15217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218   *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221   (eval "$ac_compile") 2>&5
15222   ac_status=$?
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); }; then
15225   for ac_file in conftest.o conftest.obj conftest.*; do
15226   test -f "$ac_file" || continue;
15227   case $ac_file in
15228     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15229     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15230        break;;
15231   esac
15232 done
15233 else
15234   echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15238 See \`config.log' for more details." >&5
15239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15240 See \`config.log' for more details." >&2;}
15241    { (exit 1); exit 1; }; }
15242 fi
15243
15244 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15245 fi
15246 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15247 echo "${ECHO_T}$ac_cv_objext" >&6; }
15248 OBJEXT=$ac_cv_objext
15249 ac_objext=$OBJEXT
15250 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15253   echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255   cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h.  */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h.  */
15261
15262 int
15263 main ()
15264 {
15265 #ifndef __GNUC__
15266        choke me
15267 #endif
15268
15269   ;
15270   return 0;
15271 }
15272 _ACEOF
15273 rm -f conftest.$ac_objext
15274 if { (ac_try="$ac_compile"
15275 case "(($ac_try" in
15276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277   *) ac_try_echo=$ac_try;;
15278 esac
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280   (eval "$ac_compile") 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } && {
15287          test -z "$ac_c_werror_flag" ||
15288          test ! -s conftest.err
15289        } && test -s conftest.$ac_objext; then
15290   ac_compiler_gnu=yes
15291 else
15292   echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295         ac_compiler_gnu=no
15296 fi
15297
15298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15300
15301 fi
15302 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15303 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15304 GCC=`test $ac_compiler_gnu = yes && echo yes`
15305 ac_test_CFLAGS=${CFLAGS+set}
15306 ac_save_CFLAGS=$CFLAGS
15307 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15308 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15309 if test "${ac_cv_prog_cc_g+set}" = set; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   ac_save_c_werror_flag=$ac_c_werror_flag
15313    ac_c_werror_flag=yes
15314    ac_cv_prog_cc_g=no
15315    CFLAGS="-g"
15316    cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h.  */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h.  */
15322
15323 int
15324 main ()
15325 {
15326
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_compile") 2>conftest.er1
15339   ac_status=$?
15340   grep -v '^ *+' conftest.er1 >conftest.err
15341   rm -f conftest.er1
15342   cat conftest.err >&5
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } && {
15345          test -z "$ac_c_werror_flag" ||
15346          test ! -s conftest.err
15347        } && test -s conftest.$ac_objext; then
15348   ac_cv_prog_cc_g=yes
15349 else
15350   echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353         CFLAGS=""
15354       cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360
15361 int
15362 main ()
15363 {
15364
15365   ;
15366   return 0;
15367 }
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (ac_try="$ac_compile"
15371 case "(($ac_try" in
15372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373   *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376   (eval "$ac_compile") 2>conftest.er1
15377   ac_status=$?
15378   grep -v '^ *+' conftest.er1 >conftest.err
15379   rm -f conftest.er1
15380   cat conftest.err >&5
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); } && {
15383          test -z "$ac_c_werror_flag" ||
15384          test ! -s conftest.err
15385        } && test -s conftest.$ac_objext; then
15386   :
15387 else
15388   echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15390
15391         ac_c_werror_flag=$ac_save_c_werror_flag
15392          CFLAGS="-g"
15393          cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h.  */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h.  */
15399
15400 int
15401 main ()
15402 {
15403
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412   *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415   (eval "$ac_compile") 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } && {
15422          test -z "$ac_c_werror_flag" ||
15423          test ! -s conftest.err
15424        } && test -s conftest.$ac_objext; then
15425   ac_cv_prog_cc_g=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430
15431 fi
15432
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 fi
15435
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 fi
15438
15439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440    ac_c_werror_flag=$ac_save_c_werror_flag
15441 fi
15442 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15443 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15444 if test "$ac_test_CFLAGS" = set; then
15445   CFLAGS=$ac_save_CFLAGS
15446 elif test $ac_cv_prog_cc_g = yes; then
15447   if test "$GCC" = yes; then
15448     CFLAGS="-g -O2"
15449   else
15450     CFLAGS="-g"
15451   fi
15452 else
15453   if test "$GCC" = yes; then
15454     CFLAGS="-O2"
15455   else
15456     CFLAGS=
15457   fi
15458 fi
15459 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15460 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15461 if test "${ac_cv_prog_cc_c89+set}" = set; then
15462   echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464   ac_cv_prog_cc_c89=no
15465 ac_save_CC=$CC
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472 #include <stdarg.h>
15473 #include <stdio.h>
15474 #include <sys/types.h>
15475 #include <sys/stat.h>
15476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15477 struct buf { int x; };
15478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15479 static char *e (p, i)
15480      char **p;
15481      int i;
15482 {
15483   return p[i];
15484 }
15485 static char *f (char * (*g) (char **, int), char **p, ...)
15486 {
15487   char *s;
15488   va_list v;
15489   va_start (v,p);
15490   s = g (p, va_arg (v,int));
15491   va_end (v);
15492   return s;
15493 }
15494
15495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15496    function prototypes and stuff, but not '\xHH' hex character constants.
15497    These don't provoke an error unfortunately, instead are silently treated
15498    as 'x'.  The following induces an error, until -std is added to get
15499    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15500    array size at least.  It's necessary to write '\x00'==0 to get something
15501    that's true only with -std.  */
15502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15503
15504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15505    inside strings and character constants.  */
15506 #define FOO(x) 'x'
15507 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15508
15509 int test (int i, double x);
15510 struct s1 {int (*f) (int a);};
15511 struct s2 {int (*f) (double a);};
15512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15513 int argc;
15514 char **argv;
15515 int
15516 main ()
15517 {
15518 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15524         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15525 do
15526   CC="$ac_save_CC $ac_arg"
15527   rm -f conftest.$ac_objext
15528 if { (ac_try="$ac_compile"
15529 case "(($ac_try" in
15530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531   *) ac_try_echo=$ac_try;;
15532 esac
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534   (eval "$ac_compile") 2>conftest.er1
15535   ac_status=$?
15536   grep -v '^ *+' conftest.er1 >conftest.err
15537   rm -f conftest.er1
15538   cat conftest.err >&5
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); } && {
15541          test -z "$ac_c_werror_flag" ||
15542          test ! -s conftest.err
15543        } && test -s conftest.$ac_objext; then
15544   ac_cv_prog_cc_c89=$ac_arg
15545 else
15546   echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15548
15549
15550 fi
15551
15552 rm -f core conftest.err conftest.$ac_objext
15553   test "x$ac_cv_prog_cc_c89" != "xno" && break
15554 done
15555 rm -f conftest.$ac_ext
15556 CC=$ac_save_CC
15557
15558 fi
15559 # AC_CACHE_VAL
15560 case "x$ac_cv_prog_cc_c89" in
15561   x)
15562     { echo "$as_me:$LINENO: result: none needed" >&5
15563 echo "${ECHO_T}none needed" >&6; } ;;
15564   xno)
15565     { echo "$as_me:$LINENO: result: unsupported" >&5
15566 echo "${ECHO_T}unsupported" >&6; } ;;
15567   *)
15568     CC="$CC $ac_cv_prog_cc_c89"
15569     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15570 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15571 esac
15572
15573
15574 ac_ext=c
15575 ac_cpp='$CPP $CPPFLAGS'
15576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15579
15580
15581
15582
15583
15584
15585
15586
15587     ac_ext=c
15588 ac_cpp='$CPP $CPPFLAGS'
15589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15592
15593     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15594 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15595 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15596   echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598   cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604
15605 int
15606 main ()
15607 {
15608
15609              #ifndef __INTEL_COMPILER
15610                 choke me
15611              #endif
15612
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 rm -f conftest.$ac_objext
15618 if { (ac_try="$ac_compile"
15619 case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624   (eval "$ac_compile") 2>conftest.er1
15625   ac_status=$?
15626   grep -v '^ *+' conftest.er1 >conftest.err
15627   rm -f conftest.er1
15628   cat conftest.err >&5
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } && {
15631          test -z "$ac_c_werror_flag" ||
15632          test ! -s conftest.err
15633        } && test -s conftest.$ac_objext; then
15634   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15635 else
15636   echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15638
15639         bakefile_cv_c_compiler___INTEL_COMPILER=no
15640
15641 fi
15642
15643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15644
15645
15646 fi
15647 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15648 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15649     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15650         :; INTELCC=yes
15651     else
15652         :;
15653     fi
15654     ac_ext=c
15655 ac_cpp='$CPP $CPPFLAGS'
15656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15659
15660
15661
15662
15663         if test "$INTELCC" = "yes"; then
15664
15665
15666     ac_ext=c
15667 ac_cpp='$CPP $CPPFLAGS'
15668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15671
15672     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15673 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15674 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683
15684 int
15685 main ()
15686 {
15687
15688              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15689                 choke me
15690              #endif
15691
15692   ;
15693   return 0;
15694 }
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (ac_try="$ac_compile"
15698 case "(($ac_try" in
15699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700   *) ac_try_echo=$ac_try;;
15701 esac
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703   (eval "$ac_compile") 2>conftest.er1
15704   ac_status=$?
15705   grep -v '^ *+' conftest.er1 >conftest.err
15706   rm -f conftest.er1
15707   cat conftest.err >&5
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); } && {
15710          test -z "$ac_c_werror_flag" ||
15711          test ! -s conftest.err
15712        } && test -s conftest.$ac_objext; then
15713   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15714 else
15715   echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15717
15718         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15719
15720 fi
15721
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723
15724
15725 fi
15726 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15727 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15728     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15729         :; INTELCC8=yes
15730     else
15731         :;
15732     fi
15733     ac_ext=c
15734 ac_cpp='$CPP $CPPFLAGS'
15735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15738
15739
15740
15741
15742
15743     ac_ext=c
15744 ac_cpp='$CPP $CPPFLAGS'
15745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15748
15749     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15750 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15751 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15752   echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754   cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760
15761 int
15762 main ()
15763 {
15764
15765              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15766                 choke me
15767              #endif
15768
15769   ;
15770   return 0;
15771 }
15772 _ACEOF
15773 rm -f conftest.$ac_objext
15774 if { (ac_try="$ac_compile"
15775 case "(($ac_try" in
15776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777   *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780   (eval "$ac_compile") 2>conftest.er1
15781   ac_status=$?
15782   grep -v '^ *+' conftest.er1 >conftest.err
15783   rm -f conftest.er1
15784   cat conftest.err >&5
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); } && {
15787          test -z "$ac_c_werror_flag" ||
15788          test ! -s conftest.err
15789        } && test -s conftest.$ac_objext; then
15790   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15796
15797 fi
15798
15799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800
15801
15802 fi
15803 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15804 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15805     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15806         :; INTELCC10=yes
15807     else
15808         :;
15809     fi
15810     ac_ext=c
15811 ac_cpp='$CPP $CPPFLAGS'
15812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15815
15816
15817
15818     fi
15819
15820         if test "x$GCC" != "xyes"; then
15821         if test "xCC" = "xC"; then
15822             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15823 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15824 if test "${bakefile_cv_c_exto+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833
15834 int
15835 main ()
15836 {
15837
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest.$ac_objext conftest.$ac_ext.o
15843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15844   (eval $ac_compile) 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; then
15848   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15849     case $ac_file in
15850         conftest.$ac_ext.o)
15851             bakefile_cv_c_exto="-ext o"
15852             ;;
15853         *)
15854             ;;
15855     esac
15856 done
15857 else
15858   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15859 See \`config.log' for more details." >&5
15860 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15861 See \`config.log' for more details." >&2;}
15862    { (exit 1); exit 1; }; }
15863
15864 fi
15865
15866 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15867
15868 fi
15869 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15870 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15871 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15872     if test "c" = "c"; then
15873         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15874     fi
15875     if test "c" = "cxx"; then
15876         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15877     fi
15878 fi
15879
15880             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15881                 unset ac_cv_prog_cc_g
15882                 ac_test_CFLAGS=${CFLAGS+set}
15883 ac_save_CFLAGS=$CFLAGS
15884 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15885 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15886 if test "${ac_cv_prog_cc_g+set}" = set; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889   ac_save_c_werror_flag=$ac_c_werror_flag
15890    ac_c_werror_flag=yes
15891    ac_cv_prog_cc_g=no
15892    CFLAGS="-g"
15893    cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899
15900 int
15901 main ()
15902 {
15903
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 rm -f conftest.$ac_objext
15909 if { (ac_try="$ac_compile"
15910 case "(($ac_try" in
15911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912   *) ac_try_echo=$ac_try;;
15913 esac
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915   (eval "$ac_compile") 2>conftest.er1
15916   ac_status=$?
15917   grep -v '^ *+' conftest.er1 >conftest.err
15918   rm -f conftest.er1
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } && {
15922          test -z "$ac_c_werror_flag" ||
15923          test ! -s conftest.err
15924        } && test -s conftest.$ac_objext; then
15925   ac_cv_prog_cc_g=yes
15926 else
15927   echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15929
15930         CFLAGS=""
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
15938 int
15939 main ()
15940 {
15941
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (ac_try="$ac_compile"
15948 case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953   (eval "$ac_compile") 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } && {
15960          test -z "$ac_c_werror_flag" ||
15961          test ! -s conftest.err
15962        } && test -s conftest.$ac_objext; then
15963   :
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968         ac_c_werror_flag=$ac_save_c_werror_flag
15969          CFLAGS="-g"
15970          cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976
15977 int
15978 main ()
15979 {
15980
15981   ;
15982   return 0;
15983 }
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (ac_try="$ac_compile"
15987 case "(($ac_try" in
15988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989   *) ac_try_echo=$ac_try;;
15990 esac
15991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15992   (eval "$ac_compile") 2>conftest.er1
15993   ac_status=$?
15994   grep -v '^ *+' conftest.er1 >conftest.err
15995   rm -f conftest.er1
15996   cat conftest.err >&5
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); } && {
15999          test -z "$ac_c_werror_flag" ||
16000          test ! -s conftest.err
16001        } && test -s conftest.$ac_objext; then
16002   ac_cv_prog_cc_g=yes
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007
16008 fi
16009
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 fi
16012
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 fi
16015
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017    ac_c_werror_flag=$ac_save_c_werror_flag
16018 fi
16019 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16021 if test "$ac_test_CFLAGS" = set; then
16022   CFLAGS=$ac_save_CFLAGS
16023 elif test $ac_cv_prog_cc_g = yes; then
16024   if test "$GCC" = yes; then
16025     CFLAGS="-g -O2"
16026   else
16027     CFLAGS="-g"
16028   fi
16029 else
16030   if test "$GCC" = yes; then
16031     CFLAGS="-O2"
16032   else
16033     CFLAGS=
16034   fi
16035 fi
16036             fi
16037         fi
16038
16039                         case `uname -s` in
16040             AIX*)
16041
16042
16043     ac_ext=c
16044 ac_cpp='$CPP $CPPFLAGS'
16045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16048
16049     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16050 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16051 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16052   echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054   cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060
16061 int
16062 main ()
16063 {
16064
16065              #ifndef __xlC__
16066                 choke me
16067              #endif
16068
16069   ;
16070   return 0;
16071 }
16072 _ACEOF
16073 rm -f conftest.$ac_objext
16074 if { (ac_try="$ac_compile"
16075 case "(($ac_try" in
16076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077   *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080   (eval "$ac_compile") 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } && {
16087          test -z "$ac_c_werror_flag" ||
16088          test ! -s conftest.err
16089        } && test -s conftest.$ac_objext; then
16090   bakefile_cv_c_compiler___xlC__=yes
16091 else
16092   echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095         bakefile_cv_c_compiler___xlC__=no
16096
16097 fi
16098
16099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100
16101
16102 fi
16103 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16104 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16105     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16106         :; XLCC=yes
16107     else
16108         :;
16109     fi
16110     ac_ext=c
16111 ac_cpp='$CPP $CPPFLAGS'
16112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16115
16116
16117
16118                 ;;
16119
16120             Darwin)
16121
16122
16123     ac_ext=c
16124 ac_cpp='$CPP $CPPFLAGS'
16125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16128
16129     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16130 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16131 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16132   echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134   cat >conftest.$ac_ext <<_ACEOF
16135 /* confdefs.h.  */
16136 _ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h.  */
16140
16141 int
16142 main ()
16143 {
16144
16145              #ifndef __MWERKS__
16146                 choke me
16147              #endif
16148
16149   ;
16150   return 0;
16151 }
16152 _ACEOF
16153 rm -f conftest.$ac_objext
16154 if { (ac_try="$ac_compile"
16155 case "(($ac_try" in
16156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157   *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160   (eval "$ac_compile") 2>conftest.er1
16161   ac_status=$?
16162   grep -v '^ *+' conftest.er1 >conftest.err
16163   rm -f conftest.er1
16164   cat conftest.err >&5
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } && {
16167          test -z "$ac_c_werror_flag" ||
16168          test ! -s conftest.err
16169        } && test -s conftest.$ac_objext; then
16170   bakefile_cv_c_compiler___MWERKS__=yes
16171 else
16172   echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175         bakefile_cv_c_compiler___MWERKS__=no
16176
16177 fi
16178
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180
16181
16182 fi
16183 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16184 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16185     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16186         :; MWCC=yes
16187     else
16188         :;
16189     fi
16190     ac_ext=c
16191 ac_cpp='$CPP $CPPFLAGS'
16192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16195
16196
16197
16198                 if test "$MWCC" != "yes"; then
16199
16200
16201     ac_ext=c
16202 ac_cpp='$CPP $CPPFLAGS'
16203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16206
16207     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16208 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16209 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16210   echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212   cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h.  */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h.  */
16218
16219 int
16220 main ()
16221 {
16222
16223              #ifndef __xlC__
16224                 choke me
16225              #endif
16226
16227   ;
16228   return 0;
16229 }
16230 _ACEOF
16231 rm -f conftest.$ac_objext
16232 if { (ac_try="$ac_compile"
16233 case "(($ac_try" in
16234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235   *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238   (eval "$ac_compile") 2>conftest.er1
16239   ac_status=$?
16240   grep -v '^ *+' conftest.er1 >conftest.err
16241   rm -f conftest.er1
16242   cat conftest.err >&5
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); } && {
16245          test -z "$ac_c_werror_flag" ||
16246          test ! -s conftest.err
16247        } && test -s conftest.$ac_objext; then
16248   bakefile_cv_c_compiler___xlC__=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253         bakefile_cv_c_compiler___xlC__=no
16254
16255 fi
16256
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258
16259
16260 fi
16261 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16262 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16263     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16264         :; XLCC=yes
16265     else
16266         :;
16267     fi
16268     ac_ext=c
16269 ac_cpp='$CPP $CPPFLAGS'
16270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16273
16274
16275
16276                 fi
16277                 ;;
16278
16279             IRIX*)
16280
16281
16282     ac_ext=c
16283 ac_cpp='$CPP $CPPFLAGS'
16284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16287
16288     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16289 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16290 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293   cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299
16300 int
16301 main ()
16302 {
16303
16304              #ifndef _SGI_COMPILER_VERSION
16305                 choke me
16306              #endif
16307
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext
16313 if { (ac_try="$ac_compile"
16314 case "(($ac_try" in
16315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316   *) ac_try_echo=$ac_try;;
16317 esac
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319   (eval "$ac_compile") 2>conftest.er1
16320   ac_status=$?
16321   grep -v '^ *+' conftest.er1 >conftest.err
16322   rm -f conftest.er1
16323   cat conftest.err >&5
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); } && {
16326          test -z "$ac_c_werror_flag" ||
16327          test ! -s conftest.err
16328        } && test -s conftest.$ac_objext; then
16329   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16335
16336 fi
16337
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339
16340
16341 fi
16342 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16343 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16344     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16345         :; SGICC=yes
16346     else
16347         :;
16348     fi
16349     ac_ext=c
16350 ac_cpp='$CPP $CPPFLAGS'
16351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16354
16355
16356
16357                 ;;
16358
16359             Linux*)
16360                                                 if test "$INTELCC" != "yes"; then
16361
16362
16363     ac_ext=c
16364 ac_cpp='$CPP $CPPFLAGS'
16365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16368
16369     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16370 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16371 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16372   echo $ECHO_N "(cached) $ECHO_C" >&6
16373 else
16374   cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h.  */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h.  */
16380
16381 int
16382 main ()
16383 {
16384
16385              #ifndef __SUNPRO_C
16386                 choke me
16387              #endif
16388
16389   ;
16390   return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext
16394 if { (ac_try="$ac_compile"
16395 case "(($ac_try" in
16396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397   *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400   (eval "$ac_compile") 2>conftest.er1
16401   ac_status=$?
16402   grep -v '^ *+' conftest.er1 >conftest.err
16403   rm -f conftest.er1
16404   cat conftest.err >&5
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); } && {
16407          test -z "$ac_c_werror_flag" ||
16408          test ! -s conftest.err
16409        } && test -s conftest.$ac_objext; then
16410   bakefile_cv_c_compiler___SUNPRO_C=yes
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415         bakefile_cv_c_compiler___SUNPRO_C=no
16416
16417 fi
16418
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420
16421
16422 fi
16423 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16424 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16425     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16426         :; SUNCC=yes
16427     else
16428         :;
16429     fi
16430     ac_ext=c
16431 ac_cpp='$CPP $CPPFLAGS'
16432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16435
16436
16437
16438                 fi
16439                 ;;
16440
16441             HP-UX*)
16442
16443
16444     ac_ext=c
16445 ac_cpp='$CPP $CPPFLAGS'
16446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16449
16450     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16451 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16452 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16453   echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455   cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h.  */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h.  */
16461
16462 int
16463 main ()
16464 {
16465
16466              #ifndef __HP_cc
16467                 choke me
16468              #endif
16469
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext
16475 if { (ac_try="$ac_compile"
16476 case "(($ac_try" in
16477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478   *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481   (eval "$ac_compile") 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } && {
16488          test -z "$ac_c_werror_flag" ||
16489          test ! -s conftest.err
16490        } && test -s conftest.$ac_objext; then
16491   bakefile_cv_c_compiler___HP_cc=yes
16492 else
16493   echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496         bakefile_cv_c_compiler___HP_cc=no
16497
16498 fi
16499
16500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16501
16502
16503 fi
16504 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16505 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16506     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16507         :; HPCC=yes
16508     else
16509         :;
16510     fi
16511     ac_ext=c
16512 ac_cpp='$CPP $CPPFLAGS'
16513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16516
16517
16518
16519                 ;;
16520
16521             OSF1)
16522
16523
16524     ac_ext=c
16525 ac_cpp='$CPP $CPPFLAGS'
16526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16529
16530     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16531 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16532 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16533   echo $ECHO_N "(cached) $ECHO_C" >&6
16534 else
16535   cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h.  */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h.  */
16541
16542 int
16543 main ()
16544 {
16545
16546              #ifndef __DECC
16547                 choke me
16548              #endif
16549
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 rm -f conftest.$ac_objext
16555 if { (ac_try="$ac_compile"
16556 case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_compile") 2>conftest.er1
16562   ac_status=$?
16563   grep -v '^ *+' conftest.er1 >conftest.err
16564   rm -f conftest.er1
16565   cat conftest.err >&5
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } && {
16568          test -z "$ac_c_werror_flag" ||
16569          test ! -s conftest.err
16570        } && test -s conftest.$ac_objext; then
16571   bakefile_cv_c_compiler___DECC=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576         bakefile_cv_c_compiler___DECC=no
16577
16578 fi
16579
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581
16582
16583 fi
16584 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16585 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16586     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16587         :; COMPAQCC=yes
16588     else
16589         :;
16590     fi
16591     ac_ext=c
16592 ac_cpp='$CPP $CPPFLAGS'
16593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16596
16597
16598
16599                 ;;
16600
16601             SunOS)
16602
16603
16604     ac_ext=c
16605 ac_cpp='$CPP $CPPFLAGS'
16606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16609
16610     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16611 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16612 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621
16622 int
16623 main ()
16624 {
16625
16626              #ifndef __SUNPRO_C
16627                 choke me
16628              #endif
16629
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641   (eval "$ac_compile") 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } && {
16648          test -z "$ac_c_werror_flag" ||
16649          test ! -s conftest.err
16650        } && test -s conftest.$ac_objext; then
16651   bakefile_cv_c_compiler___SUNPRO_C=yes
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656         bakefile_cv_c_compiler___SUNPRO_C=no
16657
16658 fi
16659
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661
16662
16663 fi
16664 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16665 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16666     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16667         :; SUNCC=yes
16668     else
16669         :;
16670     fi
16671     ac_ext=c
16672 ac_cpp='$CPP $CPPFLAGS'
16673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16676
16677
16678
16679                 ;;
16680         esac
16681     fi
16682
16683
16684
16685 ac_ext=c
16686 ac_cpp='$CPP $CPPFLAGS'
16687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16690 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16691 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16692 # On Suns, sometimes $CPP names a directory.
16693 if test -n "$CPP" && test -d "$CPP"; then
16694   CPP=
16695 fi
16696 if test -z "$CPP"; then
16697   if test "${ac_cv_prog_CPP+set}" = set; then
16698   echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700       # Double quotes because CPP needs to be expanded
16701     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16702     do
16703       ac_preproc_ok=false
16704 for ac_c_preproc_warn_flag in '' yes
16705 do
16706   # Use a header file that comes with gcc, so configuring glibc
16707   # with a fresh cross-compiler works.
16708   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709   # <limits.h> exists even on freestanding compilers.
16710   # On the NeXT, cc -E runs the code through the compiler's parser,
16711   # not just through cpp. "Syntax error" is here to catch this case.
16712   cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h.  */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h.  */
16718 #ifdef __STDC__
16719 # include <limits.h>
16720 #else
16721 # include <assert.h>
16722 #endif
16723                      Syntax error
16724 _ACEOF
16725 if { (ac_try="$ac_cpp conftest.$ac_ext"
16726 case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16732   ac_status=$?
16733   grep -v '^ *+' conftest.er1 >conftest.err
16734   rm -f conftest.er1
16735   cat conftest.err >&5
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } >/dev/null && {
16738          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16739          test ! -s conftest.err
16740        }; then
16741   :
16742 else
16743   echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746   # Broken: fails on valid input.
16747 continue
16748 fi
16749
16750 rm -f conftest.err conftest.$ac_ext
16751
16752   # OK, works on sane cases.  Now check whether nonexistent headers
16753   # can be detected and how.
16754   cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h.  */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h.  */
16760 #include <ac_nonexistent.h>
16761 _ACEOF
16762 if { (ac_try="$ac_cpp conftest.$ac_ext"
16763 case "(($ac_try" in
16764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765   *) ac_try_echo=$ac_try;;
16766 esac
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16769   ac_status=$?
16770   grep -v '^ *+' conftest.er1 >conftest.err
16771   rm -f conftest.er1
16772   cat conftest.err >&5
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); } >/dev/null && {
16775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16776          test ! -s conftest.err
16777        }; then
16778   # Broken: success on invalid input.
16779 continue
16780 else
16781   echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784   # Passes both tests.
16785 ac_preproc_ok=:
16786 break
16787 fi
16788
16789 rm -f conftest.err conftest.$ac_ext
16790
16791 done
16792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16793 rm -f conftest.err conftest.$ac_ext
16794 if $ac_preproc_ok; then
16795   break
16796 fi
16797
16798     done
16799     ac_cv_prog_CPP=$CPP
16800
16801 fi
16802   CPP=$ac_cv_prog_CPP
16803 else
16804   ac_cv_prog_CPP=$CPP
16805 fi
16806 { echo "$as_me:$LINENO: result: $CPP" >&5
16807 echo "${ECHO_T}$CPP" >&6; }
16808 ac_preproc_ok=false
16809 for ac_c_preproc_warn_flag in '' yes
16810 do
16811   # Use a header file that comes with gcc, so configuring glibc
16812   # with a fresh cross-compiler works.
16813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16814   # <limits.h> exists even on freestanding compilers.
16815   # On the NeXT, cc -E runs the code through the compiler's parser,
16816   # not just through cpp. "Syntax error" is here to catch this case.
16817   cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h.  */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h.  */
16823 #ifdef __STDC__
16824 # include <limits.h>
16825 #else
16826 # include <assert.h>
16827 #endif
16828                      Syntax error
16829 _ACEOF
16830 if { (ac_try="$ac_cpp conftest.$ac_ext"
16831 case "(($ac_try" in
16832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833   *) ac_try_echo=$ac_try;;
16834 esac
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16837   ac_status=$?
16838   grep -v '^ *+' conftest.er1 >conftest.err
16839   rm -f conftest.er1
16840   cat conftest.err >&5
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); } >/dev/null && {
16843          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16844          test ! -s conftest.err
16845        }; then
16846   :
16847 else
16848   echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16850
16851   # Broken: fails on valid input.
16852 continue
16853 fi
16854
16855 rm -f conftest.err conftest.$ac_ext
16856
16857   # OK, works on sane cases.  Now check whether nonexistent headers
16858   # can be detected and how.
16859   cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865 #include <ac_nonexistent.h>
16866 _ACEOF
16867 if { (ac_try="$ac_cpp conftest.$ac_ext"
16868 case "(($ac_try" in
16869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870   *) ac_try_echo=$ac_try;;
16871 esac
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16874   ac_status=$?
16875   grep -v '^ *+' conftest.er1 >conftest.err
16876   rm -f conftest.er1
16877   cat conftest.err >&5
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } >/dev/null && {
16880          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16881          test ! -s conftest.err
16882        }; then
16883   # Broken: success on invalid input.
16884 continue
16885 else
16886   echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16888
16889   # Passes both tests.
16890 ac_preproc_ok=:
16891 break
16892 fi
16893
16894 rm -f conftest.err conftest.$ac_ext
16895
16896 done
16897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16898 rm -f conftest.err conftest.$ac_ext
16899 if $ac_preproc_ok; then
16900   :
16901 else
16902   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16903 See \`config.log' for more details." >&5
16904 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16905 See \`config.log' for more details." >&2;}
16906    { (exit 1); exit 1; }; }
16907 fi
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
16916 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16917 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16918 if test "${ac_cv_path_GREP+set}" = set; then
16919   echo $ECHO_N "(cached) $ECHO_C" >&6
16920 else
16921   # Extract the first word of "grep ggrep" to use in msg output
16922 if test -z "$GREP"; then
16923 set dummy grep ggrep; ac_prog_name=$2
16924 if test "${ac_cv_path_GREP+set}" = set; then
16925   echo $ECHO_N "(cached) $ECHO_C" >&6
16926 else
16927   ac_path_GREP_found=false
16928 # Loop through the user's path and test for each of PROGNAME-LIST
16929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16931 do
16932   IFS=$as_save_IFS
16933   test -z "$as_dir" && as_dir=.
16934   for ac_prog in grep ggrep; do
16935   for ac_exec_ext in '' $ac_executable_extensions; do
16936     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16937     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16938     # Check for GNU ac_path_GREP and select it if it is found.
16939   # Check for GNU $ac_path_GREP
16940 case `"$ac_path_GREP" --version 2>&1` in
16941 *GNU*)
16942   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16943 *)
16944   ac_count=0
16945   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16946   while :
16947   do
16948     cat "conftest.in" "conftest.in" >"conftest.tmp"
16949     mv "conftest.tmp" "conftest.in"
16950     cp "conftest.in" "conftest.nl"
16951     echo 'GREP' >> "conftest.nl"
16952     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16953     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16954     ac_count=`expr $ac_count + 1`
16955     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16956       # Best one so far, save it but keep looking for a better one
16957       ac_cv_path_GREP="$ac_path_GREP"
16958       ac_path_GREP_max=$ac_count
16959     fi
16960     # 10*(2^10) chars as input seems more than enough
16961     test $ac_count -gt 10 && break
16962   done
16963   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16964 esac
16965
16966
16967     $ac_path_GREP_found && break 3
16968   done
16969 done
16970
16971 done
16972 IFS=$as_save_IFS
16973
16974
16975 fi
16976
16977 GREP="$ac_cv_path_GREP"
16978 if test -z "$GREP"; then
16979   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16980 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16981    { (exit 1); exit 1; }; }
16982 fi
16983
16984 else
16985   ac_cv_path_GREP=$GREP
16986 fi
16987
16988
16989 fi
16990 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16991 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16992  GREP="$ac_cv_path_GREP"
16993
16994
16995 { echo "$as_me:$LINENO: checking for egrep" >&5
16996 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16997 if test "${ac_cv_path_EGREP+set}" = set; then
16998   echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17001    then ac_cv_path_EGREP="$GREP -E"
17002    else
17003      # Extract the first word of "egrep" to use in msg output
17004 if test -z "$EGREP"; then
17005 set dummy egrep; ac_prog_name=$2
17006 if test "${ac_cv_path_EGREP+set}" = set; then
17007   echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009   ac_path_EGREP_found=false
17010 # Loop through the user's path and test for each of PROGNAME-LIST
17011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17013 do
17014   IFS=$as_save_IFS
17015   test -z "$as_dir" && as_dir=.
17016   for ac_prog in egrep; do
17017   for ac_exec_ext in '' $ac_executable_extensions; do
17018     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17019     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17020     # Check for GNU ac_path_EGREP and select it if it is found.
17021   # Check for GNU $ac_path_EGREP
17022 case `"$ac_path_EGREP" --version 2>&1` in
17023 *GNU*)
17024   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17025 *)
17026   ac_count=0
17027   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17028   while :
17029   do
17030     cat "conftest.in" "conftest.in" >"conftest.tmp"
17031     mv "conftest.tmp" "conftest.in"
17032     cp "conftest.in" "conftest.nl"
17033     echo 'EGREP' >> "conftest.nl"
17034     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17036     ac_count=`expr $ac_count + 1`
17037     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17038       # Best one so far, save it but keep looking for a better one
17039       ac_cv_path_EGREP="$ac_path_EGREP"
17040       ac_path_EGREP_max=$ac_count
17041     fi
17042     # 10*(2^10) chars as input seems more than enough
17043     test $ac_count -gt 10 && break
17044   done
17045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17046 esac
17047
17048
17049     $ac_path_EGREP_found && break 3
17050   done
17051 done
17052
17053 done
17054 IFS=$as_save_IFS
17055
17056
17057 fi
17058
17059 EGREP="$ac_cv_path_EGREP"
17060 if test -z "$EGREP"; then
17061   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17062 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17063    { (exit 1); exit 1; }; }
17064 fi
17065
17066 else
17067   ac_cv_path_EGREP=$EGREP
17068 fi
17069
17070
17071    fi
17072 fi
17073 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17074 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17075  EGREP="$ac_cv_path_EGREP"
17076
17077
17078 if test $ac_cv_c_compiler_gnu = yes; then
17079     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17080 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17081 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084     ac_pattern="Autoconf.*'x'"
17085   cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h.  */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h.  */
17091 #include <sgtty.h>
17092 Autoconf TIOCGETP
17093 _ACEOF
17094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17095   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17096   ac_cv_prog_gcc_traditional=yes
17097 else
17098   ac_cv_prog_gcc_traditional=no
17099 fi
17100 rm -f conftest*
17101
17102
17103   if test $ac_cv_prog_gcc_traditional = no; then
17104     cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h.  */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h.  */
17110 #include <termio.h>
17111 Autoconf TCGETA
17112 _ACEOF
17113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17114   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17115   ac_cv_prog_gcc_traditional=yes
17116 fi
17117 rm -f conftest*
17118
17119   fi
17120 fi
17121 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17122 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17123   if test $ac_cv_prog_gcc_traditional = yes; then
17124     CC="$CC -traditional"
17125   fi
17126 fi
17127
17128
17129 CXXFLAGS=${CXXFLAGS:=}
17130 ac_ext=cpp
17131 ac_cpp='$CXXCPP $CPPFLAGS'
17132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17135 if test -z "$CXX"; then
17136   if test -n "$CCC"; then
17137     CXX=$CCC
17138   else
17139     if test -n "$ac_tool_prefix"; then
17140   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17141   do
17142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17146 if test "${ac_cv_prog_CXX+set}" = set; then
17147   echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149   if test -n "$CXX"; then
17150   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17151 else
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH
17154 do
17155   IFS=$as_save_IFS
17156   test -z "$as_dir" && as_dir=.
17157   for ac_exec_ext in '' $ac_executable_extensions; do
17158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17159     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17161     break 2
17162   fi
17163 done
17164 done
17165 IFS=$as_save_IFS
17166
17167 fi
17168 fi
17169 CXX=$ac_cv_prog_CXX
17170 if test -n "$CXX"; then
17171   { echo "$as_me:$LINENO: result: $CXX" >&5
17172 echo "${ECHO_T}$CXX" >&6; }
17173 else
17174   { echo "$as_me:$LINENO: result: no" >&5
17175 echo "${ECHO_T}no" >&6; }
17176 fi
17177
17178
17179     test -n "$CXX" && break
17180   done
17181 fi
17182 if test -z "$CXX"; then
17183   ac_ct_CXX=$CXX
17184   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17185 do
17186   # Extract the first word of "$ac_prog", so it can be a program name with args.
17187 set dummy $ac_prog; ac_word=$2
17188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   if test -n "$ac_ct_CXX"; then
17194   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17195 else
17196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17197 for as_dir in $PATH
17198 do
17199   IFS=$as_save_IFS
17200   test -z "$as_dir" && as_dir=.
17201   for ac_exec_ext in '' $ac_executable_extensions; do
17202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17203     ac_cv_prog_ac_ct_CXX="$ac_prog"
17204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17205     break 2
17206   fi
17207 done
17208 done
17209 IFS=$as_save_IFS
17210
17211 fi
17212 fi
17213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17214 if test -n "$ac_ct_CXX"; then
17215   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17216 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17217 else
17218   { echo "$as_me:$LINENO: result: no" >&5
17219 echo "${ECHO_T}no" >&6; }
17220 fi
17221
17222
17223   test -n "$ac_ct_CXX" && break
17224 done
17225
17226   if test "x$ac_ct_CXX" = x; then
17227     CXX="g++"
17228   else
17229     case $cross_compiling:$ac_tool_warned in
17230 yes:)
17231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17232 whose name does not start with the host triplet.  If you think this
17233 configuration is useful to you, please write to autoconf@gnu.org." >&5
17234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17235 whose name does not start with the host triplet.  If you think this
17236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17237 ac_tool_warned=yes ;;
17238 esac
17239     CXX=$ac_ct_CXX
17240   fi
17241 fi
17242
17243   fi
17244 fi
17245 # Provide some information about the compiler.
17246 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17247 ac_compiler=`set X $ac_compile; echo $2`
17248 { (ac_try="$ac_compiler --version >&5"
17249 case "(($ac_try" in
17250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251   *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254   (eval "$ac_compiler --version >&5") 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }
17258 { (ac_try="$ac_compiler -v >&5"
17259 case "(($ac_try" in
17260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261   *) ac_try_echo=$ac_try;;
17262 esac
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264   (eval "$ac_compiler -v >&5") 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); }
17268 { (ac_try="$ac_compiler -V >&5"
17269 case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_compiler -V >&5") 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }
17278
17279 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17280 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17281 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17282   echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284   cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h.  */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h.  */
17290
17291 int
17292 main ()
17293 {
17294 #ifndef __GNUC__
17295        choke me
17296 #endif
17297
17298   ;
17299   return 0;
17300 }
17301 _ACEOF
17302 rm -f conftest.$ac_objext
17303 if { (ac_try="$ac_compile"
17304 case "(($ac_try" in
17305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306   *) ac_try_echo=$ac_try;;
17307 esac
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309   (eval "$ac_compile") 2>conftest.er1
17310   ac_status=$?
17311   grep -v '^ *+' conftest.er1 >conftest.err
17312   rm -f conftest.er1
17313   cat conftest.err >&5
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); } && {
17316          test -z "$ac_cxx_werror_flag" ||
17317          test ! -s conftest.err
17318        } && test -s conftest.$ac_objext; then
17319   ac_compiler_gnu=yes
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324         ac_compiler_gnu=no
17325 fi
17326
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17329
17330 fi
17331 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17332 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17333 GXX=`test $ac_compiler_gnu = yes && echo yes`
17334 ac_test_CXXFLAGS=${CXXFLAGS+set}
17335 ac_save_CXXFLAGS=$CXXFLAGS
17336 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17337 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17338 if test "${ac_cv_prog_cxx_g+set}" = set; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17342    ac_cxx_werror_flag=yes
17343    ac_cv_prog_cxx_g=no
17344    CXXFLAGS="-g"
17345    cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351
17352 int
17353 main ()
17354 {
17355
17356   ;
17357   return 0;
17358 }
17359 _ACEOF
17360 rm -f conftest.$ac_objext
17361 if { (ac_try="$ac_compile"
17362 case "(($ac_try" in
17363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364   *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367   (eval "$ac_compile") 2>conftest.er1
17368   ac_status=$?
17369   grep -v '^ *+' conftest.er1 >conftest.err
17370   rm -f conftest.er1
17371   cat conftest.err >&5
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); } && {
17374          test -z "$ac_cxx_werror_flag" ||
17375          test ! -s conftest.err
17376        } && test -s conftest.$ac_objext; then
17377   ac_cv_prog_cxx_g=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382         CXXFLAGS=""
17383       cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h.  */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h.  */
17389
17390 int
17391 main ()
17392 {
17393
17394   ;
17395   return 0;
17396 }
17397 _ACEOF
17398 rm -f conftest.$ac_objext
17399 if { (ac_try="$ac_compile"
17400 case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_compile") 2>conftest.er1
17406   ac_status=$?
17407   grep -v '^ *+' conftest.er1 >conftest.err
17408   rm -f conftest.er1
17409   cat conftest.err >&5
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); } && {
17412          test -z "$ac_cxx_werror_flag" ||
17413          test ! -s conftest.err
17414        } && test -s conftest.$ac_objext; then
17415   :
17416 else
17417   echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17421          CXXFLAGS="-g"
17422          cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428
17429 int
17430 main ()
17431 {
17432
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 rm -f conftest.$ac_objext
17438 if { (ac_try="$ac_compile"
17439 case "(($ac_try" in
17440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441   *) ac_try_echo=$ac_try;;
17442 esac
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444   (eval "$ac_compile") 2>conftest.er1
17445   ac_status=$?
17446   grep -v '^ *+' conftest.er1 >conftest.err
17447   rm -f conftest.er1
17448   cat conftest.err >&5
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } && {
17451          test -z "$ac_cxx_werror_flag" ||
17452          test ! -s conftest.err
17453        } && test -s conftest.$ac_objext; then
17454   ac_cv_prog_cxx_g=yes
17455 else
17456   echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459
17460 fi
17461
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463 fi
17464
17465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17466 fi
17467
17468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17469    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17470 fi
17471 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17472 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17473 if test "$ac_test_CXXFLAGS" = set; then
17474   CXXFLAGS=$ac_save_CXXFLAGS
17475 elif test $ac_cv_prog_cxx_g = yes; then
17476   if test "$GXX" = yes; then
17477     CXXFLAGS="-g -O2"
17478   else
17479     CXXFLAGS="-g"
17480   fi
17481 else
17482   if test "$GXX" = yes; then
17483     CXXFLAGS="-O2"
17484   else
17485     CXXFLAGS=
17486   fi
17487 fi
17488 ac_ext=c
17489 ac_cpp='$CPP $CPPFLAGS'
17490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17493
17494
17495
17496
17497
17498
17499
17500
17501     ac_ext=cpp
17502 ac_cpp='$CXXCPP $CPPFLAGS'
17503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17506
17507     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17508 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17509 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512   cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h.  */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h.  */
17518
17519 int
17520 main ()
17521 {
17522
17523              #ifndef __INTEL_COMPILER
17524                 choke me
17525              #endif
17526
17527   ;
17528   return 0;
17529 }
17530 _ACEOF
17531 rm -f conftest.$ac_objext
17532 if { (ac_try="$ac_compile"
17533 case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_compile") 2>conftest.er1
17539   ac_status=$?
17540   grep -v '^ *+' conftest.er1 >conftest.err
17541   rm -f conftest.er1
17542   cat conftest.err >&5
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } && {
17545          test -z "$ac_cxx_werror_flag" ||
17546          test ! -s conftest.err
17547        } && test -s conftest.$ac_objext; then
17548   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17554
17555 fi
17556
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558
17559
17560 fi
17561 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17562 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17563     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17564         :; INTELCXX=yes
17565     else
17566         :;
17567     fi
17568     ac_ext=c
17569 ac_cpp='$CPP $CPPFLAGS'
17570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17573
17574
17575
17576
17577         if test "$INTELCXX" = "yes"; then
17578
17579
17580     ac_ext=cpp
17581 ac_cpp='$CXXCPP $CPPFLAGS'
17582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17585
17586     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17587 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17588 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597
17598 int
17599 main ()
17600 {
17601
17602              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17603                 choke me
17604              #endif
17605
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext
17611 if { (ac_try="$ac_compile"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_compile") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } && {
17624          test -z "$ac_cxx_werror_flag" ||
17625          test ! -s conftest.err
17626        } && test -s conftest.$ac_objext; then
17627   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17633
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637
17638
17639 fi
17640 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17641 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17642     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17643         :; INTELCXX8=yes
17644     else
17645         :;
17646     fi
17647     ac_ext=c
17648 ac_cpp='$CPP $CPPFLAGS'
17649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17652
17653
17654
17655
17656
17657     ac_ext=cpp
17658 ac_cpp='$CXXCPP $CPPFLAGS'
17659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17662
17663     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17664 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17665 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17666   echo $ECHO_N "(cached) $ECHO_C" >&6
17667 else
17668   cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h.  */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h.  */
17674
17675 int
17676 main ()
17677 {
17678
17679              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17680                 choke me
17681              #endif
17682
17683   ;
17684   return 0;
17685 }
17686 _ACEOF
17687 rm -f conftest.$ac_objext
17688 if { (ac_try="$ac_compile"
17689 case "(($ac_try" in
17690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691   *) ac_try_echo=$ac_try;;
17692 esac
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694   (eval "$ac_compile") 2>conftest.er1
17695   ac_status=$?
17696   grep -v '^ *+' conftest.er1 >conftest.err
17697   rm -f conftest.er1
17698   cat conftest.err >&5
17699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700   (exit $ac_status); } && {
17701          test -z "$ac_cxx_werror_flag" ||
17702          test ! -s conftest.err
17703        } && test -s conftest.$ac_objext; then
17704   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17705 else
17706   echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17708
17709         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17710
17711 fi
17712
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714
17715
17716 fi
17717 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17718 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17719     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17720         :; INTELCXX10=yes
17721     else
17722         :;
17723     fi
17724     ac_ext=c
17725 ac_cpp='$CPP $CPPFLAGS'
17726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17729
17730
17731
17732     fi
17733
17734         if test "x$GCXX" != "xyes"; then
17735         if test "xCXX" = "xC"; then
17736             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17737 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17738 if test "${bakefile_cv_c_exto+set}" = set; then
17739   echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741   cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h.  */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h.  */
17747
17748 int
17749 main ()
17750 {
17751
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext conftest.$ac_ext.o
17757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758   (eval $ac_compile) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; then
17762   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17763     case $ac_file in
17764         conftest.$ac_ext.o)
17765             bakefile_cv_c_exto="-ext o"
17766             ;;
17767         *)
17768             ;;
17769     esac
17770 done
17771 else
17772   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17773 See \`config.log' for more details." >&5
17774 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17775 See \`config.log' for more details." >&2;}
17776    { (exit 1); exit 1; }; }
17777
17778 fi
17779
17780 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17781
17782 fi
17783 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17784 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17785 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17786     if test "c" = "c"; then
17787         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17788     fi
17789     if test "c" = "cxx"; then
17790         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17791     fi
17792 fi
17793
17794             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17795                 unset ac_cv_prog_cc_g
17796                 ac_test_CFLAGS=${CFLAGS+set}
17797 ac_save_CFLAGS=$CFLAGS
17798 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17799 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17800 if test "${ac_cv_prog_cc_g+set}" = set; then
17801   echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803   ac_save_c_werror_flag=$ac_c_werror_flag
17804    ac_c_werror_flag=yes
17805    ac_cv_prog_cc_g=no
17806    CFLAGS="-g"
17807    cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h.  */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h.  */
17813
17814 int
17815 main ()
17816 {
17817
17818   ;
17819   return 0;
17820 }
17821 _ACEOF
17822 rm -f conftest.$ac_objext
17823 if { (ac_try="$ac_compile"
17824 case "(($ac_try" in
17825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826   *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829   (eval "$ac_compile") 2>conftest.er1
17830   ac_status=$?
17831   grep -v '^ *+' conftest.er1 >conftest.err
17832   rm -f conftest.er1
17833   cat conftest.err >&5
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); } && {
17836          test -z "$ac_c_werror_flag" ||
17837          test ! -s conftest.err
17838        } && test -s conftest.$ac_objext; then
17839   ac_cv_prog_cc_g=yes
17840 else
17841   echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844         CFLAGS=""
17845       cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h.  */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h.  */
17851
17852 int
17853 main ()
17854 {
17855
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext
17861 if { (ac_try="$ac_compile"
17862 case "(($ac_try" in
17863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864   *) ac_try_echo=$ac_try;;
17865 esac
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867   (eval "$ac_compile") 2>conftest.er1
17868   ac_status=$?
17869   grep -v '^ *+' conftest.er1 >conftest.err
17870   rm -f conftest.er1
17871   cat conftest.err >&5
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } && {
17874          test -z "$ac_c_werror_flag" ||
17875          test ! -s conftest.err
17876        } && test -s conftest.$ac_objext; then
17877   :
17878 else
17879   echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882         ac_c_werror_flag=$ac_save_c_werror_flag
17883          CFLAGS="-g"
17884          cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h.  */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h.  */
17890
17891 int
17892 main ()
17893 {
17894
17895   ;
17896   return 0;
17897 }
17898 _ACEOF
17899 rm -f conftest.$ac_objext
17900 if { (ac_try="$ac_compile"
17901 case "(($ac_try" in
17902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903   *) ac_try_echo=$ac_try;;
17904 esac
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906   (eval "$ac_compile") 2>conftest.er1
17907   ac_status=$?
17908   grep -v '^ *+' conftest.er1 >conftest.err
17909   rm -f conftest.er1
17910   cat conftest.err >&5
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } && {
17913          test -z "$ac_c_werror_flag" ||
17914          test ! -s conftest.err
17915        } && test -s conftest.$ac_objext; then
17916   ac_cv_prog_cc_g=yes
17917 else
17918   echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17920
17921
17922 fi
17923
17924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
17932 fi
17933 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17934 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17935 if test "$ac_test_CFLAGS" = set; then
17936   CFLAGS=$ac_save_CFLAGS
17937 elif test $ac_cv_prog_cc_g = yes; then
17938   if test "$GCC" = yes; then
17939     CFLAGS="-g -O2"
17940   else
17941     CFLAGS="-g"
17942   fi
17943 else
17944   if test "$GCC" = yes; then
17945     CFLAGS="-O2"
17946   else
17947     CFLAGS=
17948   fi
17949 fi
17950             fi
17951         fi
17952
17953                         case `uname -s` in
17954             AIX*)
17955
17956
17957     ac_ext=cpp
17958 ac_cpp='$CXXCPP $CPPFLAGS'
17959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17962
17963     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17964 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17965 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17966   echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968   cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974
17975 int
17976 main ()
17977 {
17978
17979              #ifndef __xlC__
17980                 choke me
17981              #endif
17982
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_compile") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } && {
18001          test -z "$ac_cxx_werror_flag" ||
18002          test ! -s conftest.err
18003        } && test -s conftest.$ac_objext; then
18004   bakefile_cv_cxx_compiler___xlC__=yes
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009         bakefile_cv_cxx_compiler___xlC__=no
18010
18011 fi
18012
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014
18015
18016 fi
18017 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18018 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18019     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18020         :; XLCXX=yes
18021     else
18022         :;
18023     fi
18024     ac_ext=c
18025 ac_cpp='$CPP $CPPFLAGS'
18026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18029
18030
18031
18032                 ;;
18033
18034             Darwin)
18035
18036
18037     ac_ext=cpp
18038 ac_cpp='$CXXCPP $CPPFLAGS'
18039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18042
18043     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18044 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18045 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054
18055 int
18056 main ()
18057 {
18058
18059              #ifndef __MWERKS__
18060                 choke me
18061              #endif
18062
18063   ;
18064   return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest.$ac_objext
18068 if { (ac_try="$ac_compile"
18069 case "(($ac_try" in
18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071   *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074   (eval "$ac_compile") 2>conftest.er1
18075   ac_status=$?
18076   grep -v '^ *+' conftest.er1 >conftest.err
18077   rm -f conftest.er1
18078   cat conftest.err >&5
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); } && {
18081          test -z "$ac_cxx_werror_flag" ||
18082          test ! -s conftest.err
18083        } && test -s conftest.$ac_objext; then
18084   bakefile_cv_cxx_compiler___MWERKS__=yes
18085 else
18086   echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18088
18089         bakefile_cv_cxx_compiler___MWERKS__=no
18090
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094
18095
18096 fi
18097 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18098 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18099     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18100         :; MWCXX=yes
18101     else
18102         :;
18103     fi
18104     ac_ext=c
18105 ac_cpp='$CPP $CPPFLAGS'
18106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18109
18110
18111
18112                 if test "$MWCXX" != "yes"; then
18113
18114
18115     ac_ext=cpp
18116 ac_cpp='$CXXCPP $CPPFLAGS'
18117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18120
18121     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18122 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18123 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18124   echo $ECHO_N "(cached) $ECHO_C" >&6
18125 else
18126   cat >conftest.$ac_ext <<_ACEOF
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132
18133 int
18134 main ()
18135 {
18136
18137              #ifndef __xlC__
18138                 choke me
18139              #endif
18140
18141   ;
18142   return 0;
18143 }
18144 _ACEOF
18145 rm -f conftest.$ac_objext
18146 if { (ac_try="$ac_compile"
18147 case "(($ac_try" in
18148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149   *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152   (eval "$ac_compile") 2>conftest.er1
18153   ac_status=$?
18154   grep -v '^ *+' conftest.er1 >conftest.err
18155   rm -f conftest.er1
18156   cat conftest.err >&5
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); } && {
18159          test -z "$ac_cxx_werror_flag" ||
18160          test ! -s conftest.err
18161        } && test -s conftest.$ac_objext; then
18162   bakefile_cv_cxx_compiler___xlC__=yes
18163 else
18164   echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18166
18167         bakefile_cv_cxx_compiler___xlC__=no
18168
18169 fi
18170
18171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18172
18173
18174 fi
18175 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18176 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18177     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18178         :; XLCXX=yes
18179     else
18180         :;
18181     fi
18182     ac_ext=c
18183 ac_cpp='$CPP $CPPFLAGS'
18184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18187
18188
18189
18190                 fi
18191                 ;;
18192
18193             IRIX*)
18194
18195
18196     ac_ext=cpp
18197 ac_cpp='$CXXCPP $CPPFLAGS'
18198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18201
18202     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18203 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18204 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   cat >conftest.$ac_ext <<_ACEOF
18208 /* confdefs.h.  */
18209 _ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h.  */
18213
18214 int
18215 main ()
18216 {
18217
18218              #ifndef _SGI_COMPILER_VERSION
18219                 choke me
18220              #endif
18221
18222   ;
18223   return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext
18227 if { (ac_try="$ac_compile"
18228 case "(($ac_try" in
18229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230   *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233   (eval "$ac_compile") 2>conftest.er1
18234   ac_status=$?
18235   grep -v '^ *+' conftest.er1 >conftest.err
18236   rm -f conftest.er1
18237   cat conftest.err >&5
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); } && {
18240          test -z "$ac_cxx_werror_flag" ||
18241          test ! -s conftest.err
18242        } && test -s conftest.$ac_objext; then
18243   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18244 else
18245   echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18247
18248         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18249
18250 fi
18251
18252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18253
18254
18255 fi
18256 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18257 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18258     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18259         :; SGICXX=yes
18260     else
18261         :;
18262     fi
18263     ac_ext=c
18264 ac_cpp='$CPP $CPPFLAGS'
18265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18268
18269
18270
18271                 ;;
18272
18273             Linux*)
18274                                                 if test "$INTELCXX" != "yes"; then
18275
18276
18277     ac_ext=cpp
18278 ac_cpp='$CXXCPP $CPPFLAGS'
18279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18282
18283     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18284 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18285 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18286   echo $ECHO_N "(cached) $ECHO_C" >&6
18287 else
18288   cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h.  */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h.  */
18294
18295 int
18296 main ()
18297 {
18298
18299              #ifndef __SUNPRO_CC
18300                 choke me
18301              #endif
18302
18303   ;
18304   return 0;
18305 }
18306 _ACEOF
18307 rm -f conftest.$ac_objext
18308 if { (ac_try="$ac_compile"
18309 case "(($ac_try" in
18310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311   *) ac_try_echo=$ac_try;;
18312 esac
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314   (eval "$ac_compile") 2>conftest.er1
18315   ac_status=$?
18316   grep -v '^ *+' conftest.er1 >conftest.err
18317   rm -f conftest.er1
18318   cat conftest.err >&5
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); } && {
18321          test -z "$ac_cxx_werror_flag" ||
18322          test ! -s conftest.err
18323        } && test -s conftest.$ac_objext; then
18324   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18325 else
18326   echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18328
18329         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18330
18331 fi
18332
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334
18335
18336 fi
18337 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18338 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18339     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18340         :; SUNCXX=yes
18341     else
18342         :;
18343     fi
18344     ac_ext=c
18345 ac_cpp='$CPP $CPPFLAGS'
18346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349
18350
18351
18352                 fi
18353                 ;;
18354
18355             HP-UX*)
18356
18357
18358     ac_ext=cpp
18359 ac_cpp='$CXXCPP $CPPFLAGS'
18360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18363
18364     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18365 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18366 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h.  */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h.  */
18375
18376 int
18377 main ()
18378 {
18379
18380              #ifndef __HP_aCC
18381                 choke me
18382              #endif
18383
18384   ;
18385   return 0;
18386 }
18387 _ACEOF
18388 rm -f conftest.$ac_objext
18389 if { (ac_try="$ac_compile"
18390 case "(($ac_try" in
18391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392   *) ac_try_echo=$ac_try;;
18393 esac
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395   (eval "$ac_compile") 2>conftest.er1
18396   ac_status=$?
18397   grep -v '^ *+' conftest.er1 >conftest.err
18398   rm -f conftest.er1
18399   cat conftest.err >&5
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); } && {
18402          test -z "$ac_cxx_werror_flag" ||
18403          test ! -s conftest.err
18404        } && test -s conftest.$ac_objext; then
18405   bakefile_cv_cxx_compiler___HP_aCC=yes
18406 else
18407   echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410         bakefile_cv_cxx_compiler___HP_aCC=no
18411
18412 fi
18413
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415
18416
18417 fi
18418 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18419 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18420     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18421         :; HPCXX=yes
18422     else
18423         :;
18424     fi
18425     ac_ext=c
18426 ac_cpp='$CPP $CPPFLAGS'
18427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18430
18431
18432
18433                 ;;
18434
18435             OSF1)
18436
18437
18438     ac_ext=cpp
18439 ac_cpp='$CXXCPP $CPPFLAGS'
18440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18443
18444     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18445 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18446 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h.  */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h.  */
18455
18456 int
18457 main ()
18458 {
18459
18460              #ifndef __DECCXX
18461                 choke me
18462              #endif
18463
18464   ;
18465   return 0;
18466 }
18467 _ACEOF
18468 rm -f conftest.$ac_objext
18469 if { (ac_try="$ac_compile"
18470 case "(($ac_try" in
18471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472   *) ac_try_echo=$ac_try;;
18473 esac
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475   (eval "$ac_compile") 2>conftest.er1
18476   ac_status=$?
18477   grep -v '^ *+' conftest.er1 >conftest.err
18478   rm -f conftest.er1
18479   cat conftest.err >&5
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); } && {
18482          test -z "$ac_cxx_werror_flag" ||
18483          test ! -s conftest.err
18484        } && test -s conftest.$ac_objext; then
18485   bakefile_cv_cxx_compiler___DECCXX=yes
18486 else
18487   echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18489
18490         bakefile_cv_cxx_compiler___DECCXX=no
18491
18492 fi
18493
18494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18495
18496
18497 fi
18498 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18499 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18500     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18501         :; COMPAQCXX=yes
18502     else
18503         :;
18504     fi
18505     ac_ext=c
18506 ac_cpp='$CPP $CPPFLAGS'
18507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18510
18511
18512
18513                 ;;
18514
18515             SunOS)
18516
18517
18518     ac_ext=cpp
18519 ac_cpp='$CXXCPP $CPPFLAGS'
18520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18523
18524     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18525 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18526 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18527   echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529   cat >conftest.$ac_ext <<_ACEOF
18530 /* confdefs.h.  */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h.  */
18535
18536 int
18537 main ()
18538 {
18539
18540              #ifndef __SUNPRO_CC
18541                 choke me
18542              #endif
18543
18544   ;
18545   return 0;
18546 }
18547 _ACEOF
18548 rm -f conftest.$ac_objext
18549 if { (ac_try="$ac_compile"
18550 case "(($ac_try" in
18551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552   *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555   (eval "$ac_compile") 2>conftest.er1
18556   ac_status=$?
18557   grep -v '^ *+' conftest.er1 >conftest.err
18558   rm -f conftest.er1
18559   cat conftest.err >&5
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } && {
18562          test -z "$ac_cxx_werror_flag" ||
18563          test ! -s conftest.err
18564        } && test -s conftest.$ac_objext; then
18565   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18566 else
18567   echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18571
18572 fi
18573
18574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18575
18576
18577 fi
18578 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18579 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18580     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18581         :; SUNCXX=yes
18582     else
18583         :;
18584     fi
18585     ac_ext=c
18586 ac_cpp='$CPP $CPPFLAGS'
18587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18590
18591
18592
18593                 ;;
18594         esac
18595     fi
18596
18597
18598
18599 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18600     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18601 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18602    { (exit 1); exit 1; }; }
18603 fi
18604
18605 if test "x$SUNCXX" != xyes; then
18606     if test -n "$ac_tool_prefix"; then
18607   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18608 set dummy ${ac_tool_prefix}ar; ac_word=$2
18609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18611 if test "${ac_cv_prog_AR+set}" = set; then
18612   echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614   if test -n "$AR"; then
18615   ac_cv_prog_AR="$AR" # Let the user override the test.
18616 else
18617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618 for as_dir in $PATH
18619 do
18620   IFS=$as_save_IFS
18621   test -z "$as_dir" && as_dir=.
18622   for ac_exec_ext in '' $ac_executable_extensions; do
18623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18624     ac_cv_prog_AR="${ac_tool_prefix}ar"
18625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18626     break 2
18627   fi
18628 done
18629 done
18630 IFS=$as_save_IFS
18631
18632 fi
18633 fi
18634 AR=$ac_cv_prog_AR
18635 if test -n "$AR"; then
18636   { echo "$as_me:$LINENO: result: $AR" >&5
18637 echo "${ECHO_T}$AR" >&6; }
18638 else
18639   { echo "$as_me:$LINENO: result: no" >&5
18640 echo "${ECHO_T}no" >&6; }
18641 fi
18642
18643
18644 fi
18645 if test -z "$ac_cv_prog_AR"; then
18646   ac_ct_AR=$AR
18647   # Extract the first word of "ar", so it can be a program name with args.
18648 set dummy ar; ac_word=$2
18649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18651 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18652   echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654   if test -n "$ac_ct_AR"; then
18655   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18656 else
18657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18658 for as_dir in $PATH
18659 do
18660   IFS=$as_save_IFS
18661   test -z "$as_dir" && as_dir=.
18662   for ac_exec_ext in '' $ac_executable_extensions; do
18663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18664     ac_cv_prog_ac_ct_AR="ar"
18665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18666     break 2
18667   fi
18668 done
18669 done
18670 IFS=$as_save_IFS
18671
18672 fi
18673 fi
18674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18675 if test -n "$ac_ct_AR"; then
18676   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18677 echo "${ECHO_T}$ac_ct_AR" >&6; }
18678 else
18679   { echo "$as_me:$LINENO: result: no" >&5
18680 echo "${ECHO_T}no" >&6; }
18681 fi
18682
18683   if test "x$ac_ct_AR" = x; then
18684     AR=""
18685   else
18686     case $cross_compiling:$ac_tool_warned in
18687 yes:)
18688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18689 whose name does not start with the host triplet.  If you think this
18690 configuration is useful to you, please write to autoconf@gnu.org." >&5
18691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18692 whose name does not start with the host triplet.  If you think this
18693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18694 ac_tool_warned=yes ;;
18695 esac
18696     AR=$ac_ct_AR
18697   fi
18698 else
18699   AR="$ac_cv_prog_AR"
18700 fi
18701
18702     if test "x$AR" = "x" ; then
18703         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18704 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18705    { (exit 1); exit 1; }; }
18706     fi
18707 fi
18708
18709
18710 if test "$wxUSE_MAC" = 1; then
18711
18712 retest_macosx_linking=no
18713
18714 OSX_ARCH_OPTS=""
18715 if test "x$wxUSE_MAC_ARCH" != xno; then
18716     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
18717 fi
18718
18719     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18720                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18721             # Implicitly turn on the new --with-macosx-sdk using the default
18722             # SDK which provides the behaviour this option has always had.
18723             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18724                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18725 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18726                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18727 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18728                 wxUSE_MACOSX_SDK=yes
18729             fi
18730         else
18731             # Complain to user if he specified an argument to --enable-universal_binary
18732             # and also 1) specified --with-macosx-sdk using the default (yes) or
18733             # 2) specified --with-macosx-sdk using a path or 3) specified
18734             # --without-macosx-sdk (no).
18735             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18736                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18737 See \`config.log' for more details." >&5
18738 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18739 See \`config.log' for more details." >&2;}
18740    { (exit 1); exit 1; }; }
18741             else
18742                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18743                 # special-case the empty string because the below test simply
18744                 # converts "no" to the empty string anyway.
18745                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18746                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18747 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18748             fi
18749         fi
18750                 OSX_ARCH_OPTS="-arch ppc -arch i386"
18751         if test "$wxUSE_OSX_COCOA" = 1; then
18752             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
18753         fi
18754         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
18755 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
18756         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
18757 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
18758
18759                                                                                                                 retest_macosx_linking=yes
18760
18761                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18762 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18763         bk_use_pch=no
18764     fi
18765
18766 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
18767 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
18768 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
18769 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
18770 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
18771
18772 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18773     wxUSE_MACOSX_SDK=
18774 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18775     # TODO: Search for most recent SDK and use it.
18776     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18777 fi
18778
18779
18780 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18781     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18782 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18783     if ! test -d "$wxUSE_MACOSX_SDK"; then
18784         { { echo "$as_me:$LINENO: error: not found
18785 See \`config.log' for more details." >&5
18786 echo "$as_me: error: not found
18787 See \`config.log' for more details." >&2;}
18788    { (exit 1); exit 1; }; }
18789     else
18790         { echo "$as_me:$LINENO: result: exists" >&5
18791 echo "${ECHO_T}exists" >&6; }
18792     fi
18793     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18794     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18795     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18796     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18797     retest_macosx_linking=yes
18798             fi
18799
18800 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18801     wxUSE_MACOSX_VERSION_MIN=
18802 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18803     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18804         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18805 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18806
18807         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/'`
18808
18809         # If that failed, try again with the new key
18810         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18811
18812             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/'`
18813
18814         fi
18815
18816         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18817             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18818             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18819 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18820         else
18821             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18822 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18823             wxUSE_MACOSX_VERSION_MIN=
18824         fi
18825     else
18826         wxUSE_MACOSX_VERSION_MIN=
18827     fi
18828 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18829     for ac_prog in sw_vers
18830 do
18831   # Extract the first word of "$ac_prog", so it can be a program name with args.
18832 set dummy $ac_prog; ac_word=$2
18833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18835 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   if test -n "$OSX_SW_VERS"; then
18839   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
18840 else
18841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842 for as_dir in $PATH
18843 do
18844   IFS=$as_save_IFS
18845   test -z "$as_dir" && as_dir=.
18846   for ac_exec_ext in '' $ac_executable_extensions; do
18847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18848     ac_cv_prog_OSX_SW_VERS="$ac_prog"
18849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18850     break 2
18851   fi
18852 done
18853 done
18854 IFS=$as_save_IFS
18855
18856 fi
18857 fi
18858 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
18859 if test -n "$OSX_SW_VERS"; then
18860   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
18861 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
18862 else
18863   { echo "$as_me:$LINENO: result: no" >&5
18864 echo "${ECHO_T}no" >&6; }
18865 fi
18866
18867
18868   test -n "$OSX_SW_VERS" && break
18869 done
18870
18871     if test "$OSX_SW_VERS" != ""; then
18872         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
18873     else
18874                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
18875 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
18876         OSX_VERSION="10.4"
18877     fi
18878
18879     case "$OSX_VERSION" in
18880         10.4* )
18881             wxUSE_MACOSX_VERSION_MIN=10.4
18882             ;;
18883
18884         * )
18885             if test "$wxUSE_OSX_CARBON" = 1; then
18886                 # otherwise configure stops on leopard for universal_binary
18887                 wxUSE_MACOSX_VERSION_MIN=10.4
18888             else
18889                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
18890                 wxUSE_MACOSX_VERSION_MIN=10.5
18891             fi
18892             ;;
18893     esac
18894 fi
18895
18896 NEEDS_GCC40="no"
18897 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
18898     NEEDS_GCC40="yes"
18899 fi
18900
18901 if test "$wxUSE_OSX_CARBON" = 1; then
18902     NEEDS_GCC40="yes"
18903 fi
18904
18905 if test "x$NEEDS_GCC40" == "xyes"; then
18906     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
18907     # and wants 10.4 compatible code, then 'downgrade' to 4.0
18908     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
18909     if test "x$CC" = "xgcc"; then
18910         CCVERSION=`$CC --version | grep 4.[2-9].`
18911         if test "x$CCVERSION" != "x"; then
18912             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
18913             CC="/usr/bin/gcc-4.0"
18914         fi
18915     fi
18916
18917     if test "x$CXX" = "xg++"; then
18918         CCVERSION=`$CXX --version | grep 4.[2-9].`
18919         if test "x$CCVERSION" != "x"; then
18920             CXX="/usr/bin/g++-4.0"
18921         fi
18922     fi
18923 fi
18924
18925 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18926     if test "$wxUSE_OSX_IPHONE" = 1; then
18927         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
18928     else
18929         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18930     fi
18931     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18932     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18933     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18934     retest_macosx_linking=yes
18935 fi
18936
18937 if test "x$retest_macosx_linking" = "xyes"; then
18938     ac_ext=c
18939 ac_cpp='$CPP $CPPFLAGS'
18940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18943
18944     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18945 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18946     cat >conftest.$ac_ext <<_ACEOF
18947 /* confdefs.h.  */
18948 _ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h.  */
18952
18953 int
18954 main ()
18955 {
18956
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_link") 2>conftest.er1
18969   ac_status=$?
18970   grep -v '^ *+' conftest.er1 >conftest.err
18971   rm -f conftest.er1
18972   cat conftest.err >&5
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); } && {
18975          test -z "$ac_c_werror_flag" ||
18976          test ! -s conftest.err
18977        } && test -s conftest$ac_exeext &&
18978        $as_test_x conftest$ac_exeext; then
18979   { echo "$as_me:$LINENO: result: yes" >&5
18980 echo "${ECHO_T}yes" >&6; }
18981 else
18982   echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18984
18985         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18986 See \`config.log' for more details." >&5
18987 echo "$as_me: error: no.  Try a different SDK
18988 See \`config.log' for more details." >&2;}
18989    { (exit 1); exit 1; }; }; exit 1
18990 fi
18991
18992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18993       conftest$ac_exeext conftest.$ac_ext
18994     ac_ext=c
18995 ac_cpp='$CPP $CPPFLAGS'
18996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18999
19000
19001     ac_ext=cpp
19002 ac_cpp='$CXXCPP $CPPFLAGS'
19003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19006
19007     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19008 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19009     cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h.  */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h.  */
19015
19016 int
19017 main ()
19018 {
19019
19020   ;
19021   return 0;
19022 }
19023 _ACEOF
19024 rm -f conftest.$ac_objext conftest$ac_exeext
19025 if { (ac_try="$ac_link"
19026 case "(($ac_try" in
19027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028   *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031   (eval "$ac_link") 2>conftest.er1
19032   ac_status=$?
19033   grep -v '^ *+' conftest.er1 >conftest.err
19034   rm -f conftest.er1
19035   cat conftest.err >&5
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); } && {
19038          test -z "$ac_cxx_werror_flag" ||
19039          test ! -s conftest.err
19040        } && test -s conftest$ac_exeext &&
19041        $as_test_x conftest$ac_exeext; then
19042   { echo "$as_me:$LINENO: result: yes" >&5
19043 echo "${ECHO_T}yes" >&6; }
19044 else
19045   echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19047
19048         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19049 See \`config.log' for more details." >&5
19050 echo "$as_me: error: no.  Try a different SDK
19051 See \`config.log' for more details." >&2;}
19052    { (exit 1); exit 1; }; }; exit 1
19053 fi
19054
19055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056       conftest$ac_exeext conftest.$ac_ext
19057     ac_ext=c
19058 ac_cpp='$CPP $CPPFLAGS'
19059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19062
19063 fi
19064
19065 fi
19066 case "${host}" in
19067
19068                 *-*-darwin* )
19069         INSTALL_PROGRAM="cp -fp"
19070         INSTALL_DATA="cp -fp"
19071         ;;
19072     *)
19073         ;;
19074 esac
19075
19076
19077 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19078     CXXFLAGS="-qunique $CXXFLAGS"
19079 fi
19080
19081 case "${host}" in
19082   powerpc-*-darwin* )
19083     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19084 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19085     cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091
19092 int
19093 main ()
19094 {
19095 #ifndef __POWERPC__
19096         choke me for lack of PowerPC
19097 #endif
19098
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (ac_try="$ac_compile"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_compile") 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } && {
19117          test -z "$ac_c_werror_flag" ||
19118          test ! -s conftest.err
19119        } && test -s conftest.$ac_objext; then
19120   { echo "$as_me:$LINENO: result: yes" >&5
19121 echo "${ECHO_T}yes" >&6; }
19122 else
19123   echo "$as_me: failed program was:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19125
19126         { echo "$as_me:$LINENO: result: no" >&5
19127 echo "${ECHO_T}no" >&6; }
19128         cat >>confdefs.h <<\_ACEOF
19129 #define __POWERPC__ 1
19130 _ACEOF
19131
19132
19133 fi
19134
19135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19136   ;;
19137 esac
19138
19139 case "${host}" in
19140   *-*-darwin* )
19141     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19142 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19143     cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h.  */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h.  */
19149 #include <CoreFoundation/CFBase.h>
19150
19151 int
19152 main ()
19153 {
19154
19155   ;
19156   return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext
19160 if { (ac_try="$ac_compile"
19161 case "(($ac_try" in
19162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163   *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166   (eval "$ac_compile") 2>conftest.er1
19167   ac_status=$?
19168   grep -v '^ *+' conftest.er1 >conftest.err
19169   rm -f conftest.er1
19170   cat conftest.err >&5
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } && {
19173          test -z "$ac_c_werror_flag" ||
19174          test ! -s conftest.err
19175        } && test -s conftest.$ac_objext; then
19176   { echo "$as_me:$LINENO: result: yes" >&5
19177 echo "${ECHO_T}yes" >&6; }
19178 else
19179   echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19181
19182         { echo "$as_me:$LINENO: result: no" >&5
19183 echo "${ECHO_T}no" >&6; }
19184         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19185 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19186         cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h.  */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h.  */
19192 #define __CF_USE_FRAMEWORK_INCLUDES__
19193 #include <CoreFoundation/CFBase.h>
19194
19195 int
19196 main ()
19197 {
19198
19199   ;
19200   return 0;
19201 }
19202 _ACEOF
19203 rm -f conftest.$ac_objext
19204 if { (ac_try="$ac_compile"
19205 case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_compile") 2>conftest.er1
19211   ac_status=$?
19212   grep -v '^ *+' conftest.er1 >conftest.err
19213   rm -f conftest.er1
19214   cat conftest.err >&5
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); } && {
19217          test -z "$ac_c_werror_flag" ||
19218          test ! -s conftest.err
19219        } && test -s conftest.$ac_objext; then
19220   { echo "$as_me:$LINENO: result: yes" >&5
19221 echo "${ECHO_T}yes" >&6; }
19222                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19228 See \`config.log' for more details." >&5
19229 echo "$as_me: error: no.  CoreFoundation not available.
19230 See \`config.log' for more details." >&2;}
19231    { (exit 1); exit 1; }; }
19232
19233 fi
19234
19235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19236
19237
19238 fi
19239
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241   ;;
19242 esac
19243
19244 wants_win32=0
19245 doesnt_want_win32=0
19246 case "${host}" in
19247   *-*-cygwin*)
19248       if test "$wxUSE_MSW" = 1 ; then
19249         wants_win32=1
19250       else
19251                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19252 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19253 if test "${wx_cv_nocygwin+set}" = set; then
19254   echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256
19257                 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263
19264 int
19265 main ()
19266 {
19267
19268                         #ifdef __MINGW32__
19269                             choke me
19270                         #endif
19271
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_compile") 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } && {
19290          test -z "$ac_c_werror_flag" ||
19291          test ! -s conftest.err
19292        } && test -s conftest.$ac_objext; then
19293   wx_cv_nocygwin=no
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298         wx_cv_nocygwin=yes
19299
19300 fi
19301
19302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303
19304
19305 fi
19306 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19307 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19308
19309         if test "$wx_cv_nocygwin" = "yes"; then
19310             wants_win32=1
19311         else
19312             doesnt_want_win32=1
19313         fi
19314       fi
19315       if test "$wants_win32" = 1 ; then
19316         BAKEFILE_FORCE_PLATFORM=win32
19317       fi
19318   ;;
19319   *-*-mingw*)
19320       wants_win32=1
19321   ;;
19322 esac
19323
19324 if test "$wxUSE_WINE" = "yes"; then
19325     wants_win32=1
19326     LDFLAGS_GUI="-mwindows"
19327 fi
19328
19329 if test "$wants_win32" = 1 ; then
19330     USE_UNIX=0
19331     USE_WIN32=1
19332     cat >>confdefs.h <<\_ACEOF
19333 #define __WIN32__ 1
19334 _ACEOF
19335
19336     cat >>confdefs.h <<\_ACEOF
19337 #define __WIN95__ 1
19338 _ACEOF
19339
19340     cat >>confdefs.h <<\_ACEOF
19341 #define __WINDOWS__ 1
19342 _ACEOF
19343
19344     cat >>confdefs.h <<\_ACEOF
19345 #define __GNUWIN32__ 1
19346 _ACEOF
19347
19348     cat >>confdefs.h <<\_ACEOF
19349 #define STRICT 1
19350 _ACEOF
19351
19352 fi
19353 if test "$doesnt_want_win32" = 1 ; then
19354     USE_UNIX=1
19355     USE_WIN32=0
19356 fi
19357
19358 if test "$USE_UNIX" = 1 ; then
19359     wxUSE_UNIX=yes
19360     cat >>confdefs.h <<\_ACEOF
19361 #define __UNIX__ 1
19362 _ACEOF
19363
19364 fi
19365
19366 case "${host}" in
19367   *-pc-os2_emx | *-pc-os2-emx )
19368                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19369                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19370 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19371 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374   ac_check_lib_save_LIBS=$LIBS
19375 LIBS="-lcExt  $LIBS"
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h.  */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h.  */
19382
19383 /* Override any GCC internal prototype to avoid an error.
19384    Use char because int might match the return type of a GCC
19385    builtin and then its argument prototype would still apply.  */
19386 #ifdef __cplusplus
19387 extern "C"
19388 #endif
19389 char drand48 ();
19390 int
19391 main ()
19392 {
19393 return drand48 ();
19394   ;
19395   return 0;
19396 }
19397 _ACEOF
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (ac_try="$ac_link"
19400 case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_link") 2>conftest.er1
19406   ac_status=$?
19407   grep -v '^ *+' conftest.er1 >conftest.err
19408   rm -f conftest.er1
19409   cat conftest.err >&5
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); } && {
19412          test -z "$ac_c_werror_flag" ||
19413          test ! -s conftest.err
19414        } && test -s conftest$ac_exeext &&
19415        $as_test_x conftest$ac_exeext; then
19416   ac_cv_lib_cExt_drand48=yes
19417 else
19418   echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421         ac_cv_lib_cExt_drand48=no
19422 fi
19423
19424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19425       conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19427 fi
19428 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19429 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19430 if test $ac_cv_lib_cExt_drand48 = yes; then
19431   LIBS="$LIBS -lcExt"
19432 fi
19433
19434       else
19435                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19436       fi
19437                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19438 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19439 if test "${wx_cv_gccversion+set}" = set; then
19440   echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442
19443           if test "$cross_compiling" = yes; then
19444                 wx_cv_gccversion="EMX2"
19445
19446 else
19447   cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h.  */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h.  */
19453
19454                   #include <stdio.h>
19455
19456                   int main()
19457                   {
19458                       FILE *f=fopen("conftestval", "w");
19459                       if (!f) exit(1);
19460                       fprintf(f,
19461                   #if (__GNUC__ < 3)
19462                               "EMX2"
19463                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19464                               "EMX3"
19465                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19466                               "Innotek5"
19467                   #else
19468                               "Innotek6"
19469                   #endif
19470                       );
19471                       exit(0);
19472                   }
19473
19474 _ACEOF
19475 rm -f conftest$ac_exeext
19476 if { (ac_try="$ac_link"
19477 case "(($ac_try" in
19478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479   *) ac_try_echo=$ac_try;;
19480 esac
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482   (eval "$ac_link") 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19486   { (case "(($ac_try" in
19487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488   *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491   (eval "$ac_try") 2>&5
19492   ac_status=$?
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); }; }; then
19495   wx_cv_gccversion=`cat conftestval`
19496 else
19497   echo "$as_me: program exited with status $ac_status" >&5
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 ( exit $ac_status )
19502 wx_cv_gccversion="EMX2"
19503 fi
19504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19505 fi
19506
19507
19508
19509 fi
19510 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19511 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19512       if test "$wx_cv_gccversion" = "EMX2"; then
19513           LIBS="$LIBS -lstdcpp"
19514           LDFLAGS="$LDFLAGS -Zsysv-signals"
19515       else
19516           if test "$wx_cv_gccversion" = "EMX3"; then
19517               LIBS="$LIBS -lstdcxx -lgcc"
19518               LDFLAGS="$LDFLAGS -Zsysv-signals"
19519           else
19520               LIBS="$LIBS -lstdc++"
19521           fi
19522       fi
19523       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19524         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19525 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19526         wxUSE_OMF=yes
19527         enable_omf=yes
19528       fi
19529         ;;
19530   *)
19531
19532       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19533 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19534 if test "${ac_cv_string_strcasecmp+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537
19538           cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544
19545               #include <string.h>
19546
19547 int
19548 main ()
19549 {
19550
19551                   strcasecmp("foo", "bar");
19552
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_link") 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } && {
19571          test -z "$ac_c_werror_flag" ||
19572          test ! -s conftest.err
19573        } && test -s conftest$ac_exeext &&
19574        $as_test_x conftest$ac_exeext; then
19575   ac_cv_string_strcasecmp=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580         ac_cv_string_strcasecmp=no
19581
19582 fi
19583
19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19585       conftest$ac_exeext conftest.$ac_ext
19586
19587 fi
19588 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19589 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19590
19591       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19592           cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_STRCASECMP_IN_STRING_H 1
19594 _ACEOF
19595
19596       else
19597           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19598 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19599 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602
19603               cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609
19610                   #include <strings.h>
19611
19612 int
19613 main ()
19614 {
19615
19616                       strcasecmp("foo", "bar");
19617
19618   ;
19619   return 0;
19620 }
19621 _ACEOF
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626   *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629   (eval "$ac_link") 2>conftest.er1
19630   ac_status=$?
19631   grep -v '^ *+' conftest.er1 >conftest.err
19632   rm -f conftest.er1
19633   cat conftest.err >&5
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); } && {
19636          test -z "$ac_c_werror_flag" ||
19637          test ! -s conftest.err
19638        } && test -s conftest$ac_exeext &&
19639        $as_test_x conftest$ac_exeext; then
19640   ac_cv_strings_strcasecmp=yes
19641 else
19642   echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645         ac_cv_strings_strcasecmp=no
19646
19647 fi
19648
19649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650       conftest$ac_exeext conftest.$ac_ext
19651
19652 fi
19653 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19654 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
19655
19656           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19657               cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19659 _ACEOF
19660
19661           else
19662               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19663 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19664    { (exit 1); exit 1; }; }
19665           fi
19666       fi
19667
19668         ;;
19669 esac
19670
19671
19672 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19673 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19674 if test "${ac_cv_header_stdc+set}" = set; then
19675   echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677   cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683 #include <stdlib.h>
19684 #include <stdarg.h>
19685 #include <string.h>
19686 #include <float.h>
19687
19688 int
19689 main ()
19690 {
19691
19692   ;
19693   return 0;
19694 }
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700   *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703   (eval "$ac_compile") 2>conftest.er1
19704   ac_status=$?
19705   grep -v '^ *+' conftest.er1 >conftest.err
19706   rm -f conftest.er1
19707   cat conftest.err >&5
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); } && {
19710          test -z "$ac_c_werror_flag" ||
19711          test ! -s conftest.err
19712        } && test -s conftest.$ac_objext; then
19713   ac_cv_header_stdc=yes
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718         ac_cv_header_stdc=no
19719 fi
19720
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722
19723 if test $ac_cv_header_stdc = yes; then
19724   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 #include <string.h>
19732
19733 _ACEOF
19734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19735   $EGREP "memchr" >/dev/null 2>&1; then
19736   :
19737 else
19738   ac_cv_header_stdc=no
19739 fi
19740 rm -f conftest*
19741
19742 fi
19743
19744 if test $ac_cv_header_stdc = yes; then
19745   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19746   cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h.  */
19752 #include <stdlib.h>
19753
19754 _ACEOF
19755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19756   $EGREP "free" >/dev/null 2>&1; then
19757   :
19758 else
19759   ac_cv_header_stdc=no
19760 fi
19761 rm -f conftest*
19762
19763 fi
19764
19765 if test $ac_cv_header_stdc = yes; then
19766   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19767   if test "$cross_compiling" = yes; then
19768   :
19769 else
19770   cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776 #include <ctype.h>
19777 #include <stdlib.h>
19778 #if ((' ' & 0x0FF) == 0x020)
19779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19781 #else
19782 # define ISLOWER(c) \
19783                    (('a' <= (c) && (c) <= 'i') \
19784                      || ('j' <= (c) && (c) <= 'r') \
19785                      || ('s' <= (c) && (c) <= 'z'))
19786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19787 #endif
19788
19789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19790 int
19791 main ()
19792 {
19793   int i;
19794   for (i = 0; i < 256; i++)
19795     if (XOR (islower (i), ISLOWER (i))
19796         || toupper (i) != TOUPPER (i))
19797       return 2;
19798   return 0;
19799 }
19800 _ACEOF
19801 rm -f conftest$ac_exeext
19802 if { (ac_try="$ac_link"
19803 case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_link") 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19812   { (case "(($ac_try" in
19813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814   *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817   (eval "$ac_try") 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821   :
19822 else
19823   echo "$as_me: program exited with status $ac_status" >&5
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 ( exit $ac_status )
19828 ac_cv_header_stdc=no
19829 fi
19830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19831 fi
19832
19833
19834 fi
19835 fi
19836 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19837 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19838 if test $ac_cv_header_stdc = yes; then
19839
19840 cat >>confdefs.h <<\_ACEOF
19841 #define STDC_HEADERS 1
19842 _ACEOF
19843
19844 fi
19845
19846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19857                   inttypes.h stdint.h unistd.h
19858 do
19859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19863   echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865   cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h.  */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h.  */
19871 $ac_includes_default
19872
19873 #include <$ac_header>
19874 _ACEOF
19875 rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_compile") 2>conftest.er1
19883   ac_status=$?
19884   grep -v '^ *+' conftest.er1 >conftest.err
19885   rm -f conftest.er1
19886   cat conftest.err >&5
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } && {
19889          test -z "$ac_c_werror_flag" ||
19890          test ! -s conftest.err
19891        } && test -s conftest.$ac_objext; then
19892   eval "$as_ac_Header=yes"
19893 else
19894   echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897         eval "$as_ac_Header=no"
19898 fi
19899
19900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19901 fi
19902 ac_res=`eval echo '${'$as_ac_Header'}'`
19903                { echo "$as_me:$LINENO: result: $ac_res" >&5
19904 echo "${ECHO_T}$ac_res" >&6; }
19905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19906   cat >>confdefs.h <<_ACEOF
19907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19908 _ACEOF
19909
19910 fi
19911
19912 done
19913
19914
19915
19916
19917 for ac_header in langinfo.h wchar.h
19918 do
19919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 $ac_includes_default
19932
19933 #include <$ac_header>
19934 _ACEOF
19935 rm -f conftest.$ac_objext
19936 if { (ac_try="$ac_compile"
19937 case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_compile") 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } && {
19949          test -z "$ac_c_werror_flag" ||
19950          test ! -s conftest.err
19951        } && test -s conftest.$ac_objext; then
19952   eval "$as_ac_Header=yes"
19953 else
19954   echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957         eval "$as_ac_Header=no"
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19961 fi
19962 ac_res=`eval echo '${'$as_ac_Header'}'`
19963                { echo "$as_me:$LINENO: result: $ac_res" >&5
19964 echo "${ECHO_T}$ac_res" >&6; }
19965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19966   cat >>confdefs.h <<_ACEOF
19967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19968 _ACEOF
19969
19970 fi
19971
19972 done
19973
19974
19975 if test "$ac_cv_header_wchar_h" != "yes"; then
19976
19977 for ac_header in wcstr.h
19978 do
19979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19983   echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985   cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h.  */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h.  */
19991 $ac_includes_default
19992
19993 #include <$ac_header>
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (ac_try="$ac_compile"
19997 case "(($ac_try" in
19998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999   *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002   (eval "$ac_compile") 2>conftest.er1
20003   ac_status=$?
20004   grep -v '^ *+' conftest.er1 >conftest.err
20005   rm -f conftest.er1
20006   cat conftest.err >&5
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } && {
20009          test -z "$ac_c_werror_flag" ||
20010          test ! -s conftest.err
20011        } && test -s conftest.$ac_objext; then
20012   eval "$as_ac_Header=yes"
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017         eval "$as_ac_Header=no"
20018 fi
20019
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 fi
20022 ac_res=`eval echo '${'$as_ac_Header'}'`
20023                { echo "$as_me:$LINENO: result: $ac_res" >&5
20024 echo "${ECHO_T}$ac_res" >&6; }
20025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20026   cat >>confdefs.h <<_ACEOF
20027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20028 _ACEOF
20029
20030 fi
20031
20032 done
20033
20034 fi
20035
20036 case "${host}" in
20037   *-pc-os2_emx | *-pc-os2-emx )
20038                   if test $ac_cv_header_langinfo_h = "yes" \
20039                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20040                      -o "$wx_cv_gccversion" = "EMX3" \
20041                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20042           LIBS="$LIBS -lintl"
20043       fi
20044   ;;
20045 esac
20046
20047 if test "$USE_UNIX" = 1 ; then
20048
20049 for ac_header in sys/select.h
20050 do
20051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057   cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h.  */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h.  */
20063 $ac_includes_default
20064
20065 #include <$ac_header>
20066 _ACEOF
20067 rm -f conftest.$ac_objext
20068 if { (ac_try="$ac_compile"
20069 case "(($ac_try" in
20070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071   *) ac_try_echo=$ac_try;;
20072 esac
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074   (eval "$ac_compile") 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } && {
20081          test -z "$ac_c_werror_flag" ||
20082          test ! -s conftest.err
20083        } && test -s conftest.$ac_objext; then
20084   eval "$as_ac_Header=yes"
20085 else
20086   echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089         eval "$as_ac_Header=no"
20090 fi
20091
20092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20093 fi
20094 ac_res=`eval echo '${'$as_ac_Header'}'`
20095                { echo "$as_me:$LINENO: result: $ac_res" >&5
20096 echo "${ECHO_T}$ac_res" >&6; }
20097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20098   cat >>confdefs.h <<_ACEOF
20099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20100 _ACEOF
20101
20102 fi
20103
20104 done
20105
20106 fi
20107
20108
20109 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20110 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20111 if test "${ac_cv_c_const+set}" = set; then
20112   echo $ECHO_N "(cached) $ECHO_C" >&6
20113 else
20114   cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120
20121 int
20122 main ()
20123 {
20124 /* FIXME: Include the comments suggested by Paul. */
20125 #ifndef __cplusplus
20126   /* Ultrix mips cc rejects this.  */
20127   typedef int charset[2];
20128   const charset cs;
20129   /* SunOS 4.1.1 cc rejects this.  */
20130   char const *const *pcpcc;
20131   char **ppc;
20132   /* NEC SVR4.0.2 mips cc rejects this.  */
20133   struct point {int x, y;};
20134   static struct point const zero = {0,0};
20135   /* AIX XL C 1.02.0.0 rejects this.
20136      It does not let you subtract one const X* pointer from another in
20137      an arm of an if-expression whose if-part is not a constant
20138      expression */
20139   const char *g = "string";
20140   pcpcc = &g + (g ? g-g : 0);
20141   /* HPUX 7.0 cc rejects these. */
20142   ++pcpcc;
20143   ppc = (char**) pcpcc;
20144   pcpcc = (char const *const *) ppc;
20145   { /* SCO 3.2v4 cc rejects this.  */
20146     char *t;
20147     char const *s = 0 ? (char *) 0 : (char const *) 0;
20148
20149     *t++ = 0;
20150     if (s) return 0;
20151   }
20152   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20153     int x[] = {25, 17};
20154     const int *foo = &x[0];
20155     ++foo;
20156   }
20157   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20158     typedef const int *iptr;
20159     iptr p = 0;
20160     ++p;
20161   }
20162   { /* AIX XL C 1.02.0.0 rejects this saying
20163        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20164     struct s { int j; const int *ap[3]; };
20165     struct s *b; b->j = 5;
20166   }
20167   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20168     const int foo = 10;
20169     if (!foo) return 0;
20170   }
20171   return !cs[0] && !zero.x;
20172 #endif
20173
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (ac_try="$ac_compile"
20180 case "(($ac_try" in
20181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182   *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185   (eval "$ac_compile") 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } && {
20192          test -z "$ac_c_werror_flag" ||
20193          test ! -s conftest.err
20194        } && test -s conftest.$ac_objext; then
20195   ac_cv_c_const=yes
20196 else
20197   echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200         ac_cv_c_const=no
20201 fi
20202
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204 fi
20205 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20206 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20207 if test $ac_cv_c_const = no; then
20208
20209 cat >>confdefs.h <<\_ACEOF
20210 #define const
20211 _ACEOF
20212
20213 fi
20214
20215 { echo "$as_me:$LINENO: checking for inline" >&5
20216 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20217 if test "${ac_cv_c_inline+set}" = set; then
20218   echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220   ac_cv_c_inline=no
20221 for ac_kw in inline __inline__ __inline; do
20222   cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h.  */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h.  */
20228 #ifndef __cplusplus
20229 typedef int foo_t;
20230 static $ac_kw foo_t static_foo () {return 0; }
20231 $ac_kw foo_t foo () {return 0; }
20232 #endif
20233
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_compile") 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } && {
20249          test -z "$ac_c_werror_flag" ||
20250          test ! -s conftest.err
20251        } && test -s conftest.$ac_objext; then
20252   ac_cv_c_inline=$ac_kw
20253 else
20254   echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257
20258 fi
20259
20260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20261   test "$ac_cv_c_inline" != no && break
20262 done
20263
20264 fi
20265 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20266 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20267
20268
20269 case $ac_cv_c_inline in
20270   inline | yes) ;;
20271   *)
20272     case $ac_cv_c_inline in
20273       no) ac_val=;;
20274       *) ac_val=$ac_cv_c_inline;;
20275     esac
20276     cat >>confdefs.h <<_ACEOF
20277 #ifndef __cplusplus
20278 #define inline $ac_val
20279 #endif
20280 _ACEOF
20281     ;;
20282 esac
20283
20284
20285 { echo "$as_me:$LINENO: checking for short" >&5
20286 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20287 if test "${ac_cv_type_short+set}" = set; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296 $ac_includes_default
20297 typedef short ac__type_new_;
20298 int
20299 main ()
20300 {
20301 if ((ac__type_new_ *) 0)
20302   return 0;
20303 if (sizeof (ac__type_new_))
20304   return 0;
20305   ;
20306   return 0;
20307 }
20308 _ACEOF
20309 rm -f conftest.$ac_objext
20310 if { (ac_try="$ac_compile"
20311 case "(($ac_try" in
20312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313   *) ac_try_echo=$ac_try;;
20314 esac
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316   (eval "$ac_compile") 2>conftest.er1
20317   ac_status=$?
20318   grep -v '^ *+' conftest.er1 >conftest.err
20319   rm -f conftest.er1
20320   cat conftest.err >&5
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } && {
20323          test -z "$ac_c_werror_flag" ||
20324          test ! -s conftest.err
20325        } && test -s conftest.$ac_objext; then
20326   ac_cv_type_short=yes
20327 else
20328   echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20330
20331         ac_cv_type_short=no
20332 fi
20333
20334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20335 fi
20336 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20337 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20338
20339 # The cast to long int works around a bug in the HP C Compiler
20340 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20341 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20342 # This bug is HP SR number 8606223364.
20343 { echo "$as_me:$LINENO: checking size of short" >&5
20344 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20345 if test "${ac_cv_sizeof_short+set}" = set; then
20346   echo $ECHO_N "(cached) $ECHO_C" >&6
20347 else
20348   if test "$cross_compiling" = yes; then
20349   # Depending upon the size, compute the lo and hi bounds.
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h.  */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h.  */
20356 $ac_includes_default
20357    typedef short ac__type_sizeof_;
20358 int
20359 main ()
20360 {
20361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20362 test_array [0] = 0
20363
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 rm -f conftest.$ac_objext
20369 if { (ac_try="$ac_compile"
20370 case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_compile") 2>conftest.er1
20376   ac_status=$?
20377   grep -v '^ *+' conftest.er1 >conftest.err
20378   rm -f conftest.er1
20379   cat conftest.err >&5
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } && {
20382          test -z "$ac_c_werror_flag" ||
20383          test ! -s conftest.err
20384        } && test -s conftest.$ac_objext; then
20385   ac_lo=0 ac_mid=0
20386   while :; do
20387     cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h.  */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h.  */
20393 $ac_includes_default
20394    typedef short ac__type_sizeof_;
20395 int
20396 main ()
20397 {
20398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20399 test_array [0] = 0
20400
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_compile") 2>conftest.er1
20413   ac_status=$?
20414   grep -v '^ *+' conftest.er1 >conftest.err
20415   rm -f conftest.er1
20416   cat conftest.err >&5
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } && {
20419          test -z "$ac_c_werror_flag" ||
20420          test ! -s conftest.err
20421        } && test -s conftest.$ac_objext; then
20422   ac_hi=$ac_mid; break
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         ac_lo=`expr $ac_mid + 1`
20428                         if test $ac_lo -le $ac_mid; then
20429                           ac_lo= ac_hi=
20430                           break
20431                         fi
20432                         ac_mid=`expr 2 '*' $ac_mid + 1`
20433 fi
20434
20435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20436   done
20437 else
20438   echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441         cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h.  */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h.  */
20447 $ac_includes_default
20448    typedef short ac__type_sizeof_;
20449 int
20450 main ()
20451 {
20452 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20453 test_array [0] = 0
20454
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_compile") 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } && {
20473          test -z "$ac_c_werror_flag" ||
20474          test ! -s conftest.err
20475        } && test -s conftest.$ac_objext; then
20476   ac_hi=-1 ac_mid=-1
20477   while :; do
20478     cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h.  */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h.  */
20484 $ac_includes_default
20485    typedef short ac__type_sizeof_;
20486 int
20487 main ()
20488 {
20489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20490 test_array [0] = 0
20491
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 rm -f conftest.$ac_objext
20497 if { (ac_try="$ac_compile"
20498 case "(($ac_try" in
20499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500   *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503   (eval "$ac_compile") 2>conftest.er1
20504   ac_status=$?
20505   grep -v '^ *+' conftest.er1 >conftest.err
20506   rm -f conftest.er1
20507   cat conftest.err >&5
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); } && {
20510          test -z "$ac_c_werror_flag" ||
20511          test ! -s conftest.err
20512        } && test -s conftest.$ac_objext; then
20513   ac_lo=$ac_mid; break
20514 else
20515   echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20517
20518         ac_hi=`expr '(' $ac_mid ')' - 1`
20519                         if test $ac_mid -le $ac_hi; then
20520                           ac_lo= ac_hi=
20521                           break
20522                         fi
20523                         ac_mid=`expr 2 '*' $ac_mid`
20524 fi
20525
20526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527   done
20528 else
20529   echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20531
20532         ac_lo= ac_hi=
20533 fi
20534
20535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20536 fi
20537
20538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20539 # Binary search between lo and hi bounds.
20540 while test "x$ac_lo" != "x$ac_hi"; do
20541   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20542   cat >conftest.$ac_ext <<_ACEOF
20543 /* confdefs.h.  */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h.  */
20548 $ac_includes_default
20549    typedef short ac__type_sizeof_;
20550 int
20551 main ()
20552 {
20553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20554 test_array [0] = 0
20555
20556   ;
20557   return 0;
20558 }
20559 _ACEOF
20560 rm -f conftest.$ac_objext
20561 if { (ac_try="$ac_compile"
20562 case "(($ac_try" in
20563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564   *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567   (eval "$ac_compile") 2>conftest.er1
20568   ac_status=$?
20569   grep -v '^ *+' conftest.er1 >conftest.err
20570   rm -f conftest.er1
20571   cat conftest.err >&5
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); } && {
20574          test -z "$ac_c_werror_flag" ||
20575          test ! -s conftest.err
20576        } && test -s conftest.$ac_objext; then
20577   ac_hi=$ac_mid
20578 else
20579   echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582         ac_lo=`expr '(' $ac_mid ')' + 1`
20583 fi
20584
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 done
20587 case $ac_lo in
20588 ?*) ac_cv_sizeof_short=$ac_lo;;
20589 '') if test "$ac_cv_type_short" = yes; then
20590      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20591 See \`config.log' for more details." >&5
20592 echo "$as_me: error: cannot compute sizeof (short)
20593 See \`config.log' for more details." >&2;}
20594    { (exit 77); exit 77; }; }
20595    else
20596      ac_cv_sizeof_short=0
20597    fi ;;
20598 esac
20599 else
20600   cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h.  */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h.  */
20606 $ac_includes_default
20607    typedef short ac__type_sizeof_;
20608 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20609 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20610 #include <stdio.h>
20611 #include <stdlib.h>
20612 int
20613 main ()
20614 {
20615
20616   FILE *f = fopen ("conftest.val", "w");
20617   if (! f)
20618     return 1;
20619   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20620     {
20621       long int i = longval ();
20622       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20623         return 1;
20624       fprintf (f, "%ld\n", i);
20625     }
20626   else
20627     {
20628       unsigned long int i = ulongval ();
20629       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20630         return 1;
20631       fprintf (f, "%lu\n", i);
20632     }
20633   return ferror (f) || fclose (f) != 0;
20634
20635   ;
20636   return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646   (eval "$ac_link") 2>&5
20647   ac_status=$?
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20650   { (case "(($ac_try" in
20651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652   *) ac_try_echo=$ac_try;;
20653 esac
20654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655   (eval "$ac_try") 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); }; }; then
20659   ac_cv_sizeof_short=`cat conftest.val`
20660 else
20661   echo "$as_me: program exited with status $ac_status" >&5
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 ( exit $ac_status )
20666 if test "$ac_cv_type_short" = yes; then
20667      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20668 See \`config.log' for more details." >&5
20669 echo "$as_me: error: cannot compute sizeof (short)
20670 See \`config.log' for more details." >&2;}
20671    { (exit 77); exit 77; }; }
20672    else
20673      ac_cv_sizeof_short=0
20674    fi
20675 fi
20676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20677 fi
20678 rm -f conftest.val
20679 fi
20680 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20681 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20682
20683
20684
20685 cat >>confdefs.h <<_ACEOF
20686 #define SIZEOF_SHORT $ac_cv_sizeof_short
20687 _ACEOF
20688
20689
20690 { echo "$as_me:$LINENO: checking for void *" >&5
20691 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20692 if test "${ac_cv_type_void_p+set}" = set; then
20693   echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695   cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 $ac_includes_default
20702 typedef void * ac__type_new_;
20703 int
20704 main ()
20705 {
20706 if ((ac__type_new_ *) 0)
20707   return 0;
20708 if (sizeof (ac__type_new_))
20709   return 0;
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (ac_try="$ac_compile"
20716 case "(($ac_try" in
20717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718   *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721   (eval "$ac_compile") 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } && {
20728          test -z "$ac_c_werror_flag" ||
20729          test ! -s conftest.err
20730        } && test -s conftest.$ac_objext; then
20731   ac_cv_type_void_p=yes
20732 else
20733   echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20735
20736         ac_cv_type_void_p=no
20737 fi
20738
20739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740 fi
20741 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20742 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20743
20744 # The cast to long int works around a bug in the HP C Compiler
20745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20747 # This bug is HP SR number 8606223364.
20748 { echo "$as_me:$LINENO: checking size of void *" >&5
20749 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20750 if test "${ac_cv_sizeof_void_p+set}" = set; then
20751   echo $ECHO_N "(cached) $ECHO_C" >&6
20752 else
20753   if test "$cross_compiling" = yes; then
20754   # Depending upon the size, compute the lo and hi bounds.
20755 cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h.  */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h.  */
20761 $ac_includes_default
20762    typedef void * ac__type_sizeof_;
20763 int
20764 main ()
20765 {
20766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20767 test_array [0] = 0
20768
20769   ;
20770   return 0;
20771 }
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (ac_try="$ac_compile"
20775 case "(($ac_try" in
20776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777   *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780   (eval "$ac_compile") 2>conftest.er1
20781   ac_status=$?
20782   grep -v '^ *+' conftest.er1 >conftest.err
20783   rm -f conftest.er1
20784   cat conftest.err >&5
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); } && {
20787          test -z "$ac_c_werror_flag" ||
20788          test ! -s conftest.err
20789        } && test -s conftest.$ac_objext; then
20790   ac_lo=0 ac_mid=0
20791   while :; do
20792     cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h.  */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h.  */
20798 $ac_includes_default
20799    typedef void * ac__type_sizeof_;
20800 int
20801 main ()
20802 {
20803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20804 test_array [0] = 0
20805
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest.$ac_objext
20811 if { (ac_try="$ac_compile"
20812 case "(($ac_try" in
20813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814   *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817   (eval "$ac_compile") 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } && {
20824          test -z "$ac_c_werror_flag" ||
20825          test ! -s conftest.err
20826        } && test -s conftest.$ac_objext; then
20827   ac_hi=$ac_mid; break
20828 else
20829   echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832         ac_lo=`expr $ac_mid + 1`
20833                         if test $ac_lo -le $ac_mid; then
20834                           ac_lo= ac_hi=
20835                           break
20836                         fi
20837                         ac_mid=`expr 2 '*' $ac_mid + 1`
20838 fi
20839
20840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20841   done
20842 else
20843   echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846         cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 $ac_includes_default
20853    typedef void * ac__type_sizeof_;
20854 int
20855 main ()
20856 {
20857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20858 test_array [0] = 0
20859
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_compile") 2>conftest.er1
20872   ac_status=$?
20873   grep -v '^ *+' conftest.er1 >conftest.err
20874   rm -f conftest.er1
20875   cat conftest.err >&5
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); } && {
20878          test -z "$ac_c_werror_flag" ||
20879          test ! -s conftest.err
20880        } && test -s conftest.$ac_objext; then
20881   ac_hi=-1 ac_mid=-1
20882   while :; do
20883     cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 $ac_includes_default
20890    typedef void * ac__type_sizeof_;
20891 int
20892 main ()
20893 {
20894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20895 test_array [0] = 0
20896
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext
20902 if { (ac_try="$ac_compile"
20903 case "(($ac_try" in
20904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905   *) ac_try_echo=$ac_try;;
20906 esac
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908   (eval "$ac_compile") 2>conftest.er1
20909   ac_status=$?
20910   grep -v '^ *+' conftest.er1 >conftest.err
20911   rm -f conftest.er1
20912   cat conftest.err >&5
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } && {
20915          test -z "$ac_c_werror_flag" ||
20916          test ! -s conftest.err
20917        } && test -s conftest.$ac_objext; then
20918   ac_lo=$ac_mid; break
20919 else
20920   echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20922
20923         ac_hi=`expr '(' $ac_mid ')' - 1`
20924                         if test $ac_mid -le $ac_hi; then
20925                           ac_lo= ac_hi=
20926                           break
20927                         fi
20928                         ac_mid=`expr 2 '*' $ac_mid`
20929 fi
20930
20931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932   done
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937         ac_lo= ac_hi=
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 fi
20942
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944 # Binary search between lo and hi bounds.
20945 while test "x$ac_lo" != "x$ac_hi"; do
20946   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 $ac_includes_default
20954    typedef void * ac__type_sizeof_;
20955 int
20956 main ()
20957 {
20958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20959 test_array [0] = 0
20960
20961   ;
20962   return 0;
20963 }
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969   *) ac_try_echo=$ac_try;;
20970 esac
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972   (eval "$ac_compile") 2>conftest.er1
20973   ac_status=$?
20974   grep -v '^ *+' conftest.er1 >conftest.err
20975   rm -f conftest.er1
20976   cat conftest.err >&5
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); } && {
20979          test -z "$ac_c_werror_flag" ||
20980          test ! -s conftest.err
20981        } && test -s conftest.$ac_objext; then
20982   ac_hi=$ac_mid
20983 else
20984   echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20986
20987         ac_lo=`expr '(' $ac_mid ')' + 1`
20988 fi
20989
20990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991 done
20992 case $ac_lo in
20993 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20994 '') if test "$ac_cv_type_void_p" = yes; then
20995      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20996 See \`config.log' for more details." >&5
20997 echo "$as_me: error: cannot compute sizeof (void *)
20998 See \`config.log' for more details." >&2;}
20999    { (exit 77); exit 77; }; }
21000    else
21001      ac_cv_sizeof_void_p=0
21002    fi ;;
21003 esac
21004 else
21005   cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011 $ac_includes_default
21012    typedef void * ac__type_sizeof_;
21013 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21014 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21015 #include <stdio.h>
21016 #include <stdlib.h>
21017 int
21018 main ()
21019 {
21020
21021   FILE *f = fopen ("conftest.val", "w");
21022   if (! f)
21023     return 1;
21024   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21025     {
21026       long int i = longval ();
21027       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21028         return 1;
21029       fprintf (f, "%ld\n", i);
21030     }
21031   else
21032     {
21033       unsigned long int i = ulongval ();
21034       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21035         return 1;
21036       fprintf (f, "%lu\n", i);
21037     }
21038   return ferror (f) || fclose (f) != 0;
21039
21040   ;
21041   return 0;
21042 }
21043 _ACEOF
21044 rm -f conftest$ac_exeext
21045 if { (ac_try="$ac_link"
21046 case "(($ac_try" in
21047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048   *) ac_try_echo=$ac_try;;
21049 esac
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051   (eval "$ac_link") 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21055   { (case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_try") 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; }; then
21064   ac_cv_sizeof_void_p=`cat conftest.val`
21065 else
21066   echo "$as_me: program exited with status $ac_status" >&5
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ( exit $ac_status )
21071 if test "$ac_cv_type_void_p" = yes; then
21072      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21073 See \`config.log' for more details." >&5
21074 echo "$as_me: error: cannot compute sizeof (void *)
21075 See \`config.log' for more details." >&2;}
21076    { (exit 77); exit 77; }; }
21077    else
21078      ac_cv_sizeof_void_p=0
21079    fi
21080 fi
21081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21082 fi
21083 rm -f conftest.val
21084 fi
21085 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21086 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21087
21088
21089
21090 cat >>confdefs.h <<_ACEOF
21091 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21092 _ACEOF
21093
21094
21095 { echo "$as_me:$LINENO: checking for int" >&5
21096 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21097 if test "${ac_cv_type_int+set}" = set; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100   cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106 $ac_includes_default
21107 typedef int ac__type_new_;
21108 int
21109 main ()
21110 {
21111 if ((ac__type_new_ *) 0)
21112   return 0;
21113 if (sizeof (ac__type_new_))
21114   return 0;
21115   ;
21116   return 0;
21117 }
21118 _ACEOF
21119 rm -f conftest.$ac_objext
21120 if { (ac_try="$ac_compile"
21121 case "(($ac_try" in
21122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123   *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126   (eval "$ac_compile") 2>conftest.er1
21127   ac_status=$?
21128   grep -v '^ *+' conftest.er1 >conftest.err
21129   rm -f conftest.er1
21130   cat conftest.err >&5
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } && {
21133          test -z "$ac_c_werror_flag" ||
21134          test ! -s conftest.err
21135        } && test -s conftest.$ac_objext; then
21136   ac_cv_type_int=yes
21137 else
21138   echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141         ac_cv_type_int=no
21142 fi
21143
21144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145 fi
21146 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21147 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21148
21149 # The cast to long int works around a bug in the HP C Compiler
21150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21152 # This bug is HP SR number 8606223364.
21153 { echo "$as_me:$LINENO: checking size of int" >&5
21154 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21155 if test "${ac_cv_sizeof_int+set}" = set; then
21156   echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158   if test "$cross_compiling" = yes; then
21159   # Depending upon the size, compute the lo and hi bounds.
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166 $ac_includes_default
21167    typedef int ac__type_sizeof_;
21168 int
21169 main ()
21170 {
21171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21172 test_array [0] = 0
21173
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } && {
21192          test -z "$ac_c_werror_flag" ||
21193          test ! -s conftest.err
21194        } && test -s conftest.$ac_objext; then
21195   ac_lo=0 ac_mid=0
21196   while :; do
21197     cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 $ac_includes_default
21204    typedef int ac__type_sizeof_;
21205 int
21206 main ()
21207 {
21208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21209 test_array [0] = 0
21210
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext
21216 if { (ac_try="$ac_compile"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_compile") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest.$ac_objext; then
21232   ac_hi=$ac_mid; break
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         ac_lo=`expr $ac_mid + 1`
21238                         if test $ac_lo -le $ac_mid; then
21239                           ac_lo= ac_hi=
21240                           break
21241                         fi
21242                         ac_mid=`expr 2 '*' $ac_mid + 1`
21243 fi
21244
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246   done
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251         cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h.  */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h.  */
21257 $ac_includes_default
21258    typedef int ac__type_sizeof_;
21259 int
21260 main ()
21261 {
21262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21263 test_array [0] = 0
21264
21265   ;
21266   return 0;
21267 }
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_compile") 2>conftest.er1
21277   ac_status=$?
21278   grep -v '^ *+' conftest.er1 >conftest.err
21279   rm -f conftest.er1
21280   cat conftest.err >&5
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); } && {
21283          test -z "$ac_c_werror_flag" ||
21284          test ! -s conftest.err
21285        } && test -s conftest.$ac_objext; then
21286   ac_hi=-1 ac_mid=-1
21287   while :; do
21288     cat >conftest.$ac_ext <<_ACEOF
21289 /* confdefs.h.  */
21290 _ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h.  */
21294 $ac_includes_default
21295    typedef int ac__type_sizeof_;
21296 int
21297 main ()
21298 {
21299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21300 test_array [0] = 0
21301
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_compile") 2>conftest.er1
21314   ac_status=$?
21315   grep -v '^ *+' conftest.er1 >conftest.err
21316   rm -f conftest.er1
21317   cat conftest.err >&5
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } && {
21320          test -z "$ac_c_werror_flag" ||
21321          test ! -s conftest.err
21322        } && test -s conftest.$ac_objext; then
21323   ac_lo=$ac_mid; break
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328         ac_hi=`expr '(' $ac_mid ')' - 1`
21329                         if test $ac_mid -le $ac_hi; then
21330                           ac_lo= ac_hi=
21331                           break
21332                         fi
21333                         ac_mid=`expr 2 '*' $ac_mid`
21334 fi
21335
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21337   done
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342         ac_lo= ac_hi=
21343 fi
21344
21345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 fi
21347
21348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21349 # Binary search between lo and hi bounds.
21350 while test "x$ac_lo" != "x$ac_hi"; do
21351   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21352   cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 $ac_includes_default
21359    typedef int ac__type_sizeof_;
21360 int
21361 main ()
21362 {
21363 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21364 test_array [0] = 0
21365
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374   *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377   (eval "$ac_compile") 2>conftest.er1
21378   ac_status=$?
21379   grep -v '^ *+' conftest.er1 >conftest.err
21380   rm -f conftest.er1
21381   cat conftest.err >&5
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); } && {
21384          test -z "$ac_c_werror_flag" ||
21385          test ! -s conftest.err
21386        } && test -s conftest.$ac_objext; then
21387   ac_hi=$ac_mid
21388 else
21389   echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21391
21392         ac_lo=`expr '(' $ac_mid ')' + 1`
21393 fi
21394
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 done
21397 case $ac_lo in
21398 ?*) ac_cv_sizeof_int=$ac_lo;;
21399 '') if test "$ac_cv_type_int" = yes; then
21400      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21401 See \`config.log' for more details." >&5
21402 echo "$as_me: error: cannot compute sizeof (int)
21403 See \`config.log' for more details." >&2;}
21404    { (exit 77); exit 77; }; }
21405    else
21406      ac_cv_sizeof_int=0
21407    fi ;;
21408 esac
21409 else
21410   cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416 $ac_includes_default
21417    typedef int ac__type_sizeof_;
21418 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21419 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21420 #include <stdio.h>
21421 #include <stdlib.h>
21422 int
21423 main ()
21424 {
21425
21426   FILE *f = fopen ("conftest.val", "w");
21427   if (! f)
21428     return 1;
21429   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21430     {
21431       long int i = longval ();
21432       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21433         return 1;
21434       fprintf (f, "%ld\n", i);
21435     }
21436   else
21437     {
21438       unsigned long int i = ulongval ();
21439       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21440         return 1;
21441       fprintf (f, "%lu\n", i);
21442     }
21443   return ferror (f) || fclose (f) != 0;
21444
21445   ;
21446   return 0;
21447 }
21448 _ACEOF
21449 rm -f conftest$ac_exeext
21450 if { (ac_try="$ac_link"
21451 case "(($ac_try" in
21452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453   *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456   (eval "$ac_link") 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21460   { (case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_try") 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; }; then
21469   ac_cv_sizeof_int=`cat conftest.val`
21470 else
21471   echo "$as_me: program exited with status $ac_status" >&5
21472 echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475 ( exit $ac_status )
21476 if test "$ac_cv_type_int" = yes; then
21477      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21478 See \`config.log' for more details." >&5
21479 echo "$as_me: error: cannot compute sizeof (int)
21480 See \`config.log' for more details." >&2;}
21481    { (exit 77); exit 77; }; }
21482    else
21483      ac_cv_sizeof_int=0
21484    fi
21485 fi
21486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21487 fi
21488 rm -f conftest.val
21489 fi
21490 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21491 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21492
21493
21494
21495 cat >>confdefs.h <<_ACEOF
21496 #define SIZEOF_INT $ac_cv_sizeof_int
21497 _ACEOF
21498
21499
21500 { echo "$as_me:$LINENO: checking for long" >&5
21501 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21502 if test "${ac_cv_type_long+set}" = set; then
21503   echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505   cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511 $ac_includes_default
21512 typedef long ac__type_new_;
21513 int
21514 main ()
21515 {
21516 if ((ac__type_new_ *) 0)
21517   return 0;
21518 if (sizeof (ac__type_new_))
21519   return 0;
21520   ;
21521   return 0;
21522 }
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (ac_try="$ac_compile"
21526 case "(($ac_try" in
21527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528   *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531   (eval "$ac_compile") 2>conftest.er1
21532   ac_status=$?
21533   grep -v '^ *+' conftest.er1 >conftest.err
21534   rm -f conftest.er1
21535   cat conftest.err >&5
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); } && {
21538          test -z "$ac_c_werror_flag" ||
21539          test ! -s conftest.err
21540        } && test -s conftest.$ac_objext; then
21541   ac_cv_type_long=yes
21542 else
21543   echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546         ac_cv_type_long=no
21547 fi
21548
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550 fi
21551 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21552 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21553
21554 # The cast to long int works around a bug in the HP C Compiler
21555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21557 # This bug is HP SR number 8606223364.
21558 { echo "$as_me:$LINENO: checking size of long" >&5
21559 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21560 if test "${ac_cv_sizeof_long+set}" = set; then
21561   echo $ECHO_N "(cached) $ECHO_C" >&6
21562 else
21563   if test "$cross_compiling" = yes; then
21564   # Depending upon the size, compute the lo and hi bounds.
21565 cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h.  */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h.  */
21571 $ac_includes_default
21572    typedef long ac__type_sizeof_;
21573 int
21574 main ()
21575 {
21576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21577 test_array [0] = 0
21578
21579   ;
21580   return 0;
21581 }
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587   *) ac_try_echo=$ac_try;;
21588 esac
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590   (eval "$ac_compile") 2>conftest.er1
21591   ac_status=$?
21592   grep -v '^ *+' conftest.er1 >conftest.err
21593   rm -f conftest.er1
21594   cat conftest.err >&5
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } && {
21597          test -z "$ac_c_werror_flag" ||
21598          test ! -s conftest.err
21599        } && test -s conftest.$ac_objext; then
21600   ac_lo=0 ac_mid=0
21601   while :; do
21602     cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 $ac_includes_default
21609    typedef long ac__type_sizeof_;
21610 int
21611 main ()
21612 {
21613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21614 test_array [0] = 0
21615
21616   ;
21617   return 0;
21618 }
21619 _ACEOF
21620 rm -f conftest.$ac_objext
21621 if { (ac_try="$ac_compile"
21622 case "(($ac_try" in
21623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624   *) ac_try_echo=$ac_try;;
21625 esac
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627   (eval "$ac_compile") 2>conftest.er1
21628   ac_status=$?
21629   grep -v '^ *+' conftest.er1 >conftest.err
21630   rm -f conftest.er1
21631   cat conftest.err >&5
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } && {
21634          test -z "$ac_c_werror_flag" ||
21635          test ! -s conftest.err
21636        } && test -s conftest.$ac_objext; then
21637   ac_hi=$ac_mid; break
21638 else
21639   echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21641
21642         ac_lo=`expr $ac_mid + 1`
21643                         if test $ac_lo -le $ac_mid; then
21644                           ac_lo= ac_hi=
21645                           break
21646                         fi
21647                         ac_mid=`expr 2 '*' $ac_mid + 1`
21648 fi
21649
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651   done
21652 else
21653   echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21655
21656         cat >conftest.$ac_ext <<_ACEOF
21657 /* confdefs.h.  */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h.  */
21662 $ac_includes_default
21663    typedef long ac__type_sizeof_;
21664 int
21665 main ()
21666 {
21667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21668 test_array [0] = 0
21669
21670   ;
21671   return 0;
21672 }
21673 _ACEOF
21674 rm -f conftest.$ac_objext
21675 if { (ac_try="$ac_compile"
21676 case "(($ac_try" in
21677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678   *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681   (eval "$ac_compile") 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } && {
21688          test -z "$ac_c_werror_flag" ||
21689          test ! -s conftest.err
21690        } && test -s conftest.$ac_objext; then
21691   ac_hi=-1 ac_mid=-1
21692   while :; do
21693     cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 $ac_includes_default
21700    typedef long ac__type_sizeof_;
21701 int
21702 main ()
21703 {
21704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21705 test_array [0] = 0
21706
21707   ;
21708   return 0;
21709 }
21710 _ACEOF
21711 rm -f conftest.$ac_objext
21712 if { (ac_try="$ac_compile"
21713 case "(($ac_try" in
21714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715   *) ac_try_echo=$ac_try;;
21716 esac
21717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21718   (eval "$ac_compile") 2>conftest.er1
21719   ac_status=$?
21720   grep -v '^ *+' conftest.er1 >conftest.err
21721   rm -f conftest.er1
21722   cat conftest.err >&5
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); } && {
21725          test -z "$ac_c_werror_flag" ||
21726          test ! -s conftest.err
21727        } && test -s conftest.$ac_objext; then
21728   ac_lo=$ac_mid; break
21729 else
21730   echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21732
21733         ac_hi=`expr '(' $ac_mid ')' - 1`
21734                         if test $ac_mid -le $ac_hi; then
21735                           ac_lo= ac_hi=
21736                           break
21737                         fi
21738                         ac_mid=`expr 2 '*' $ac_mid`
21739 fi
21740
21741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742   done
21743 else
21744   echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21746
21747         ac_lo= ac_hi=
21748 fi
21749
21750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21751 fi
21752
21753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21754 # Binary search between lo and hi bounds.
21755 while test "x$ac_lo" != "x$ac_hi"; do
21756   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21757   cat >conftest.$ac_ext <<_ACEOF
21758 /* confdefs.h.  */
21759 _ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h.  */
21763 $ac_includes_default
21764    typedef long ac__type_sizeof_;
21765 int
21766 main ()
21767 {
21768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21769 test_array [0] = 0
21770
21771   ;
21772   return 0;
21773 }
21774 _ACEOF
21775 rm -f conftest.$ac_objext
21776 if { (ac_try="$ac_compile"
21777 case "(($ac_try" in
21778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779   *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782   (eval "$ac_compile") 2>conftest.er1
21783   ac_status=$?
21784   grep -v '^ *+' conftest.er1 >conftest.err
21785   rm -f conftest.er1
21786   cat conftest.err >&5
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); } && {
21789          test -z "$ac_c_werror_flag" ||
21790          test ! -s conftest.err
21791        } && test -s conftest.$ac_objext; then
21792   ac_hi=$ac_mid
21793 else
21794   echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21796
21797         ac_lo=`expr '(' $ac_mid ')' + 1`
21798 fi
21799
21800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21801 done
21802 case $ac_lo in
21803 ?*) ac_cv_sizeof_long=$ac_lo;;
21804 '') if test "$ac_cv_type_long" = yes; then
21805      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21806 See \`config.log' for more details." >&5
21807 echo "$as_me: error: cannot compute sizeof (long)
21808 See \`config.log' for more details." >&2;}
21809    { (exit 77); exit 77; }; }
21810    else
21811      ac_cv_sizeof_long=0
21812    fi ;;
21813 esac
21814 else
21815   cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 $ac_includes_default
21822    typedef long ac__type_sizeof_;
21823 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21824 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21825 #include <stdio.h>
21826 #include <stdlib.h>
21827 int
21828 main ()
21829 {
21830
21831   FILE *f = fopen ("conftest.val", "w");
21832   if (! f)
21833     return 1;
21834   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21835     {
21836       long int i = longval ();
21837       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21838         return 1;
21839       fprintf (f, "%ld\n", i);
21840     }
21841   else
21842     {
21843       unsigned long int i = ulongval ();
21844       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21845         return 1;
21846       fprintf (f, "%lu\n", i);
21847     }
21848   return ferror (f) || fclose (f) != 0;
21849
21850   ;
21851   return 0;
21852 }
21853 _ACEOF
21854 rm -f conftest$ac_exeext
21855 if { (ac_try="$ac_link"
21856 case "(($ac_try" in
21857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858   *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861   (eval "$ac_link") 2>&5
21862   ac_status=$?
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21865   { (case "(($ac_try" in
21866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867   *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870   (eval "$ac_try") 2>&5
21871   ac_status=$?
21872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873   (exit $ac_status); }; }; then
21874   ac_cv_sizeof_long=`cat conftest.val`
21875 else
21876   echo "$as_me: program exited with status $ac_status" >&5
21877 echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21879
21880 ( exit $ac_status )
21881 if test "$ac_cv_type_long" = yes; then
21882      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21883 See \`config.log' for more details." >&5
21884 echo "$as_me: error: cannot compute sizeof (long)
21885 See \`config.log' for more details." >&2;}
21886    { (exit 77); exit 77; }; }
21887    else
21888      ac_cv_sizeof_long=0
21889    fi
21890 fi
21891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21892 fi
21893 rm -f conftest.val
21894 fi
21895 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21896 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21897
21898
21899
21900 cat >>confdefs.h <<_ACEOF
21901 #define SIZEOF_LONG $ac_cv_sizeof_long
21902 _ACEOF
21903
21904
21905 { echo "$as_me:$LINENO: checking for size_t" >&5
21906 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21907 if test "${ac_cv_type_size_t+set}" = set; then
21908   echo $ECHO_N "(cached) $ECHO_C" >&6
21909 else
21910   cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h.  */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h.  */
21916 $ac_includes_default
21917 typedef size_t ac__type_new_;
21918 int
21919 main ()
21920 {
21921 if ((ac__type_new_ *) 0)
21922   return 0;
21923 if (sizeof (ac__type_new_))
21924   return 0;
21925   ;
21926   return 0;
21927 }
21928 _ACEOF
21929 rm -f conftest.$ac_objext
21930 if { (ac_try="$ac_compile"
21931 case "(($ac_try" in
21932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933   *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936   (eval "$ac_compile") 2>conftest.er1
21937   ac_status=$?
21938   grep -v '^ *+' conftest.er1 >conftest.err
21939   rm -f conftest.er1
21940   cat conftest.err >&5
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); } && {
21943          test -z "$ac_c_werror_flag" ||
21944          test ! -s conftest.err
21945        } && test -s conftest.$ac_objext; then
21946   ac_cv_type_size_t=yes
21947 else
21948   echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21950
21951         ac_cv_type_size_t=no
21952 fi
21953
21954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21955 fi
21956 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21957 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21958
21959 # The cast to long int works around a bug in the HP C Compiler
21960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21962 # This bug is HP SR number 8606223364.
21963 { echo "$as_me:$LINENO: checking size of size_t" >&5
21964 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21965 if test "${ac_cv_sizeof_size_t+set}" = set; then
21966   echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968   if test "$cross_compiling" = yes; then
21969   # Depending upon the size, compute the lo and hi bounds.
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 $ac_includes_default
21977    typedef size_t ac__type_sizeof_;
21978 int
21979 main ()
21980 {
21981 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21982 test_array [0] = 0
21983
21984   ;
21985   return 0;
21986 }
21987 _ACEOF
21988 rm -f conftest.$ac_objext
21989 if { (ac_try="$ac_compile"
21990 case "(($ac_try" in
21991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992   *) ac_try_echo=$ac_try;;
21993 esac
21994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995   (eval "$ac_compile") 2>conftest.er1
21996   ac_status=$?
21997   grep -v '^ *+' conftest.er1 >conftest.err
21998   rm -f conftest.er1
21999   cat conftest.err >&5
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); } && {
22002          test -z "$ac_c_werror_flag" ||
22003          test ! -s conftest.err
22004        } && test -s conftest.$ac_objext; then
22005   ac_lo=0 ac_mid=0
22006   while :; do
22007     cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h.  */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h.  */
22013 $ac_includes_default
22014    typedef size_t ac__type_sizeof_;
22015 int
22016 main ()
22017 {
22018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22019 test_array [0] = 0
22020
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
22027 case "(($ac_try" in
22028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029   *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032   (eval "$ac_compile") 2>conftest.er1
22033   ac_status=$?
22034   grep -v '^ *+' conftest.er1 >conftest.err
22035   rm -f conftest.er1
22036   cat conftest.err >&5
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); } && {
22039          test -z "$ac_c_werror_flag" ||
22040          test ! -s conftest.err
22041        } && test -s conftest.$ac_objext; then
22042   ac_hi=$ac_mid; break
22043 else
22044   echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22046
22047         ac_lo=`expr $ac_mid + 1`
22048                         if test $ac_lo -le $ac_mid; then
22049                           ac_lo= ac_hi=
22050                           break
22051                         fi
22052                         ac_mid=`expr 2 '*' $ac_mid + 1`
22053 fi
22054
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056   done
22057 else
22058   echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061         cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 $ac_includes_default
22068    typedef size_t ac__type_sizeof_;
22069 int
22070 main ()
22071 {
22072 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22073 test_array [0] = 0
22074
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083   *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086   (eval "$ac_compile") 2>conftest.er1
22087   ac_status=$?
22088   grep -v '^ *+' conftest.er1 >conftest.err
22089   rm -f conftest.er1
22090   cat conftest.err >&5
22091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); } && {
22093          test -z "$ac_c_werror_flag" ||
22094          test ! -s conftest.err
22095        } && test -s conftest.$ac_objext; then
22096   ac_hi=-1 ac_mid=-1
22097   while :; do
22098     cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104 $ac_includes_default
22105    typedef size_t ac__type_sizeof_;
22106 int
22107 main ()
22108 {
22109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22110 test_array [0] = 0
22111
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (ac_try="$ac_compile"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_compile") 2>conftest.er1
22124   ac_status=$?
22125   grep -v '^ *+' conftest.er1 >conftest.err
22126   rm -f conftest.er1
22127   cat conftest.err >&5
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); } && {
22130          test -z "$ac_c_werror_flag" ||
22131          test ! -s conftest.err
22132        } && test -s conftest.$ac_objext; then
22133   ac_lo=$ac_mid; break
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138         ac_hi=`expr '(' $ac_mid ')' - 1`
22139                         if test $ac_mid -le $ac_hi; then
22140                           ac_lo= ac_hi=
22141                           break
22142                         fi
22143                         ac_mid=`expr 2 '*' $ac_mid`
22144 fi
22145
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147   done
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152         ac_lo= ac_hi=
22153 fi
22154
22155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 fi
22157
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159 # Binary search between lo and hi bounds.
22160 while test "x$ac_lo" != "x$ac_hi"; do
22161   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22162   cat >conftest.$ac_ext <<_ACEOF
22163 /* confdefs.h.  */
22164 _ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h.  */
22168 $ac_includes_default
22169    typedef size_t ac__type_sizeof_;
22170 int
22171 main ()
22172 {
22173 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22174 test_array [0] = 0
22175
22176   ;
22177   return 0;
22178 }
22179 _ACEOF
22180 rm -f conftest.$ac_objext
22181 if { (ac_try="$ac_compile"
22182 case "(($ac_try" in
22183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184   *) ac_try_echo=$ac_try;;
22185 esac
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187   (eval "$ac_compile") 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } && {
22194          test -z "$ac_c_werror_flag" ||
22195          test ! -s conftest.err
22196        } && test -s conftest.$ac_objext; then
22197   ac_hi=$ac_mid
22198 else
22199   echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22201
22202         ac_lo=`expr '(' $ac_mid ')' + 1`
22203 fi
22204
22205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206 done
22207 case $ac_lo in
22208 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22209 '') if test "$ac_cv_type_size_t" = yes; then
22210      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22211 See \`config.log' for more details." >&5
22212 echo "$as_me: error: cannot compute sizeof (size_t)
22213 See \`config.log' for more details." >&2;}
22214    { (exit 77); exit 77; }; }
22215    else
22216      ac_cv_sizeof_size_t=0
22217    fi ;;
22218 esac
22219 else
22220   cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h.  */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h.  */
22226 $ac_includes_default
22227    typedef size_t ac__type_sizeof_;
22228 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22229 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22230 #include <stdio.h>
22231 #include <stdlib.h>
22232 int
22233 main ()
22234 {
22235
22236   FILE *f = fopen ("conftest.val", "w");
22237   if (! f)
22238     return 1;
22239   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22240     {
22241       long int i = longval ();
22242       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22243         return 1;
22244       fprintf (f, "%ld\n", i);
22245     }
22246   else
22247     {
22248       unsigned long int i = ulongval ();
22249       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22250         return 1;
22251       fprintf (f, "%lu\n", i);
22252     }
22253   return ferror (f) || fclose (f) != 0;
22254
22255   ;
22256   return 0;
22257 }
22258 _ACEOF
22259 rm -f conftest$ac_exeext
22260 if { (ac_try="$ac_link"
22261 case "(($ac_try" in
22262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263   *) ac_try_echo=$ac_try;;
22264 esac
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266   (eval "$ac_link") 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22270   { (case "(($ac_try" in
22271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272   *) ac_try_echo=$ac_try;;
22273 esac
22274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275   (eval "$ac_try") 2>&5
22276   ac_status=$?
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); }; }; then
22279   ac_cv_sizeof_size_t=`cat conftest.val`
22280 else
22281   echo "$as_me: program exited with status $ac_status" >&5
22282 echo "$as_me: failed program was:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22284
22285 ( exit $ac_status )
22286 if test "$ac_cv_type_size_t" = yes; then
22287      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22288 See \`config.log' for more details." >&5
22289 echo "$as_me: error: cannot compute sizeof (size_t)
22290 See \`config.log' for more details." >&2;}
22291    { (exit 77); exit 77; }; }
22292    else
22293      ac_cv_sizeof_size_t=0
22294    fi
22295 fi
22296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22297 fi
22298 rm -f conftest.val
22299 fi
22300 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22301 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22302
22303
22304
22305 cat >>confdefs.h <<_ACEOF
22306 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22307 _ACEOF
22308
22309
22310
22311 case "${host}" in
22312     arm-*-linux* )
22313         { echo "$as_me:$LINENO: checking for long long" >&5
22314 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22315 if test "${ac_cv_type_long_long+set}" = set; then
22316   echo $ECHO_N "(cached) $ECHO_C" >&6
22317 else
22318   cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h.  */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h.  */
22324 $ac_includes_default
22325 typedef long long ac__type_new_;
22326 int
22327 main ()
22328 {
22329 if ((ac__type_new_ *) 0)
22330   return 0;
22331 if (sizeof (ac__type_new_))
22332   return 0;
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (ac_try="$ac_compile"
22339 case "(($ac_try" in
22340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341   *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344   (eval "$ac_compile") 2>conftest.er1
22345   ac_status=$?
22346   grep -v '^ *+' conftest.er1 >conftest.err
22347   rm -f conftest.er1
22348   cat conftest.err >&5
22349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350   (exit $ac_status); } && {
22351          test -z "$ac_c_werror_flag" ||
22352          test ! -s conftest.err
22353        } && test -s conftest.$ac_objext; then
22354   ac_cv_type_long_long=yes
22355 else
22356   echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22358
22359         ac_cv_type_long_long=no
22360 fi
22361
22362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 fi
22364 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22365 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22366
22367 # The cast to long int works around a bug in the HP C Compiler
22368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22370 # This bug is HP SR number 8606223364.
22371 { echo "$as_me:$LINENO: checking size of long long" >&5
22372 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22373 if test "${ac_cv_sizeof_long_long+set}" = set; then
22374   echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376   if test "$cross_compiling" = yes; then
22377   # Depending upon the size, compute the lo and hi bounds.
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 long long ac__type_sizeof_;
22386 int
22387 main ()
22388 {
22389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22390 test_array [0] = 0
22391
22392   ;
22393   return 0;
22394 }
22395 _ACEOF
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400   *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403   (eval "$ac_compile") 2>conftest.er1
22404   ac_status=$?
22405   grep -v '^ *+' conftest.er1 >conftest.err
22406   rm -f conftest.er1
22407   cat conftest.err >&5
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); } && {
22410          test -z "$ac_c_werror_flag" ||
22411          test ! -s conftest.err
22412        } && test -s conftest.$ac_objext; then
22413   ac_lo=0 ac_mid=0
22414   while :; do
22415     cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h.  */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h.  */
22421 $ac_includes_default
22422    typedef long long ac__type_sizeof_;
22423 int
22424 main ()
22425 {
22426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22427 test_array [0] = 0
22428
22429   ;
22430   return 0;
22431 }
22432 _ACEOF
22433 rm -f conftest.$ac_objext
22434 if { (ac_try="$ac_compile"
22435 case "(($ac_try" in
22436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437   *) ac_try_echo=$ac_try;;
22438 esac
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440   (eval "$ac_compile") 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } && {
22447          test -z "$ac_c_werror_flag" ||
22448          test ! -s conftest.err
22449        } && test -s conftest.$ac_objext; then
22450   ac_hi=$ac_mid; break
22451 else
22452   echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455         ac_lo=`expr $ac_mid + 1`
22456                         if test $ac_lo -le $ac_mid; then
22457                           ac_lo= ac_hi=
22458                           break
22459                         fi
22460                         ac_mid=`expr 2 '*' $ac_mid + 1`
22461 fi
22462
22463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22464   done
22465 else
22466   echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469         cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 $ac_includes_default
22476    typedef long long ac__type_sizeof_;
22477 int
22478 main ()
22479 {
22480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22481 test_array [0] = 0
22482
22483   ;
22484   return 0;
22485 }
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491   *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494   (eval "$ac_compile") 2>conftest.er1
22495   ac_status=$?
22496   grep -v '^ *+' conftest.er1 >conftest.err
22497   rm -f conftest.er1
22498   cat conftest.err >&5
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } && {
22501          test -z "$ac_c_werror_flag" ||
22502          test ! -s conftest.err
22503        } && test -s conftest.$ac_objext; then
22504   ac_hi=-1 ac_mid=-1
22505   while :; do
22506     cat >conftest.$ac_ext <<_ACEOF
22507 /* confdefs.h.  */
22508 _ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h.  */
22512 $ac_includes_default
22513    typedef long long ac__type_sizeof_;
22514 int
22515 main ()
22516 {
22517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22518 test_array [0] = 0
22519
22520   ;
22521   return 0;
22522 }
22523 _ACEOF
22524 rm -f conftest.$ac_objext
22525 if { (ac_try="$ac_compile"
22526 case "(($ac_try" in
22527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528   *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531   (eval "$ac_compile") 2>conftest.er1
22532   ac_status=$?
22533   grep -v '^ *+' conftest.er1 >conftest.err
22534   rm -f conftest.er1
22535   cat conftest.err >&5
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); } && {
22538          test -z "$ac_c_werror_flag" ||
22539          test ! -s conftest.err
22540        } && test -s conftest.$ac_objext; then
22541   ac_lo=$ac_mid; break
22542 else
22543   echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22545
22546         ac_hi=`expr '(' $ac_mid ')' - 1`
22547                         if test $ac_mid -le $ac_hi; then
22548                           ac_lo= ac_hi=
22549                           break
22550                         fi
22551                         ac_mid=`expr 2 '*' $ac_mid`
22552 fi
22553
22554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22555   done
22556 else
22557   echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560         ac_lo= ac_hi=
22561 fi
22562
22563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 fi
22565
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567 # Binary search between lo and hi bounds.
22568 while test "x$ac_lo" != "x$ac_hi"; do
22569   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22570   cat >conftest.$ac_ext <<_ACEOF
22571 /* confdefs.h.  */
22572 _ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h.  */
22576 $ac_includes_default
22577    typedef long long ac__type_sizeof_;
22578 int
22579 main ()
22580 {
22581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22582 test_array [0] = 0
22583
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext
22589 if { (ac_try="$ac_compile"
22590 case "(($ac_try" in
22591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592   *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595   (eval "$ac_compile") 2>conftest.er1
22596   ac_status=$?
22597   grep -v '^ *+' conftest.er1 >conftest.err
22598   rm -f conftest.er1
22599   cat conftest.err >&5
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); } && {
22602          test -z "$ac_c_werror_flag" ||
22603          test ! -s conftest.err
22604        } && test -s conftest.$ac_objext; then
22605   ac_hi=$ac_mid
22606 else
22607   echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22609
22610         ac_lo=`expr '(' $ac_mid ')' + 1`
22611 fi
22612
22613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 done
22615 case $ac_lo in
22616 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22617 '') if test "$ac_cv_type_long_long" = yes; then
22618      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22619 See \`config.log' for more details." >&5
22620 echo "$as_me: error: cannot compute sizeof (long long)
22621 See \`config.log' for more details." >&2;}
22622    { (exit 77); exit 77; }; }
22623    else
22624      ac_cv_sizeof_long_long=0
22625    fi ;;
22626 esac
22627 else
22628   cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h.  */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h.  */
22634 $ac_includes_default
22635    typedef long long ac__type_sizeof_;
22636 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22637 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22638 #include <stdio.h>
22639 #include <stdlib.h>
22640 int
22641 main ()
22642 {
22643
22644   FILE *f = fopen ("conftest.val", "w");
22645   if (! f)
22646     return 1;
22647   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22648     {
22649       long int i = longval ();
22650       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22651         return 1;
22652       fprintf (f, "%ld\n", i);
22653     }
22654   else
22655     {
22656       unsigned long int i = ulongval ();
22657       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22658         return 1;
22659       fprintf (f, "%lu\n", i);
22660     }
22661   return ferror (f) || fclose (f) != 0;
22662
22663   ;
22664   return 0;
22665 }
22666 _ACEOF
22667 rm -f conftest$ac_exeext
22668 if { (ac_try="$ac_link"
22669 case "(($ac_try" in
22670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671   *) ac_try_echo=$ac_try;;
22672 esac
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674   (eval "$ac_link") 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22678   { (case "(($ac_try" in
22679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680   *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683   (eval "$ac_try") 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; }; then
22687   ac_cv_sizeof_long_long=`cat conftest.val`
22688 else
22689   echo "$as_me: program exited with status $ac_status" >&5
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22692
22693 ( exit $ac_status )
22694 if test "$ac_cv_type_long_long" = yes; then
22695      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22696 See \`config.log' for more details." >&5
22697 echo "$as_me: error: cannot compute sizeof (long long)
22698 See \`config.log' for more details." >&2;}
22699    { (exit 77); exit 77; }; }
22700    else
22701      ac_cv_sizeof_long_long=0
22702    fi
22703 fi
22704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22705 fi
22706 rm -f conftest.val
22707 fi
22708 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22709 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22710
22711
22712
22713 cat >>confdefs.h <<_ACEOF
22714 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22715 _ACEOF
22716
22717
22718     ;;
22719     *-hp-hpux* )
22720         { echo "$as_me:$LINENO: checking for long long" >&5
22721 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22722 if test "${ac_cv_type_long_long+set}" = set; then
22723   echo $ECHO_N "(cached) $ECHO_C" >&6
22724 else
22725   cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h.  */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h.  */
22731 $ac_includes_default
22732 typedef long long ac__type_new_;
22733 int
22734 main ()
22735 {
22736 if ((ac__type_new_ *) 0)
22737   return 0;
22738 if (sizeof (ac__type_new_))
22739   return 0;
22740   ;
22741   return 0;
22742 }
22743 _ACEOF
22744 rm -f conftest.$ac_objext
22745 if { (ac_try="$ac_compile"
22746 case "(($ac_try" in
22747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748   *) ac_try_echo=$ac_try;;
22749 esac
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751   (eval "$ac_compile") 2>conftest.er1
22752   ac_status=$?
22753   grep -v '^ *+' conftest.er1 >conftest.err
22754   rm -f conftest.er1
22755   cat conftest.err >&5
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); } && {
22758          test -z "$ac_c_werror_flag" ||
22759          test ! -s conftest.err
22760        } && test -s conftest.$ac_objext; then
22761   ac_cv_type_long_long=yes
22762 else
22763   echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766         ac_cv_type_long_long=no
22767 fi
22768
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22770 fi
22771 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22772 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22773
22774 # The cast to long int works around a bug in the HP C Compiler
22775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22777 # This bug is HP SR number 8606223364.
22778 { echo "$as_me:$LINENO: checking size of long long" >&5
22779 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22780 if test "${ac_cv_sizeof_long_long+set}" = set; then
22781   echo $ECHO_N "(cached) $ECHO_C" >&6
22782 else
22783   if test "$cross_compiling" = yes; then
22784   # Depending upon the size, compute the lo and hi bounds.
22785 cat >conftest.$ac_ext <<_ACEOF
22786 /* confdefs.h.  */
22787 _ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h.  */
22791 $ac_includes_default
22792    typedef long long ac__type_sizeof_;
22793 int
22794 main ()
22795 {
22796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22797 test_array [0] = 0
22798
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext
22804 if { (ac_try="$ac_compile"
22805 case "(($ac_try" in
22806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807   *) ac_try_echo=$ac_try;;
22808 esac
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810   (eval "$ac_compile") 2>conftest.er1
22811   ac_status=$?
22812   grep -v '^ *+' conftest.er1 >conftest.err
22813   rm -f conftest.er1
22814   cat conftest.err >&5
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); } && {
22817          test -z "$ac_c_werror_flag" ||
22818          test ! -s conftest.err
22819        } && test -s conftest.$ac_objext; then
22820   ac_lo=0 ac_mid=0
22821   while :; do
22822     cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828 $ac_includes_default
22829    typedef long long ac__type_sizeof_;
22830 int
22831 main ()
22832 {
22833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22834 test_array [0] = 0
22835
22836   ;
22837   return 0;
22838 }
22839 _ACEOF
22840 rm -f conftest.$ac_objext
22841 if { (ac_try="$ac_compile"
22842 case "(($ac_try" in
22843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844   *) ac_try_echo=$ac_try;;
22845 esac
22846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847   (eval "$ac_compile") 2>conftest.er1
22848   ac_status=$?
22849   grep -v '^ *+' conftest.er1 >conftest.err
22850   rm -f conftest.er1
22851   cat conftest.err >&5
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } && {
22854          test -z "$ac_c_werror_flag" ||
22855          test ! -s conftest.err
22856        } && test -s conftest.$ac_objext; then
22857   ac_hi=$ac_mid; break
22858 else
22859   echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22861
22862         ac_lo=`expr $ac_mid + 1`
22863                         if test $ac_lo -le $ac_mid; then
22864                           ac_lo= ac_hi=
22865                           break
22866                         fi
22867                         ac_mid=`expr 2 '*' $ac_mid + 1`
22868 fi
22869
22870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871   done
22872 else
22873   echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876         cat >conftest.$ac_ext <<_ACEOF
22877 /* confdefs.h.  */
22878 _ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h.  */
22882 $ac_includes_default
22883    typedef long long ac__type_sizeof_;
22884 int
22885 main ()
22886 {
22887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22888 test_array [0] = 0
22889
22890   ;
22891   return 0;
22892 }
22893 _ACEOF
22894 rm -f conftest.$ac_objext
22895 if { (ac_try="$ac_compile"
22896 case "(($ac_try" in
22897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898   *) ac_try_echo=$ac_try;;
22899 esac
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901   (eval "$ac_compile") 2>conftest.er1
22902   ac_status=$?
22903   grep -v '^ *+' conftest.er1 >conftest.err
22904   rm -f conftest.er1
22905   cat conftest.err >&5
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); } && {
22908          test -z "$ac_c_werror_flag" ||
22909          test ! -s conftest.err
22910        } && test -s conftest.$ac_objext; then
22911   ac_hi=-1 ac_mid=-1
22912   while :; do
22913     cat >conftest.$ac_ext <<_ACEOF
22914 /* confdefs.h.  */
22915 _ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h.  */
22919 $ac_includes_default
22920    typedef long long ac__type_sizeof_;
22921 int
22922 main ()
22923 {
22924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22925 test_array [0] = 0
22926
22927   ;
22928   return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest.$ac_objext
22932 if { (ac_try="$ac_compile"
22933 case "(($ac_try" in
22934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935   *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938   (eval "$ac_compile") 2>conftest.er1
22939   ac_status=$?
22940   grep -v '^ *+' conftest.er1 >conftest.err
22941   rm -f conftest.er1
22942   cat conftest.err >&5
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); } && {
22945          test -z "$ac_c_werror_flag" ||
22946          test ! -s conftest.err
22947        } && test -s conftest.$ac_objext; then
22948   ac_lo=$ac_mid; break
22949 else
22950   echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22952
22953         ac_hi=`expr '(' $ac_mid ')' - 1`
22954                         if test $ac_mid -le $ac_hi; then
22955                           ac_lo= ac_hi=
22956                           break
22957                         fi
22958                         ac_mid=`expr 2 '*' $ac_mid`
22959 fi
22960
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962   done
22963 else
22964   echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22966
22967         ac_lo= ac_hi=
22968 fi
22969
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 fi
22972
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974 # Binary search between lo and hi bounds.
22975 while test "x$ac_lo" != "x$ac_hi"; do
22976   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22977   cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h.  */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h.  */
22983 $ac_includes_default
22984    typedef long long ac__type_sizeof_;
22985 int
22986 main ()
22987 {
22988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22989 test_array [0] = 0
22990
22991   ;
22992   return 0;
22993 }
22994 _ACEOF
22995 rm -f conftest.$ac_objext
22996 if { (ac_try="$ac_compile"
22997 case "(($ac_try" in
22998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999   *) ac_try_echo=$ac_try;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002   (eval "$ac_compile") 2>conftest.er1
23003   ac_status=$?
23004   grep -v '^ *+' conftest.er1 >conftest.err
23005   rm -f conftest.er1
23006   cat conftest.err >&5
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } && {
23009          test -z "$ac_c_werror_flag" ||
23010          test ! -s conftest.err
23011        } && test -s conftest.$ac_objext; then
23012   ac_hi=$ac_mid
23013 else
23014   echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017         ac_lo=`expr '(' $ac_mid ')' + 1`
23018 fi
23019
23020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23021 done
23022 case $ac_lo in
23023 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23024 '') if test "$ac_cv_type_long_long" = yes; then
23025      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23026 See \`config.log' for more details." >&5
23027 echo "$as_me: error: cannot compute sizeof (long long)
23028 See \`config.log' for more details." >&2;}
23029    { (exit 77); exit 77; }; }
23030    else
23031      ac_cv_sizeof_long_long=0
23032    fi ;;
23033 esac
23034 else
23035   cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h.  */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h.  */
23041 $ac_includes_default
23042    typedef long long ac__type_sizeof_;
23043 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23044 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23045 #include <stdio.h>
23046 #include <stdlib.h>
23047 int
23048 main ()
23049 {
23050
23051   FILE *f = fopen ("conftest.val", "w");
23052   if (! f)
23053     return 1;
23054   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23055     {
23056       long int i = longval ();
23057       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23058         return 1;
23059       fprintf (f, "%ld\n", i);
23060     }
23061   else
23062     {
23063       unsigned long int i = ulongval ();
23064       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23065         return 1;
23066       fprintf (f, "%lu\n", i);
23067     }
23068   return ferror (f) || fclose (f) != 0;
23069
23070   ;
23071   return 0;
23072 }
23073 _ACEOF
23074 rm -f conftest$ac_exeext
23075 if { (ac_try="$ac_link"
23076 case "(($ac_try" in
23077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078   *) ac_try_echo=$ac_try;;
23079 esac
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081   (eval "$ac_link") 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23085   { (case "(($ac_try" in
23086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087   *) ac_try_echo=$ac_try;;
23088 esac
23089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23090   (eval "$ac_try") 2>&5
23091   ac_status=$?
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); }; }; then
23094   ac_cv_sizeof_long_long=`cat conftest.val`
23095 else
23096   echo "$as_me: program exited with status $ac_status" >&5
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 ( exit $ac_status )
23101 if test "$ac_cv_type_long_long" = yes; then
23102      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23103 See \`config.log' for more details." >&5
23104 echo "$as_me: error: cannot compute sizeof (long long)
23105 See \`config.log' for more details." >&2;}
23106    { (exit 77); exit 77; }; }
23107    else
23108      ac_cv_sizeof_long_long=0
23109    fi
23110 fi
23111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23112 fi
23113 rm -f conftest.val
23114 fi
23115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23116 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23117
23118
23119
23120 cat >>confdefs.h <<_ACEOF
23121 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23122 _ACEOF
23123
23124
23125         if test "$ac_cv_sizeof_long_long" != 0; then
23126                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23127         fi
23128     ;;
23129     * )
23130         { echo "$as_me:$LINENO: checking for long long" >&5
23131 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23132 if test "${ac_cv_type_long_long+set}" = set; then
23133   echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135   cat >conftest.$ac_ext <<_ACEOF
23136 /* confdefs.h.  */
23137 _ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h.  */
23141 $ac_includes_default
23142 typedef long long ac__type_new_;
23143 int
23144 main ()
23145 {
23146 if ((ac__type_new_ *) 0)
23147   return 0;
23148 if (sizeof (ac__type_new_))
23149   return 0;
23150   ;
23151   return 0;
23152 }
23153 _ACEOF
23154 rm -f conftest.$ac_objext
23155 if { (ac_try="$ac_compile"
23156 case "(($ac_try" in
23157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158   *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161   (eval "$ac_compile") 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } && {
23168          test -z "$ac_c_werror_flag" ||
23169          test ! -s conftest.err
23170        } && test -s conftest.$ac_objext; then
23171   ac_cv_type_long_long=yes
23172 else
23173   echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176         ac_cv_type_long_long=no
23177 fi
23178
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180 fi
23181 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23182 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23183
23184 # The cast to long int works around a bug in the HP C Compiler
23185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23187 # This bug is HP SR number 8606223364.
23188 { echo "$as_me:$LINENO: checking size of long long" >&5
23189 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23190 if test "${ac_cv_sizeof_long_long+set}" = set; then
23191   echo $ECHO_N "(cached) $ECHO_C" >&6
23192 else
23193   if test "$cross_compiling" = yes; then
23194   # Depending upon the size, compute the lo and hi bounds.
23195 cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h.  */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h.  */
23201 $ac_includes_default
23202    typedef long long ac__type_sizeof_;
23203 int
23204 main ()
23205 {
23206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23207 test_array [0] = 0
23208
23209   ;
23210   return 0;
23211 }
23212 _ACEOF
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217   *) ac_try_echo=$ac_try;;
23218 esac
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220   (eval "$ac_compile") 2>conftest.er1
23221   ac_status=$?
23222   grep -v '^ *+' conftest.er1 >conftest.err
23223   rm -f conftest.er1
23224   cat conftest.err >&5
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); } && {
23227          test -z "$ac_c_werror_flag" ||
23228          test ! -s conftest.err
23229        } && test -s conftest.$ac_objext; then
23230   ac_lo=0 ac_mid=0
23231   while :; do
23232     cat >conftest.$ac_ext <<_ACEOF
23233 /* confdefs.h.  */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h.  */
23238 $ac_includes_default
23239    typedef long long ac__type_sizeof_;
23240 int
23241 main ()
23242 {
23243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23244 test_array [0] = 0
23245
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest.$ac_objext
23251 if { (ac_try="$ac_compile"
23252 case "(($ac_try" in
23253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254   *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257   (eval "$ac_compile") 2>conftest.er1
23258   ac_status=$?
23259   grep -v '^ *+' conftest.er1 >conftest.err
23260   rm -f conftest.er1
23261   cat conftest.err >&5
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } && {
23264          test -z "$ac_c_werror_flag" ||
23265          test ! -s conftest.err
23266        } && test -s conftest.$ac_objext; then
23267   ac_hi=$ac_mid; break
23268 else
23269   echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23271
23272         ac_lo=`expr $ac_mid + 1`
23273                         if test $ac_lo -le $ac_mid; then
23274                           ac_lo= ac_hi=
23275                           break
23276                         fi
23277                         ac_mid=`expr 2 '*' $ac_mid + 1`
23278 fi
23279
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23281   done
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286         cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h.  */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h.  */
23292 $ac_includes_default
23293    typedef long long ac__type_sizeof_;
23294 int
23295 main ()
23296 {
23297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23298 test_array [0] = 0
23299
23300   ;
23301   return 0;
23302 }
23303 _ACEOF
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308   *) ac_try_echo=$ac_try;;
23309 esac
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311   (eval "$ac_compile") 2>conftest.er1
23312   ac_status=$?
23313   grep -v '^ *+' conftest.er1 >conftest.err
23314   rm -f conftest.er1
23315   cat conftest.err >&5
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); } && {
23318          test -z "$ac_c_werror_flag" ||
23319          test ! -s conftest.err
23320        } && test -s conftest.$ac_objext; then
23321   ac_hi=-1 ac_mid=-1
23322   while :; do
23323     cat >conftest.$ac_ext <<_ACEOF
23324 /* confdefs.h.  */
23325 _ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h.  */
23329 $ac_includes_default
23330    typedef long long ac__type_sizeof_;
23331 int
23332 main ()
23333 {
23334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23335 test_array [0] = 0
23336
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext
23342 if { (ac_try="$ac_compile"
23343 case "(($ac_try" in
23344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345   *) ac_try_echo=$ac_try;;
23346 esac
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348   (eval "$ac_compile") 2>conftest.er1
23349   ac_status=$?
23350   grep -v '^ *+' conftest.er1 >conftest.err
23351   rm -f conftest.er1
23352   cat conftest.err >&5
23353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354   (exit $ac_status); } && {
23355          test -z "$ac_c_werror_flag" ||
23356          test ! -s conftest.err
23357        } && test -s conftest.$ac_objext; then
23358   ac_lo=$ac_mid; break
23359 else
23360   echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363         ac_hi=`expr '(' $ac_mid ')' - 1`
23364                         if test $ac_mid -le $ac_hi; then
23365                           ac_lo= ac_hi=
23366                           break
23367                         fi
23368                         ac_mid=`expr 2 '*' $ac_mid`
23369 fi
23370
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372   done
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377         ac_lo= ac_hi=
23378 fi
23379
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23381 fi
23382
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23384 # Binary search between lo and hi bounds.
23385 while test "x$ac_lo" != "x$ac_hi"; do
23386   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23387   cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 $ac_includes_default
23394    typedef long long ac__type_sizeof_;
23395 int
23396 main ()
23397 {
23398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23399 test_array [0] = 0
23400
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409   *) ac_try_echo=$ac_try;;
23410 esac
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412   (eval "$ac_compile") 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } && {
23419          test -z "$ac_c_werror_flag" ||
23420          test ! -s conftest.err
23421        } && test -s conftest.$ac_objext; then
23422   ac_hi=$ac_mid
23423 else
23424   echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427         ac_lo=`expr '(' $ac_mid ')' + 1`
23428 fi
23429
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431 done
23432 case $ac_lo in
23433 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23434 '') if test "$ac_cv_type_long_long" = yes; then
23435      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23436 See \`config.log' for more details." >&5
23437 echo "$as_me: error: cannot compute sizeof (long long)
23438 See \`config.log' for more details." >&2;}
23439    { (exit 77); exit 77; }; }
23440    else
23441      ac_cv_sizeof_long_long=0
23442    fi ;;
23443 esac
23444 else
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 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23454 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23455 #include <stdio.h>
23456 #include <stdlib.h>
23457 int
23458 main ()
23459 {
23460
23461   FILE *f = fopen ("conftest.val", "w");
23462   if (! f)
23463     return 1;
23464   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23465     {
23466       long int i = longval ();
23467       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23468         return 1;
23469       fprintf (f, "%ld\n", i);
23470     }
23471   else
23472     {
23473       unsigned long int i = ulongval ();
23474       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23475         return 1;
23476       fprintf (f, "%lu\n", i);
23477     }
23478   return ferror (f) || fclose (f) != 0;
23479
23480   ;
23481   return 0;
23482 }
23483 _ACEOF
23484 rm -f conftest$ac_exeext
23485 if { (ac_try="$ac_link"
23486 case "(($ac_try" in
23487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488   *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491   (eval "$ac_link") 2>&5
23492   ac_status=$?
23493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23495   { (case "(($ac_try" in
23496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497   *) ac_try_echo=$ac_try;;
23498 esac
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500   (eval "$ac_try") 2>&5
23501   ac_status=$?
23502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503   (exit $ac_status); }; }; then
23504   ac_cv_sizeof_long_long=`cat conftest.val`
23505 else
23506   echo "$as_me: program exited with status $ac_status" >&5
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23509
23510 ( exit $ac_status )
23511 if test "$ac_cv_type_long_long" = yes; then
23512      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23513 See \`config.log' for more details." >&5
23514 echo "$as_me: error: cannot compute sizeof (long long)
23515 See \`config.log' for more details." >&2;}
23516    { (exit 77); exit 77; }; }
23517    else
23518      ac_cv_sizeof_long_long=0
23519    fi
23520 fi
23521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23522 fi
23523 rm -f conftest.val
23524 fi
23525 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23526 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23527
23528
23529
23530 cat >>confdefs.h <<_ACEOF
23531 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23532 _ACEOF
23533
23534
23535 esac
23536
23537 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23538 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23539 if test "${ac_cv_type_wchar_t+set}" = set; then
23540   echo $ECHO_N "(cached) $ECHO_C" >&6
23541 else
23542   cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h.  */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h.  */
23548
23549         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23550         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23551         #  error "fake wchar_t"
23552         #endif
23553         #ifdef HAVE_WCHAR_H
23554         #  ifdef __CYGWIN__
23555         #    include <stddef.h>
23556         #  endif
23557         #  include <wchar.h>
23558         #endif
23559         #ifdef HAVE_STDLIB_H
23560         #  include <stdlib.h>
23561         #endif
23562         #include <stdio.h>
23563
23564
23565
23566 typedef wchar_t ac__type_new_;
23567 int
23568 main ()
23569 {
23570 if ((ac__type_new_ *) 0)
23571   return 0;
23572 if (sizeof (ac__type_new_))
23573   return 0;
23574   ;
23575   return 0;
23576 }
23577 _ACEOF
23578 rm -f conftest.$ac_objext
23579 if { (ac_try="$ac_compile"
23580 case "(($ac_try" in
23581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582   *) ac_try_echo=$ac_try;;
23583 esac
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585   (eval "$ac_compile") 2>conftest.er1
23586   ac_status=$?
23587   grep -v '^ *+' conftest.er1 >conftest.err
23588   rm -f conftest.er1
23589   cat conftest.err >&5
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); } && {
23592          test -z "$ac_c_werror_flag" ||
23593          test ! -s conftest.err
23594        } && test -s conftest.$ac_objext; then
23595   ac_cv_type_wchar_t=yes
23596 else
23597   echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23599
23600         ac_cv_type_wchar_t=no
23601 fi
23602
23603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23604 fi
23605 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23606 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23607
23608 # The cast to long int works around a bug in the HP C Compiler
23609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23611 # This bug is HP SR number 8606223364.
23612 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23613 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23614 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23615   echo $ECHO_N "(cached) $ECHO_C" >&6
23616 else
23617   if test "$cross_compiling" = yes; then
23618   # Depending upon the size, compute the lo and hi bounds.
23619 cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h.  */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h.  */
23625
23626         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23627         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23628         #  error "fake wchar_t"
23629         #endif
23630         #ifdef HAVE_WCHAR_H
23631         #  ifdef __CYGWIN__
23632         #    include <stddef.h>
23633         #  endif
23634         #  include <wchar.h>
23635         #endif
23636         #ifdef HAVE_STDLIB_H
23637         #  include <stdlib.h>
23638         #endif
23639         #include <stdio.h>
23640
23641
23642
23643    typedef wchar_t ac__type_sizeof_;
23644 int
23645 main ()
23646 {
23647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23648 test_array [0] = 0
23649
23650   ;
23651   return 0;
23652 }
23653 _ACEOF
23654 rm -f conftest.$ac_objext
23655 if { (ac_try="$ac_compile"
23656 case "(($ac_try" in
23657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658   *) ac_try_echo=$ac_try;;
23659 esac
23660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23661   (eval "$ac_compile") 2>conftest.er1
23662   ac_status=$?
23663   grep -v '^ *+' conftest.er1 >conftest.err
23664   rm -f conftest.er1
23665   cat conftest.err >&5
23666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667   (exit $ac_status); } && {
23668          test -z "$ac_c_werror_flag" ||
23669          test ! -s conftest.err
23670        } && test -s conftest.$ac_objext; then
23671   ac_lo=0 ac_mid=0
23672   while :; do
23673     cat >conftest.$ac_ext <<_ACEOF
23674 /* confdefs.h.  */
23675 _ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h.  */
23679
23680         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23681         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23682         #  error "fake wchar_t"
23683         #endif
23684         #ifdef HAVE_WCHAR_H
23685         #  ifdef __CYGWIN__
23686         #    include <stddef.h>
23687         #  endif
23688         #  include <wchar.h>
23689         #endif
23690         #ifdef HAVE_STDLIB_H
23691         #  include <stdlib.h>
23692         #endif
23693         #include <stdio.h>
23694
23695
23696
23697    typedef wchar_t ac__type_sizeof_;
23698 int
23699 main ()
23700 {
23701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23702 test_array [0] = 0
23703
23704   ;
23705   return 0;
23706 }
23707 _ACEOF
23708 rm -f conftest.$ac_objext
23709 if { (ac_try="$ac_compile"
23710 case "(($ac_try" in
23711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23712   *) ac_try_echo=$ac_try;;
23713 esac
23714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23715   (eval "$ac_compile") 2>conftest.er1
23716   ac_status=$?
23717   grep -v '^ *+' conftest.er1 >conftest.err
23718   rm -f conftest.er1
23719   cat conftest.err >&5
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); } && {
23722          test -z "$ac_c_werror_flag" ||
23723          test ! -s conftest.err
23724        } && test -s conftest.$ac_objext; then
23725   ac_hi=$ac_mid; break
23726 else
23727   echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730         ac_lo=`expr $ac_mid + 1`
23731                         if test $ac_lo -le $ac_mid; then
23732                           ac_lo= ac_hi=
23733                           break
23734                         fi
23735                         ac_mid=`expr 2 '*' $ac_mid + 1`
23736 fi
23737
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739   done
23740 else
23741   echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23743
23744         cat >conftest.$ac_ext <<_ACEOF
23745 /* confdefs.h.  */
23746 _ACEOF
23747 cat confdefs.h >>conftest.$ac_ext
23748 cat >>conftest.$ac_ext <<_ACEOF
23749 /* end confdefs.h.  */
23750
23751         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23752         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23753         #  error "fake wchar_t"
23754         #endif
23755         #ifdef HAVE_WCHAR_H
23756         #  ifdef __CYGWIN__
23757         #    include <stddef.h>
23758         #  endif
23759         #  include <wchar.h>
23760         #endif
23761         #ifdef HAVE_STDLIB_H
23762         #  include <stdlib.h>
23763         #endif
23764         #include <stdio.h>
23765
23766
23767
23768    typedef wchar_t ac__type_sizeof_;
23769 int
23770 main ()
23771 {
23772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23773 test_array [0] = 0
23774
23775   ;
23776   return 0;
23777 }
23778 _ACEOF
23779 rm -f conftest.$ac_objext
23780 if { (ac_try="$ac_compile"
23781 case "(($ac_try" in
23782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783   *) ac_try_echo=$ac_try;;
23784 esac
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786   (eval "$ac_compile") 2>conftest.er1
23787   ac_status=$?
23788   grep -v '^ *+' conftest.er1 >conftest.err
23789   rm -f conftest.er1
23790   cat conftest.err >&5
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); } && {
23793          test -z "$ac_c_werror_flag" ||
23794          test ! -s conftest.err
23795        } && test -s conftest.$ac_objext; then
23796   ac_hi=-1 ac_mid=-1
23797   while :; do
23798     cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h.  */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h.  */
23804
23805         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23806         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23807         #  error "fake wchar_t"
23808         #endif
23809         #ifdef HAVE_WCHAR_H
23810         #  ifdef __CYGWIN__
23811         #    include <stddef.h>
23812         #  endif
23813         #  include <wchar.h>
23814         #endif
23815         #ifdef HAVE_STDLIB_H
23816         #  include <stdlib.h>
23817         #endif
23818         #include <stdio.h>
23819
23820
23821
23822    typedef wchar_t ac__type_sizeof_;
23823 int
23824 main ()
23825 {
23826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23827 test_array [0] = 0
23828
23829   ;
23830   return 0;
23831 }
23832 _ACEOF
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837   *) ac_try_echo=$ac_try;;
23838 esac
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840   (eval "$ac_compile") 2>conftest.er1
23841   ac_status=$?
23842   grep -v '^ *+' conftest.er1 >conftest.err
23843   rm -f conftest.er1
23844   cat conftest.err >&5
23845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846   (exit $ac_status); } && {
23847          test -z "$ac_c_werror_flag" ||
23848          test ! -s conftest.err
23849        } && test -s conftest.$ac_objext; then
23850   ac_lo=$ac_mid; break
23851 else
23852   echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854
23855         ac_hi=`expr '(' $ac_mid ')' - 1`
23856                         if test $ac_mid -le $ac_hi; then
23857                           ac_lo= ac_hi=
23858                           break
23859                         fi
23860                         ac_mid=`expr 2 '*' $ac_mid`
23861 fi
23862
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864   done
23865 else
23866   echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23868
23869         ac_lo= ac_hi=
23870 fi
23871
23872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23873 fi
23874
23875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23876 # Binary search between lo and hi bounds.
23877 while test "x$ac_lo" != "x$ac_hi"; do
23878   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23879   cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h.  */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h.  */
23885
23886         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23887         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23888         #  error "fake wchar_t"
23889         #endif
23890         #ifdef HAVE_WCHAR_H
23891         #  ifdef __CYGWIN__
23892         #    include <stddef.h>
23893         #  endif
23894         #  include <wchar.h>
23895         #endif
23896         #ifdef HAVE_STDLIB_H
23897         #  include <stdlib.h>
23898         #endif
23899         #include <stdio.h>
23900
23901
23902
23903    typedef wchar_t ac__type_sizeof_;
23904 int
23905 main ()
23906 {
23907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23908 test_array [0] = 0
23909
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext
23915 if { (ac_try="$ac_compile"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_compile") 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } && {
23928          test -z "$ac_c_werror_flag" ||
23929          test ! -s conftest.err
23930        } && test -s conftest.$ac_objext; then
23931   ac_hi=$ac_mid
23932 else
23933   echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23935
23936         ac_lo=`expr '(' $ac_mid ')' + 1`
23937 fi
23938
23939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940 done
23941 case $ac_lo in
23942 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23943 '') if test "$ac_cv_type_wchar_t" = yes; then
23944      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23945 See \`config.log' for more details." >&5
23946 echo "$as_me: error: cannot compute sizeof (wchar_t)
23947 See \`config.log' for more details." >&2;}
23948    { (exit 77); exit 77; }; }
23949    else
23950      ac_cv_sizeof_wchar_t=0
23951    fi ;;
23952 esac
23953 else
23954   cat >conftest.$ac_ext <<_ACEOF
23955 /* confdefs.h.  */
23956 _ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h.  */
23960
23961         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23962         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23963         #  error "fake wchar_t"
23964         #endif
23965         #ifdef HAVE_WCHAR_H
23966         #  ifdef __CYGWIN__
23967         #    include <stddef.h>
23968         #  endif
23969         #  include <wchar.h>
23970         #endif
23971         #ifdef HAVE_STDLIB_H
23972         #  include <stdlib.h>
23973         #endif
23974         #include <stdio.h>
23975
23976
23977
23978    typedef wchar_t ac__type_sizeof_;
23979 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23980 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23981 #include <stdio.h>
23982 #include <stdlib.h>
23983 int
23984 main ()
23985 {
23986
23987   FILE *f = fopen ("conftest.val", "w");
23988   if (! f)
23989     return 1;
23990   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23991     {
23992       long int i = longval ();
23993       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23994         return 1;
23995       fprintf (f, "%ld\n", i);
23996     }
23997   else
23998     {
23999       unsigned long int i = ulongval ();
24000       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24001         return 1;
24002       fprintf (f, "%lu\n", i);
24003     }
24004   return ferror (f) || fclose (f) != 0;
24005
24006   ;
24007   return 0;
24008 }
24009 _ACEOF
24010 rm -f conftest$ac_exeext
24011 if { (ac_try="$ac_link"
24012 case "(($ac_try" in
24013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014   *) ac_try_echo=$ac_try;;
24015 esac
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017   (eval "$ac_link") 2>&5
24018   ac_status=$?
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24021   { (case "(($ac_try" in
24022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023   *) ac_try_echo=$ac_try;;
24024 esac
24025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24026   (eval "$ac_try") 2>&5
24027   ac_status=$?
24028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); }; }; then
24030   ac_cv_sizeof_wchar_t=`cat conftest.val`
24031 else
24032   echo "$as_me: program exited with status $ac_status" >&5
24033 echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036 ( exit $ac_status )
24037 if test "$ac_cv_type_wchar_t" = yes; then
24038      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24039 See \`config.log' for more details." >&5
24040 echo "$as_me: error: cannot compute sizeof (wchar_t)
24041 See \`config.log' for more details." >&2;}
24042    { (exit 77); exit 77; }; }
24043    else
24044      ac_cv_sizeof_wchar_t=0
24045    fi
24046 fi
24047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24048 fi
24049 rm -f conftest.val
24050 fi
24051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24052 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24053
24054
24055
24056 cat >>confdefs.h <<_ACEOF
24057 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24058 _ACEOF
24059
24060
24061 if test "$ac_cv_sizeof_wchar_t" = 0; then
24062     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24063 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24064    { (exit 1); exit 1; }; }
24065 fi
24066 cat >>confdefs.h <<\_ACEOF
24067 #define wxUSE_WCHAR_T 1
24068 _ACEOF
24069
24070
24071 { echo "$as_me:$LINENO: checking for va_copy" >&5
24072 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24073 if test "${wx_cv_func_va_copy+set}" = set; then
24074   echo $ECHO_N "(cached) $ECHO_C" >&6
24075 else
24076
24077         ac_ext=cpp
24078 ac_cpp='$CXXCPP $CPPFLAGS'
24079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24082
24083         cat >conftest.$ac_ext <<_ACEOF
24084
24085             #include <stdarg.h>
24086             void foo(char *f, ...)
24087             {
24088                 va_list ap1, ap2;
24089                 va_start(ap1, f);
24090                 va_copy(ap2, ap1);
24091                 va_end(ap2);
24092                 va_end(ap1);
24093             }
24094             int main()
24095             {
24096                 foo("hi", 17);
24097                 return 0;
24098             }
24099 _ACEOF
24100 rm -f conftest.$ac_objext conftest$ac_exeext
24101 if { (ac_try="$ac_link"
24102 case "(($ac_try" in
24103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104   *) ac_try_echo=$ac_try;;
24105 esac
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107   (eval "$ac_link") 2>conftest.er1
24108   ac_status=$?
24109   grep -v '^ *+' conftest.er1 >conftest.err
24110   rm -f conftest.er1
24111   cat conftest.err >&5
24112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113   (exit $ac_status); } && {
24114          test -z "$ac_cxx_werror_flag" ||
24115          test ! -s conftest.err
24116        } && test -s conftest$ac_exeext &&
24117        $as_test_x conftest$ac_exeext; then
24118   wx_cv_func_va_copy=yes
24119 else
24120   echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24122
24123         wx_cv_func_va_copy=no
24124
24125 fi
24126
24127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24128       conftest$ac_exeext conftest.$ac_ext
24129         ac_ext=c
24130 ac_cpp='$CPP $CPPFLAGS'
24131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24134
24135
24136
24137 fi
24138 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24139 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24140
24141 if test $wx_cv_func_va_copy = "yes"; then
24142     cat >>confdefs.h <<\_ACEOF
24143 #define HAVE_VA_COPY 1
24144 _ACEOF
24145
24146 else
24147         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24148 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24149 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24150   echo $ECHO_N "(cached) $ECHO_C" >&6
24151 else
24152
24153             if test "$cross_compiling" = yes; then
24154                   wx_cv_type_va_list_lvalue=yes
24155
24156 else
24157   cat >conftest.$ac_ext <<_ACEOF
24158
24159                 #include <stdarg.h>
24160                 int foo(char *f, ...)
24161                 {
24162                     va_list ap1, ap2;
24163                     va_start(ap1, f);
24164                     ap2 = ap1;
24165                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24166                         return 1;
24167                     va_end(ap2);
24168                     va_end(ap1);
24169                     return 0;
24170                 }
24171                 int main()
24172                 {
24173                     return foo("hi", 17);
24174                 }
24175 _ACEOF
24176 rm -f conftest$ac_exeext
24177 if { (ac_try="$ac_link"
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_link") 2>&5
24184   ac_status=$?
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24187   { (case "(($ac_try" in
24188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189   *) ac_try_echo=$ac_try;;
24190 esac
24191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192   (eval "$ac_try") 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; }; then
24196   wx_cv_type_va_list_lvalue=yes
24197 else
24198   echo "$as_me: program exited with status $ac_status" >&5
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24201
24202 ( exit $ac_status )
24203 wx_cv_type_va_list_lvalue=no
24204 fi
24205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24206 fi
24207
24208
24209
24210
24211 fi
24212 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24213 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24214
24215     if test $wx_cv_type_va_list_lvalue != "yes"; then
24216                         cat >>confdefs.h <<\_ACEOF
24217 #define VA_LIST_IS_ARRAY 1
24218 _ACEOF
24219
24220     fi
24221 fi
24222
24223 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24224
24225 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24226 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24227 if test "${wx_cv_have_variadic_macros+set}" = set; then
24228   echo $ECHO_N "(cached) $ECHO_C" >&6
24229 else
24230
24231                         ac_ext=cpp
24232 ac_cpp='$CXXCPP $CPPFLAGS'
24233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24236
24237         cat >conftest.$ac_ext <<_ACEOF
24238 /* confdefs.h.  */
24239 _ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h.  */
24243
24244                     #include <stdio.h>
24245                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24246
24247 int
24248 main ()
24249 {
24250
24251                     test("%s %d %p", "test", 1, 0);
24252
24253
24254   ;
24255   return 0;
24256 }
24257 _ACEOF
24258 rm -f conftest.$ac_objext
24259 if { (ac_try="$ac_compile"
24260 case "(($ac_try" in
24261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262   *) ac_try_echo=$ac_try;;
24263 esac
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265   (eval "$ac_compile") 2>conftest.er1
24266   ac_status=$?
24267   grep -v '^ *+' conftest.er1 >conftest.err
24268   rm -f conftest.er1
24269   cat conftest.err >&5
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); } && {
24272          test -z "$ac_cxx_werror_flag" ||
24273          test ! -s conftest.err
24274        } && test -s conftest.$ac_objext; then
24275   wx_cv_have_variadic_macros=yes
24276 else
24277   echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24279
24280         wx_cv_have_variadic_macros=no
24281
24282 fi
24283
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285         ac_ext=c
24286 ac_cpp='$CPP $CPPFLAGS'
24287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24290
24291
24292
24293 fi
24294 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24295 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24296
24297 if test $wx_cv_have_variadic_macros = "yes"; then
24298     cat >>confdefs.h <<\_ACEOF
24299 #define HAVE_VARIADIC_MACROS 1
24300 _ACEOF
24301
24302 fi
24303
24304 fi
24305
24306 LARGEFILE_CPPFLAGS=
24307 # Check whether --enable-largefile was given.
24308 if test "${enable_largefile+set}" = set; then
24309   enableval=$enable_largefile;
24310 fi
24311
24312 if test "$enable_largefile" != no; then
24313             wx_largefile=no
24314
24315     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24316 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24317 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24318   echo $ECHO_N "(cached) $ECHO_C" >&6
24319 else
24320
24321           cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h.  */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h.  */
24327 #define _FILE_OFFSET_BITS 64
24328                           #include <sys/types.h>
24329 int
24330 main ()
24331 {
24332 typedef struct {
24333     unsigned int field: sizeof(off_t) == 8;
24334 } wxlf;
24335
24336   ;
24337   return 0;
24338 }
24339 _ACEOF
24340 rm -f conftest.$ac_objext
24341 if { (ac_try="$ac_compile"
24342 case "(($ac_try" in
24343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344   *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347   (eval "$ac_compile") 2>conftest.er1
24348   ac_status=$?
24349   grep -v '^ *+' conftest.er1 >conftest.err
24350   rm -f conftest.er1
24351   cat conftest.err >&5
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); } && {
24354          test -z "$ac_c_werror_flag" ||
24355          test ! -s conftest.err
24356        } && test -s conftest.$ac_objext; then
24357   ac_cv_sys_file_offset_bits=64
24358 else
24359   echo "$as_me: failed program was:" >&5
24360 sed 's/^/| /' conftest.$ac_ext >&5
24361
24362         ac_cv_sys_file_offset_bits=no
24363 fi
24364
24365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24366
24367
24368 fi
24369 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24370 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24371
24372     if test "$ac_cv_sys_file_offset_bits" != no; then
24373         wx_largefile=yes
24374         cat >>confdefs.h <<_ACEOF
24375 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24376 _ACEOF
24377
24378     fi
24379
24380     if test "x$wx_largefile" != "xyes"; then
24381
24382     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24383 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24384 if test "${ac_cv_sys_large_files+set}" = set; then
24385   echo $ECHO_N "(cached) $ECHO_C" >&6
24386 else
24387
24388           cat >conftest.$ac_ext <<_ACEOF
24389 /* confdefs.h.  */
24390 _ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h.  */
24394 #define _LARGE_FILES 1
24395                           #include <sys/types.h>
24396 int
24397 main ()
24398 {
24399 typedef struct {
24400     unsigned int field: sizeof(off_t) == 8;
24401 } wxlf;
24402
24403   ;
24404   return 0;
24405 }
24406 _ACEOF
24407 rm -f conftest.$ac_objext
24408 if { (ac_try="$ac_compile"
24409 case "(($ac_try" in
24410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411   *) ac_try_echo=$ac_try;;
24412 esac
24413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414   (eval "$ac_compile") 2>conftest.er1
24415   ac_status=$?
24416   grep -v '^ *+' conftest.er1 >conftest.err
24417   rm -f conftest.er1
24418   cat conftest.err >&5
24419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420   (exit $ac_status); } && {
24421          test -z "$ac_c_werror_flag" ||
24422          test ! -s conftest.err
24423        } && test -s conftest.$ac_objext; then
24424   ac_cv_sys_large_files=1
24425 else
24426   echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24428
24429         ac_cv_sys_large_files=no
24430 fi
24431
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24433
24434
24435 fi
24436 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24437 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24438
24439     if test "$ac_cv_sys_large_files" != no; then
24440         wx_largefile=yes
24441         cat >>confdefs.h <<_ACEOF
24442 #define _LARGE_FILES $ac_cv_sys_large_files
24443 _ACEOF
24444
24445     fi
24446
24447     fi
24448
24449     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24450 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24451     if test "x$wx_largefile" = "xyes"; then
24452         cat >>confdefs.h <<\_ACEOF
24453 #define HAVE_LARGEFILE_SUPPORT 1
24454 _ACEOF
24455
24456     fi
24457     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24458 echo "${ECHO_T}$wx_largefile" >&6; }
24459 fi
24460
24461 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24462     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24463 elif test "$ac_cv_sys_large_files" = 1; then
24464     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24465 fi
24466
24467 if test -n "$LARGEFILE_CPPFLAGS"; then
24468     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24469
24470                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24471         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24472 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24473 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24474   echo $ECHO_N "(cached) $ECHO_C" >&6
24475 else
24476
24477                 ac_ext=cpp
24478 ac_cpp='$CXXCPP $CPPFLAGS'
24479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24482
24483                 cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489
24490 int
24491 main ()
24492 {
24493
24494                         #ifndef __STDC_EXT__
24495                             choke me
24496                         #endif
24497
24498   ;
24499   return 0;
24500 }
24501 _ACEOF
24502 rm -f conftest.$ac_objext
24503 if { (ac_try="$ac_compile"
24504 case "(($ac_try" in
24505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506   *) ac_try_echo=$ac_try;;
24507 esac
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509   (eval "$ac_compile") 2>conftest.er1
24510   ac_status=$?
24511   grep -v '^ *+' conftest.er1 >conftest.err
24512   rm -f conftest.er1
24513   cat conftest.err >&5
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); } && {
24516          test -z "$ac_cxx_werror_flag" ||
24517          test ! -s conftest.err
24518        } && test -s conftest.$ac_objext; then
24519   wx_cv_STDC_EXT_required=no
24520 else
24521   echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24523
24524         wx_cv_STDC_EXT_required=yes
24525
24526 fi
24527
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529                 ac_ext=c
24530 ac_cpp='$CPP $CPPFLAGS'
24531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24534
24535
24536
24537 fi
24538 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24539 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24540         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24541             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24542         fi
24543     fi
24544 fi
24545
24546 ac_ext=cpp
24547 ac_cpp='$CXXCPP $CPPFLAGS'
24548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24551
24552 old_CPPFLAGS="$CPPFLAGS"
24553 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24554 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24555 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24556 if test "${ac_cv_sys_largefile_source+set}" = set; then
24557   echo $ECHO_N "(cached) $ECHO_C" >&6
24558 else
24559   while :; do
24560   cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566 #include <sys/types.h> /* for off_t */
24567      #include <stdio.h>
24568 int
24569 main ()
24570 {
24571 int (*fp) (FILE *, off_t, int) = fseeko;
24572      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24573   ;
24574   return 0;
24575 }
24576 _ACEOF
24577 rm -f conftest.$ac_objext conftest$ac_exeext
24578 if { (ac_try="$ac_link"
24579 case "(($ac_try" in
24580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581   *) ac_try_echo=$ac_try;;
24582 esac
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584   (eval "$ac_link") 2>conftest.er1
24585   ac_status=$?
24586   grep -v '^ *+' conftest.er1 >conftest.err
24587   rm -f conftest.er1
24588   cat conftest.err >&5
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); } && {
24591          test -z "$ac_cxx_werror_flag" ||
24592          test ! -s conftest.err
24593        } && test -s conftest$ac_exeext &&
24594        $as_test_x conftest$ac_exeext; then
24595   ac_cv_sys_largefile_source=no; break
24596 else
24597   echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600
24601 fi
24602
24603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24604       conftest$ac_exeext conftest.$ac_ext
24605   cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h.  */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h.  */
24611 #define _LARGEFILE_SOURCE 1
24612 #include <sys/types.h> /* for off_t */
24613      #include <stdio.h>
24614 int
24615 main ()
24616 {
24617 int (*fp) (FILE *, off_t, int) = fseeko;
24618      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24619   ;
24620   return 0;
24621 }
24622 _ACEOF
24623 rm -f conftest.$ac_objext conftest$ac_exeext
24624 if { (ac_try="$ac_link"
24625 case "(($ac_try" in
24626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627   *) ac_try_echo=$ac_try;;
24628 esac
24629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630   (eval "$ac_link") 2>conftest.er1
24631   ac_status=$?
24632   grep -v '^ *+' conftest.er1 >conftest.err
24633   rm -f conftest.er1
24634   cat conftest.err >&5
24635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636   (exit $ac_status); } && {
24637          test -z "$ac_cxx_werror_flag" ||
24638          test ! -s conftest.err
24639        } && test -s conftest$ac_exeext &&
24640        $as_test_x conftest$ac_exeext; then
24641   ac_cv_sys_largefile_source=1; break
24642 else
24643   echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646
24647 fi
24648
24649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24650       conftest$ac_exeext conftest.$ac_ext
24651   ac_cv_sys_largefile_source=unknown
24652   break
24653 done
24654 fi
24655 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24656 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
24657 case $ac_cv_sys_largefile_source in #(
24658   no | unknown) ;;
24659   *)
24660 cat >>confdefs.h <<_ACEOF
24661 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24662 _ACEOF
24663 ;;
24664 esac
24665 rm -f conftest*
24666
24667 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24668 # in glibc 2.1.3, but that breaks too many other things.
24669 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24670 if test $ac_cv_sys_largefile_source != unknown; then
24671
24672 cat >>confdefs.h <<\_ACEOF
24673 #define HAVE_FSEEKO 1
24674 _ACEOF
24675
24676 fi
24677
24678 CPPFLAGS="$old_CPPFLAGS"
24679 ac_ext=c
24680 ac_cpp='$CPP $CPPFLAGS'
24681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24684
24685 if test "$ac_cv_sys_largefile_source" != no; then
24686     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24687 fi
24688
24689 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24690 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24691 if test "${ac_cv_c_bigendian+set}" = set; then
24692   echo $ECHO_N "(cached) $ECHO_C" >&6
24693 else
24694   ac_cv_c_bigendian=unknown
24695 # See if sys/param.h defines the BYTE_ORDER macro.
24696 cat >conftest.$ac_ext <<_ACEOF
24697 /* confdefs.h.  */
24698 _ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h.  */
24702 #include <sys/types.h>
24703 #include <sys/param.h>
24704 int
24705 main ()
24706 {
24707
24708 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24709  bogus endian macros
24710 #endif
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest.$ac_objext
24716 if { (ac_try="$ac_compile"
24717 case "(($ac_try" in
24718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719   *) ac_try_echo=$ac_try;;
24720 esac
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722   (eval "$ac_compile") 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } && {
24729          test -z "$ac_c_werror_flag" ||
24730          test ! -s conftest.err
24731        } && test -s conftest.$ac_objext; then
24732   # It does; now see whether it defined to BIG_ENDIAN or not.
24733 cat >conftest.$ac_ext <<_ACEOF
24734 /* confdefs.h.  */
24735 _ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h.  */
24739 #include <sys/types.h>
24740 #include <sys/param.h>
24741 int
24742 main ()
24743 {
24744
24745 #if BYTE_ORDER != BIG_ENDIAN
24746  not big endian
24747 #endif
24748   ;
24749   return 0;
24750 }
24751 _ACEOF
24752 rm -f conftest.$ac_objext
24753 if { (ac_try="$ac_compile"
24754 case "(($ac_try" in
24755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756   *) ac_try_echo=$ac_try;;
24757 esac
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759   (eval "$ac_compile") 2>conftest.er1
24760   ac_status=$?
24761   grep -v '^ *+' conftest.er1 >conftest.err
24762   rm -f conftest.er1
24763   cat conftest.err >&5
24764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); } && {
24766          test -z "$ac_c_werror_flag" ||
24767          test ! -s conftest.err
24768        } && test -s conftest.$ac_objext; then
24769   ac_cv_c_bigendian=yes
24770 else
24771   echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24773
24774         ac_cv_c_bigendian=no
24775 fi
24776
24777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24778 else
24779   echo "$as_me: failed program was:" >&5
24780 sed 's/^/| /' conftest.$ac_ext >&5
24781
24782
24783 fi
24784
24785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24786 if test $ac_cv_c_bigendian = unknown; then
24787 if test "$cross_compiling" = yes; then
24788   ac_cv_c_bigendian=unknown
24789 else
24790   cat >conftest.$ac_ext <<_ACEOF
24791 /* confdefs.h.  */
24792 _ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h.  */
24796 main () {
24797   /* Are we little or big endian?  From Harbison&Steele.  */
24798   union
24799   {
24800     long l;
24801     char c[sizeof (long)];
24802   } u;
24803   u.l = 1;
24804   exit (u.c[sizeof (long) - 1] == 1);
24805 }
24806 _ACEOF
24807 rm -f conftest$ac_exeext
24808 if { (ac_try="$ac_link"
24809 case "(($ac_try" in
24810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811   *) ac_try_echo=$ac_try;;
24812 esac
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814   (eval "$ac_link") 2>&5
24815   ac_status=$?
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24818   { (case "(($ac_try" in
24819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820   *) ac_try_echo=$ac_try;;
24821 esac
24822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24823   (eval "$ac_try") 2>&5
24824   ac_status=$?
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); }; }; then
24827   ac_cv_c_bigendian=no
24828 else
24829   echo "$as_me: program exited with status $ac_status" >&5
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833 ( exit $ac_status )
24834 ac_cv_c_bigendian=yes
24835 fi
24836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24837 fi
24838
24839
24840 fi
24841 fi
24842 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24843 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24844 if test $ac_cv_c_bigendian = unknown; then
24845   { 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
24846 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;}
24847 fi
24848 if test $ac_cv_c_bigendian = yes; then
24849   cat >>confdefs.h <<\_ACEOF
24850 #define WORDS_BIGENDIAN 1
24851 _ACEOF
24852
24853 fi
24854
24855
24856
24857
24858     ac_ext=cpp
24859 ac_cpp='$CXXCPP $CPPFLAGS'
24860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24863
24864
24865
24866 for ac_header in iostream
24867 do
24868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24872   echo $ECHO_N "(cached) $ECHO_C" >&6
24873 else
24874   cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h.  */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h.  */
24880
24881
24882 #include <$ac_header>
24883 _ACEOF
24884 rm -f conftest.$ac_objext
24885 if { (ac_try="$ac_compile"
24886 case "(($ac_try" in
24887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888   *) ac_try_echo=$ac_try;;
24889 esac
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891   (eval "$ac_compile") 2>conftest.er1
24892   ac_status=$?
24893   grep -v '^ *+' conftest.er1 >conftest.err
24894   rm -f conftest.er1
24895   cat conftest.err >&5
24896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897   (exit $ac_status); } && {
24898          test -z "$ac_cxx_werror_flag" ||
24899          test ! -s conftest.err
24900        } && test -s conftest.$ac_objext; then
24901   eval "$as_ac_Header=yes"
24902 else
24903   echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24905
24906         eval "$as_ac_Header=no"
24907 fi
24908
24909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24910 fi
24911 ac_res=`eval echo '${'$as_ac_Header'}'`
24912                { echo "$as_me:$LINENO: result: $ac_res" >&5
24913 echo "${ECHO_T}$ac_res" >&6; }
24914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24915   cat >>confdefs.h <<_ACEOF
24916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24917 _ACEOF
24918
24919 fi
24920
24921 done
24922
24923
24924     if test "$ac_cv_header_iostream" = "yes" ; then
24925       :
24926     else
24927       cat >>confdefs.h <<\_ACEOF
24928 #define wxUSE_IOSTREAMH 1
24929 _ACEOF
24930
24931     fi
24932
24933     ac_ext=c
24934 ac_cpp='$CPP $CPPFLAGS'
24935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24938
24939
24940
24941
24942   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24943 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24944 if test "${wx_cv_explicit+set}" = set; then
24945   echo $ECHO_N "(cached) $ECHO_C" >&6
24946 else
24947
24948
24949     ac_ext=cpp
24950 ac_cpp='$CXXCPP $CPPFLAGS'
24951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24954
24955
24956             cat >conftest.$ac_ext <<_ACEOF
24957 /* confdefs.h.  */
24958 _ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h.  */
24962
24963         class Foo { public: explicit Foo(int) {} };
24964
24965 int
24966 main ()
24967 {
24968
24969         return 0;
24970
24971   ;
24972   return 0;
24973 }
24974 _ACEOF
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979   *) ac_try_echo=$ac_try;;
24980 esac
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982   (eval "$ac_compile") 2>conftest.er1
24983   ac_status=$?
24984   grep -v '^ *+' conftest.er1 >conftest.err
24985   rm -f conftest.er1
24986   cat conftest.err >&5
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); } && {
24989          test -z "$ac_cxx_werror_flag" ||
24990          test ! -s conftest.err
24991        } && test -s conftest.$ac_objext; then
24992
24993         cat >conftest.$ac_ext <<_ACEOF
24994 /* confdefs.h.  */
24995 _ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h.  */
24999
25000                 class Foo { public: explicit Foo(int) {} };
25001                 static void TakeFoo(const Foo& foo) { }
25002
25003 int
25004 main ()
25005 {
25006
25007                 TakeFoo(17);
25008                 return 0;
25009
25010   ;
25011   return 0;
25012 }
25013 _ACEOF
25014 rm -f conftest.$ac_objext
25015 if { (ac_try="$ac_compile"
25016 case "(($ac_try" in
25017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018   *) ac_try_echo=$ac_try;;
25019 esac
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021   (eval "$ac_compile") 2>conftest.er1
25022   ac_status=$?
25023   grep -v '^ *+' conftest.er1 >conftest.err
25024   rm -f conftest.er1
25025   cat conftest.err >&5
25026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027   (exit $ac_status); } && {
25028          test -z "$ac_cxx_werror_flag" ||
25029          test ! -s conftest.err
25030        } && test -s conftest.$ac_objext; then
25031   wx_cv_explicit=no
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036         wx_cv_explicit=yes
25037
25038 fi
25039
25040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25041
25042 else
25043   echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25045
25046         wx_cv_explicit=no
25047
25048 fi
25049
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051
25052     ac_ext=c
25053 ac_cpp='$CPP $CPPFLAGS'
25054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25057
25058
25059 fi
25060 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25061 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25062
25063   if test "$wx_cv_explicit" = "yes"; then
25064     cat >>confdefs.h <<\_ACEOF
25065 #define HAVE_EXPLICIT 1
25066 _ACEOF
25067
25068   fi
25069
25070
25071 if test "x$SUNCXX" = xyes; then
25072     CXXFLAGS="-features=tmplife $CXXFLAGS"
25073 fi
25074
25075 if test "x$SUNCC" = xyes; then
25076     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25077 fi
25078
25079 if test "x$SGICC" = "xyes"; then
25080     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25081 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25082 if test "${wx_cv_prog_sgicc744+set}" = set; then
25083   echo $ECHO_N "(cached) $ECHO_C" >&6
25084 else
25085
25086             cat >conftest.$ac_ext <<_ACEOF
25087 /* confdefs.h.  */
25088 _ACEOF
25089 cat confdefs.h >>conftest.$ac_ext
25090 cat >>conftest.$ac_ext <<_ACEOF
25091 /* end confdefs.h.  */
25092
25093 int
25094 main ()
25095 {
25096
25097                     #if _SGI_COMPILER_VERSION >= 744
25098                     chock me: mipsPro is 7.4.4 or later
25099                     #endif
25100
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest.$ac_objext
25106 if { (ac_try="$ac_compile"
25107 case "(($ac_try" in
25108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109   *) ac_try_echo=$ac_try;;
25110 esac
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112   (eval "$ac_compile") 2>conftest.er1
25113   ac_status=$?
25114   grep -v '^ *+' conftest.er1 >conftest.err
25115   rm -f conftest.er1
25116   cat conftest.err >&5
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); } && {
25119          test -z "$ac_c_werror_flag" ||
25120          test ! -s conftest.err
25121        } && test -s conftest.$ac_objext; then
25122   wx_cv_prog_sgicc744=no
25123 else
25124   echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25126
25127         wx_cv_prog_sgicc744=yes
25128
25129 fi
25130
25131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25132
25133
25134 fi
25135 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25136 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25137
25138     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25139         CFLAGS="-woff 3970 $CFLAGS"
25140     fi
25141 fi
25142 if test "x$SGICXX" = "xyes"; then
25143     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25144 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25145 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25146   echo $ECHO_N "(cached) $ECHO_C" >&6
25147 else
25148
25149             ac_ext=cpp
25150 ac_cpp='$CXXCPP $CPPFLAGS'
25151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25154
25155             cat >conftest.$ac_ext <<_ACEOF
25156 /* confdefs.h.  */
25157 _ACEOF
25158 cat confdefs.h >>conftest.$ac_ext
25159 cat >>conftest.$ac_ext <<_ACEOF
25160 /* end confdefs.h.  */
25161
25162 int
25163 main ()
25164 {
25165
25166                     #if _SGI_COMPILER_VERSION >= 744
25167                     chock me: mipsPro is 7.4.4 or later
25168                     #endif
25169
25170   ;
25171   return 0;
25172 }
25173 _ACEOF
25174 rm -f conftest.$ac_objext
25175 if { (ac_try="$ac_compile"
25176 case "(($ac_try" in
25177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178   *) ac_try_echo=$ac_try;;
25179 esac
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181   (eval "$ac_compile") 2>conftest.er1
25182   ac_status=$?
25183   grep -v '^ *+' conftest.er1 >conftest.err
25184   rm -f conftest.er1
25185   cat conftest.err >&5
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); } && {
25188          test -z "$ac_cxx_werror_flag" ||
25189          test ! -s conftest.err
25190        } && test -s conftest.$ac_objext; then
25191   wx_cv_prog_sgicxx744=no
25192 else
25193   echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25195
25196         wx_cv_prog_sgicxx744=yes
25197
25198 fi
25199
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201             ac_ext=c
25202 ac_cpp='$CPP $CPPFLAGS'
25203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25206
25207
25208
25209 fi
25210 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25211 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25212
25213     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25214         CXXFLAGS="-woff 3970 $CXXFLAGS"
25215     fi
25216 fi
25217
25218 if test "x$HPCC" = "xyes"; then
25219                     CFLAGS="+W 2011,2450 $CFLAGS"
25220 fi
25221 if test "x$HPCXX" = "xyes"; then
25222                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25223 fi
25224
25225 if test "x$COMPAQCXX" = "xyes"; then
25226                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25227 fi
25228
25229 ac_ext=cpp
25230 ac_cpp='$CXXCPP $CPPFLAGS'
25231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25234
25235
25236 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25237     if test "$wxUSE_UNICODE" = "yes"; then
25238         std_string="std::wstring"
25239         char_type="wchar_t"
25240     else
25241         std_string="std::string"
25242         char_type="char"
25243     fi
25244
25245         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25246 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25247 if test "${wx_cv_class_stdstring+set}" = set; then
25248   echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250
25251             cat >conftest.$ac_ext <<_ACEOF
25252 /* confdefs.h.  */
25253 _ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h.  */
25257 #include <string>
25258 int
25259 main ()
25260 {
25261 $std_string foo;
25262   ;
25263   return 0;
25264 }
25265 _ACEOF
25266 rm -f conftest.$ac_objext
25267 if { (ac_try="$ac_compile"
25268 case "(($ac_try" in
25269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25270   *) ac_try_echo=$ac_try;;
25271 esac
25272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25273   (eval "$ac_compile") 2>conftest.er1
25274   ac_status=$?
25275   grep -v '^ *+' conftest.er1 >conftest.err
25276   rm -f conftest.er1
25277   cat conftest.err >&5
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); } && {
25280          test -z "$ac_cxx_werror_flag" ||
25281          test ! -s conftest.err
25282        } && test -s conftest.$ac_objext; then
25283   wx_cv_class_stdstring=yes
25284 else
25285   echo "$as_me: failed program was:" >&5
25286 sed 's/^/| /' conftest.$ac_ext >&5
25287
25288         wx_cv_class_stdstring=no
25289
25290 fi
25291
25292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25293
25294
25295 fi
25296 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25297 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25298
25299     if test "$wx_cv_class_stdstring" = yes; then
25300         if test "$wxUSE_UNICODE" = "yes"; then
25301             cat >>confdefs.h <<\_ACEOF
25302 #define HAVE_STD_WSTRING 1
25303 _ACEOF
25304
25305         fi
25306                     else
25307         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25308 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25309 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25310   echo $ECHO_N "(cached) $ECHO_C" >&6
25311 else
25312
25313                 cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h.  */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h.  */
25319
25320                     #ifdef HAVE_WCHAR_H
25321                     #  ifdef __CYGWIN__
25322                     #    include <stddef.h>
25323                     #  endif
25324                     #  include <wchar.h>
25325                     #endif
25326                     #ifdef HAVE_STDLIB_H
25327                     #  include <stdlib.h>
25328                     #endif
25329                     #include <stdio.h>
25330                     #include <string>
25331
25332 int
25333 main ()
25334 {
25335 std::basic_string<$char_type> foo;
25336                      const $char_type* dummy = foo.c_str();
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext
25342 if { (ac_try="$ac_compile"
25343 case "(($ac_try" in
25344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345   *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348   (eval "$ac_compile") 2>conftest.er1
25349   ac_status=$?
25350   grep -v '^ *+' conftest.er1 >conftest.err
25351   rm -f conftest.er1
25352   cat conftest.err >&5
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); } && {
25355          test -z "$ac_cxx_werror_flag" ||
25356          test ! -s conftest.err
25357        } && test -s conftest.$ac_objext; then
25358   wx_cv_class_stdbasicstring=yes
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363         wx_cv_class_stdbasicstring=no
25364
25365 fi
25366
25367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25368
25369
25370 fi
25371 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25372 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25373
25374         if test "$wx_cv_class_stdbasicstring" != yes; then
25375             if test "$wxUSE_STL" = "yes"; then
25376                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25377 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25378    { (exit 1); exit 1; }; }
25379             elif test "$wxUSE_STD_STRING" = "yes"; then
25380                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25381 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25382    { (exit 1); exit 1; }; }
25383             else
25384                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25385 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25386                 wxUSE_STD_STRING=no
25387             fi
25388         fi
25389     fi
25390 fi
25391
25392 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25393     { echo "$as_me:$LINENO: checking for std::istream" >&5
25394 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25395 if test "${ac_cv_type_std__istream+set}" = set; then
25396   echo $ECHO_N "(cached) $ECHO_C" >&6
25397 else
25398   cat >conftest.$ac_ext <<_ACEOF
25399 /* confdefs.h.  */
25400 _ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h.  */
25404 #include <iostream>
25405
25406 typedef std::istream ac__type_new_;
25407 int
25408 main ()
25409 {
25410 if ((ac__type_new_ *) 0)
25411   return 0;
25412 if (sizeof (ac__type_new_))
25413   return 0;
25414   ;
25415   return 0;
25416 }
25417 _ACEOF
25418 rm -f conftest.$ac_objext
25419 if { (ac_try="$ac_compile"
25420 case "(($ac_try" in
25421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422   *) ac_try_echo=$ac_try;;
25423 esac
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425   (eval "$ac_compile") 2>conftest.er1
25426   ac_status=$?
25427   grep -v '^ *+' conftest.er1 >conftest.err
25428   rm -f conftest.er1
25429   cat conftest.err >&5
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); } && {
25432          test -z "$ac_cxx_werror_flag" ||
25433          test ! -s conftest.err
25434        } && test -s conftest.$ac_objext; then
25435   ac_cv_type_std__istream=yes
25436 else
25437   echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25439
25440         ac_cv_type_std__istream=no
25441 fi
25442
25443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25444 fi
25445 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25446 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25447 if test $ac_cv_type_std__istream = yes; then
25448
25449 cat >>confdefs.h <<_ACEOF
25450 #define HAVE_STD__ISTREAM 1
25451 _ACEOF
25452
25453
25454 else
25455   wxUSE_STD_IOSTREAM=no
25456 fi
25457 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25458 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25459 if test "${ac_cv_type_std__ostream+set}" = set; then
25460   echo $ECHO_N "(cached) $ECHO_C" >&6
25461 else
25462   cat >conftest.$ac_ext <<_ACEOF
25463 /* confdefs.h.  */
25464 _ACEOF
25465 cat confdefs.h >>conftest.$ac_ext
25466 cat >>conftest.$ac_ext <<_ACEOF
25467 /* end confdefs.h.  */
25468 #include <iostream>
25469
25470 typedef std::ostream ac__type_new_;
25471 int
25472 main ()
25473 {
25474 if ((ac__type_new_ *) 0)
25475   return 0;
25476 if (sizeof (ac__type_new_))
25477   return 0;
25478   ;
25479   return 0;
25480 }
25481 _ACEOF
25482 rm -f conftest.$ac_objext
25483 if { (ac_try="$ac_compile"
25484 case "(($ac_try" in
25485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486   *) ac_try_echo=$ac_try;;
25487 esac
25488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25489   (eval "$ac_compile") 2>conftest.er1
25490   ac_status=$?
25491   grep -v '^ *+' conftest.er1 >conftest.err
25492   rm -f conftest.er1
25493   cat conftest.err >&5
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); } && {
25496          test -z "$ac_cxx_werror_flag" ||
25497          test ! -s conftest.err
25498        } && test -s conftest.$ac_objext; then
25499   ac_cv_type_std__ostream=yes
25500 else
25501   echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504         ac_cv_type_std__ostream=no
25505 fi
25506
25507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508 fi
25509 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25510 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25511 if test $ac_cv_type_std__ostream = yes; then
25512
25513 cat >>confdefs.h <<_ACEOF
25514 #define HAVE_STD__OSTREAM 1
25515 _ACEOF
25516
25517
25518 else
25519   wxUSE_STD_IOSTREAM=no
25520 fi
25521
25522
25523     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25524         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25525             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25526 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25527    { (exit 1); exit 1; }; }
25528         else
25529             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25530 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25531         fi
25532     fi
25533 fi
25534
25535 if test "$wxUSE_STL" = "yes"; then
25536         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25537 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25538 if test "${wx_cv_lib_stl+set}" = set; then
25539   echo $ECHO_N "(cached) $ECHO_C" >&6
25540 else
25541   cat >conftest.$ac_ext <<_ACEOF
25542 /* confdefs.h.  */
25543 _ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h.  */
25547 #include <string>
25548             #include <functional>
25549             #include <algorithm>
25550             #include <vector>
25551             #include <list>
25552 int
25553 main ()
25554 {
25555 std::vector<int> moo;
25556              std::list<int> foo;
25557              std::vector<int>::iterator it =
25558                  std::find_if(moo.begin(), moo.end(),
25559                               std::bind2nd(std::less<int>(), 3));
25560   ;
25561   return 0;
25562 }
25563 _ACEOF
25564 rm -f conftest.$ac_objext
25565 if { (ac_try="$ac_compile"
25566 case "(($ac_try" in
25567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25568   *) ac_try_echo=$ac_try;;
25569 esac
25570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25571   (eval "$ac_compile") 2>conftest.er1
25572   ac_status=$?
25573   grep -v '^ *+' conftest.er1 >conftest.err
25574   rm -f conftest.er1
25575   cat conftest.err >&5
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); } && {
25578          test -z "$ac_cxx_werror_flag" ||
25579          test ! -s conftest.err
25580        } && test -s conftest.$ac_objext; then
25581   wx_cv_lib_stl=yes
25582 else
25583   echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.$ac_ext >&5
25585
25586         wx_cv_lib_stl=no
25587
25588 fi
25589
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591
25592 fi
25593 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25594 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
25595
25596     if test "$wx_cv_lib_stl" != yes; then
25597          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25598 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25599    { (exit 1); exit 1; }; }
25600     fi
25601
25602         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25603 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
25604 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25605   echo $ECHO_N "(cached) $ECHO_C" >&6
25606 else
25607   cat >conftest.$ac_ext <<_ACEOF
25608 /* confdefs.h.  */
25609 _ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h.  */
25613 #include <string>
25614 int
25615 main ()
25616 {
25617 std::string foo, bar;
25618             foo.compare(bar);
25619             foo.compare(1, 1, bar);
25620             foo.compare(1, 1, bar, 1, 1);
25621             foo.compare("");
25622             foo.compare(1, 1, "");
25623             foo.compare(1, 1, "", 2);
25624   ;
25625   return 0;
25626 }
25627 _ACEOF
25628 rm -f conftest.$ac_objext
25629 if { (ac_try="$ac_compile"
25630 case "(($ac_try" in
25631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632   *) ac_try_echo=$ac_try;;
25633 esac
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635   (eval "$ac_compile") 2>conftest.er1
25636   ac_status=$?
25637   grep -v '^ *+' conftest.er1 >conftest.err
25638   rm -f conftest.er1
25639   cat conftest.err >&5
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); } && {
25642          test -z "$ac_cxx_werror_flag" ||
25643          test ! -s conftest.err
25644        } && test -s conftest.$ac_objext; then
25645   wx_cv_func_stdstring_compare=yes
25646 else
25647   echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650         wx_cv_func_stdstring_compare=no
25651
25652 fi
25653
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655
25656 fi
25657 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25658 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
25659
25660     if test "$wx_cv_func_stdstring_compare" = yes; then
25661         cat >>confdefs.h <<\_ACEOF
25662 #define HAVE_STD_STRING_COMPARE 1
25663 _ACEOF
25664
25665     fi
25666
25667     if test "$wx_cv_class_gnuhashmapset" = yes; then
25668          cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_EXT_HASH_MAP 1
25670 _ACEOF
25671
25672          cat >>confdefs.h <<\_ACEOF
25673 #define HAVE_GNU_CXX_HASH_MAP 1
25674 _ACEOF
25675
25676     fi
25677
25678     { echo "$as_me:$LINENO: checking for unordered_map" >&5
25679 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
25680 if test "${ac_cv_header_unordered_map+set}" = set; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 else
25683   cat >conftest.$ac_ext <<_ACEOF
25684 /* confdefs.h.  */
25685 _ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h.  */
25689
25690
25691
25692 #include <unordered_map>
25693 _ACEOF
25694 rm -f conftest.$ac_objext
25695 if { (ac_try="$ac_compile"
25696 case "(($ac_try" in
25697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698   *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701   (eval "$ac_compile") 2>conftest.er1
25702   ac_status=$?
25703   grep -v '^ *+' conftest.er1 >conftest.err
25704   rm -f conftest.er1
25705   cat conftest.err >&5
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); } && {
25708          test -z "$ac_cxx_werror_flag" ||
25709          test ! -s conftest.err
25710        } && test -s conftest.$ac_objext; then
25711   ac_cv_header_unordered_map=yes
25712 else
25713   echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25715
25716         ac_cv_header_unordered_map=no
25717 fi
25718
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25720 fi
25721 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
25722 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
25723 if test $ac_cv_header_unordered_map = yes; then
25724   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
25725 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
25726 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
25727   echo $ECHO_N "(cached) $ECHO_C" >&6
25728 else
25729   cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 #include <unordered_map>
25736                 #include <unordered_set>
25737 int
25738 main ()
25739 {
25740 std::unordered_map<double*, char*> test1;
25741                  std::unordered_set<char*> test2;
25742   ;
25743   return 0;
25744 }
25745 _ACEOF
25746 rm -f conftest.$ac_objext
25747 if { (ac_try="$ac_compile"
25748 case "(($ac_try" in
25749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750   *) ac_try_echo=$ac_try;;
25751 esac
25752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753   (eval "$ac_compile") 2>conftest.er1
25754   ac_status=$?
25755   grep -v '^ *+' conftest.er1 >conftest.err
25756   rm -f conftest.er1
25757   cat conftest.err >&5
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); } && {
25760          test -z "$ac_cxx_werror_flag" ||
25761          test ! -s conftest.err
25762        } && test -s conftest.$ac_objext; then
25763   wx_cv_class_stdunorderedmapset=yes
25764 else
25765   echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25767
25768         wx_cv_class_stdunorderedmapset=no
25769 fi
25770
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25772
25773
25774 fi
25775 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
25776 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
25777 fi
25778
25779
25780
25781     if test "$wx_cv_class_stdunorderedmapset" = yes; then
25782          cat >>confdefs.h <<\_ACEOF
25783 #define HAVE_STD_UNORDERED_MAP 1
25784 _ACEOF
25785
25786          cat >>confdefs.h <<\_ACEOF
25787 #define HAVE_STD_UNORDERED_SET 1
25788 _ACEOF
25789
25790     else
25791         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
25792 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
25793 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
25794   echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
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
25804
25805 #include <tr1/unordered_map>
25806 _ACEOF
25807 rm -f conftest.$ac_objext
25808 if { (ac_try="$ac_compile"
25809 case "(($ac_try" in
25810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811   *) ac_try_echo=$ac_try;;
25812 esac
25813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814   (eval "$ac_compile") 2>conftest.er1
25815   ac_status=$?
25816   grep -v '^ *+' conftest.er1 >conftest.err
25817   rm -f conftest.er1
25818   cat conftest.err >&5
25819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820   (exit $ac_status); } && {
25821          test -z "$ac_cxx_werror_flag" ||
25822          test ! -s conftest.err
25823        } && test -s conftest.$ac_objext; then
25824   ac_cv_header_tr1_unordered_map=yes
25825 else
25826   echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25828
25829         ac_cv_header_tr1_unordered_map=no
25830 fi
25831
25832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25833 fi
25834 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25835 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
25836 if test $ac_cv_header_tr1_unordered_map = yes; then
25837   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25838 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
25839 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
25840   echo $ECHO_N "(cached) $ECHO_C" >&6
25841 else
25842   cat >conftest.$ac_ext <<_ACEOF
25843 /* confdefs.h.  */
25844 _ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h.  */
25848 #include <tr1/unordered_map>
25849                     #include <tr1/unordered_set>
25850 int
25851 main ()
25852 {
25853 std::tr1::unordered_map<double*, char*> test1;
25854                      std::tr1::unordered_set<char*> test2;
25855             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25856             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25857             #endif
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869   (eval "$ac_compile") 2>conftest.er1
25870   ac_status=$?
25871   grep -v '^ *+' conftest.er1 >conftest.err
25872   rm -f conftest.er1
25873   cat conftest.err >&5
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); } && {
25876          test -z "$ac_cxx_werror_flag" ||
25877          test ! -s conftest.err
25878        } && test -s conftest.$ac_objext; then
25879   wx_cv_class_tr1unorderedmapset=yes
25880 else
25881   echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25883
25884         wx_cv_class_tr1unorderedmapset=no
25885 fi
25886
25887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25888
25889
25890 fi
25891 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25892 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25893 fi
25894
25895
25896
25897         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25898             cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_TR1_UNORDERED_MAP 1
25900 _ACEOF
25901
25902             cat >>confdefs.h <<\_ACEOF
25903 #define HAVE_TR1_UNORDERED_SET 1
25904 _ACEOF
25905
25906         else
25907                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25908 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25909 if test "${ac_cv_header_hash_map+set}" = set; then
25910   echo $ECHO_N "(cached) $ECHO_C" >&6
25911 else
25912   cat >conftest.$ac_ext <<_ACEOF
25913 /* confdefs.h.  */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h.  */
25918
25919
25920
25921 #include <hash_map>
25922 _ACEOF
25923 rm -f conftest.$ac_objext
25924 if { (ac_try="$ac_compile"
25925 case "(($ac_try" in
25926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927   *) ac_try_echo=$ac_try;;
25928 esac
25929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25930   (eval "$ac_compile") 2>conftest.er1
25931   ac_status=$?
25932   grep -v '^ *+' conftest.er1 >conftest.err
25933   rm -f conftest.er1
25934   cat conftest.err >&5
25935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936   (exit $ac_status); } && {
25937          test -z "$ac_cxx_werror_flag" ||
25938          test ! -s conftest.err
25939        } && test -s conftest.$ac_objext; then
25940   ac_cv_header_hash_map=yes
25941 else
25942   echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25944
25945         ac_cv_header_hash_map=no
25946 fi
25947
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 fi
25950 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25951 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25952 if test $ac_cv_header_hash_map = yes; then
25953   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25954 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25955 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25956   echo $ECHO_N "(cached) $ECHO_C" >&6
25957 else
25958   cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964 #include <hash_map>
25965                         #include <hash_set>
25966 int
25967 main ()
25968 {
25969 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25970                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 rm -f conftest.$ac_objext
25976 if { (ac_try="$ac_compile"
25977 case "(($ac_try" in
25978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979   *) ac_try_echo=$ac_try;;
25980 esac
25981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25982   (eval "$ac_compile") 2>conftest.er1
25983   ac_status=$?
25984   grep -v '^ *+' conftest.er1 >conftest.err
25985   rm -f conftest.er1
25986   cat conftest.err >&5
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); } && {
25989          test -z "$ac_cxx_werror_flag" ||
25990          test ! -s conftest.err
25991        } && test -s conftest.$ac_objext; then
25992   wx_cv_class_stdhashmapset=yes
25993 else
25994   echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
25996
25997         wx_cv_class_stdhashmapset=no
25998 fi
25999
26000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26001
26002
26003 fi
26004 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26005 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26006 fi
26007
26008
26009
26010             if test "$wx_cv_class_stdhashmapset" = yes; then
26011                 cat >>confdefs.h <<\_ACEOF
26012 #define HAVE_HASH_MAP 1
26013 _ACEOF
26014
26015                 cat >>confdefs.h <<\_ACEOF
26016 #define HAVE_STD_HASH_MAP 1
26017 _ACEOF
26018
26019             fi
26020
26021             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26022 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26023 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26024   echo $ECHO_N "(cached) $ECHO_C" >&6
26025 else
26026   cat >conftest.$ac_ext <<_ACEOF
26027 /* confdefs.h.  */
26028 _ACEOF
26029 cat confdefs.h >>conftest.$ac_ext
26030 cat >>conftest.$ac_ext <<_ACEOF
26031 /* end confdefs.h.  */
26032
26033
26034
26035 #include <ext/hash_map>
26036 _ACEOF
26037 rm -f conftest.$ac_objext
26038 if { (ac_try="$ac_compile"
26039 case "(($ac_try" in
26040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26041   *) ac_try_echo=$ac_try;;
26042 esac
26043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26044   (eval "$ac_compile") 2>conftest.er1
26045   ac_status=$?
26046   grep -v '^ *+' conftest.er1 >conftest.err
26047   rm -f conftest.er1
26048   cat conftest.err >&5
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); } && {
26051          test -z "$ac_cxx_werror_flag" ||
26052          test ! -s conftest.err
26053        } && test -s conftest.$ac_objext; then
26054   ac_cv_header_ext_hash_map=yes
26055 else
26056   echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26058
26059         ac_cv_header_ext_hash_map=no
26060 fi
26061
26062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26063 fi
26064 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26065 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26066 if test $ac_cv_header_ext_hash_map = yes; then
26067   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26068 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26069 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26070   echo $ECHO_N "(cached) $ECHO_C" >&6
26071 else
26072   cat >conftest.$ac_ext <<_ACEOF
26073 /* confdefs.h.  */
26074 _ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h.  */
26078 #include <ext/hash_map>
26079                         #include <ext/hash_set>
26080 int
26081 main ()
26082 {
26083 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26084                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26085   ;
26086   return 0;
26087 }
26088 _ACEOF
26089 rm -f conftest.$ac_objext
26090 if { (ac_try="$ac_compile"
26091 case "(($ac_try" in
26092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093   *) ac_try_echo=$ac_try;;
26094 esac
26095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26096   (eval "$ac_compile") 2>conftest.er1
26097   ac_status=$?
26098   grep -v '^ *+' conftest.er1 >conftest.err
26099   rm -f conftest.er1
26100   cat conftest.err >&5
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); } && {
26103          test -z "$ac_cxx_werror_flag" ||
26104          test ! -s conftest.err
26105        } && test -s conftest.$ac_objext; then
26106   wx_cv_class_gnuhashmapset=yes
26107 else
26108   echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26110
26111         wx_cv_class_gnuhashmapset=no
26112 fi
26113
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115
26116
26117 fi
26118 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26119 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26120 fi
26121
26122
26123
26124         fi
26125     fi
26126 fi
26127
26128 ac_ext=cpp
26129 ac_cpp='$CXXCPP $CPPFLAGS'
26130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26133 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26134 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26135 if test -z "$CXXCPP"; then
26136   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26137   echo $ECHO_N "(cached) $ECHO_C" >&6
26138 else
26139       # Double quotes because CXXCPP needs to be expanded
26140     for CXXCPP in "$CXX -E" "/lib/cpp"
26141     do
26142       ac_preproc_ok=false
26143 for ac_cxx_preproc_warn_flag in '' yes
26144 do
26145   # Use a header file that comes with gcc, so configuring glibc
26146   # with a fresh cross-compiler works.
26147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26148   # <limits.h> exists even on freestanding compilers.
26149   # On the NeXT, cc -E runs the code through the compiler's parser,
26150   # not just through cpp. "Syntax error" is here to catch this case.
26151   cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157 #ifdef __STDC__
26158 # include <limits.h>
26159 #else
26160 # include <assert.h>
26161 #endif
26162                      Syntax error
26163 _ACEOF
26164 if { (ac_try="$ac_cpp conftest.$ac_ext"
26165 case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } >/dev/null && {
26177          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26178          test ! -s conftest.err
26179        }; then
26180   :
26181 else
26182   echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185   # Broken: fails on valid input.
26186 continue
26187 fi
26188
26189 rm -f conftest.err conftest.$ac_ext
26190
26191   # OK, works on sane cases.  Now check whether nonexistent headers
26192   # can be detected and how.
26193   cat >conftest.$ac_ext <<_ACEOF
26194 /* confdefs.h.  */
26195 _ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h.  */
26199 #include <ac_nonexistent.h>
26200 _ACEOF
26201 if { (ac_try="$ac_cpp conftest.$ac_ext"
26202 case "(($ac_try" in
26203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204   *) ac_try_echo=$ac_try;;
26205 esac
26206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26208   ac_status=$?
26209   grep -v '^ *+' conftest.er1 >conftest.err
26210   rm -f conftest.er1
26211   cat conftest.err >&5
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); } >/dev/null && {
26214          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26215          test ! -s conftest.err
26216        }; then
26217   # Broken: success on invalid input.
26218 continue
26219 else
26220   echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26222
26223   # Passes both tests.
26224 ac_preproc_ok=:
26225 break
26226 fi
26227
26228 rm -f conftest.err conftest.$ac_ext
26229
26230 done
26231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26232 rm -f conftest.err conftest.$ac_ext
26233 if $ac_preproc_ok; then
26234   break
26235 fi
26236
26237     done
26238     ac_cv_prog_CXXCPP=$CXXCPP
26239
26240 fi
26241   CXXCPP=$ac_cv_prog_CXXCPP
26242 else
26243   ac_cv_prog_CXXCPP=$CXXCPP
26244 fi
26245 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26246 echo "${ECHO_T}$CXXCPP" >&6; }
26247 ac_preproc_ok=false
26248 for ac_cxx_preproc_warn_flag in '' yes
26249 do
26250   # Use a header file that comes with gcc, so configuring glibc
26251   # with a fresh cross-compiler works.
26252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26253   # <limits.h> exists even on freestanding compilers.
26254   # On the NeXT, cc -E runs the code through the compiler's parser,
26255   # not just through cpp. "Syntax error" is here to catch this case.
26256   cat >conftest.$ac_ext <<_ACEOF
26257 /* confdefs.h.  */
26258 _ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h.  */
26262 #ifdef __STDC__
26263 # include <limits.h>
26264 #else
26265 # include <assert.h>
26266 #endif
26267                      Syntax error
26268 _ACEOF
26269 if { (ac_try="$ac_cpp conftest.$ac_ext"
26270 case "(($ac_try" in
26271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272   *) ac_try_echo=$ac_try;;
26273 esac
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } >/dev/null && {
26282          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26283          test ! -s conftest.err
26284        }; then
26285   :
26286 else
26287   echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26289
26290   # Broken: fails on valid input.
26291 continue
26292 fi
26293
26294 rm -f conftest.err conftest.$ac_ext
26295
26296   # OK, works on sane cases.  Now check whether nonexistent headers
26297   # can be detected and how.
26298   cat >conftest.$ac_ext <<_ACEOF
26299 /* confdefs.h.  */
26300 _ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h.  */
26304 #include <ac_nonexistent.h>
26305 _ACEOF
26306 if { (ac_try="$ac_cpp conftest.$ac_ext"
26307 case "(($ac_try" in
26308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309   *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26313   ac_status=$?
26314   grep -v '^ *+' conftest.er1 >conftest.err
26315   rm -f conftest.er1
26316   cat conftest.err >&5
26317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318   (exit $ac_status); } >/dev/null && {
26319          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26320          test ! -s conftest.err
26321        }; then
26322   # Broken: success on invalid input.
26323 continue
26324 else
26325   echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26327
26328   # Passes both tests.
26329 ac_preproc_ok=:
26330 break
26331 fi
26332
26333 rm -f conftest.err conftest.$ac_ext
26334
26335 done
26336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26337 rm -f conftest.err conftest.$ac_ext
26338 if $ac_preproc_ok; then
26339   :
26340 else
26341   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26342 See \`config.log' for more details." >&5
26343 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26344 See \`config.log' for more details." >&2;}
26345    { (exit 1); exit 1; }; }
26346 fi
26347
26348 ac_ext=cpp
26349 ac_cpp='$CXXCPP $CPPFLAGS'
26350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26353
26354
26355
26356
26357 for ac_header in type_traits tr1/type_traits
26358 do
26359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26361   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26364   echo $ECHO_N "(cached) $ECHO_C" >&6
26365 fi
26366 ac_res=`eval echo '${'$as_ac_Header'}'`
26367                { echo "$as_me:$LINENO: result: $ac_res" >&5
26368 echo "${ECHO_T}$ac_res" >&6; }
26369 else
26370   # Is the header compilable?
26371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26373 cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379 $ac_includes_default
26380 #include <$ac_header>
26381 _ACEOF
26382 rm -f conftest.$ac_objext
26383 if { (ac_try="$ac_compile"
26384 case "(($ac_try" in
26385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26386   *) ac_try_echo=$ac_try;;
26387 esac
26388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26389   (eval "$ac_compile") 2>conftest.er1
26390   ac_status=$?
26391   grep -v '^ *+' conftest.er1 >conftest.err
26392   rm -f conftest.er1
26393   cat conftest.err >&5
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); } && {
26396          test -z "$ac_cxx_werror_flag" ||
26397          test ! -s conftest.err
26398        } && test -s conftest.$ac_objext; then
26399   ac_header_compiler=yes
26400 else
26401   echo "$as_me: failed program was:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26403
26404         ac_header_compiler=no
26405 fi
26406
26407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26409 echo "${ECHO_T}$ac_header_compiler" >&6; }
26410
26411 # Is the header present?
26412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26414 cat >conftest.$ac_ext <<_ACEOF
26415 /* confdefs.h.  */
26416 _ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h.  */
26420 #include <$ac_header>
26421 _ACEOF
26422 if { (ac_try="$ac_cpp conftest.$ac_ext"
26423 case "(($ac_try" in
26424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425   *) ac_try_echo=$ac_try;;
26426 esac
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26429   ac_status=$?
26430   grep -v '^ *+' conftest.er1 >conftest.err
26431   rm -f conftest.er1
26432   cat conftest.err >&5
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); } >/dev/null && {
26435          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26436          test ! -s conftest.err
26437        }; then
26438   ac_header_preproc=yes
26439 else
26440   echo "$as_me: failed program was:" >&5
26441 sed 's/^/| /' conftest.$ac_ext >&5
26442
26443   ac_header_preproc=no
26444 fi
26445
26446 rm -f conftest.err conftest.$ac_ext
26447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26448 echo "${ECHO_T}$ac_header_preproc" >&6; }
26449
26450 # So?  What about this header?
26451 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26452   yes:no: )
26453     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26457     ac_header_preproc=yes
26458     ;;
26459   no:yes:* )
26460     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26462     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26463 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26464     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26466     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26467 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26470     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26472     ( cat <<\_ASBOX
26473 ## ----------------------------------------- ##
26474 ## Report this to wx-dev@lists.wxwidgets.org ##
26475 ## ----------------------------------------- ##
26476 _ASBOX
26477      ) | sed "s/^/$as_me: WARNING:     /" >&2
26478     ;;
26479 esac
26480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26483   echo $ECHO_N "(cached) $ECHO_C" >&6
26484 else
26485   eval "$as_ac_Header=\$ac_header_preproc"
26486 fi
26487 ac_res=`eval echo '${'$as_ac_Header'}'`
26488                { echo "$as_me:$LINENO: result: $ac_res" >&5
26489 echo "${ECHO_T}$ac_res" >&6; }
26490
26491 fi
26492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26493   cat >>confdefs.h <<_ACEOF
26494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26495 _ACEOF
26496
26497 fi
26498
26499 done
26500
26501
26502
26503
26504   if test -n "$GCC"; then
26505     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26506 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26507     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26508   echo $ECHO_N "(cached) $ECHO_C" >&6
26509 else
26510
26511       cat >conftest.$ac_ext <<_ACEOF
26512 /* confdefs.h.  */
26513 _ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h.  */
26517
26518 int
26519 main ()
26520 {
26521
26522           unsigned int value=0;
26523           /* wxAtomicInc doesn't use return value here */
26524           __sync_fetch_and_add(&value, 2);
26525           __sync_sub_and_fetch(&value, 1);
26526           /* but wxAtomicDec does, so mimic that: */
26527           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
26528
26529   ;
26530   return 0;
26531 }
26532 _ACEOF
26533 rm -f conftest.$ac_objext conftest$ac_exeext
26534 if { (ac_try="$ac_link"
26535 case "(($ac_try" in
26536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537   *) ac_try_echo=$ac_try;;
26538 esac
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540   (eval "$ac_link") 2>conftest.er1
26541   ac_status=$?
26542   grep -v '^ *+' conftest.er1 >conftest.err
26543   rm -f conftest.er1
26544   cat conftest.err >&5
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); } && {
26547          test -z "$ac_cxx_werror_flag" ||
26548          test ! -s conftest.err
26549        } && test -s conftest$ac_exeext &&
26550        $as_test_x conftest$ac_exeext; then
26551   wx_cv_cc_gcc_atomic_builtins=yes
26552 else
26553   echo "$as_me: failed program was:" >&5
26554 sed 's/^/| /' conftest.$ac_ext >&5
26555
26556         wx_cv_cc_gcc_atomic_builtins=no
26557 fi
26558
26559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26560       conftest$ac_exeext conftest.$ac_ext
26561
26562 fi
26563
26564     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
26565 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
26566     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
26567       cat >>confdefs.h <<\_ACEOF
26568 #define HAVE_GCC_ATOMIC_BUILTINS 1
26569 _ACEOF
26570
26571     fi
26572   fi
26573
26574
26575 ac_ext=c
26576 ac_cpp='$CPP $CPPFLAGS'
26577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26580
26581
26582
26583 SEARCH_INCLUDE="\
26584     /usr/local/include        \
26585     /usr/local/X11/include    \
26586     /usr/local/include/X11    \
26587     /usr/local/X11R7/include  \
26588     /usr/local/X11R6/include  \
26589     /usr/local/include/X11R7  \
26590     /usr/local/include/X11R6  \
26591                               \
26592     /usr/Motif-2.1/include    \
26593     /usr/Motif-1.2/include    \
26594     /usr/include/Motif1.2     \
26595                               \
26596     /usr/dt/include           \
26597     /usr/openwin/include      \
26598                               \
26599     /usr/include/Xm           \
26600                               \
26601     /usr/X11R7/include        \
26602     /usr/X11R6/include        \
26603     /usr/X11R6.4/include      \
26604                               \
26605     /usr/include/X11R7        \
26606     /usr/include/X11R6        \
26607                               \
26608     /usr/X11/include          \
26609     /usr/include/X11          \
26610                               \
26611     /usr/XFree86/include/X11  \
26612     /usr/pkg/include          \
26613                               \
26614     /usr/local/X1R5/include  \
26615     /usr/local/include/X11R5  \
26616     /usr/X11R5/include        \
26617     /usr/include/X11R5        \
26618                               \
26619     /usr/local/X11R4/include  \
26620     /usr/local/include/X11R4  \
26621     /usr/X11R4/include        \
26622     /usr/include/X11R4        \
26623                               \
26624     /usr/openwin/share/include"
26625
26626 { echo "$as_me:$LINENO: checking for libraries directory" >&5
26627 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
26628
26629 case "${host}" in
26630     *-*-irix6* )
26631         if test "${wx_cv_std_libpath+set}" = set; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634
26635                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
26636                     for e in a so sl dylib dll.a; do
26637                         libc="$d/libc.$e"
26638                         if test -f $libc; then
26639                             save_LIBS="$LIBS"
26640                             LIBS="$libc"
26641                             cat >conftest.$ac_ext <<_ACEOF
26642 int main() { return 0; }
26643 _ACEOF
26644 rm -f conftest.$ac_objext conftest$ac_exeext
26645 if { (ac_try="$ac_link"
26646 case "(($ac_try" in
26647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648   *) ac_try_echo=$ac_try;;
26649 esac
26650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651   (eval "$ac_link") 2>conftest.er1
26652   ac_status=$?
26653   grep -v '^ *+' conftest.er1 >conftest.err
26654   rm -f conftest.er1
26655   cat conftest.err >&5
26656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657   (exit $ac_status); } && {
26658          test -z "$ac_c_werror_flag" ||
26659          test ! -s conftest.err
26660        } && test -s conftest$ac_exeext &&
26661        $as_test_x conftest$ac_exeext; then
26662   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
26663 else
26664   echo "$as_me: failed program was:" >&5
26665 sed 's/^/| /' conftest.$ac_ext >&5
26666
26667
26668 fi
26669
26670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26671       conftest$ac_exeext conftest.$ac_ext
26672                             LIBS="$save_LIBS"
26673                             if test "x$wx_cv_std_libpath" != "x"; then
26674                                 break 2
26675                             fi
26676                         fi
26677                     done
26678                 done
26679                 if test "x$wx_cv_std_libpath" = "x"; then
26680                     wx_cv_std_libpath="lib"
26681                 fi
26682
26683
26684 fi
26685
26686         ;;
26687
26688     *-*-solaris2* )
26689                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
26690             wx_cv_std_libpath="lib/64"
26691         else
26692             wx_cv_std_libpath="lib"
26693         fi
26694         ;;
26695
26696     *-*-linux* )
26697                 if test "$ac_cv_sizeof_void_p" = 8 -a \
26698                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
26699             wx_cv_std_libpath="lib64"
26700         else
26701             wx_cv_std_libpath="lib"
26702         fi
26703         ;;
26704
26705     *)
26706         wx_cv_std_libpath="lib";
26707         ;;
26708 esac
26709
26710 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26711 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
26712
26713 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
26714
26715 if test "$build" != "$host" -a "$GCC" = yes; then
26716                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26717         cross_root=`dirname $cross_root`
26718         cross_root=`dirname $cross_root`
26719
26720                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26721         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26722         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
26723
26724                 if test -z "$PKG_CONFIG_PATH"; then
26725             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
26726             export PKG_CONFIG_PATH
26727         fi
26728
26729                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
26730
26731 ac_find_includes=
26732 for ac_dir in $SEARCH_INCLUDE /usr/include
26733   do
26734     if test -f "$ac_dir/X11/Intrinsic.h"; then
26735       ac_find_includes=$ac_dir
26736       break
26737     fi
26738   done
26739
26740             x_includes=$ac_find_includes
26741         fi
26742         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
26743
26744   ac_find_libraries=
26745   for ac_dir in $SEARCH_LIB
26746   do
26747     for ac_extension in a so sl dylib dll.a; do
26748       if test -f "$ac_dir/libXt.$ac_extension"; then
26749         ac_find_libraries=$ac_dir
26750         break 2
26751       fi
26752     done
26753   done
26754
26755             x_libraries=$ac_find_libraries
26756         fi
26757     fi
26758 fi
26759
26760
26761 cat >confcache <<\_ACEOF
26762 # This file is a shell script that caches the results of configure
26763 # tests run on this system so they can be shared between configure
26764 # scripts and configure runs, see configure's option --config-cache.
26765 # It is not useful on other systems.  If it contains results you don't
26766 # want to keep, you may remove or edit it.
26767 #
26768 # config.status only pays attention to the cache file if you give it
26769 # the --recheck option to rerun configure.
26770 #
26771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26773 # following values.
26774
26775 _ACEOF
26776
26777 # The following way of writing the cache mishandles newlines in values,
26778 # but we know of no workaround that is simple, portable, and efficient.
26779 # So, we kill variables containing newlines.
26780 # Ultrix sh set writes to stderr and can't be redirected directly,
26781 # and sets the high bit in the cache file unless we assign to the vars.
26782 (
26783   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26784     eval ac_val=\$$ac_var
26785     case $ac_val in #(
26786     *${as_nl}*)
26787       case $ac_var in #(
26788       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26789 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26790       esac
26791       case $ac_var in #(
26792       _ | IFS | as_nl) ;; #(
26793       *) $as_unset $ac_var ;;
26794       esac ;;
26795     esac
26796   done
26797
26798   (set) 2>&1 |
26799     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26800     *${as_nl}ac_space=\ *)
26801       # `set' does not quote correctly, so add quotes (double-quote
26802       # substitution turns \\\\ into \\, and sed turns \\ into \).
26803       sed -n \
26804         "s/'/'\\\\''/g;
26805           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26806       ;; #(
26807     *)
26808       # `set' quotes correctly as required by POSIX, so do not add quotes.
26809       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26810       ;;
26811     esac |
26812     sort
26813 ) |
26814   sed '
26815      /^ac_cv_env_/b end
26816      t clear
26817      :clear
26818      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26819      t end
26820      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26821      :end' >>confcache
26822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26823   if test -w "$cache_file"; then
26824     test "x$cache_file" != "x/dev/null" &&
26825       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26826 echo "$as_me: updating cache $cache_file" >&6;}
26827     cat confcache >$cache_file
26828   else
26829     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26830 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26831   fi
26832 fi
26833 rm -f confcache
26834
26835 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
26836     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
26837 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
26838 if test "${wx_cv_lib_glibc21+set}" = set; then
26839   echo $ECHO_N "(cached) $ECHO_C" >&6
26840 else
26841
26842         cat >conftest.$ac_ext <<_ACEOF
26843 /* confdefs.h.  */
26844 _ACEOF
26845 cat confdefs.h >>conftest.$ac_ext
26846 cat >>conftest.$ac_ext <<_ACEOF
26847 /* end confdefs.h.  */
26848 #include <features.h>
26849 int
26850 main ()
26851 {
26852
26853                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
26854                 not glibc 2.1
26855                 #endif
26856
26857   ;
26858   return 0;
26859 }
26860 _ACEOF
26861 rm -f conftest.$ac_objext
26862 if { (ac_try="$ac_compile"
26863 case "(($ac_try" in
26864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26865   *) ac_try_echo=$ac_try;;
26866 esac
26867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26868   (eval "$ac_compile") 2>conftest.er1
26869   ac_status=$?
26870   grep -v '^ *+' conftest.er1 >conftest.err
26871   rm -f conftest.er1
26872   cat conftest.err >&5
26873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874   (exit $ac_status); } && {
26875          test -z "$ac_c_werror_flag" ||
26876          test ! -s conftest.err
26877        } && test -s conftest.$ac_objext; then
26878
26879                 wx_cv_lib_glibc21=yes
26880
26881 else
26882   echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26884
26885
26886                 wx_cv_lib_glibc21=no
26887
26888
26889 fi
26890
26891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26892
26893 fi
26894 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
26895 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
26896     if test "$wx_cv_lib_glibc21" = "yes"; then
26897         cat >>confdefs.h <<\_ACEOF
26898 #define wxHAVE_GLIBC2 1
26899 _ACEOF
26900
26901     fi
26902 fi
26903
26904 if test "x$wx_cv_lib_glibc21" = "xyes"; then
26905     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
26906         cat >>confdefs.h <<\_ACEOF
26907 #define _GNU_SOURCE 1
26908 _ACEOF
26909
26910     fi
26911 fi
26912
26913 have_cos=0
26914 have_floor=0
26915
26916 for ac_func in cos
26917 do
26918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26922   echo $ECHO_N "(cached) $ECHO_C" >&6
26923 else
26924   cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h.  */
26926 _ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h.  */
26930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26932 #define $ac_func innocuous_$ac_func
26933
26934 /* System header to define __stub macros and hopefully few prototypes,
26935     which can conflict with char $ac_func (); below.
26936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26937     <limits.h> exists even on freestanding compilers.  */
26938
26939 #ifdef __STDC__
26940 # include <limits.h>
26941 #else
26942 # include <assert.h>
26943 #endif
26944
26945 #undef $ac_func
26946
26947 /* Override any GCC internal prototype to avoid an error.
26948    Use char because int might match the return type of a GCC
26949    builtin and then its argument prototype would still apply.  */
26950 #ifdef __cplusplus
26951 extern "C"
26952 #endif
26953 char $ac_func ();
26954 /* The GNU C library defines this for functions which it implements
26955     to always fail with ENOSYS.  Some functions are actually named
26956     something starting with __ and the normal name is an alias.  */
26957 #if defined __stub_$ac_func || defined __stub___$ac_func
26958 choke me
26959 #endif
26960
26961 int
26962 main ()
26963 {
26964 return $ac_func ();
26965   ;
26966   return 0;
26967 }
26968 _ACEOF
26969 rm -f conftest.$ac_objext conftest$ac_exeext
26970 if { (ac_try="$ac_link"
26971 case "(($ac_try" in
26972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26973   *) ac_try_echo=$ac_try;;
26974 esac
26975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26976   (eval "$ac_link") 2>conftest.er1
26977   ac_status=$?
26978   grep -v '^ *+' conftest.er1 >conftest.err
26979   rm -f conftest.er1
26980   cat conftest.err >&5
26981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982   (exit $ac_status); } && {
26983          test -z "$ac_c_werror_flag" ||
26984          test ! -s conftest.err
26985        } && test -s conftest$ac_exeext &&
26986        $as_test_x conftest$ac_exeext; then
26987   eval "$as_ac_var=yes"
26988 else
26989   echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26991
26992         eval "$as_ac_var=no"
26993 fi
26994
26995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26996       conftest$ac_exeext conftest.$ac_ext
26997 fi
26998 ac_res=`eval echo '${'$as_ac_var'}'`
26999                { echo "$as_me:$LINENO: result: $ac_res" >&5
27000 echo "${ECHO_T}$ac_res" >&6; }
27001 if test `eval echo '${'$as_ac_var'}'` = yes; then
27002   cat >>confdefs.h <<_ACEOF
27003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27004 _ACEOF
27005  have_cos=1
27006 fi
27007 done
27008
27009
27010 for ac_func in floor
27011 do
27012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27016   echo $ECHO_N "(cached) $ECHO_C" >&6
27017 else
27018   cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h.  */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h.  */
27024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27026 #define $ac_func innocuous_$ac_func
27027
27028 /* System header to define __stub macros and hopefully few prototypes,
27029     which can conflict with char $ac_func (); below.
27030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27031     <limits.h> exists even on freestanding compilers.  */
27032
27033 #ifdef __STDC__
27034 # include <limits.h>
27035 #else
27036 # include <assert.h>
27037 #endif
27038
27039 #undef $ac_func
27040
27041 /* Override any GCC internal prototype to avoid an error.
27042    Use char because int might match the return type of a GCC
27043    builtin and then its argument prototype would still apply.  */
27044 #ifdef __cplusplus
27045 extern "C"
27046 #endif
27047 char $ac_func ();
27048 /* The GNU C library defines this for functions which it implements
27049     to always fail with ENOSYS.  Some functions are actually named
27050     something starting with __ and the normal name is an alias.  */
27051 #if defined __stub_$ac_func || defined __stub___$ac_func
27052 choke me
27053 #endif
27054
27055 int
27056 main ()
27057 {
27058 return $ac_func ();
27059   ;
27060   return 0;
27061 }
27062 _ACEOF
27063 rm -f conftest.$ac_objext conftest$ac_exeext
27064 if { (ac_try="$ac_link"
27065 case "(($ac_try" in
27066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067   *) ac_try_echo=$ac_try;;
27068 esac
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070   (eval "$ac_link") 2>conftest.er1
27071   ac_status=$?
27072   grep -v '^ *+' conftest.er1 >conftest.err
27073   rm -f conftest.er1
27074   cat conftest.err >&5
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); } && {
27077          test -z "$ac_c_werror_flag" ||
27078          test ! -s conftest.err
27079        } && test -s conftest$ac_exeext &&
27080        $as_test_x conftest$ac_exeext; then
27081   eval "$as_ac_var=yes"
27082 else
27083   echo "$as_me: failed program was:" >&5
27084 sed 's/^/| /' conftest.$ac_ext >&5
27085
27086         eval "$as_ac_var=no"
27087 fi
27088
27089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27090       conftest$ac_exeext conftest.$ac_ext
27091 fi
27092 ac_res=`eval echo '${'$as_ac_var'}'`
27093                { echo "$as_me:$LINENO: result: $ac_res" >&5
27094 echo "${ECHO_T}$ac_res" >&6; }
27095 if test `eval echo '${'$as_ac_var'}'` = yes; then
27096   cat >>confdefs.h <<_ACEOF
27097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27098 _ACEOF
27099  have_floor=1
27100 fi
27101 done
27102
27103 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27104 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27105 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27106     { echo "$as_me:$LINENO: result: yes" >&5
27107 echo "${ECHO_T}yes" >&6; }
27108 else
27109     { echo "$as_me:$LINENO: result: no" >&5
27110 echo "${ECHO_T}no" >&6; }
27111     LIBS="$LIBS -lm"
27112     # use different functions to avoid configure caching
27113     have_sin=0
27114     have_ceil=0
27115
27116 for ac_func in sin
27117 do
27118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27122   echo $ECHO_N "(cached) $ECHO_C" >&6
27123 else
27124   cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27132 #define $ac_func innocuous_$ac_func
27133
27134 /* System header to define __stub macros and hopefully few prototypes,
27135     which can conflict with char $ac_func (); below.
27136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27137     <limits.h> exists even on freestanding compilers.  */
27138
27139 #ifdef __STDC__
27140 # include <limits.h>
27141 #else
27142 # include <assert.h>
27143 #endif
27144
27145 #undef $ac_func
27146
27147 /* Override any GCC internal prototype to avoid an error.
27148    Use char because int might match the return type of a GCC
27149    builtin and then its argument prototype would still apply.  */
27150 #ifdef __cplusplus
27151 extern "C"
27152 #endif
27153 char $ac_func ();
27154 /* The GNU C library defines this for functions which it implements
27155     to always fail with ENOSYS.  Some functions are actually named
27156     something starting with __ and the normal name is an alias.  */
27157 #if defined __stub_$ac_func || defined __stub___$ac_func
27158 choke me
27159 #endif
27160
27161 int
27162 main ()
27163 {
27164 return $ac_func ();
27165   ;
27166   return 0;
27167 }
27168 _ACEOF
27169 rm -f conftest.$ac_objext conftest$ac_exeext
27170 if { (ac_try="$ac_link"
27171 case "(($ac_try" in
27172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173   *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176   (eval "$ac_link") 2>conftest.er1
27177   ac_status=$?
27178   grep -v '^ *+' conftest.er1 >conftest.err
27179   rm -f conftest.er1
27180   cat conftest.err >&5
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); } && {
27183          test -z "$ac_c_werror_flag" ||
27184          test ! -s conftest.err
27185        } && test -s conftest$ac_exeext &&
27186        $as_test_x conftest$ac_exeext; then
27187   eval "$as_ac_var=yes"
27188 else
27189   echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27191
27192         eval "$as_ac_var=no"
27193 fi
27194
27195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27196       conftest$ac_exeext conftest.$ac_ext
27197 fi
27198 ac_res=`eval echo '${'$as_ac_var'}'`
27199                { echo "$as_me:$LINENO: result: $ac_res" >&5
27200 echo "${ECHO_T}$ac_res" >&6; }
27201 if test `eval echo '${'$as_ac_var'}'` = yes; then
27202   cat >>confdefs.h <<_ACEOF
27203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27204 _ACEOF
27205  have_sin=1
27206 fi
27207 done
27208
27209
27210 for ac_func in ceil
27211 do
27212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27216   echo $ECHO_N "(cached) $ECHO_C" >&6
27217 else
27218   cat >conftest.$ac_ext <<_ACEOF
27219 /* confdefs.h.  */
27220 _ACEOF
27221 cat confdefs.h >>conftest.$ac_ext
27222 cat >>conftest.$ac_ext <<_ACEOF
27223 /* end confdefs.h.  */
27224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27226 #define $ac_func innocuous_$ac_func
27227
27228 /* System header to define __stub macros and hopefully few prototypes,
27229     which can conflict with char $ac_func (); below.
27230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27231     <limits.h> exists even on freestanding compilers.  */
27232
27233 #ifdef __STDC__
27234 # include <limits.h>
27235 #else
27236 # include <assert.h>
27237 #endif
27238
27239 #undef $ac_func
27240
27241 /* Override any GCC internal prototype to avoid an error.
27242    Use char because int might match the return type of a GCC
27243    builtin and then its argument prototype would still apply.  */
27244 #ifdef __cplusplus
27245 extern "C"
27246 #endif
27247 char $ac_func ();
27248 /* The GNU C library defines this for functions which it implements
27249     to always fail with ENOSYS.  Some functions are actually named
27250     something starting with __ and the normal name is an alias.  */
27251 #if defined __stub_$ac_func || defined __stub___$ac_func
27252 choke me
27253 #endif
27254
27255 int
27256 main ()
27257 {
27258 return $ac_func ();
27259   ;
27260   return 0;
27261 }
27262 _ACEOF
27263 rm -f conftest.$ac_objext conftest$ac_exeext
27264 if { (ac_try="$ac_link"
27265 case "(($ac_try" in
27266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267   *) ac_try_echo=$ac_try;;
27268 esac
27269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270   (eval "$ac_link") 2>conftest.er1
27271   ac_status=$?
27272   grep -v '^ *+' conftest.er1 >conftest.err
27273   rm -f conftest.er1
27274   cat conftest.err >&5
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); } && {
27277          test -z "$ac_c_werror_flag" ||
27278          test ! -s conftest.err
27279        } && test -s conftest$ac_exeext &&
27280        $as_test_x conftest$ac_exeext; then
27281   eval "$as_ac_var=yes"
27282 else
27283   echo "$as_me: failed program was:" >&5
27284 sed 's/^/| /' conftest.$ac_ext >&5
27285
27286         eval "$as_ac_var=no"
27287 fi
27288
27289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27290       conftest$ac_exeext conftest.$ac_ext
27291 fi
27292 ac_res=`eval echo '${'$as_ac_var'}'`
27293                { echo "$as_me:$LINENO: result: $ac_res" >&5
27294 echo "${ECHO_T}$ac_res" >&6; }
27295 if test `eval echo '${'$as_ac_var'}'` = yes; then
27296   cat >>confdefs.h <<_ACEOF
27297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27298 _ACEOF
27299  have_ceil=1
27300 fi
27301 done
27302
27303     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27304 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27305     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27306         { echo "$as_me:$LINENO: result: yes" >&5
27307 echo "${ECHO_T}yes" >&6; }
27308     else
27309         { echo "$as_me:$LINENO: result: no" >&5
27310 echo "${ECHO_T}no" >&6; }
27311         # not sure we should warn the user, crash, etc.
27312     fi
27313 fi
27314
27315 ac_ext=cpp
27316 ac_cpp='$CXXCPP $CPPFLAGS'
27317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27320
27321 if test "wxUSE_UNICODE" = "yes"; then
27322
27323   for wx_func in wcstoull
27324   do
27325     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27326 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27327 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27328   echo $ECHO_N "(cached) $ECHO_C" >&6
27329 else
27330
27331         cat >conftest.$ac_ext <<_ACEOF
27332
27333             /* confdefs.h.  */
27334 _ACEOF
27335 cat confdefs.h >>conftest.$ac_ext
27336 cat >>conftest.$ac_ext <<_ACEOF
27337 /* end confdefs.h.  */
27338
27339
27340                 $ac_includes_default
27341
27342 int
27343 main ()
27344 {
27345
27346                 #ifndef $wx_func
27347                   &$wx_func;
27348                 #endif
27349
27350
27351   ;
27352   return 0;
27353 }
27354
27355 _ACEOF
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (ac_try="$ac_link"
27358 case "(($ac_try" in
27359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360   *) ac_try_echo=$ac_try;;
27361 esac
27362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27363   (eval "$ac_link") 2>conftest.er1
27364   ac_status=$?
27365   grep -v '^ *+' conftest.er1 >conftest.err
27366   rm -f conftest.er1
27367   cat conftest.err >&5
27368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369   (exit $ac_status); } && {
27370          test -z "$ac_cxx_werror_flag" ||
27371          test ! -s conftest.err
27372        } && test -s conftest$ac_exeext &&
27373        $as_test_x conftest$ac_exeext; then
27374   eval wx_cv_func_$wx_func=yes
27375 else
27376   echo "$as_me: failed program was:" >&5
27377 sed 's/^/| /' conftest.$ac_ext >&5
27378
27379         eval wx_cv_func_$wx_func=no
27380 fi
27381
27382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27383       conftest$ac_exeext conftest.$ac_ext
27384
27385 fi
27386 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27387                { echo "$as_me:$LINENO: result: $ac_res" >&5
27388 echo "${ECHO_T}$ac_res" >&6; }
27389
27390     if eval test \$wx_cv_func_$wx_func = yes
27391     then
27392       cat >>confdefs.h <<_ACEOF
27393 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27394 _ACEOF
27395
27396
27397     else
27398       :
27399
27400     fi
27401   done
27402
27403 else
27404
27405   for wx_func in strtoull
27406   do
27407     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27408 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27409 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27410   echo $ECHO_N "(cached) $ECHO_C" >&6
27411 else
27412
27413         cat >conftest.$ac_ext <<_ACEOF
27414
27415             /* confdefs.h.  */
27416 _ACEOF
27417 cat confdefs.h >>conftest.$ac_ext
27418 cat >>conftest.$ac_ext <<_ACEOF
27419 /* end confdefs.h.  */
27420
27421
27422                 $ac_includes_default
27423
27424 int
27425 main ()
27426 {
27427
27428                 #ifndef $wx_func
27429                   &$wx_func;
27430                 #endif
27431
27432
27433   ;
27434   return 0;
27435 }
27436
27437 _ACEOF
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442   *) ac_try_echo=$ac_try;;
27443 esac
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445   (eval "$ac_link") 2>conftest.er1
27446   ac_status=$?
27447   grep -v '^ *+' conftest.er1 >conftest.err
27448   rm -f conftest.er1
27449   cat conftest.err >&5
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); } && {
27452          test -z "$ac_cxx_werror_flag" ||
27453          test ! -s conftest.err
27454        } && test -s conftest$ac_exeext &&
27455        $as_test_x conftest$ac_exeext; then
27456   eval wx_cv_func_$wx_func=yes
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461         eval wx_cv_func_$wx_func=no
27462 fi
27463
27464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27465       conftest$ac_exeext conftest.$ac_ext
27466
27467 fi
27468 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27469                { echo "$as_me:$LINENO: result: $ac_res" >&5
27470 echo "${ECHO_T}$ac_res" >&6; }
27471
27472     if eval test \$wx_cv_func_$wx_func = yes
27473     then
27474       cat >>confdefs.h <<_ACEOF
27475 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27476 _ACEOF
27477
27478
27479     else
27480       :
27481
27482     fi
27483   done
27484
27485 fi
27486 ac_ext=c
27487 ac_cpp='$CPP $CPPFLAGS'
27488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27491
27492
27493
27494
27495 if test "$wxUSE_REGEX" != "no"; then
27496     cat >>confdefs.h <<\_ACEOF
27497 #define wxUSE_REGEX 1
27498 _ACEOF
27499
27500
27501     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27502         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27503 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27504         wxUSE_REGEX=builtin
27505     fi
27506
27507     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27508                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27509 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27510 if test "${ac_cv_header_regex_h+set}" = set; then
27511   echo $ECHO_N "(cached) $ECHO_C" >&6
27512 else
27513   cat >conftest.$ac_ext <<_ACEOF
27514 /* confdefs.h.  */
27515 _ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h.  */
27519
27520
27521 #include <regex.h>
27522 _ACEOF
27523 rm -f conftest.$ac_objext
27524 if { (ac_try="$ac_compile"
27525 case "(($ac_try" in
27526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527   *) ac_try_echo=$ac_try;;
27528 esac
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530   (eval "$ac_compile") 2>conftest.er1
27531   ac_status=$?
27532   grep -v '^ *+' conftest.er1 >conftest.err
27533   rm -f conftest.er1
27534   cat conftest.err >&5
27535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536   (exit $ac_status); } && {
27537          test -z "$ac_c_werror_flag" ||
27538          test ! -s conftest.err
27539        } && test -s conftest.$ac_objext; then
27540   ac_cv_header_regex_h=yes
27541 else
27542   echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27544
27545         ac_cv_header_regex_h=no
27546 fi
27547
27548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27549 fi
27550 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
27551 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
27552 if test $ac_cv_header_regex_h = yes; then
27553
27554
27555 for ac_func in regcomp re_search
27556 do
27557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27561   echo $ECHO_N "(cached) $ECHO_C" >&6
27562 else
27563   cat >conftest.$ac_ext <<_ACEOF
27564 /* confdefs.h.  */
27565 _ACEOF
27566 cat confdefs.h >>conftest.$ac_ext
27567 cat >>conftest.$ac_ext <<_ACEOF
27568 /* end confdefs.h.  */
27569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27571 #define $ac_func innocuous_$ac_func
27572
27573 /* System header to define __stub macros and hopefully few prototypes,
27574     which can conflict with char $ac_func (); below.
27575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27576     <limits.h> exists even on freestanding compilers.  */
27577
27578 #ifdef __STDC__
27579 # include <limits.h>
27580 #else
27581 # include <assert.h>
27582 #endif
27583
27584 #undef $ac_func
27585
27586 /* Override any GCC internal prototype to avoid an error.
27587    Use char because int might match the return type of a GCC
27588    builtin and then its argument prototype would still apply.  */
27589 #ifdef __cplusplus
27590 extern "C"
27591 #endif
27592 char $ac_func ();
27593 /* The GNU C library defines this for functions which it implements
27594     to always fail with ENOSYS.  Some functions are actually named
27595     something starting with __ and the normal name is an alias.  */
27596 #if defined __stub_$ac_func || defined __stub___$ac_func
27597 choke me
27598 #endif
27599
27600 int
27601 main ()
27602 {
27603 return $ac_func ();
27604   ;
27605   return 0;
27606 }
27607 _ACEOF
27608 rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (ac_try="$ac_link"
27610 case "(($ac_try" in
27611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612   *) ac_try_echo=$ac_try;;
27613 esac
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615   (eval "$ac_link") 2>conftest.er1
27616   ac_status=$?
27617   grep -v '^ *+' conftest.er1 >conftest.err
27618   rm -f conftest.er1
27619   cat conftest.err >&5
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); } && {
27622          test -z "$ac_c_werror_flag" ||
27623          test ! -s conftest.err
27624        } && test -s conftest$ac_exeext &&
27625        $as_test_x conftest$ac_exeext; then
27626   eval "$as_ac_var=yes"
27627 else
27628   echo "$as_me: failed program was:" >&5
27629 sed 's/^/| /' conftest.$ac_ext >&5
27630
27631         eval "$as_ac_var=no"
27632 fi
27633
27634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27635       conftest$ac_exeext conftest.$ac_ext
27636 fi
27637 ac_res=`eval echo '${'$as_ac_var'}'`
27638                { echo "$as_me:$LINENO: result: $ac_res" >&5
27639 echo "${ECHO_T}$ac_res" >&6; }
27640 if test `eval echo '${'$as_ac_var'}'` = yes; then
27641   cat >>confdefs.h <<_ACEOF
27642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27643 _ACEOF
27644
27645 fi
27646 done
27647
27648 fi
27649
27650
27651
27652         if test "x$ac_cv_func_regcomp" != "xyes"; then
27653             if test "$wxUSE_REGEX" = "sys" ; then
27654                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
27655 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
27656    { (exit 1); exit 1; }; }
27657             else
27658                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
27659 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
27660                 wxUSE_REGEX=builtin
27661             fi
27662         else
27663                         wxUSE_REGEX=sys
27664                         cat >>confdefs.h <<\_ACEOF
27665 #define WX_NO_REGEX_ADVANCED 1
27666 _ACEOF
27667
27668         fi
27669     fi
27670 fi
27671
27672
27673 ZLIB_LINK=
27674 if test "$wxUSE_ZLIB" != "no" ; then
27675     cat >>confdefs.h <<\_ACEOF
27676 #define wxUSE_ZLIB 1
27677 _ACEOF
27678
27679
27680     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
27681                                                 if test "$USE_DARWIN" = 1; then
27682             system_zlib_h_ok="yes"
27683         else
27684                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
27685 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
27686 if test "${ac_cv_header_zlib_h+set}" = set; then
27687   echo $ECHO_N "(cached) $ECHO_C" >&6
27688 else
27689   if test "$cross_compiling" = yes; then
27690                       unset ac_cv_header_zlib_h
27691
27692 else
27693   cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h.  */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h.  */
27699
27700                         #include <zlib.h>
27701                         #include <stdio.h>
27702
27703                         int main()
27704                         {
27705                             FILE *f=fopen("conftestval", "w");
27706                             if (!f) exit(1);
27707                             fprintf(f, "%s",
27708                                     ZLIB_VERSION[0] == '1' &&
27709                                     (ZLIB_VERSION[2] > '1' ||
27710                                     (ZLIB_VERSION[2] == '1' &&
27711                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27712                             exit(0);
27713                         }
27714
27715 _ACEOF
27716 rm -f conftest$ac_exeext
27717 if { (ac_try="$ac_link"
27718 case "(($ac_try" in
27719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720   *) ac_try_echo=$ac_try;;
27721 esac
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723   (eval "$ac_link") 2>&5
27724   ac_status=$?
27725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27727   { (case "(($ac_try" in
27728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729   *) ac_try_echo=$ac_try;;
27730 esac
27731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732   (eval "$ac_try") 2>&5
27733   ac_status=$?
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); }; }; then
27736   ac_cv_header_zlib_h=`cat conftestval`
27737 else
27738   echo "$as_me: program exited with status $ac_status" >&5
27739 echo "$as_me: failed program was:" >&5
27740 sed 's/^/| /' conftest.$ac_ext >&5
27741
27742 ( exit $ac_status )
27743 ac_cv_header_zlib_h=no
27744 fi
27745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27746 fi
27747
27748
27749
27750 fi
27751 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27752 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27753                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
27754 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27755 if test "${ac_cv_header_zlib_h+set}" = set; then
27756   echo $ECHO_N "(cached) $ECHO_C" >&6
27757 else
27758   cat >conftest.$ac_ext <<_ACEOF
27759 /* confdefs.h.  */
27760 _ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h.  */
27764
27765
27766 #include <zlib.h>
27767 _ACEOF
27768 rm -f conftest.$ac_objext
27769 if { (ac_try="$ac_compile"
27770 case "(($ac_try" in
27771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772   *) ac_try_echo=$ac_try;;
27773 esac
27774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775   (eval "$ac_compile") 2>conftest.er1
27776   ac_status=$?
27777   grep -v '^ *+' conftest.er1 >conftest.err
27778   rm -f conftest.er1
27779   cat conftest.err >&5
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); } && {
27782          test -z "$ac_c_werror_flag" ||
27783          test ! -s conftest.err
27784        } && test -s conftest.$ac_objext; then
27785   ac_cv_header_zlib_h=yes
27786 else
27787   echo "$as_me: failed program was:" >&5
27788 sed 's/^/| /' conftest.$ac_ext >&5
27789
27790         ac_cv_header_zlib_h=no
27791 fi
27792
27793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27794 fi
27795 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27796 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27797
27798
27799
27800             system_zlib_h_ok=$ac_cv_header_zlib_h
27801         fi
27802
27803         if test "$system_zlib_h_ok" = "yes"; then
27804             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
27805 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
27806 if test "${ac_cv_lib_z_deflate+set}" = set; then
27807   echo $ECHO_N "(cached) $ECHO_C" >&6
27808 else
27809   ac_check_lib_save_LIBS=$LIBS
27810 LIBS="-lz  $LIBS"
27811 cat >conftest.$ac_ext <<_ACEOF
27812 /* confdefs.h.  */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h.  */
27817
27818 /* Override any GCC internal prototype to avoid an error.
27819    Use char because int might match the return type of a GCC
27820    builtin and then its argument prototype would still apply.  */
27821 #ifdef __cplusplus
27822 extern "C"
27823 #endif
27824 char deflate ();
27825 int
27826 main ()
27827 {
27828 return deflate ();
27829   ;
27830   return 0;
27831 }
27832 _ACEOF
27833 rm -f conftest.$ac_objext conftest$ac_exeext
27834 if { (ac_try="$ac_link"
27835 case "(($ac_try" in
27836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837   *) ac_try_echo=$ac_try;;
27838 esac
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840   (eval "$ac_link") 2>conftest.er1
27841   ac_status=$?
27842   grep -v '^ *+' conftest.er1 >conftest.err
27843   rm -f conftest.er1
27844   cat conftest.err >&5
27845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846   (exit $ac_status); } && {
27847          test -z "$ac_c_werror_flag" ||
27848          test ! -s conftest.err
27849        } && test -s conftest$ac_exeext &&
27850        $as_test_x conftest$ac_exeext; then
27851   ac_cv_lib_z_deflate=yes
27852 else
27853   echo "$as_me: failed program was:" >&5
27854 sed 's/^/| /' conftest.$ac_ext >&5
27855
27856         ac_cv_lib_z_deflate=no
27857 fi
27858
27859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27860       conftest$ac_exeext conftest.$ac_ext
27861 LIBS=$ac_check_lib_save_LIBS
27862 fi
27863 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
27864 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
27865 if test $ac_cv_lib_z_deflate = yes; then
27866   ZLIB_LINK=" -lz"
27867 fi
27868
27869         fi
27870
27871         if test "x$ZLIB_LINK" = "x" ; then
27872             if test "$wxUSE_ZLIB" = "sys" ; then
27873                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
27874 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
27875    { (exit 1); exit 1; }; }
27876             else
27877                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
27878 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
27879                 wxUSE_ZLIB=builtin
27880             fi
27881         else
27882                         wxUSE_ZLIB=sys
27883         fi
27884     fi
27885 fi
27886
27887
27888 PNG_LINK=
27889 if test "$wxUSE_LIBPNG" != "no" ; then
27890     cat >>confdefs.h <<\_ACEOF
27891 #define wxUSE_LIBPNG 1
27892 _ACEOF
27893
27894
27895     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
27896         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
27897 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
27898         wxUSE_LIBPNG=sys
27899     fi
27900
27901                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
27902         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
27903 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
27904         wxUSE_LIBPNG=builtin
27905     fi
27906
27907     if test "$wxUSE_MGL" != 1 ; then
27908                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
27909                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
27910 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
27911 if test "${ac_cv_header_png_h+set}" = set; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914   if test "$cross_compiling" = yes; then
27915                       unset ac_cv_header_png_h
27916
27917 else
27918   cat >conftest.$ac_ext <<_ACEOF
27919 /* confdefs.h.  */
27920 _ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h.  */
27924
27925                         #include <png.h>
27926                         #include <stdio.h>
27927
27928                         int main()
27929                         {
27930                             FILE *f=fopen("conftestval", "w");
27931                             if (!f) exit(1);
27932                             fprintf(f, "%s",
27933                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
27934                             exit(0);
27935                         }
27936
27937 _ACEOF
27938 rm -f conftest$ac_exeext
27939 if { (ac_try="$ac_link"
27940 case "(($ac_try" in
27941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27942   *) ac_try_echo=$ac_try;;
27943 esac
27944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27945   (eval "$ac_link") 2>&5
27946   ac_status=$?
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27949   { (case "(($ac_try" in
27950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951   *) ac_try_echo=$ac_try;;
27952 esac
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954   (eval "$ac_try") 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; }; then
27958   ac_cv_header_png_h=`cat conftestval`
27959 else
27960   echo "$as_me: program exited with status $ac_status" >&5
27961 echo "$as_me: failed program was:" >&5
27962 sed 's/^/| /' conftest.$ac_ext >&5
27963
27964 ( exit $ac_status )
27965 ac_cv_header_png_h=no
27966 fi
27967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27968 fi
27969
27970
27971
27972 fi
27973 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27974 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27975             { echo "$as_me:$LINENO: checking for png.h" >&5
27976 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27977 if test "${ac_cv_header_png_h+set}" = set; then
27978   echo $ECHO_N "(cached) $ECHO_C" >&6
27979 else
27980   cat >conftest.$ac_ext <<_ACEOF
27981 /* confdefs.h.  */
27982 _ACEOF
27983 cat confdefs.h >>conftest.$ac_ext
27984 cat >>conftest.$ac_ext <<_ACEOF
27985 /* end confdefs.h.  */
27986
27987
27988 #include <png.h>
27989 _ACEOF
27990 rm -f conftest.$ac_objext
27991 if { (ac_try="$ac_compile"
27992 case "(($ac_try" in
27993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27994   *) ac_try_echo=$ac_try;;
27995 esac
27996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27997   (eval "$ac_compile") 2>conftest.er1
27998   ac_status=$?
27999   grep -v '^ *+' conftest.er1 >conftest.err
28000   rm -f conftest.er1
28001   cat conftest.err >&5
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); } && {
28004          test -z "$ac_c_werror_flag" ||
28005          test ! -s conftest.err
28006        } && test -s conftest.$ac_objext; then
28007   ac_cv_header_png_h=yes
28008 else
28009   echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28011
28012         ac_cv_header_png_h=no
28013 fi
28014
28015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28016 fi
28017 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28018 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28019
28020
28021
28022             if test "$ac_cv_header_png_h" = "yes"; then
28023                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28024 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28025 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28026   echo $ECHO_N "(cached) $ECHO_C" >&6
28027 else
28028   ac_check_lib_save_LIBS=$LIBS
28029 LIBS="-lpng -lz -lm $LIBS"
28030 cat >conftest.$ac_ext <<_ACEOF
28031 /* confdefs.h.  */
28032 _ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h.  */
28036
28037 /* Override any GCC internal prototype to avoid an error.
28038    Use char because int might match the return type of a GCC
28039    builtin and then its argument prototype would still apply.  */
28040 #ifdef __cplusplus
28041 extern "C"
28042 #endif
28043 char png_sig_cmp ();
28044 int
28045 main ()
28046 {
28047 return png_sig_cmp ();
28048   ;
28049   return 0;
28050 }
28051 _ACEOF
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (ac_try="$ac_link"
28054 case "(($ac_try" in
28055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056   *) ac_try_echo=$ac_try;;
28057 esac
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059   (eval "$ac_link") 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } && {
28066          test -z "$ac_c_werror_flag" ||
28067          test ! -s conftest.err
28068        } && test -s conftest$ac_exeext &&
28069        $as_test_x conftest$ac_exeext; then
28070   ac_cv_lib_png_png_sig_cmp=yes
28071 else
28072   echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28074
28075         ac_cv_lib_png_png_sig_cmp=no
28076 fi
28077
28078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28079       conftest$ac_exeext conftest.$ac_ext
28080 LIBS=$ac_check_lib_save_LIBS
28081 fi
28082 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28083 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28084 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28085   PNG_LINK=" -lpng -lz"
28086 fi
28087
28088             fi
28089
28090             if test "x$PNG_LINK" = "x" ; then
28091                 if test "$wxUSE_LIBPNG" = "sys" ; then
28092                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28093 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28094    { (exit 1); exit 1; }; }
28095                 else
28096                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28097 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28098                     wxUSE_LIBPNG=builtin
28099                 fi
28100             else
28101                                 wxUSE_LIBPNG=sys
28102             fi
28103         fi
28104     fi
28105 fi
28106
28107
28108 JPEG_LINK=
28109 if test "$wxUSE_LIBJPEG" != "no" ; then
28110     cat >>confdefs.h <<\_ACEOF
28111 #define wxUSE_LIBJPEG 1
28112 _ACEOF
28113
28114
28115     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28116         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28117 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28118         wxUSE_LIBJPEG=sys
28119     fi
28120
28121     if test "$wxUSE_MGL" != 1 ; then
28122                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28123                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28124 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28125             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28126   echo $ECHO_N "(cached) $ECHO_C" >&6
28127 else
28128   cat >conftest.$ac_ext <<_ACEOF
28129 /* confdefs.h.  */
28130 _ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h.  */
28134
28135                         #undef HAVE_STDLIB_H
28136                         #include <stdio.h>
28137                         #include <jpeglib.h>
28138
28139 int
28140 main ()
28141 {
28142
28143
28144   ;
28145   return 0;
28146 }
28147 _ACEOF
28148 rm -f conftest.$ac_objext
28149 if { (ac_try="$ac_compile"
28150 case "(($ac_try" in
28151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28152   *) ac_try_echo=$ac_try;;
28153 esac
28154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28155   (eval "$ac_compile") 2>conftest.er1
28156   ac_status=$?
28157   grep -v '^ *+' conftest.er1 >conftest.err
28158   rm -f conftest.er1
28159   cat conftest.err >&5
28160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161   (exit $ac_status); } && {
28162          test -z "$ac_c_werror_flag" ||
28163          test ! -s conftest.err
28164        } && test -s conftest.$ac_objext; then
28165   ac_cv_header_jpeglib_h=yes
28166 else
28167   echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28169
28170         ac_cv_header_jpeglib_h=no
28171
28172 fi
28173
28174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175
28176 fi
28177
28178             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28179 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28180
28181             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28182                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28183 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28184 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28185   echo $ECHO_N "(cached) $ECHO_C" >&6
28186 else
28187   ac_check_lib_save_LIBS=$LIBS
28188 LIBS="-ljpeg  $LIBS"
28189 cat >conftest.$ac_ext <<_ACEOF
28190 /* confdefs.h.  */
28191 _ACEOF
28192 cat confdefs.h >>conftest.$ac_ext
28193 cat >>conftest.$ac_ext <<_ACEOF
28194 /* end confdefs.h.  */
28195
28196 /* Override any GCC internal prototype to avoid an error.
28197    Use char because int might match the return type of a GCC
28198    builtin and then its argument prototype would still apply.  */
28199 #ifdef __cplusplus
28200 extern "C"
28201 #endif
28202 char jpeg_read_header ();
28203 int
28204 main ()
28205 {
28206 return jpeg_read_header ();
28207   ;
28208   return 0;
28209 }
28210 _ACEOF
28211 rm -f conftest.$ac_objext conftest$ac_exeext
28212 if { (ac_try="$ac_link"
28213 case "(($ac_try" in
28214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215   *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218   (eval "$ac_link") 2>conftest.er1
28219   ac_status=$?
28220   grep -v '^ *+' conftest.er1 >conftest.err
28221   rm -f conftest.er1
28222   cat conftest.err >&5
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } && {
28225          test -z "$ac_c_werror_flag" ||
28226          test ! -s conftest.err
28227        } && test -s conftest$ac_exeext &&
28228        $as_test_x conftest$ac_exeext; then
28229   ac_cv_lib_jpeg_jpeg_read_header=yes
28230 else
28231   echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28233
28234         ac_cv_lib_jpeg_jpeg_read_header=no
28235 fi
28236
28237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28238       conftest$ac_exeext conftest.$ac_ext
28239 LIBS=$ac_check_lib_save_LIBS
28240 fi
28241 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28242 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28243 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28244   JPEG_LINK=" -ljpeg"
28245 fi
28246
28247             fi
28248
28249             if test "x$JPEG_LINK" = "x" ; then
28250                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28251                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28252 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28253    { (exit 1); exit 1; }; }
28254                 else
28255                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28256 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28257                     wxUSE_LIBJPEG=builtin
28258                 fi
28259             else
28260                                 wxUSE_LIBJPEG=sys
28261
28262                 if test "$wxUSE_MSW" = 1; then
28263                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28264 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28265 if test "${ac_cv_type_boolean+set}" = set; then
28266   echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268   cat >conftest.$ac_ext <<_ACEOF
28269 /* confdefs.h.  */
28270 _ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h.  */
28274 #include <windows.h>
28275
28276 typedef boolean ac__type_new_;
28277 int
28278 main ()
28279 {
28280 if ((ac__type_new_ *) 0)
28281   return 0;
28282 if (sizeof (ac__type_new_))
28283   return 0;
28284   ;
28285   return 0;
28286 }
28287 _ACEOF
28288 rm -f conftest.$ac_objext
28289 if { (ac_try="$ac_compile"
28290 case "(($ac_try" in
28291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292   *) ac_try_echo=$ac_try;;
28293 esac
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295   (eval "$ac_compile") 2>conftest.er1
28296   ac_status=$?
28297   grep -v '^ *+' conftest.er1 >conftest.err
28298   rm -f conftest.er1
28299   cat conftest.err >&5
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); } && {
28302          test -z "$ac_c_werror_flag" ||
28303          test ! -s conftest.err
28304        } && test -s conftest.$ac_objext; then
28305   ac_cv_type_boolean=yes
28306 else
28307   echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28309
28310         ac_cv_type_boolean=no
28311 fi
28312
28313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28314 fi
28315 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28316 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28317 if test $ac_cv_type_boolean = yes; then
28318
28319 cat >>confdefs.h <<_ACEOF
28320 #define HAVE_BOOLEAN 1
28321 _ACEOF
28322
28323
28324                             { echo "$as_me:$LINENO: checking for boolean" >&5
28325 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28326 if test "${ac_cv_type_boolean+set}" = set; then
28327   echo $ECHO_N "(cached) $ECHO_C" >&6
28328 else
28329   cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h.  */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h.  */
28335
28336                                     #undef HAVE_BOOLEAN
28337                                     #include <stdio.h>
28338                                     #include <jpeglib.h>
28339
28340
28341 typedef boolean ac__type_new_;
28342 int
28343 main ()
28344 {
28345 if ((ac__type_new_ *) 0)
28346   return 0;
28347 if (sizeof (ac__type_new_))
28348   return 0;
28349   ;
28350   return 0;
28351 }
28352 _ACEOF
28353 rm -f conftest.$ac_objext
28354 if { (ac_try="$ac_compile"
28355 case "(($ac_try" in
28356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357   *) ac_try_echo=$ac_try;;
28358 esac
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360   (eval "$ac_compile") 2>conftest.er1
28361   ac_status=$?
28362   grep -v '^ *+' conftest.er1 >conftest.err
28363   rm -f conftest.er1
28364   cat conftest.err >&5
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); } && {
28367          test -z "$ac_c_werror_flag" ||
28368          test ! -s conftest.err
28369        } && test -s conftest.$ac_objext; then
28370   ac_cv_type_boolean=yes
28371 else
28372   echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28374
28375         ac_cv_type_boolean=no
28376 fi
28377
28378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28379 fi
28380 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28381 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28382
28383 # The cast to long int works around a bug in the HP C Compiler
28384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28386 # This bug is HP SR number 8606223364.
28387 { echo "$as_me:$LINENO: checking size of boolean" >&5
28388 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28389 if test "${ac_cv_sizeof_boolean+set}" = set; then
28390   echo $ECHO_N "(cached) $ECHO_C" >&6
28391 else
28392   if test "$cross_compiling" = yes; then
28393   # Depending upon the size, compute the lo and hi bounds.
28394 cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400
28401                                     #undef HAVE_BOOLEAN
28402                                     #include <stdio.h>
28403                                     #include <jpeglib.h>
28404
28405
28406    typedef boolean ac__type_sizeof_;
28407 int
28408 main ()
28409 {
28410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28411 test_array [0] = 0
28412
28413   ;
28414   return 0;
28415 }
28416 _ACEOF
28417 rm -f conftest.$ac_objext
28418 if { (ac_try="$ac_compile"
28419 case "(($ac_try" in
28420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421   *) ac_try_echo=$ac_try;;
28422 esac
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424   (eval "$ac_compile") 2>conftest.er1
28425   ac_status=$?
28426   grep -v '^ *+' conftest.er1 >conftest.err
28427   rm -f conftest.er1
28428   cat conftest.err >&5
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); } && {
28431          test -z "$ac_c_werror_flag" ||
28432          test ! -s conftest.err
28433        } && test -s conftest.$ac_objext; then
28434   ac_lo=0 ac_mid=0
28435   while :; do
28436     cat >conftest.$ac_ext <<_ACEOF
28437 /* confdefs.h.  */
28438 _ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h.  */
28442
28443                                     #undef HAVE_BOOLEAN
28444                                     #include <stdio.h>
28445                                     #include <jpeglib.h>
28446
28447
28448    typedef boolean ac__type_sizeof_;
28449 int
28450 main ()
28451 {
28452 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28453 test_array [0] = 0
28454
28455   ;
28456   return 0;
28457 }
28458 _ACEOF
28459 rm -f conftest.$ac_objext
28460 if { (ac_try="$ac_compile"
28461 case "(($ac_try" in
28462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463   *) ac_try_echo=$ac_try;;
28464 esac
28465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466   (eval "$ac_compile") 2>conftest.er1
28467   ac_status=$?
28468   grep -v '^ *+' conftest.er1 >conftest.err
28469   rm -f conftest.er1
28470   cat conftest.err >&5
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); } && {
28473          test -z "$ac_c_werror_flag" ||
28474          test ! -s conftest.err
28475        } && test -s conftest.$ac_objext; then
28476   ac_hi=$ac_mid; break
28477 else
28478   echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.$ac_ext >&5
28480
28481         ac_lo=`expr $ac_mid + 1`
28482                         if test $ac_lo -le $ac_mid; then
28483                           ac_lo= ac_hi=
28484                           break
28485                         fi
28486                         ac_mid=`expr 2 '*' $ac_mid + 1`
28487 fi
28488
28489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28490   done
28491 else
28492   echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28494
28495         cat >conftest.$ac_ext <<_ACEOF
28496 /* confdefs.h.  */
28497 _ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h.  */
28501
28502                                     #undef HAVE_BOOLEAN
28503                                     #include <stdio.h>
28504                                     #include <jpeglib.h>
28505
28506
28507    typedef boolean ac__type_sizeof_;
28508 int
28509 main ()
28510 {
28511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28512 test_array [0] = 0
28513
28514   ;
28515   return 0;
28516 }
28517 _ACEOF
28518 rm -f conftest.$ac_objext
28519 if { (ac_try="$ac_compile"
28520 case "(($ac_try" in
28521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522   *) ac_try_echo=$ac_try;;
28523 esac
28524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28525   (eval "$ac_compile") 2>conftest.er1
28526   ac_status=$?
28527   grep -v '^ *+' conftest.er1 >conftest.err
28528   rm -f conftest.er1
28529   cat conftest.err >&5
28530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531   (exit $ac_status); } && {
28532          test -z "$ac_c_werror_flag" ||
28533          test ! -s conftest.err
28534        } && test -s conftest.$ac_objext; then
28535   ac_hi=-1 ac_mid=-1
28536   while :; do
28537     cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h.  */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h.  */
28543
28544                                     #undef HAVE_BOOLEAN
28545                                     #include <stdio.h>
28546                                     #include <jpeglib.h>
28547
28548
28549    typedef boolean ac__type_sizeof_;
28550 int
28551 main ()
28552 {
28553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28554 test_array [0] = 0
28555
28556   ;
28557   return 0;
28558 }
28559 _ACEOF
28560 rm -f conftest.$ac_objext
28561 if { (ac_try="$ac_compile"
28562 case "(($ac_try" in
28563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28564   *) ac_try_echo=$ac_try;;
28565 esac
28566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28567   (eval "$ac_compile") 2>conftest.er1
28568   ac_status=$?
28569   grep -v '^ *+' conftest.er1 >conftest.err
28570   rm -f conftest.er1
28571   cat conftest.err >&5
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); } && {
28574          test -z "$ac_c_werror_flag" ||
28575          test ! -s conftest.err
28576        } && test -s conftest.$ac_objext; then
28577   ac_lo=$ac_mid; break
28578 else
28579   echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28581
28582         ac_hi=`expr '(' $ac_mid ')' - 1`
28583                         if test $ac_mid -le $ac_hi; then
28584                           ac_lo= ac_hi=
28585                           break
28586                         fi
28587                         ac_mid=`expr 2 '*' $ac_mid`
28588 fi
28589
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591   done
28592 else
28593   echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28595
28596         ac_lo= ac_hi=
28597 fi
28598
28599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28600 fi
28601
28602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28603 # Binary search between lo and hi bounds.
28604 while test "x$ac_lo" != "x$ac_hi"; do
28605   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28606   cat >conftest.$ac_ext <<_ACEOF
28607 /* confdefs.h.  */
28608 _ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h.  */
28612
28613                                     #undef HAVE_BOOLEAN
28614                                     #include <stdio.h>
28615                                     #include <jpeglib.h>
28616
28617
28618    typedef boolean ac__type_sizeof_;
28619 int
28620 main ()
28621 {
28622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28623 test_array [0] = 0
28624
28625   ;
28626   return 0;
28627 }
28628 _ACEOF
28629 rm -f conftest.$ac_objext
28630 if { (ac_try="$ac_compile"
28631 case "(($ac_try" in
28632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28633   *) ac_try_echo=$ac_try;;
28634 esac
28635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636   (eval "$ac_compile") 2>conftest.er1
28637   ac_status=$?
28638   grep -v '^ *+' conftest.er1 >conftest.err
28639   rm -f conftest.er1
28640   cat conftest.err >&5
28641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642   (exit $ac_status); } && {
28643          test -z "$ac_c_werror_flag" ||
28644          test ! -s conftest.err
28645        } && test -s conftest.$ac_objext; then
28646   ac_hi=$ac_mid
28647 else
28648   echo "$as_me: failed program was:" >&5
28649 sed 's/^/| /' conftest.$ac_ext >&5
28650
28651         ac_lo=`expr '(' $ac_mid ')' + 1`
28652 fi
28653
28654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655 done
28656 case $ac_lo in
28657 ?*) ac_cv_sizeof_boolean=$ac_lo;;
28658 '') if test "$ac_cv_type_boolean" = yes; then
28659      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28660 See \`config.log' for more details." >&5
28661 echo "$as_me: error: cannot compute sizeof (boolean)
28662 See \`config.log' for more details." >&2;}
28663    { (exit 77); exit 77; }; }
28664    else
28665      ac_cv_sizeof_boolean=0
28666    fi ;;
28667 esac
28668 else
28669   cat >conftest.$ac_ext <<_ACEOF
28670 /* confdefs.h.  */
28671 _ACEOF
28672 cat confdefs.h >>conftest.$ac_ext
28673 cat >>conftest.$ac_ext <<_ACEOF
28674 /* end confdefs.h.  */
28675
28676                                     #undef HAVE_BOOLEAN
28677                                     #include <stdio.h>
28678                                     #include <jpeglib.h>
28679
28680
28681    typedef boolean ac__type_sizeof_;
28682 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28683 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28684 #include <stdio.h>
28685 #include <stdlib.h>
28686 int
28687 main ()
28688 {
28689
28690   FILE *f = fopen ("conftest.val", "w");
28691   if (! f)
28692     return 1;
28693   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28694     {
28695       long int i = longval ();
28696       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28697         return 1;
28698       fprintf (f, "%ld\n", i);
28699     }
28700   else
28701     {
28702       unsigned long int i = ulongval ();
28703       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28704         return 1;
28705       fprintf (f, "%lu\n", i);
28706     }
28707   return ferror (f) || fclose (f) != 0;
28708
28709   ;
28710   return 0;
28711 }
28712 _ACEOF
28713 rm -f 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>&5
28721   ac_status=$?
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28724   { (case "(($ac_try" in
28725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726   *) ac_try_echo=$ac_try;;
28727 esac
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729   (eval "$ac_try") 2>&5
28730   ac_status=$?
28731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732   (exit $ac_status); }; }; then
28733   ac_cv_sizeof_boolean=`cat conftest.val`
28734 else
28735   echo "$as_me: program exited with status $ac_status" >&5
28736 echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28738
28739 ( exit $ac_status )
28740 if test "$ac_cv_type_boolean" = yes; then
28741      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28742 See \`config.log' for more details." >&5
28743 echo "$as_me: error: cannot compute sizeof (boolean)
28744 See \`config.log' for more details." >&2;}
28745    { (exit 77); exit 77; }; }
28746    else
28747      ac_cv_sizeof_boolean=0
28748    fi
28749 fi
28750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28751 fi
28752 rm -f conftest.val
28753 fi
28754 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
28755 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
28756
28757
28758
28759 cat >>confdefs.h <<_ACEOF
28760 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
28761 _ACEOF
28762
28763
28764                             cat >>confdefs.h <<_ACEOF
28765 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
28766 _ACEOF
28767
28768
28769 fi
28770
28771                 fi
28772             fi
28773         fi
28774     fi
28775 fi
28776
28777
28778 TIFF_LINK=
28779 TIFF_PREREQ_LINKS=-lm
28780 if test "$wxUSE_LIBTIFF" != "no" ; then
28781     cat >>confdefs.h <<\_ACEOF
28782 #define wxUSE_LIBTIFF 1
28783 _ACEOF
28784
28785
28786     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
28787                         if test "$wxUSE_LIBJPEG" = "sys"; then
28788             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
28789         fi
28790         if test "$wxUSE_ZLIB" = "sys"; then
28791             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
28792         fi
28793         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
28794 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
28795 if test "${ac_cv_header_tiffio_h+set}" = set; then
28796   echo $ECHO_N "(cached) $ECHO_C" >&6
28797 else
28798   cat >conftest.$ac_ext <<_ACEOF
28799 /* confdefs.h.  */
28800 _ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h.  */
28804
28805
28806
28807 #include <tiffio.h>
28808 _ACEOF
28809 rm -f conftest.$ac_objext
28810 if { (ac_try="$ac_compile"
28811 case "(($ac_try" in
28812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813   *) ac_try_echo=$ac_try;;
28814 esac
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816   (eval "$ac_compile") 2>conftest.er1
28817   ac_status=$?
28818   grep -v '^ *+' conftest.er1 >conftest.err
28819   rm -f conftest.er1
28820   cat conftest.err >&5
28821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822   (exit $ac_status); } && {
28823          test -z "$ac_c_werror_flag" ||
28824          test ! -s conftest.err
28825        } && test -s conftest.$ac_objext; then
28826   ac_cv_header_tiffio_h=yes
28827 else
28828   echo "$as_me: failed program was:" >&5
28829 sed 's/^/| /' conftest.$ac_ext >&5
28830
28831         ac_cv_header_tiffio_h=no
28832 fi
28833
28834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28835 fi
28836 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
28837 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
28838 if test $ac_cv_header_tiffio_h = yes; then
28839
28840                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
28841 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
28842 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
28843   echo $ECHO_N "(cached) $ECHO_C" >&6
28844 else
28845   ac_check_lib_save_LIBS=$LIBS
28846 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
28847 cat >conftest.$ac_ext <<_ACEOF
28848 /* confdefs.h.  */
28849 _ACEOF
28850 cat confdefs.h >>conftest.$ac_ext
28851 cat >>conftest.$ac_ext <<_ACEOF
28852 /* end confdefs.h.  */
28853
28854 /* Override any GCC internal prototype to avoid an error.
28855    Use char because int might match the return type of a GCC
28856    builtin and then its argument prototype would still apply.  */
28857 #ifdef __cplusplus
28858 extern "C"
28859 #endif
28860 char TIFFError ();
28861 int
28862 main ()
28863 {
28864 return TIFFError ();
28865   ;
28866   return 0;
28867 }
28868 _ACEOF
28869 rm -f conftest.$ac_objext conftest$ac_exeext
28870 if { (ac_try="$ac_link"
28871 case "(($ac_try" in
28872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28873   *) ac_try_echo=$ac_try;;
28874 esac
28875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28876   (eval "$ac_link") 2>conftest.er1
28877   ac_status=$?
28878   grep -v '^ *+' conftest.er1 >conftest.err
28879   rm -f conftest.er1
28880   cat conftest.err >&5
28881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882   (exit $ac_status); } && {
28883          test -z "$ac_c_werror_flag" ||
28884          test ! -s conftest.err
28885        } && test -s conftest$ac_exeext &&
28886        $as_test_x conftest$ac_exeext; then
28887   ac_cv_lib_tiff_TIFFError=yes
28888 else
28889   echo "$as_me: failed program was:" >&5
28890 sed 's/^/| /' conftest.$ac_ext >&5
28891
28892         ac_cv_lib_tiff_TIFFError=no
28893 fi
28894
28895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28896       conftest$ac_exeext conftest.$ac_ext
28897 LIBS=$ac_check_lib_save_LIBS
28898 fi
28899 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
28900 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
28901 if test $ac_cv_lib_tiff_TIFFError = yes; then
28902   TIFF_LINK=" -ltiff"
28903 fi
28904
28905
28906 fi
28907
28908
28909
28910         if test "x$TIFF_LINK" = "x" ; then
28911             if test "$wxUSE_LIBTIFF" = "sys" ; then
28912                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
28913 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
28914    { (exit 1); exit 1; }; }
28915             else
28916                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
28917 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
28918                 wxUSE_LIBTIFF=builtin
28919             fi
28920         else
28921                         wxUSE_LIBTIFF=sys
28922         fi
28923     fi
28924     if test "$wxUSE_LIBTIFF" = "builtin" ; then
28925         if test "$wxUSE_LIBJPEG" = "no"; then
28926                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
28927         fi
28928         subdirs="$subdirs src/tiff"
28929
28930     fi
28931 fi
28932
28933
28934 if test "$wxUSE_EXPAT" != "no"; then
28935     wxUSE_XML=yes
28936     cat >>confdefs.h <<\_ACEOF
28937 #define wxUSE_EXPAT 1
28938 _ACEOF
28939
28940     cat >>confdefs.h <<\_ACEOF
28941 #define wxUSE_XML 1
28942 _ACEOF
28943
28944
28945     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
28946         { echo "$as_me:$LINENO: checking for expat.h" >&5
28947 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
28948 if test "${ac_cv_header_expat_h+set}" = set; then
28949   echo $ECHO_N "(cached) $ECHO_C" >&6
28950 else
28951   cat >conftest.$ac_ext <<_ACEOF
28952 /* confdefs.h.  */
28953 _ACEOF
28954 cat confdefs.h >>conftest.$ac_ext
28955 cat >>conftest.$ac_ext <<_ACEOF
28956 /* end confdefs.h.  */
28957
28958
28959 #include <expat.h>
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_cv_header_expat_h=yes
28979 else
28980   echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28982
28983         ac_cv_header_expat_h=no
28984 fi
28985
28986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987 fi
28988 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
28989 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
28990 if test $ac_cv_header_expat_h = yes; then
28991   found_expat_h=1
28992 fi
28993
28994
28995         if test "x$found_expat_h" = "x1"; then
28996                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
28997 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
28998 if test "${wx_cv_expat_is_not_broken+set}" = set; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 else
29001
29002                 ac_ext=cpp
29003 ac_cpp='$CXXCPP $CPPFLAGS'
29004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29007
29008                 cat >conftest.$ac_ext <<_ACEOF
29009 /* confdefs.h.  */
29010 _ACEOF
29011 cat confdefs.h >>conftest.$ac_ext
29012 cat >>conftest.$ac_ext <<_ACEOF
29013 /* end confdefs.h.  */
29014 #include <expat.h>
29015 int
29016 main ()
29017 {
29018
29019   ;
29020   return 0;
29021 }
29022 _ACEOF
29023 rm -f conftest.$ac_objext
29024 if { (ac_try="$ac_compile"
29025 case "(($ac_try" in
29026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29027   *) ac_try_echo=$ac_try;;
29028 esac
29029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29030   (eval "$ac_compile") 2>conftest.er1
29031   ac_status=$?
29032   grep -v '^ *+' conftest.er1 >conftest.err
29033   rm -f conftest.er1
29034   cat conftest.err >&5
29035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036   (exit $ac_status); } && {
29037          test -z "$ac_cxx_werror_flag" ||
29038          test ! -s conftest.err
29039        } && test -s conftest.$ac_objext; then
29040   wx_cv_expat_is_not_broken=yes
29041 else
29042   echo "$as_me: failed program was:" >&5
29043 sed 's/^/| /' conftest.$ac_ext >&5
29044
29045         wx_cv_expat_is_not_broken=no
29046
29047 fi
29048
29049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29050                 ac_ext=c
29051 ac_cpp='$CPP $CPPFLAGS'
29052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29055
29056
29057
29058 fi
29059 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29060 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29061             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29062                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29063 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29064 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29065   echo $ECHO_N "(cached) $ECHO_C" >&6
29066 else
29067   ac_check_lib_save_LIBS=$LIBS
29068 LIBS="-lexpat  $LIBS"
29069 cat >conftest.$ac_ext <<_ACEOF
29070 /* confdefs.h.  */
29071 _ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h.  */
29075
29076 /* Override any GCC internal prototype to avoid an error.
29077    Use char because int might match the return type of a GCC
29078    builtin and then its argument prototype would still apply.  */
29079 #ifdef __cplusplus
29080 extern "C"
29081 #endif
29082 char XML_ParserCreate ();
29083 int
29084 main ()
29085 {
29086 return XML_ParserCreate ();
29087   ;
29088   return 0;
29089 }
29090 _ACEOF
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (ac_try="$ac_link"
29093 case "(($ac_try" in
29094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095   *) ac_try_echo=$ac_try;;
29096 esac
29097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098   (eval "$ac_link") 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } && {
29105          test -z "$ac_c_werror_flag" ||
29106          test ! -s conftest.err
29107        } && test -s conftest$ac_exeext &&
29108        $as_test_x conftest$ac_exeext; then
29109   ac_cv_lib_expat_XML_ParserCreate=yes
29110 else
29111   echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29113
29114         ac_cv_lib_expat_XML_ParserCreate=no
29115 fi
29116
29117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29118       conftest$ac_exeext conftest.$ac_ext
29119 LIBS=$ac_check_lib_save_LIBS
29120 fi
29121 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29122 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29123 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29124   EXPAT_LINK=" -lexpat"
29125 fi
29126
29127             fi
29128         fi
29129         if test "x$EXPAT_LINK" = "x" ; then
29130             if test "$wxUSE_EXPAT" = "sys" ; then
29131                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29132 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29133    { (exit 1); exit 1; }; }
29134             else
29135                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29136 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29137                 wxUSE_EXPAT=builtin
29138             fi
29139         else
29140                         wxUSE_EXPAT=sys
29141         fi
29142     fi
29143     if test "$wxUSE_EXPAT" = "builtin" ; then
29144                 subdirs="$subdirs src/expat"
29145
29146     fi
29147 fi
29148
29149
29150
29151 if test "$wxUSE_LIBMSPACK" != "no"; then
29152     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29153 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29154 if test "${ac_cv_header_mspack_h+set}" = set; then
29155   echo $ECHO_N "(cached) $ECHO_C" >&6
29156 else
29157   cat >conftest.$ac_ext <<_ACEOF
29158 /* confdefs.h.  */
29159 _ACEOF
29160 cat confdefs.h >>conftest.$ac_ext
29161 cat >>conftest.$ac_ext <<_ACEOF
29162 /* end confdefs.h.  */
29163
29164
29165 #include <mspack.h>
29166 _ACEOF
29167 rm -f conftest.$ac_objext
29168 if { (ac_try="$ac_compile"
29169 case "(($ac_try" in
29170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171   *) ac_try_echo=$ac_try;;
29172 esac
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174   (eval "$ac_compile") 2>conftest.er1
29175   ac_status=$?
29176   grep -v '^ *+' conftest.er1 >conftest.err
29177   rm -f conftest.er1
29178   cat conftest.err >&5
29179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180   (exit $ac_status); } && {
29181          test -z "$ac_c_werror_flag" ||
29182          test ! -s conftest.err
29183        } && test -s conftest.$ac_objext; then
29184   ac_cv_header_mspack_h=yes
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189         ac_cv_header_mspack_h=no
29190 fi
29191
29192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29193 fi
29194 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29195 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29196 if test $ac_cv_header_mspack_h = yes; then
29197   found_mspack_h=1
29198 fi
29199
29200
29201     if test "x$found_mspack_h" = "x1"; then
29202         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29203 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29204 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29205   echo $ECHO_N "(cached) $ECHO_C" >&6
29206 else
29207   ac_check_lib_save_LIBS=$LIBS
29208 LIBS="-lmspack  $LIBS"
29209 cat >conftest.$ac_ext <<_ACEOF
29210 /* confdefs.h.  */
29211 _ACEOF
29212 cat confdefs.h >>conftest.$ac_ext
29213 cat >>conftest.$ac_ext <<_ACEOF
29214 /* end confdefs.h.  */
29215
29216 /* Override any GCC internal prototype to avoid an error.
29217    Use char because int might match the return type of a GCC
29218    builtin and then its argument prototype would still apply.  */
29219 #ifdef __cplusplus
29220 extern "C"
29221 #endif
29222 char mspack_create_chm_decompressor ();
29223 int
29224 main ()
29225 {
29226 return mspack_create_chm_decompressor ();
29227   ;
29228   return 0;
29229 }
29230 _ACEOF
29231 rm -f conftest.$ac_objext conftest$ac_exeext
29232 if { (ac_try="$ac_link"
29233 case "(($ac_try" in
29234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29235   *) ac_try_echo=$ac_try;;
29236 esac
29237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238   (eval "$ac_link") 2>conftest.er1
29239   ac_status=$?
29240   grep -v '^ *+' conftest.er1 >conftest.err
29241   rm -f conftest.er1
29242   cat conftest.err >&5
29243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244   (exit $ac_status); } && {
29245          test -z "$ac_c_werror_flag" ||
29246          test ! -s conftest.err
29247        } && test -s conftest$ac_exeext &&
29248        $as_test_x conftest$ac_exeext; then
29249   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29250 else
29251   echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29253
29254         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29255 fi
29256
29257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29258       conftest$ac_exeext conftest.$ac_ext
29259 LIBS=$ac_check_lib_save_LIBS
29260 fi
29261 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29262 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29263 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29264   MSPACK_LINK=" -lmspack"
29265 fi
29266
29267     fi
29268     if test "x$MSPACK_LINK" = "x" ; then
29269         wxUSE_LIBMSPACK=no
29270     fi
29271 fi
29272
29273 if test "$wxUSE_LIBMSPACK" != "no"; then
29274     cat >>confdefs.h <<\_ACEOF
29275 #define wxUSE_LIBMSPACK 1
29276 _ACEOF
29277
29278 fi
29279
29280
29281
29282 AFMINSTALL=
29283 WIN32INSTALL=
29284
29285 TOOLKIT=
29286 TOOLKIT_INCLUDE=
29287 WIDGET_SET=
29288
29289 if test "$USE_WIN32" = 1 ; then
29290
29291 for ac_header in w32api.h
29292 do
29293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29297   echo $ECHO_N "(cached) $ECHO_C" >&6
29298 else
29299   cat >conftest.$ac_ext <<_ACEOF
29300 /* confdefs.h.  */
29301 _ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h.  */
29305
29306
29307 #include <$ac_header>
29308 _ACEOF
29309 rm -f conftest.$ac_objext
29310 if { (ac_try="$ac_compile"
29311 case "(($ac_try" in
29312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313   *) ac_try_echo=$ac_try;;
29314 esac
29315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29316   (eval "$ac_compile") 2>conftest.er1
29317   ac_status=$?
29318   grep -v '^ *+' conftest.er1 >conftest.err
29319   rm -f conftest.er1
29320   cat conftest.err >&5
29321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322   (exit $ac_status); } && {
29323          test -z "$ac_c_werror_flag" ||
29324          test ! -s conftest.err
29325        } && test -s conftest.$ac_objext; then
29326   eval "$as_ac_Header=yes"
29327 else
29328   echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29330
29331         eval "$as_ac_Header=no"
29332 fi
29333
29334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29335 fi
29336 ac_res=`eval echo '${'$as_ac_Header'}'`
29337                { echo "$as_me:$LINENO: result: $ac_res" >&5
29338 echo "${ECHO_T}$ac_res" >&6; }
29339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29340   cat >>confdefs.h <<_ACEOF
29341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29342 _ACEOF
29343
29344 fi
29345
29346 done
29347
29348     { echo "$as_me:$LINENO: checking for windows.h" >&5
29349 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29350 if test "${ac_cv_header_windows_h+set}" = set; then
29351   echo $ECHO_N "(cached) $ECHO_C" >&6
29352 else
29353   cat >conftest.$ac_ext <<_ACEOF
29354 /* confdefs.h.  */
29355 _ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h.  */
29359
29360
29361 #include <windows.h>
29362 _ACEOF
29363 rm -f conftest.$ac_objext
29364 if { (ac_try="$ac_compile"
29365 case "(($ac_try" in
29366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367   *) ac_try_echo=$ac_try;;
29368 esac
29369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29370   (eval "$ac_compile") 2>conftest.er1
29371   ac_status=$?
29372   grep -v '^ *+' conftest.er1 >conftest.err
29373   rm -f conftest.er1
29374   cat conftest.err >&5
29375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376   (exit $ac_status); } && {
29377          test -z "$ac_c_werror_flag" ||
29378          test ! -s conftest.err
29379        } && test -s conftest.$ac_objext; then
29380   ac_cv_header_windows_h=yes
29381 else
29382   echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29384
29385         ac_cv_header_windows_h=no
29386 fi
29387
29388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29389 fi
29390 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29391 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29392 if test $ac_cv_header_windows_h = yes; then
29393   :
29394 else
29395
29396         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29397 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29398    { (exit 1); exit 1; }; }
29399
29400 fi
29401
29402
29403
29404     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29405     case "${host}" in
29406         x86_64-*-mingw32* )
29407                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29408         ;;
29409     esac
29410     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29411         LIBS="$LIBS -loleacc"
29412     fi
29413
29414     case "${host}" in
29415         *-*-cygwin* )
29416                         LIBS="$LIBS -lkernel32 -luser32"
29417     esac
29418
29419         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29420     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29421
29422                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29423
29424         WIN32INSTALL=win32install
29425
29426         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29427 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29428 if test "${ac_cv_header_pbt_h+set}" = set; then
29429   echo $ECHO_N "(cached) $ECHO_C" >&6
29430 else
29431   cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437
29438
29439 #include <pbt.h>
29440 _ACEOF
29441 rm -f conftest.$ac_objext
29442 if { (ac_try="$ac_compile"
29443 case "(($ac_try" in
29444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29445   *) ac_try_echo=$ac_try;;
29446 esac
29447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29448   (eval "$ac_compile") 2>conftest.er1
29449   ac_status=$?
29450   grep -v '^ *+' conftest.er1 >conftest.err
29451   rm -f conftest.er1
29452   cat conftest.err >&5
29453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); } && {
29455          test -z "$ac_c_werror_flag" ||
29456          test ! -s conftest.err
29457        } && test -s conftest.$ac_objext; then
29458   ac_cv_header_pbt_h=yes
29459 else
29460   echo "$as_me: failed program was:" >&5
29461 sed 's/^/| /' conftest.$ac_ext >&5
29462
29463         ac_cv_header_pbt_h=no
29464 fi
29465
29466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29467 fi
29468 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29469 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29470 if test $ac_cv_header_pbt_h = yes; then
29471   :
29472 else
29473   cat >>confdefs.h <<\_ACEOF
29474 #define NEED_PBT_H 1
29475 _ACEOF
29476
29477 fi
29478
29479
29480 fi
29481
29482 if test "$wxUSE_GUI" = "yes"; then
29483     USE_GUI=1
29484
29485     GUI_TK_LIBRARY=
29486
29487     WXGTK12=
29488     WXGTK127=
29489     WXGTK2=
29490     WXGPE=
29491
29492     if test "$wxUSE_OLD_COCOA" = 1 ; then
29493         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29494             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29495 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29496             wxUSE_PRINTING_ARCHITECTURE=no
29497         fi
29498         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29499             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29500 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29501             wxUSE_DRAG_AND_DROP=no
29502         fi
29503         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29504             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29505 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29506             wxUSE_DRAGIMAGE=no
29507         fi
29508     fi
29509
29510     if test "$wxUSE_MSW" = 1 ; then
29511         TOOLKIT=MSW
29512         GUIDIST=MSW_DIST
29513
29514                 case "${host}" in
29515             *-*-mingw32* )
29516                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29517         esac
29518     fi
29519
29520     if test "$wxUSE_GTK" = 1; then
29521                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29522 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29523
29524         gtk_version_cached=1
29525         if test "${wx_cv_lib_gtk+set}" = set; then
29526   echo $ECHO_N "(cached) $ECHO_C" >&6
29527 else
29528
29529                                                 gtk_version_cached=0
29530                 { echo "$as_me:$LINENO: result: " >&5
29531 echo "${ECHO_T}" >&6; }
29532
29533                                                 GTK_MODULES=
29534                 if test "$wxUSE_THREADS" = "yes"; then
29535                     GTK_MODULES=gthread
29536                 fi
29537
29538                                 wx_cv_lib_gtk=
29539                 if test "x$wxGTK_VERSION" != "x1"
29540                 then
29541                                                                                 case "${host}" in
29542                         *-*-solaris2* )
29543                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29544                                 enable_gtktest=no
29545                             fi
29546                     esac
29547
29548                     # Check whether --enable-gtktest was given.
29549 if test "${enable_gtktest+set}" = set; then
29550   enableval=$enable_gtktest;
29551 else
29552   enable_gtktest=yes
29553 fi
29554
29555
29556   pkg_config_args=gtk+-2.0
29557   for module in . $GTK_MODULES
29558   do
29559       case "$module" in
29560          gthread)
29561              pkg_config_args="$pkg_config_args gthread-2.0"
29562          ;;
29563       esac
29564   done
29565
29566   no_gtk=""
29567
29568   # Extract the first word of "pkg-config", so it can be a program name with args.
29569 set dummy pkg-config; ac_word=$2
29570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29572 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29573   echo $ECHO_N "(cached) $ECHO_C" >&6
29574 else
29575   case $PKG_CONFIG in
29576   [\\/]* | ?:[\\/]*)
29577   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29578   ;;
29579   *)
29580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29581 for as_dir in $PATH
29582 do
29583   IFS=$as_save_IFS
29584   test -z "$as_dir" && as_dir=.
29585   for ac_exec_ext in '' $ac_executable_extensions; do
29586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29587     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29589     break 2
29590   fi
29591 done
29592 done
29593 IFS=$as_save_IFS
29594
29595   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29596   ;;
29597 esac
29598 fi
29599 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29600 if test -n "$PKG_CONFIG"; then
29601   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29602 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29603 else
29604   { echo "$as_me:$LINENO: result: no" >&5
29605 echo "${ECHO_T}no" >&6; }
29606 fi
29607
29608
29609
29610   if test x$PKG_CONFIG != xno ; then
29611     if pkg-config --atleast-pkgconfig-version 0.7 ; then
29612       :
29613     else
29614       echo "*** pkg-config too old; version 0.7 or better required."
29615       no_gtk=yes
29616       PKG_CONFIG=no
29617     fi
29618   else
29619     no_gtk=yes
29620   fi
29621
29622   min_gtk_version=2.4.0
29623   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
29624 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
29625
29626   if test x$PKG_CONFIG != xno ; then
29627     ## don't try to run the test against uninstalled libtool libs
29628     if $PKG_CONFIG --uninstalled $pkg_config_args; then
29629           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
29630           enable_gtktest=no
29631     fi
29632
29633     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
29634           :
29635     else
29636           no_gtk=yes
29637     fi
29638   fi
29639
29640   if test x"$no_gtk" = x ; then
29641     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
29642     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
29643     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29644            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29645     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29646            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29647     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29648            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29649     if test "x$enable_gtktest" = "xyes" ; then
29650       ac_save_CFLAGS="$CFLAGS"
29651       ac_save_LIBS="$LIBS"
29652       CFLAGS="$CFLAGS $GTK_CFLAGS"
29653       LIBS="$GTK_LIBS $LIBS"
29654       rm -f conf.gtktest
29655       if test "$cross_compiling" = yes; then
29656   echo $ac_n "cross compiling; assumed OK... $ac_c"
29657 else
29658   cat >conftest.$ac_ext <<_ACEOF
29659 /* confdefs.h.  */
29660 _ACEOF
29661 cat confdefs.h >>conftest.$ac_ext
29662 cat >>conftest.$ac_ext <<_ACEOF
29663 /* end confdefs.h.  */
29664
29665 #include <gtk/gtk.h>
29666 #include <stdio.h>
29667 #include <stdlib.h>
29668
29669 int
29670 main ()
29671 {
29672   int major, minor, micro;
29673   char *tmp_version;
29674
29675   system ("touch conf.gtktest");
29676
29677   /* HP/UX 9 (%@#!) writes to sscanf strings */
29678   tmp_version = g_strdup("$min_gtk_version");
29679   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29680      printf("%s, bad version string\n", "$min_gtk_version");
29681      exit(1);
29682    }
29683
29684   if ((gtk_major_version != $gtk_config_major_version) ||
29685       (gtk_minor_version != $gtk_config_minor_version) ||
29686       (gtk_micro_version != $gtk_config_micro_version))
29687     {
29688       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29689              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29690              gtk_major_version, gtk_minor_version, gtk_micro_version);
29691       printf ("*** was found! If pkg-config was correct, then it is best\n");
29692       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29693       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29694       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29695       printf("*** required on your system.\n");
29696       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29697       printf("*** to point to the correct configuration files\n");
29698     }
29699   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29700            (gtk_minor_version != GTK_MINOR_VERSION) ||
29701            (gtk_micro_version != GTK_MICRO_VERSION))
29702     {
29703       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29704              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29705       printf("*** library (version %d.%d.%d)\n",
29706              gtk_major_version, gtk_minor_version, gtk_micro_version);
29707     }
29708   else
29709     {
29710       if ((gtk_major_version > major) ||
29711         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29712         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29713       {
29714         return 0;
29715        }
29716      else
29717       {
29718         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29719                gtk_major_version, gtk_minor_version, gtk_micro_version);
29720         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29721                major, minor, micro);
29722         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29723         printf("***\n");
29724         printf("*** If you have already installed a sufficiently new version, this error\n");
29725         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
29726         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29727         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
29728         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
29729         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29730         printf("*** so that the correct libraries are found at run-time))\n");
29731       }
29732     }
29733   return 1;
29734 }
29735
29736 _ACEOF
29737 rm -f conftest$ac_exeext
29738 if { (ac_try="$ac_link"
29739 case "(($ac_try" in
29740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741   *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744   (eval "$ac_link") 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29748   { (case "(($ac_try" in
29749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29750   *) ac_try_echo=$ac_try;;
29751 esac
29752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29753   (eval "$ac_try") 2>&5
29754   ac_status=$?
29755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756   (exit $ac_status); }; }; then
29757   :
29758 else
29759   echo "$as_me: program exited with status $ac_status" >&5
29760 echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763 ( exit $ac_status )
29764 no_gtk=yes
29765 fi
29766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29767 fi
29768
29769
29770        CFLAGS="$ac_save_CFLAGS"
29771        LIBS="$ac_save_LIBS"
29772      fi
29773   fi
29774   if test "x$no_gtk" = x ; then
29775      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
29776 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
29777      wx_cv_lib_gtk=2.0
29778   else
29779      { echo "$as_me:$LINENO: result: no" >&5
29780 echo "${ECHO_T}no" >&6; }
29781      if test "$PKG_CONFIG" = "no" ; then
29782        echo "*** A new enough version of pkg-config was not found."
29783        echo "*** See http://pkgconfig.sourceforge.net"
29784      else
29785        if test -f conf.gtktest ; then
29786         :
29787        else
29788           echo "*** Could not run GTK+ test program, checking why..."
29789           ac_save_CFLAGS="$CFLAGS"
29790           ac_save_LIBS="$LIBS"
29791           CFLAGS="$CFLAGS $GTK_CFLAGS"
29792           LIBS="$LIBS $GTK_LIBS"
29793           cat >conftest.$ac_ext <<_ACEOF
29794 /* confdefs.h.  */
29795 _ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h.  */
29799
29800 #include <gtk/gtk.h>
29801 #include <stdio.h>
29802
29803 int
29804 main ()
29805 {
29806  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29807   ;
29808   return 0;
29809 }
29810 _ACEOF
29811 rm -f conftest.$ac_objext conftest$ac_exeext
29812 if { (ac_try="$ac_link"
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_link") 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_exeext &&
29828        $as_test_x conftest$ac_exeext; then
29829    echo "*** The test program compiled, but did not run. This usually means"
29830           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
29831           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
29832           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29833           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29834           echo "*** is required on your system"
29835           echo "***"
29836           echo "*** If you have an old version installed, it is best to remove it, although"
29837           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29838 else
29839   echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841
29842          echo "*** The test program failed to compile or link. See the file config.log for the"
29843           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
29844 fi
29845
29846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29847       conftest$ac_exeext conftest.$ac_ext
29848           CFLAGS="$ac_save_CFLAGS"
29849           LIBS="$ac_save_LIBS"
29850        fi
29851      fi
29852      GTK_CFLAGS=""
29853      GTK_LIBS=""
29854      :
29855   fi
29856
29857
29858   rm -f conf.gtktest
29859
29860
29861                                         case "${host}" in
29862                         *-*-solaris2* )
29863                             if test "$wxUSE_SHARED" != "yes"; then
29864                                 GTK_LIBS="$GTK_LIBS -lX11"
29865                             fi
29866                     esac
29867                 fi
29868
29869                                 if test -z "$wx_cv_lib_gtk"; then
29870                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
29871
29872 # Check whether --with-gtk-prefix was given.
29873 if test "${with_gtk_prefix+set}" = set; then
29874   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
29875 else
29876   gtk_config_prefix=""
29877 fi
29878
29879
29880 # Check whether --with-gtk-exec-prefix was given.
29881 if test "${with_gtk_exec_prefix+set}" = set; then
29882   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29883 else
29884   gtk_config_exec_prefix=""
29885 fi
29886
29887 # Check whether --enable-gtktest was given.
29888 if test "${enable_gtktest+set}" = set; then
29889   enableval=$enable_gtktest;
29890 else
29891   enable_gtktest=yes
29892 fi
29893
29894
29895   for module in . $GTK_MODULES
29896   do
29897       case "$module" in
29898          gthread)
29899              gtk_config_args="$gtk_config_args gthread"
29900          ;;
29901       esac
29902   done
29903
29904   if test x$gtk_config_exec_prefix != x ; then
29905      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29906      if test x${GTK_CONFIG+set} != xset ; then
29907         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29908      fi
29909   fi
29910   if test x$gtk_config_prefix != x ; then
29911      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29912      if test x${GTK_CONFIG+set} != xset ; then
29913         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29914      fi
29915   fi
29916
29917   # Extract the first word of "gtk-config", so it can be a program name with args.
29918 set dummy gtk-config; ac_word=$2
29919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29921 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29922   echo $ECHO_N "(cached) $ECHO_C" >&6
29923 else
29924   case $GTK_CONFIG in
29925   [\\/]* | ?:[\\/]*)
29926   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29927   ;;
29928   *)
29929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29930 for as_dir in $PATH
29931 do
29932   IFS=$as_save_IFS
29933   test -z "$as_dir" && as_dir=.
29934   for ac_exec_ext in '' $ac_executable_extensions; do
29935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29936     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29938     break 2
29939   fi
29940 done
29941 done
29942 IFS=$as_save_IFS
29943
29944   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29945   ;;
29946 esac
29947 fi
29948 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29949 if test -n "$GTK_CONFIG"; then
29950   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29951 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29952 else
29953   { echo "$as_me:$LINENO: result: no" >&5
29954 echo "${ECHO_T}no" >&6; }
29955 fi
29956
29957
29958   min_gtk_version=1.2.7
29959   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29960 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29961   no_gtk=""
29962   if test "$GTK_CONFIG" = "no" ; then
29963     no_gtk=yes
29964   else
29965     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29966     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29967     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29968            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29969     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29970            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29971     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29972            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29973     if test "x$enable_gtktest" = "xyes" ; then
29974       ac_save_CFLAGS="$CFLAGS"
29975       ac_save_LIBS="$LIBS"
29976       CFLAGS="$CFLAGS $GTK_CFLAGS"
29977       LIBS="$GTK_LIBS $LIBS"
29978       rm -f conf.gtktest
29979       if test "$cross_compiling" = yes; then
29980   echo $ac_n "cross compiling; assumed OK... $ac_c"
29981 else
29982   cat >conftest.$ac_ext <<_ACEOF
29983 /* confdefs.h.  */
29984 _ACEOF
29985 cat confdefs.h >>conftest.$ac_ext
29986 cat >>conftest.$ac_ext <<_ACEOF
29987 /* end confdefs.h.  */
29988
29989 #include <gtk/gtk.h>
29990 #include <stdio.h>
29991 #include <stdlib.h>
29992
29993 int
29994 main ()
29995 {
29996   int major, minor, micro;
29997   char *tmp_version;
29998
29999   system ("touch conf.gtktest");
30000
30001   /* HP/UX 9 (%@#!) writes to sscanf strings */
30002   tmp_version = g_strdup("$min_gtk_version");
30003   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30004      printf("%s, bad version string\n", "$min_gtk_version");
30005      exit(1);
30006    }
30007
30008   if ((gtk_major_version != $gtk_config_major_version) ||
30009       (gtk_minor_version != $gtk_config_minor_version) ||
30010       (gtk_micro_version != $gtk_config_micro_version))
30011     {
30012       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30013              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30014              gtk_major_version, gtk_minor_version, gtk_micro_version);
30015       printf ("*** was found! If gtk-config was correct, then it is best\n");
30016       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30017       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30018       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30019       printf("*** required on your system.\n");
30020       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30021       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30022       printf("*** before re-running configure\n");
30023     }
30024 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30025   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30026            (gtk_minor_version != GTK_MINOR_VERSION) ||
30027            (gtk_micro_version != GTK_MICRO_VERSION))
30028     {
30029       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30030              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30031       printf("*** library (version %d.%d.%d)\n",
30032              gtk_major_version, gtk_minor_version, gtk_micro_version);
30033     }
30034 #endif /* defined (GTK_MAJOR_VERSION) ... */
30035   else
30036     {
30037       if ((gtk_major_version > major) ||
30038         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30039         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30040       {
30041         return 0;
30042        }
30043      else
30044       {
30045         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30046                gtk_major_version, gtk_minor_version, gtk_micro_version);
30047         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30048                major, minor, micro);
30049         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30050         printf("***\n");
30051         printf("*** If you have already installed a sufficiently new version, this error\n");
30052         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30053         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30054         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30055         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30056         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30057         printf("*** so that the correct libraries are found at run-time))\n");
30058       }
30059     }
30060   return 1;
30061 }
30062
30063 _ACEOF
30064 rm -f conftest$ac_exeext
30065 if { (ac_try="$ac_link"
30066 case "(($ac_try" in
30067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068   *) ac_try_echo=$ac_try;;
30069 esac
30070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071   (eval "$ac_link") 2>&5
30072   ac_status=$?
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30075   { (case "(($ac_try" in
30076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077   *) ac_try_echo=$ac_try;;
30078 esac
30079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080   (eval "$ac_try") 2>&5
30081   ac_status=$?
30082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083   (exit $ac_status); }; }; then
30084   :
30085 else
30086   echo "$as_me: program exited with status $ac_status" >&5
30087 echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30089
30090 ( exit $ac_status )
30091 no_gtk=yes
30092 fi
30093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30094 fi
30095
30096
30097        CFLAGS="$ac_save_CFLAGS"
30098        LIBS="$ac_save_LIBS"
30099      fi
30100   fi
30101   if test "x$no_gtk" = x ; then
30102      { echo "$as_me:$LINENO: result: yes" >&5
30103 echo "${ECHO_T}yes" >&6; }
30104      wx_cv_lib_gtk=1.2.7
30105   else
30106      { echo "$as_me:$LINENO: result: no" >&5
30107 echo "${ECHO_T}no" >&6; }
30108      if test "$GTK_CONFIG" = "no" ; then
30109        echo "*** The gtk-config script installed by GTK could not be found"
30110        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30111        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30112        echo "*** full path to gtk-config."
30113      else
30114        if test -f conf.gtktest ; then
30115         :
30116        else
30117           echo "*** Could not run GTK test program, checking why..."
30118           CFLAGS="$CFLAGS $GTK_CFLAGS"
30119           LIBS="$LIBS $GTK_LIBS"
30120           cat >conftest.$ac_ext <<_ACEOF
30121 /* confdefs.h.  */
30122 _ACEOF
30123 cat confdefs.h >>conftest.$ac_ext
30124 cat >>conftest.$ac_ext <<_ACEOF
30125 /* end confdefs.h.  */
30126
30127 #include <gtk/gtk.h>
30128 #include <stdio.h>
30129
30130 int
30131 main ()
30132 {
30133  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30134   ;
30135   return 0;
30136 }
30137 _ACEOF
30138 rm -f conftest.$ac_objext conftest$ac_exeext
30139 if { (ac_try="$ac_link"
30140 case "(($ac_try" in
30141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142   *) ac_try_echo=$ac_try;;
30143 esac
30144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145   (eval "$ac_link") 2>conftest.er1
30146   ac_status=$?
30147   grep -v '^ *+' conftest.er1 >conftest.err
30148   rm -f conftest.er1
30149   cat conftest.err >&5
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); } && {
30152          test -z "$ac_c_werror_flag" ||
30153          test ! -s conftest.err
30154        } && test -s conftest$ac_exeext &&
30155        $as_test_x conftest$ac_exeext; then
30156    echo "*** The test program compiled, but did not run. This usually means"
30157           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30158           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30159           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30160           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30161           echo "*** is required on your system"
30162           echo "***"
30163           echo "*** If you have an old version installed, it is best to remove it, although"
30164           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30165           echo "***"
30166           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30167           echo "*** came with the system with the command"
30168           echo "***"
30169           echo "***    rpm --erase --nodeps gtk gtk-devel"
30170 else
30171   echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30173
30174          echo "*** The test program failed to compile or link. See the file config.log for the"
30175           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30176           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30177           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30178 fi
30179
30180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30181       conftest$ac_exeext conftest.$ac_ext
30182           CFLAGS="$ac_save_CFLAGS"
30183           LIBS="$ac_save_LIBS"
30184        fi
30185      fi
30186      GTK_CFLAGS=""
30187      GTK_LIBS=""
30188      :
30189   fi
30190
30191
30192   rm -f conf.gtktest
30193
30194
30195                         if test -z "$wx_cv_lib_gtk"; then
30196
30197 # Check whether --with-gtk-prefix was given.
30198 if test "${with_gtk_prefix+set}" = set; then
30199   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30200 else
30201   gtk_config_prefix=""
30202 fi
30203
30204
30205 # Check whether --with-gtk-exec-prefix was given.
30206 if test "${with_gtk_exec_prefix+set}" = set; then
30207   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30208 else
30209   gtk_config_exec_prefix=""
30210 fi
30211
30212 # Check whether --enable-gtktest was given.
30213 if test "${enable_gtktest+set}" = set; then
30214   enableval=$enable_gtktest;
30215 else
30216   enable_gtktest=yes
30217 fi
30218
30219
30220   for module in . $GTK_MODULES
30221   do
30222       case "$module" in
30223          gthread)
30224              gtk_config_args="$gtk_config_args gthread"
30225          ;;
30226       esac
30227   done
30228
30229   if test x$gtk_config_exec_prefix != x ; then
30230      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30231      if test x${GTK_CONFIG+set} != xset ; then
30232         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30233      fi
30234   fi
30235   if test x$gtk_config_prefix != x ; then
30236      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30237      if test x${GTK_CONFIG+set} != xset ; then
30238         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30239      fi
30240   fi
30241
30242   # Extract the first word of "gtk-config", so it can be a program name with args.
30243 set dummy gtk-config; ac_word=$2
30244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30246 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30247   echo $ECHO_N "(cached) $ECHO_C" >&6
30248 else
30249   case $GTK_CONFIG in
30250   [\\/]* | ?:[\\/]*)
30251   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30252   ;;
30253   *)
30254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30255 for as_dir in $PATH
30256 do
30257   IFS=$as_save_IFS
30258   test -z "$as_dir" && as_dir=.
30259   for ac_exec_ext in '' $ac_executable_extensions; do
30260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30261     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30263     break 2
30264   fi
30265 done
30266 done
30267 IFS=$as_save_IFS
30268
30269   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30270   ;;
30271 esac
30272 fi
30273 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30274 if test -n "$GTK_CONFIG"; then
30275   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30276 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30277 else
30278   { echo "$as_me:$LINENO: result: no" >&5
30279 echo "${ECHO_T}no" >&6; }
30280 fi
30281
30282
30283   min_gtk_version=1.2.3
30284   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30285 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30286   no_gtk=""
30287   if test "$GTK_CONFIG" = "no" ; then
30288     no_gtk=yes
30289   else
30290     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30291     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30292     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30293            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30294     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30295            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30296     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30297            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30298     if test "x$enable_gtktest" = "xyes" ; then
30299       ac_save_CFLAGS="$CFLAGS"
30300       ac_save_LIBS="$LIBS"
30301       CFLAGS="$CFLAGS $GTK_CFLAGS"
30302       LIBS="$GTK_LIBS $LIBS"
30303       rm -f conf.gtktest
30304       if test "$cross_compiling" = yes; then
30305   echo $ac_n "cross compiling; assumed OK... $ac_c"
30306 else
30307   cat >conftest.$ac_ext <<_ACEOF
30308 /* confdefs.h.  */
30309 _ACEOF
30310 cat confdefs.h >>conftest.$ac_ext
30311 cat >>conftest.$ac_ext <<_ACEOF
30312 /* end confdefs.h.  */
30313
30314 #include <gtk/gtk.h>
30315 #include <stdio.h>
30316 #include <stdlib.h>
30317
30318 int
30319 main ()
30320 {
30321   int major, minor, micro;
30322   char *tmp_version;
30323
30324   system ("touch conf.gtktest");
30325
30326   /* HP/UX 9 (%@#!) writes to sscanf strings */
30327   tmp_version = g_strdup("$min_gtk_version");
30328   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30329      printf("%s, bad version string\n", "$min_gtk_version");
30330      exit(1);
30331    }
30332
30333   if ((gtk_major_version != $gtk_config_major_version) ||
30334       (gtk_minor_version != $gtk_config_minor_version) ||
30335       (gtk_micro_version != $gtk_config_micro_version))
30336     {
30337       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30338              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30339              gtk_major_version, gtk_minor_version, gtk_micro_version);
30340       printf ("*** was found! If gtk-config was correct, then it is best\n");
30341       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30342       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30343       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30344       printf("*** required on your system.\n");
30345       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30346       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30347       printf("*** before re-running configure\n");
30348     }
30349 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30350   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30351            (gtk_minor_version != GTK_MINOR_VERSION) ||
30352            (gtk_micro_version != GTK_MICRO_VERSION))
30353     {
30354       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30355              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30356       printf("*** library (version %d.%d.%d)\n",
30357              gtk_major_version, gtk_minor_version, gtk_micro_version);
30358     }
30359 #endif /* defined (GTK_MAJOR_VERSION) ... */
30360   else
30361     {
30362       if ((gtk_major_version > major) ||
30363         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30364         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30365       {
30366         return 0;
30367        }
30368      else
30369       {
30370         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30371                gtk_major_version, gtk_minor_version, gtk_micro_version);
30372         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30373                major, minor, micro);
30374         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30375         printf("***\n");
30376         printf("*** If you have already installed a sufficiently new version, this error\n");
30377         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30378         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30379         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30380         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30381         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30382         printf("*** so that the correct libraries are found at run-time))\n");
30383       }
30384     }
30385   return 1;
30386 }
30387
30388 _ACEOF
30389 rm -f conftest$ac_exeext
30390 if { (ac_try="$ac_link"
30391 case "(($ac_try" in
30392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30393   *) ac_try_echo=$ac_try;;
30394 esac
30395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30396   (eval "$ac_link") 2>&5
30397   ac_status=$?
30398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30400   { (case "(($ac_try" in
30401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402   *) ac_try_echo=$ac_try;;
30403 esac
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405   (eval "$ac_try") 2>&5
30406   ac_status=$?
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); }; }; then
30409   :
30410 else
30411   echo "$as_me: program exited with status $ac_status" >&5
30412 echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30414
30415 ( exit $ac_status )
30416 no_gtk=yes
30417 fi
30418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30419 fi
30420
30421
30422        CFLAGS="$ac_save_CFLAGS"
30423        LIBS="$ac_save_LIBS"
30424      fi
30425   fi
30426   if test "x$no_gtk" = x ; then
30427      { echo "$as_me:$LINENO: result: yes" >&5
30428 echo "${ECHO_T}yes" >&6; }
30429      wx_cv_lib_gtk=1.2.3
30430   else
30431      { echo "$as_me:$LINENO: result: no" >&5
30432 echo "${ECHO_T}no" >&6; }
30433      if test "$GTK_CONFIG" = "no" ; then
30434        echo "*** The gtk-config script installed by GTK could not be found"
30435        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30436        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30437        echo "*** full path to gtk-config."
30438      else
30439        if test -f conf.gtktest ; then
30440         :
30441        else
30442           echo "*** Could not run GTK test program, checking why..."
30443           CFLAGS="$CFLAGS $GTK_CFLAGS"
30444           LIBS="$LIBS $GTK_LIBS"
30445           cat >conftest.$ac_ext <<_ACEOF
30446 /* confdefs.h.  */
30447 _ACEOF
30448 cat confdefs.h >>conftest.$ac_ext
30449 cat >>conftest.$ac_ext <<_ACEOF
30450 /* end confdefs.h.  */
30451
30452 #include <gtk/gtk.h>
30453 #include <stdio.h>
30454
30455 int
30456 main ()
30457 {
30458  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30459   ;
30460   return 0;
30461 }
30462 _ACEOF
30463 rm -f conftest.$ac_objext conftest$ac_exeext
30464 if { (ac_try="$ac_link"
30465 case "(($ac_try" in
30466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467   *) ac_try_echo=$ac_try;;
30468 esac
30469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470   (eval "$ac_link") 2>conftest.er1
30471   ac_status=$?
30472   grep -v '^ *+' conftest.er1 >conftest.err
30473   rm -f conftest.er1
30474   cat conftest.err >&5
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); } && {
30477          test -z "$ac_c_werror_flag" ||
30478          test ! -s conftest.err
30479        } && test -s conftest$ac_exeext &&
30480        $as_test_x conftest$ac_exeext; then
30481    echo "*** The test program compiled, but did not run. This usually means"
30482           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30483           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30484           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30485           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30486           echo "*** is required on your system"
30487           echo "***"
30488           echo "*** If you have an old version installed, it is best to remove it, although"
30489           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30490           echo "***"
30491           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30492           echo "*** came with the system with the command"
30493           echo "***"
30494           echo "***    rpm --erase --nodeps gtk gtk-devel"
30495 else
30496   echo "$as_me: failed program was:" >&5
30497 sed 's/^/| /' conftest.$ac_ext >&5
30498
30499          echo "*** The test program failed to compile or link. See the file config.log for the"
30500           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30501           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30502           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30503 fi
30504
30505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30506       conftest$ac_exeext conftest.$ac_ext
30507           CFLAGS="$ac_save_CFLAGS"
30508           LIBS="$ac_save_LIBS"
30509        fi
30510      fi
30511      GTK_CFLAGS=""
30512      GTK_LIBS=""
30513      :
30514   fi
30515
30516
30517   rm -f conf.gtktest
30518
30519                         fi
30520                     fi
30521                 fi
30522
30523                 if test -z "$wx_cv_lib_gtk"; then
30524                                         wx_cv_lib_gtk=none
30525                 else
30526                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30527                     wx_cv_libs_gtk=$GTK_LIBS
30528                 fi
30529
30530
30531 fi
30532
30533
30534                         if test "$gtk_version_cached" = 1; then
30535             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30536 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30537         fi
30538
30539         case "$wx_cv_lib_gtk" in
30540             2.0)    WXGTK2=1
30541                     TOOLKIT_VERSION=2
30542                     ;;
30543             1.2.7)  WXGTK127=1
30544                     WXGTK12=1
30545                     ;;
30546             1.2.3)  WXGTK12=1
30547                     ;;
30548             *)      { { echo "$as_me:$LINENO: error:
30549 The development files for GTK+ were not found. For GTK+ 2, please
30550 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30551 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30552 and that the version is 1.2.3 or above. Also check that the
30553 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30554 --libs' are in the LD_LIBRARY_PATH or equivalent.
30555                             " >&5
30556 echo "$as_me: error:
30557 The development files for GTK+ were not found. For GTK+ 2, please
30558 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30559 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30560 and that the version is 1.2.3 or above. Also check that the
30561 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30562 --libs' are in the LD_LIBRARY_PATH or equivalent.
30563                             " >&2;}
30564    { (exit 1); exit 1; }; }
30565                     ;;
30566         esac
30567
30568         if test "$WXGTK2" = 1; then
30569             save_CFLAGS="$CFLAGS"
30570             save_LIBS="$LIBS"
30571             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30572             LIBS="$LIBS $wx_cv_libs_gtk"
30573
30574                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30575 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30576             cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h.  */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h.  */
30582
30583                             #include <gtk/gtk.h>
30584
30585 int
30586 main ()
30587 {
30588
30589                             #if !GTK_CHECK_VERSION(2,18,0)
30590                             Not GTK+ 2.18
30591                             #endif
30592
30593   ;
30594   return 0;
30595 }
30596 _ACEOF
30597 rm -f conftest.$ac_objext
30598 if { (ac_try="$ac_compile"
30599 case "(($ac_try" in
30600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601   *) ac_try_echo=$ac_try;;
30602 esac
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604   (eval "$ac_compile") 2>conftest.er1
30605   ac_status=$?
30606   grep -v '^ *+' conftest.er1 >conftest.err
30607   rm -f conftest.er1
30608   cat conftest.err >&5
30609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610   (exit $ac_status); } && {
30611          test -z "$ac_c_werror_flag" ||
30612          test ! -s conftest.err
30613        } && test -s conftest.$ac_objext; then
30614
30615                             cat >>confdefs.h <<\_ACEOF
30616 #define __WXGTK218__ 1
30617 _ACEOF
30618
30619                             cat >>confdefs.h <<\_ACEOF
30620 #define __WXGTK210__ 1
30621 _ACEOF
30622
30623                             cat >>confdefs.h <<\_ACEOF
30624 #define __WXGTK26__ 1
30625 _ACEOF
30626
30627                             { echo "$as_me:$LINENO: result: yes" >&5
30628 echo "${ECHO_T}yes" >&6; }
30629                             ac_wxgtk218=1
30630
30631 else
30632   echo "$as_me: failed program was:" >&5
30633 sed 's/^/| /' conftest.$ac_ext >&5
30634
30635
30636                             { echo "$as_me:$LINENO: result: no" >&5
30637 echo "${ECHO_T}no" >&6; }
30638                             ac_wxgtk218=0
30639
30640 fi
30641
30642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30643
30644             if test "$ac_wxgtk218" = 0; then
30645                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
30646 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
30647                 cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h.  */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h.  */
30653
30654                                 #include <gtk/gtk.h>
30655
30656 int
30657 main ()
30658 {
30659
30660                                 #if !GTK_CHECK_VERSION(2,10,0)
30661                                 Not GTK+ 2.10
30662                                 #endif
30663
30664   ;
30665   return 0;
30666 }
30667 _ACEOF
30668 rm -f conftest.$ac_objext
30669 if { (ac_try="$ac_compile"
30670 case "(($ac_try" in
30671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30672   *) ac_try_echo=$ac_try;;
30673 esac
30674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30675   (eval "$ac_compile") 2>conftest.er1
30676   ac_status=$?
30677   grep -v '^ *+' conftest.er1 >conftest.err
30678   rm -f conftest.er1
30679   cat conftest.err >&5
30680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681   (exit $ac_status); } && {
30682          test -z "$ac_c_werror_flag" ||
30683          test ! -s conftest.err
30684        } && test -s conftest.$ac_objext; then
30685
30686                                 cat >>confdefs.h <<\_ACEOF
30687 #define __WXGTK210__ 1
30688 _ACEOF
30689
30690                                 cat >>confdefs.h <<\_ACEOF
30691 #define __WXGTK26__ 1
30692 _ACEOF
30693
30694                                 { echo "$as_me:$LINENO: result: yes" >&5
30695 echo "${ECHO_T}yes" >&6; }
30696                                 ac_wxgtk210=1
30697
30698 else
30699   echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30701
30702
30703                                 { echo "$as_me:$LINENO: result: no" >&5
30704 echo "${ECHO_T}no" >&6; }
30705                                 ac_wxgtk210=0
30706
30707 fi
30708
30709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30710
30711                 if test "$ac_wxgtk210" = 0; then
30712                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30713 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
30714                     cat >conftest.$ac_ext <<_ACEOF
30715 /* confdefs.h.  */
30716 _ACEOF
30717 cat confdefs.h >>conftest.$ac_ext
30718 cat >>conftest.$ac_ext <<_ACEOF
30719 /* end confdefs.h.  */
30720
30721                                     #include <gtk/gtk.h>
30722
30723 int
30724 main ()
30725 {
30726
30727                                     #if !GTK_CHECK_VERSION(2,6,0)
30728                                     Not GTK+ 2.6
30729                                     #endif
30730
30731   ;
30732   return 0;
30733 }
30734 _ACEOF
30735 rm -f conftest.$ac_objext
30736 if { (ac_try="$ac_compile"
30737 case "(($ac_try" in
30738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30739   *) ac_try_echo=$ac_try;;
30740 esac
30741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30742   (eval "$ac_compile") 2>conftest.er1
30743   ac_status=$?
30744   grep -v '^ *+' conftest.er1 >conftest.err
30745   rm -f conftest.er1
30746   cat conftest.err >&5
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); } && {
30749          test -z "$ac_c_werror_flag" ||
30750          test ! -s conftest.err
30751        } && test -s conftest.$ac_objext; then
30752
30753                                     cat >>confdefs.h <<\_ACEOF
30754 #define __WXGTK26__ 1
30755 _ACEOF
30756
30757                                     { echo "$as_me:$LINENO: result: yes" >&5
30758 echo "${ECHO_T}yes" >&6; }
30759                                     ac_wxgtk26=1
30760
30761 else
30762   echo "$as_me: failed program was:" >&5
30763 sed 's/^/| /' conftest.$ac_ext >&5
30764
30765
30766                                     { echo "$as_me:$LINENO: result: no" >&5
30767 echo "${ECHO_T}no" >&6; }
30768                                     ac_wxgtk26=0
30769
30770 fi
30771
30772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773                 fi
30774             fi
30775
30776             CFLAGS="$save_CFLAGS"
30777             LIBS="$save_LIBS"
30778         else
30779             if test "$wxUSE_UNICODE" = "yes"; then
30780                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
30781 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
30782                 wxUSE_UNICODE=no
30783             fi
30784
30785                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
30786 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
30787 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
30788   echo $ECHO_N "(cached) $ECHO_C" >&6
30789 else
30790   ac_check_lib_save_LIBS=$LIBS
30791 LIBS="-lgdk  $LIBS"
30792 cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h.  */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h.  */
30798
30799 /* Override any GCC internal prototype to avoid an error.
30800    Use char because int might match the return type of a GCC
30801    builtin and then its argument prototype would still apply.  */
30802 #ifdef __cplusplus
30803 extern "C"
30804 #endif
30805 char gdk_im_open ();
30806 int
30807 main ()
30808 {
30809 return gdk_im_open ();
30810   ;
30811   return 0;
30812 }
30813 _ACEOF
30814 rm -f conftest.$ac_objext conftest$ac_exeext
30815 if { (ac_try="$ac_link"
30816 case "(($ac_try" in
30817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30818   *) ac_try_echo=$ac_try;;
30819 esac
30820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30821   (eval "$ac_link") 2>conftest.er1
30822   ac_status=$?
30823   grep -v '^ *+' conftest.er1 >conftest.err
30824   rm -f conftest.er1
30825   cat conftest.err >&5
30826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827   (exit $ac_status); } && {
30828          test -z "$ac_c_werror_flag" ||
30829          test ! -s conftest.err
30830        } && test -s conftest$ac_exeext &&
30831        $as_test_x conftest$ac_exeext; then
30832   ac_cv_lib_gdk_gdk_im_open=yes
30833 else
30834   echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30836
30837         ac_cv_lib_gdk_gdk_im_open=no
30838 fi
30839
30840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30841       conftest$ac_exeext conftest.$ac_ext
30842 LIBS=$ac_check_lib_save_LIBS
30843 fi
30844 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
30845 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
30846 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
30847   cat >>confdefs.h <<\_ACEOF
30848 #define HAVE_XIM 1
30849 _ACEOF
30850
30851 fi
30852
30853
30854                                     if test "$USE_DARWIN" != 1; then
30855
30856 for ac_func in poll
30857 do
30858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30862   echo $ECHO_N "(cached) $ECHO_C" >&6
30863 else
30864   cat >conftest.$ac_ext <<_ACEOF
30865 /* confdefs.h.  */
30866 _ACEOF
30867 cat confdefs.h >>conftest.$ac_ext
30868 cat >>conftest.$ac_ext <<_ACEOF
30869 /* end confdefs.h.  */
30870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30872 #define $ac_func innocuous_$ac_func
30873
30874 /* System header to define __stub macros and hopefully few prototypes,
30875     which can conflict with char $ac_func (); below.
30876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30877     <limits.h> exists even on freestanding compilers.  */
30878
30879 #ifdef __STDC__
30880 # include <limits.h>
30881 #else
30882 # include <assert.h>
30883 #endif
30884
30885 #undef $ac_func
30886
30887 /* Override any GCC internal prototype to avoid an error.
30888    Use char because int might match the return type of a GCC
30889    builtin and then its argument prototype would still apply.  */
30890 #ifdef __cplusplus
30891 extern "C"
30892 #endif
30893 char $ac_func ();
30894 /* The GNU C library defines this for functions which it implements
30895     to always fail with ENOSYS.  Some functions are actually named
30896     something starting with __ and the normal name is an alias.  */
30897 #if defined __stub_$ac_func || defined __stub___$ac_func
30898 choke me
30899 #endif
30900
30901 int
30902 main ()
30903 {
30904 return $ac_func ();
30905   ;
30906   return 0;
30907 }
30908 _ACEOF
30909 rm -f conftest.$ac_objext conftest$ac_exeext
30910 if { (ac_try="$ac_link"
30911 case "(($ac_try" in
30912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913   *) ac_try_echo=$ac_try;;
30914 esac
30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916   (eval "$ac_link") 2>conftest.er1
30917   ac_status=$?
30918   grep -v '^ *+' conftest.er1 >conftest.err
30919   rm -f conftest.er1
30920   cat conftest.err >&5
30921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922   (exit $ac_status); } && {
30923          test -z "$ac_c_werror_flag" ||
30924          test ! -s conftest.err
30925        } && test -s conftest$ac_exeext &&
30926        $as_test_x conftest$ac_exeext; then
30927   eval "$as_ac_var=yes"
30928 else
30929   echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30931
30932         eval "$as_ac_var=no"
30933 fi
30934
30935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30936       conftest$ac_exeext conftest.$ac_ext
30937 fi
30938 ac_res=`eval echo '${'$as_ac_var'}'`
30939                { echo "$as_me:$LINENO: result: $ac_res" >&5
30940 echo "${ECHO_T}$ac_res" >&6; }
30941 if test `eval echo '${'$as_ac_var'}'` = yes; then
30942   cat >>confdefs.h <<_ACEOF
30943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30944 _ACEOF
30945
30946 fi
30947 done
30948
30949             fi
30950         fi
30951
30952         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
30953         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
30954
30955                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
30956
30957                 GTK_CHECKS_FLAGS="-DGTK_DISABLE_SINGLE_INCLUDES"
30958         TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $GTK_CHECKS_FLAGS"
30959
30960         AFMINSTALL=afminstall
30961         TOOLKIT=GTK
30962         GUIDIST=GTK_DIST
30963
30964                 if test "$wxUSE_GPE" = "yes"; then
30965             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
30966 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
30967
30968   ac_find_libraries=
30969   for ac_dir in $SEARCH_LIB
30970   do
30971     for ac_extension in a so sl dylib dll.a; do
30972       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
30973         ac_find_libraries=$ac_dir
30974         break 2
30975       fi
30976     done
30977   done
30978
30979             if test "$ac_find_libraries" != "" ; then
30980
30981     if test "$ac_find_libraries" = "default location"; then
30982     ac_path_to_link=""
30983   else
30984     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30985     result=$?
30986     if test $result = 0; then
30987       ac_path_to_link=""
30988     else
30989       ac_path_to_link=" -L$ac_find_libraries"
30990     fi
30991   fi
30992
30993                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
30994                 WXGPE=1
30995                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30996 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
30997             else
30998                 { echo "$as_me:$LINENO: result: not found" >&5
30999 echo "${ECHO_T}not found" >&6; }
31000             fi
31001
31002                                                                                                                     fi
31003     fi
31004
31005     if test "$wxUSE_MGL" = 1; then
31006        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31007 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31008         if test "x$MGL_ROOT" = x ; then
31009             { echo "$as_me:$LINENO: result: not found" >&5
31010 echo "${ECHO_T}not found" >&6; }
31011             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31012 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31013    { (exit 1); exit 1; }; }
31014         else
31015             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31016 echo "${ECHO_T}$MGL_ROOT" >&6; }
31017         fi
31018
31019         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31020 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31021                                 case "${host}" in
31022             *-*-linux* )
31023                                           if test "x$wxUSE_SHARED" = xyes ; then
31024                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31025               else
31026                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31027               fi
31028               ;;
31029             *-pc-msdosdjgpp )
31030               mgl_os_candidates="dos32/dj2"
31031               ;;
31032             *)
31033               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31034 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31035    { (exit 1); exit 1; }; }
31036         esac
31037
31038         mgl_lib_type=""
31039         mgl_os=""
31040
31041         for mgl_os_i in $mgl_os_candidates ; do
31042             if test "x$mgl_os" = x ; then
31043                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31044                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31045                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31046                         mgl_lib_type=debug
31047                         mgl_os=$mgl_os_i
31048                     fi
31049                 fi
31050                 if test "x$mgl_lib_type" = x ; then
31051                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31052                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31053                         mgl_lib_type=release
31054                         mgl_os=$mgl_os_i
31055                     fi
31056                 fi
31057             fi
31058         done
31059
31060         if test "x$mgl_os" = x ; then
31061             { echo "$as_me:$LINENO: result: not found" >&5
31062 echo "${ECHO_T}not found" >&6; }
31063             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31064 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31065    { (exit 1); exit 1; }; }
31066         fi
31067         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31068 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31069
31070         wxUSE_UNIVERSAL="yes"
31071
31072         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31073         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31074
31075         AFMINSTALL=afminstall
31076         TOOLKIT=MGL
31077         GUIDIST=MGL_DIST
31078     fi
31079
31080     if test "$wxUSE_DFB" = 1; then
31081
31082
31083 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31084         if test -n "$ac_tool_prefix"; then
31085   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31086 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31090   echo $ECHO_N "(cached) $ECHO_C" >&6
31091 else
31092   case $PKG_CONFIG in
31093   [\\/]* | ?:[\\/]*)
31094   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31095   ;;
31096   *)
31097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31098 for as_dir in $PATH
31099 do
31100   IFS=$as_save_IFS
31101   test -z "$as_dir" && as_dir=.
31102   for ac_exec_ext in '' $ac_executable_extensions; do
31103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31104     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31106     break 2
31107   fi
31108 done
31109 done
31110 IFS=$as_save_IFS
31111
31112   ;;
31113 esac
31114 fi
31115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31116 if test -n "$PKG_CONFIG"; then
31117   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31118 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31119 else
31120   { echo "$as_me:$LINENO: result: no" >&5
31121 echo "${ECHO_T}no" >&6; }
31122 fi
31123
31124
31125 fi
31126 if test -z "$ac_cv_path_PKG_CONFIG"; then
31127   ac_pt_PKG_CONFIG=$PKG_CONFIG
31128   # Extract the first word of "pkg-config", so it can be a program name with args.
31129 set dummy pkg-config; ac_word=$2
31130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31132 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31133   echo $ECHO_N "(cached) $ECHO_C" >&6
31134 else
31135   case $ac_pt_PKG_CONFIG in
31136   [\\/]* | ?:[\\/]*)
31137   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31138   ;;
31139   *)
31140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31141 for as_dir in $PATH
31142 do
31143   IFS=$as_save_IFS
31144   test -z "$as_dir" && as_dir=.
31145   for ac_exec_ext in '' $ac_executable_extensions; do
31146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31147     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31149     break 2
31150   fi
31151 done
31152 done
31153 IFS=$as_save_IFS
31154
31155   ;;
31156 esac
31157 fi
31158 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31159 if test -n "$ac_pt_PKG_CONFIG"; then
31160   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31161 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31162 else
31163   { echo "$as_me:$LINENO: result: no" >&5
31164 echo "${ECHO_T}no" >&6; }
31165 fi
31166
31167   if test "x$ac_pt_PKG_CONFIG" = x; then
31168     PKG_CONFIG=""
31169   else
31170     case $cross_compiling:$ac_tool_warned in
31171 yes:)
31172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31173 whose name does not start with the host triplet.  If you think this
31174 configuration is useful to you, please write to autoconf@gnu.org." >&5
31175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31176 whose name does not start with the host triplet.  If you think this
31177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31178 ac_tool_warned=yes ;;
31179 esac
31180     PKG_CONFIG=$ac_pt_PKG_CONFIG
31181   fi
31182 else
31183   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31184 fi
31185
31186 fi
31187 if test -n "$PKG_CONFIG"; then
31188         _pkg_min_version=0.9.0
31189         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31190 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31191         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31192                 { echo "$as_me:$LINENO: result: yes" >&5
31193 echo "${ECHO_T}yes" >&6; }
31194         else
31195                 { echo "$as_me:$LINENO: result: no" >&5
31196 echo "${ECHO_T}no" >&6; }
31197                 PKG_CONFIG=""
31198         fi
31199
31200 fi
31201
31202
31203 pkg_failed=no
31204 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31205 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31206
31207 if test -n "$PKG_CONFIG"; then
31208     if test -n "$DIRECTFB_CFLAGS"; then
31209         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31210     else
31211         if test -n "$PKG_CONFIG" && \
31212     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31213   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31214   ac_status=$?
31215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); }; then
31217   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31218 else
31219   pkg_failed=yes
31220 fi
31221     fi
31222 else
31223         pkg_failed=untried
31224 fi
31225 if test -n "$PKG_CONFIG"; then
31226     if test -n "$DIRECTFB_LIBS"; then
31227         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31228     else
31229         if test -n "$PKG_CONFIG" && \
31230     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31231   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31232   ac_status=$?
31233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234   (exit $ac_status); }; then
31235   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31236 else
31237   pkg_failed=yes
31238 fi
31239     fi
31240 else
31241         pkg_failed=untried
31242 fi
31243
31244
31245
31246 if test $pkg_failed = yes; then
31247
31248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31249         _pkg_short_errors_supported=yes
31250 else
31251         _pkg_short_errors_supported=no
31252 fi
31253         if test $_pkg_short_errors_supported = yes; then
31254                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31255         else
31256                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31257         fi
31258         # Put the nasty error message in config.log where it belongs
31259         echo "$DIRECTFB_PKG_ERRORS" >&5
31260
31261
31262                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31263 echo "$as_me: error: DirectFB not found." >&2;}
31264    { (exit 1); exit 1; }; }
31265
31266
31267 elif test $pkg_failed = untried; then
31268
31269                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31270 echo "$as_me: error: DirectFB not found." >&2;}
31271    { (exit 1); exit 1; }; }
31272
31273
31274 else
31275         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31276         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31277         { echo "$as_me:$LINENO: result: yes" >&5
31278 echo "${ECHO_T}yes" >&6; }
31279
31280                            wxUSE_UNIVERSAL="yes"
31281                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31282                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31283                            TOOLKIT=DFB
31284                            GUIDIST=DFB_DIST
31285
31286 fi
31287     fi
31288
31289     if test "$wxUSE_MICROWIN" = 1; then
31290         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31291 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31292         if test "x$MICROWINDOWS" = x ; then
31293             { echo "$as_me:$LINENO: result: not found" >&5
31294 echo "${ECHO_T}not found" >&6; }
31295             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31296 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31297    { (exit 1); exit 1; }; }
31298         else
31299             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31300 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31301         fi
31302
31303         if test -f $MICROWINDOWS/lib/libmwin.a; then
31304             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31305 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31306         else
31307             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31308 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31309    { (exit 1); exit 1; }; }
31310         fi
31311
31312         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31313         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31314
31315         wxUSE_UNIVERSAL="yes"
31316
31317         AFMINSTALL=afminstall
31318         TOOLKIT=MICROWIN
31319         GUIDIST=MICROWIN_DIST
31320
31321         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31322     fi
31323
31324         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31325                                 { echo "$as_me:$LINENO: checking for X" >&5
31326 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31327
31328
31329 # Check whether --with-x was given.
31330 if test "${with_x+set}" = set; then
31331   withval=$with_x;
31332 fi
31333
31334 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31335 if test "x$with_x" = xno; then
31336   # The user explicitly disabled X.
31337   have_x=disabled
31338 else
31339   case $x_includes,$x_libraries in #(
31340     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31341 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31342    { (exit 1); exit 1; }; };; #(
31343     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31344   echo $ECHO_N "(cached) $ECHO_C" >&6
31345 else
31346   # One or both of the vars are not set, and there is no cached value.
31347 ac_x_includes=no ac_x_libraries=no
31348 rm -f -r conftest.dir
31349 if mkdir conftest.dir; then
31350   cd conftest.dir
31351   cat >Imakefile <<'_ACEOF'
31352 incroot:
31353         @echo incroot='${INCROOT}'
31354 usrlibdir:
31355         @echo usrlibdir='${USRLIBDIR}'
31356 libdir:
31357         @echo libdir='${LIBDIR}'
31358 _ACEOF
31359   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31360     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31361     for ac_var in incroot usrlibdir libdir; do
31362       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31363     done
31364     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31365     for ac_extension in a so sl; do
31366       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31367          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31368         ac_im_usrlibdir=$ac_im_libdir; break
31369       fi
31370     done
31371     # Screen out bogus values from the imake configuration.  They are
31372     # bogus both because they are the default anyway, and because
31373     # using them would break gcc on systems where it needs fixed includes.
31374     case $ac_im_incroot in
31375         /usr/include) ac_x_includes= ;;
31376         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31377     esac
31378     case $ac_im_usrlibdir in
31379         /usr/lib | /lib) ;;
31380         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31381     esac
31382   fi
31383   cd ..
31384   rm -f -r conftest.dir
31385 fi
31386
31387 # Standard set of common directories for X headers.
31388 # Check X11 before X11Rn because it is often a symlink to the current release.
31389 ac_x_header_dirs='
31390 /usr/X11/include
31391 /usr/X11R6/include
31392 /usr/X11R5/include
31393 /usr/X11R4/include
31394
31395 /usr/include/X11
31396 /usr/include/X11R6
31397 /usr/include/X11R5
31398 /usr/include/X11R4
31399
31400 /usr/local/X11/include
31401 /usr/local/X11R6/include
31402 /usr/local/X11R5/include
31403 /usr/local/X11R4/include
31404
31405 /usr/local/include/X11
31406 /usr/local/include/X11R6
31407 /usr/local/include/X11R5
31408 /usr/local/include/X11R4
31409
31410 /usr/X386/include
31411 /usr/x386/include
31412 /usr/XFree86/include/X11
31413
31414 /usr/include
31415 /usr/local/include
31416 /usr/unsupported/include
31417 /usr/athena/include
31418 /usr/local/x11r5/include
31419 /usr/lpp/Xamples/include
31420
31421 /usr/openwin/include
31422 /usr/openwin/share/include'
31423
31424 if test "$ac_x_includes" = no; then
31425   # Guess where to find include files, by looking for Xlib.h.
31426   # First, try using that file with no special directory specified.
31427   cat >conftest.$ac_ext <<_ACEOF
31428 /* confdefs.h.  */
31429 _ACEOF
31430 cat confdefs.h >>conftest.$ac_ext
31431 cat >>conftest.$ac_ext <<_ACEOF
31432 /* end confdefs.h.  */
31433 #include <X11/Xlib.h>
31434 _ACEOF
31435 if { (ac_try="$ac_cpp conftest.$ac_ext"
31436 case "(($ac_try" in
31437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438   *) ac_try_echo=$ac_try;;
31439 esac
31440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31442   ac_status=$?
31443   grep -v '^ *+' conftest.er1 >conftest.err
31444   rm -f conftest.er1
31445   cat conftest.err >&5
31446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447   (exit $ac_status); } >/dev/null && {
31448          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31449          test ! -s conftest.err
31450        }; then
31451   # We can compile using X headers with no special include directory.
31452 ac_x_includes=
31453 else
31454   echo "$as_me: failed program was:" >&5
31455 sed 's/^/| /' conftest.$ac_ext >&5
31456
31457   for ac_dir in $ac_x_header_dirs; do
31458   if test -r "$ac_dir/X11/Xlib.h"; then
31459     ac_x_includes=$ac_dir
31460     break
31461   fi
31462 done
31463 fi
31464
31465 rm -f conftest.err conftest.$ac_ext
31466 fi # $ac_x_includes = no
31467
31468 if test "$ac_x_libraries" = no; then
31469   # Check for the libraries.
31470   # See if we find them without any special options.
31471   # Don't add to $LIBS permanently.
31472   ac_save_LIBS=$LIBS
31473   LIBS="-lX11 $LIBS"
31474   cat >conftest.$ac_ext <<_ACEOF
31475 /* confdefs.h.  */
31476 _ACEOF
31477 cat confdefs.h >>conftest.$ac_ext
31478 cat >>conftest.$ac_ext <<_ACEOF
31479 /* end confdefs.h.  */
31480 #include <X11/Xlib.h>
31481 int
31482 main ()
31483 {
31484 XrmInitialize ()
31485   ;
31486   return 0;
31487 }
31488 _ACEOF
31489 rm -f conftest.$ac_objext conftest$ac_exeext
31490 if { (ac_try="$ac_link"
31491 case "(($ac_try" in
31492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31493   *) ac_try_echo=$ac_try;;
31494 esac
31495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31496   (eval "$ac_link") 2>conftest.er1
31497   ac_status=$?
31498   grep -v '^ *+' conftest.er1 >conftest.err
31499   rm -f conftest.er1
31500   cat conftest.err >&5
31501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502   (exit $ac_status); } && {
31503          test -z "$ac_c_werror_flag" ||
31504          test ! -s conftest.err
31505        } && test -s conftest$ac_exeext &&
31506        $as_test_x conftest$ac_exeext; then
31507   LIBS=$ac_save_LIBS
31508 # We can link X programs with no special library path.
31509 ac_x_libraries=
31510 else
31511   echo "$as_me: failed program was:" >&5
31512 sed 's/^/| /' conftest.$ac_ext >&5
31513
31514         LIBS=$ac_save_LIBS
31515 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31516 do
31517   # Don't even attempt the hair of trying to link an X program!
31518   for ac_extension in a so sl; do
31519     if test -r "$ac_dir/libX11.$ac_extension"; then
31520       ac_x_libraries=$ac_dir
31521       break 2
31522     fi
31523   done
31524 done
31525 fi
31526
31527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31528       conftest$ac_exeext conftest.$ac_ext
31529 fi # $ac_x_libraries = no
31530
31531 case $ac_x_includes,$ac_x_libraries in #(
31532   no,* | *,no | *\'*)
31533     # Didn't find X, or a directory has "'" in its name.
31534     ac_cv_have_x="have_x=no";; #(
31535   *)
31536     # Record where we found X for the cache.
31537     ac_cv_have_x="have_x=yes\
31538         ac_x_includes='$ac_x_includes'\
31539         ac_x_libraries='$ac_x_libraries'"
31540 esac
31541 fi
31542 ;; #(
31543     *) have_x=yes;;
31544   esac
31545   eval "$ac_cv_have_x"
31546 fi # $with_x != no
31547
31548 if test "$have_x" != yes; then
31549   { echo "$as_me:$LINENO: result: $have_x" >&5
31550 echo "${ECHO_T}$have_x" >&6; }
31551   no_x=yes
31552 else
31553   # If each of the values was on the command line, it overrides each guess.
31554   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31555   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31556   # Update the cache value to reflect the command line values.
31557   ac_cv_have_x="have_x=yes\
31558         ac_x_includes='$x_includes'\
31559         ac_x_libraries='$x_libraries'"
31560   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31561 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31562 fi
31563
31564 if test "$no_x" = yes; then
31565   # Not all programs may use this symbol, but it does not hurt to define it.
31566
31567 cat >>confdefs.h <<\_ACEOF
31568 #define X_DISPLAY_MISSING 1
31569 _ACEOF
31570
31571   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31572 else
31573   if test -n "$x_includes"; then
31574     X_CFLAGS="$X_CFLAGS -I$x_includes"
31575   fi
31576
31577   # It would also be nice to do this for all -L options, not just this one.
31578   if test -n "$x_libraries"; then
31579     X_LIBS="$X_LIBS -L$x_libraries"
31580     # For Solaris; some versions of Sun CC require a space after -R and
31581     # others require no space.  Words are not sufficient . . . .
31582     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31583 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31584     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31585     ac_xsave_c_werror_flag=$ac_c_werror_flag
31586     ac_c_werror_flag=yes
31587     cat >conftest.$ac_ext <<_ACEOF
31588 /* confdefs.h.  */
31589 _ACEOF
31590 cat confdefs.h >>conftest.$ac_ext
31591 cat >>conftest.$ac_ext <<_ACEOF
31592 /* end confdefs.h.  */
31593
31594 int
31595 main ()
31596 {
31597
31598   ;
31599   return 0;
31600 }
31601 _ACEOF
31602 rm -f conftest.$ac_objext conftest$ac_exeext
31603 if { (ac_try="$ac_link"
31604 case "(($ac_try" in
31605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606   *) ac_try_echo=$ac_try;;
31607 esac
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609   (eval "$ac_link") 2>conftest.er1
31610   ac_status=$?
31611   grep -v '^ *+' conftest.er1 >conftest.err
31612   rm -f conftest.er1
31613   cat conftest.err >&5
31614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615   (exit $ac_status); } && {
31616          test -z "$ac_c_werror_flag" ||
31617          test ! -s conftest.err
31618        } && test -s conftest$ac_exeext &&
31619        $as_test_x conftest$ac_exeext; then
31620   { echo "$as_me:$LINENO: result: no" >&5
31621 echo "${ECHO_T}no" >&6; }
31622        X_LIBS="$X_LIBS -R$x_libraries"
31623 else
31624   echo "$as_me: failed program was:" >&5
31625 sed 's/^/| /' conftest.$ac_ext >&5
31626
31627         LIBS="$ac_xsave_LIBS -R $x_libraries"
31628        cat >conftest.$ac_ext <<_ACEOF
31629 /* confdefs.h.  */
31630 _ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h.  */
31634
31635 int
31636 main ()
31637 {
31638
31639   ;
31640   return 0;
31641 }
31642 _ACEOF
31643 rm -f conftest.$ac_objext conftest$ac_exeext
31644 if { (ac_try="$ac_link"
31645 case "(($ac_try" in
31646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31647   *) ac_try_echo=$ac_try;;
31648 esac
31649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31650   (eval "$ac_link") 2>conftest.er1
31651   ac_status=$?
31652   grep -v '^ *+' conftest.er1 >conftest.err
31653   rm -f conftest.er1
31654   cat conftest.err >&5
31655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656   (exit $ac_status); } && {
31657          test -z "$ac_c_werror_flag" ||
31658          test ! -s conftest.err
31659        } && test -s conftest$ac_exeext &&
31660        $as_test_x conftest$ac_exeext; then
31661   { echo "$as_me:$LINENO: result: yes" >&5
31662 echo "${ECHO_T}yes" >&6; }
31663           X_LIBS="$X_LIBS -R $x_libraries"
31664 else
31665   echo "$as_me: failed program was:" >&5
31666 sed 's/^/| /' conftest.$ac_ext >&5
31667
31668         { echo "$as_me:$LINENO: result: neither works" >&5
31669 echo "${ECHO_T}neither works" >&6; }
31670 fi
31671
31672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31673       conftest$ac_exeext conftest.$ac_ext
31674 fi
31675
31676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31677       conftest$ac_exeext conftest.$ac_ext
31678     ac_c_werror_flag=$ac_xsave_c_werror_flag
31679     LIBS=$ac_xsave_LIBS
31680   fi
31681
31682   # Check for system-dependent libraries X programs must link with.
31683   # Do this before checking for the system-independent R6 libraries
31684   # (-lICE), since we may need -lsocket or whatever for X linking.
31685
31686   if test "$ISC" = yes; then
31687     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31688   else
31689     # Martyn Johnson says this is needed for Ultrix, if the X
31690     # libraries were built with DECnet support.  And Karl Berry says
31691     # the Alpha needs dnet_stub (dnet does not exist).
31692     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31693     cat >conftest.$ac_ext <<_ACEOF
31694 /* confdefs.h.  */
31695 _ACEOF
31696 cat confdefs.h >>conftest.$ac_ext
31697 cat >>conftest.$ac_ext <<_ACEOF
31698 /* end confdefs.h.  */
31699
31700 /* Override any GCC internal prototype to avoid an error.
31701    Use char because int might match the return type of a GCC
31702    builtin and then its argument prototype would still apply.  */
31703 #ifdef __cplusplus
31704 extern "C"
31705 #endif
31706 char XOpenDisplay ();
31707 int
31708 main ()
31709 {
31710 return XOpenDisplay ();
31711   ;
31712   return 0;
31713 }
31714 _ACEOF
31715 rm -f conftest.$ac_objext conftest$ac_exeext
31716 if { (ac_try="$ac_link"
31717 case "(($ac_try" in
31718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719   *) ac_try_echo=$ac_try;;
31720 esac
31721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722   (eval "$ac_link") 2>conftest.er1
31723   ac_status=$?
31724   grep -v '^ *+' conftest.er1 >conftest.err
31725   rm -f conftest.er1
31726   cat conftest.err >&5
31727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728   (exit $ac_status); } && {
31729          test -z "$ac_c_werror_flag" ||
31730          test ! -s conftest.err
31731        } && test -s conftest$ac_exeext &&
31732        $as_test_x conftest$ac_exeext; then
31733   :
31734 else
31735   echo "$as_me: failed program was:" >&5
31736 sed 's/^/| /' conftest.$ac_ext >&5
31737
31738         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31739 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
31740 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31741   echo $ECHO_N "(cached) $ECHO_C" >&6
31742 else
31743   ac_check_lib_save_LIBS=$LIBS
31744 LIBS="-ldnet  $LIBS"
31745 cat >conftest.$ac_ext <<_ACEOF
31746 /* confdefs.h.  */
31747 _ACEOF
31748 cat confdefs.h >>conftest.$ac_ext
31749 cat >>conftest.$ac_ext <<_ACEOF
31750 /* end confdefs.h.  */
31751
31752 /* Override any GCC internal prototype to avoid an error.
31753    Use char because int might match the return type of a GCC
31754    builtin and then its argument prototype would still apply.  */
31755 #ifdef __cplusplus
31756 extern "C"
31757 #endif
31758 char dnet_ntoa ();
31759 int
31760 main ()
31761 {
31762 return dnet_ntoa ();
31763   ;
31764   return 0;
31765 }
31766 _ACEOF
31767 rm -f conftest.$ac_objext conftest$ac_exeext
31768 if { (ac_try="$ac_link"
31769 case "(($ac_try" in
31770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31771   *) ac_try_echo=$ac_try;;
31772 esac
31773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31774   (eval "$ac_link") 2>conftest.er1
31775   ac_status=$?
31776   grep -v '^ *+' conftest.er1 >conftest.err
31777   rm -f conftest.er1
31778   cat conftest.err >&5
31779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780   (exit $ac_status); } && {
31781          test -z "$ac_c_werror_flag" ||
31782          test ! -s conftest.err
31783        } && test -s conftest$ac_exeext &&
31784        $as_test_x conftest$ac_exeext; then
31785   ac_cv_lib_dnet_dnet_ntoa=yes
31786 else
31787   echo "$as_me: failed program was:" >&5
31788 sed 's/^/| /' conftest.$ac_ext >&5
31789
31790         ac_cv_lib_dnet_dnet_ntoa=no
31791 fi
31792
31793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31794       conftest$ac_exeext conftest.$ac_ext
31795 LIBS=$ac_check_lib_save_LIBS
31796 fi
31797 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31798 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31799 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
31800   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31801 fi
31802
31803     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31804       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31805 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
31806 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
31807   echo $ECHO_N "(cached) $ECHO_C" >&6
31808 else
31809   ac_check_lib_save_LIBS=$LIBS
31810 LIBS="-ldnet_stub  $LIBS"
31811 cat >conftest.$ac_ext <<_ACEOF
31812 /* confdefs.h.  */
31813 _ACEOF
31814 cat confdefs.h >>conftest.$ac_ext
31815 cat >>conftest.$ac_ext <<_ACEOF
31816 /* end confdefs.h.  */
31817
31818 /* Override any GCC internal prototype to avoid an error.
31819    Use char because int might match the return type of a GCC
31820    builtin and then its argument prototype would still apply.  */
31821 #ifdef __cplusplus
31822 extern "C"
31823 #endif
31824 char dnet_ntoa ();
31825 int
31826 main ()
31827 {
31828 return dnet_ntoa ();
31829   ;
31830   return 0;
31831 }
31832 _ACEOF
31833 rm -f conftest.$ac_objext conftest$ac_exeext
31834 if { (ac_try="$ac_link"
31835 case "(($ac_try" in
31836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837   *) ac_try_echo=$ac_try;;
31838 esac
31839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840   (eval "$ac_link") 2>conftest.er1
31841   ac_status=$?
31842   grep -v '^ *+' conftest.er1 >conftest.err
31843   rm -f conftest.er1
31844   cat conftest.err >&5
31845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846   (exit $ac_status); } && {
31847          test -z "$ac_c_werror_flag" ||
31848          test ! -s conftest.err
31849        } && test -s conftest$ac_exeext &&
31850        $as_test_x conftest$ac_exeext; then
31851   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31852 else
31853   echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31855
31856         ac_cv_lib_dnet_stub_dnet_ntoa=no
31857 fi
31858
31859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31860       conftest$ac_exeext conftest.$ac_ext
31861 LIBS=$ac_check_lib_save_LIBS
31862 fi
31863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31864 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31865 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
31866   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31867 fi
31868
31869     fi
31870 fi
31871
31872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31873       conftest$ac_exeext conftest.$ac_ext
31874     LIBS="$ac_xsave_LIBS"
31875
31876     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31877     # to get the SysV transport functions.
31878     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31879     # needs -lnsl.
31880     # The nsl library prevents programs from opening the X display
31881     # on Irix 5.2, according to T.E. Dickey.
31882     # The functions gethostbyname, getservbyname, and inet_addr are
31883     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31884     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
31885 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
31886 if test "${ac_cv_func_gethostbyname+set}" = set; then
31887   echo $ECHO_N "(cached) $ECHO_C" >&6
31888 else
31889   cat >conftest.$ac_ext <<_ACEOF
31890 /* confdefs.h.  */
31891 _ACEOF
31892 cat confdefs.h >>conftest.$ac_ext
31893 cat >>conftest.$ac_ext <<_ACEOF
31894 /* end confdefs.h.  */
31895 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31897 #define gethostbyname innocuous_gethostbyname
31898
31899 /* System header to define __stub macros and hopefully few prototypes,
31900     which can conflict with char gethostbyname (); below.
31901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31902     <limits.h> exists even on freestanding compilers.  */
31903
31904 #ifdef __STDC__
31905 # include <limits.h>
31906 #else
31907 # include <assert.h>
31908 #endif
31909
31910 #undef gethostbyname
31911
31912 /* Override any GCC internal prototype to avoid an error.
31913    Use char because int might match the return type of a GCC
31914    builtin and then its argument prototype would still apply.  */
31915 #ifdef __cplusplus
31916 extern "C"
31917 #endif
31918 char gethostbyname ();
31919 /* The GNU C library defines this for functions which it implements
31920     to always fail with ENOSYS.  Some functions are actually named
31921     something starting with __ and the normal name is an alias.  */
31922 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31923 choke me
31924 #endif
31925
31926 int
31927 main ()
31928 {
31929 return gethostbyname ();
31930   ;
31931   return 0;
31932 }
31933 _ACEOF
31934 rm -f conftest.$ac_objext conftest$ac_exeext
31935 if { (ac_try="$ac_link"
31936 case "(($ac_try" in
31937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938   *) ac_try_echo=$ac_try;;
31939 esac
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941   (eval "$ac_link") 2>conftest.er1
31942   ac_status=$?
31943   grep -v '^ *+' conftest.er1 >conftest.err
31944   rm -f conftest.er1
31945   cat conftest.err >&5
31946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947   (exit $ac_status); } && {
31948          test -z "$ac_c_werror_flag" ||
31949          test ! -s conftest.err
31950        } && test -s conftest$ac_exeext &&
31951        $as_test_x conftest$ac_exeext; then
31952   ac_cv_func_gethostbyname=yes
31953 else
31954   echo "$as_me: failed program was:" >&5
31955 sed 's/^/| /' conftest.$ac_ext >&5
31956
31957         ac_cv_func_gethostbyname=no
31958 fi
31959
31960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31961       conftest$ac_exeext conftest.$ac_ext
31962 fi
31963 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31964 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
31965
31966     if test $ac_cv_func_gethostbyname = no; then
31967       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31968 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
31969 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31970   echo $ECHO_N "(cached) $ECHO_C" >&6
31971 else
31972   ac_check_lib_save_LIBS=$LIBS
31973 LIBS="-lnsl  $LIBS"
31974 cat >conftest.$ac_ext <<_ACEOF
31975 /* confdefs.h.  */
31976 _ACEOF
31977 cat confdefs.h >>conftest.$ac_ext
31978 cat >>conftest.$ac_ext <<_ACEOF
31979 /* end confdefs.h.  */
31980
31981 /* Override any GCC internal prototype to avoid an error.
31982    Use char because int might match the return type of a GCC
31983    builtin and then its argument prototype would still apply.  */
31984 #ifdef __cplusplus
31985 extern "C"
31986 #endif
31987 char gethostbyname ();
31988 int
31989 main ()
31990 {
31991 return gethostbyname ();
31992   ;
31993   return 0;
31994 }
31995 _ACEOF
31996 rm -f conftest.$ac_objext conftest$ac_exeext
31997 if { (ac_try="$ac_link"
31998 case "(($ac_try" in
31999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000   *) ac_try_echo=$ac_try;;
32001 esac
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003   (eval "$ac_link") 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } && {
32010          test -z "$ac_c_werror_flag" ||
32011          test ! -s conftest.err
32012        } && test -s conftest$ac_exeext &&
32013        $as_test_x conftest$ac_exeext; then
32014   ac_cv_lib_nsl_gethostbyname=yes
32015 else
32016   echo "$as_me: failed program was:" >&5
32017 sed 's/^/| /' conftest.$ac_ext >&5
32018
32019         ac_cv_lib_nsl_gethostbyname=no
32020 fi
32021
32022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32023       conftest$ac_exeext conftest.$ac_ext
32024 LIBS=$ac_check_lib_save_LIBS
32025 fi
32026 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32027 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32028 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32029   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32030 fi
32031
32032       if test $ac_cv_lib_nsl_gethostbyname = no; then
32033         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32034 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32035 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32036   echo $ECHO_N "(cached) $ECHO_C" >&6
32037 else
32038   ac_check_lib_save_LIBS=$LIBS
32039 LIBS="-lbsd  $LIBS"
32040 cat >conftest.$ac_ext <<_ACEOF
32041 /* confdefs.h.  */
32042 _ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h.  */
32046
32047 /* Override any GCC internal prototype to avoid an error.
32048    Use char because int might match the return type of a GCC
32049    builtin and then its argument prototype would still apply.  */
32050 #ifdef __cplusplus
32051 extern "C"
32052 #endif
32053 char gethostbyname ();
32054 int
32055 main ()
32056 {
32057 return gethostbyname ();
32058   ;
32059   return 0;
32060 }
32061 _ACEOF
32062 rm -f conftest.$ac_objext conftest$ac_exeext
32063 if { (ac_try="$ac_link"
32064 case "(($ac_try" in
32065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066   *) ac_try_echo=$ac_try;;
32067 esac
32068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069   (eval "$ac_link") 2>conftest.er1
32070   ac_status=$?
32071   grep -v '^ *+' conftest.er1 >conftest.err
32072   rm -f conftest.er1
32073   cat conftest.err >&5
32074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075   (exit $ac_status); } && {
32076          test -z "$ac_c_werror_flag" ||
32077          test ! -s conftest.err
32078        } && test -s conftest$ac_exeext &&
32079        $as_test_x conftest$ac_exeext; then
32080   ac_cv_lib_bsd_gethostbyname=yes
32081 else
32082   echo "$as_me: failed program was:" >&5
32083 sed 's/^/| /' conftest.$ac_ext >&5
32084
32085         ac_cv_lib_bsd_gethostbyname=no
32086 fi
32087
32088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32089       conftest$ac_exeext conftest.$ac_ext
32090 LIBS=$ac_check_lib_save_LIBS
32091 fi
32092 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32093 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32094 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32095   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32096 fi
32097
32098       fi
32099     fi
32100
32101     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32102     # socket/setsockopt and other routines are undefined under SCO ODT
32103     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32104     # on later versions), says Simon Leinen: it contains gethostby*
32105     # variants that don't use the name server (or something).  -lsocket
32106     # must be given before -lnsl if both are needed.  We assume that
32107     # if connect needs -lnsl, so does gethostbyname.
32108     { echo "$as_me:$LINENO: checking for connect" >&5
32109 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32110 if test "${ac_cv_func_connect+set}" = set; then
32111   echo $ECHO_N "(cached) $ECHO_C" >&6
32112 else
32113   cat >conftest.$ac_ext <<_ACEOF
32114 /* confdefs.h.  */
32115 _ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h.  */
32119 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32121 #define connect innocuous_connect
32122
32123 /* System header to define __stub macros and hopefully few prototypes,
32124     which can conflict with char connect (); below.
32125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32126     <limits.h> exists even on freestanding compilers.  */
32127
32128 #ifdef __STDC__
32129 # include <limits.h>
32130 #else
32131 # include <assert.h>
32132 #endif
32133
32134 #undef connect
32135
32136 /* Override any GCC internal prototype to avoid an error.
32137    Use char because int might match the return type of a GCC
32138    builtin and then its argument prototype would still apply.  */
32139 #ifdef __cplusplus
32140 extern "C"
32141 #endif
32142 char connect ();
32143 /* The GNU C library defines this for functions which it implements
32144     to always fail with ENOSYS.  Some functions are actually named
32145     something starting with __ and the normal name is an alias.  */
32146 #if defined __stub_connect || defined __stub___connect
32147 choke me
32148 #endif
32149
32150 int
32151 main ()
32152 {
32153 return connect ();
32154   ;
32155   return 0;
32156 }
32157 _ACEOF
32158 rm -f conftest.$ac_objext conftest$ac_exeext
32159 if { (ac_try="$ac_link"
32160 case "(($ac_try" in
32161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32162   *) ac_try_echo=$ac_try;;
32163 esac
32164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32165   (eval "$ac_link") 2>conftest.er1
32166   ac_status=$?
32167   grep -v '^ *+' conftest.er1 >conftest.err
32168   rm -f conftest.er1
32169   cat conftest.err >&5
32170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171   (exit $ac_status); } && {
32172          test -z "$ac_c_werror_flag" ||
32173          test ! -s conftest.err
32174        } && test -s conftest$ac_exeext &&
32175        $as_test_x conftest$ac_exeext; then
32176   ac_cv_func_connect=yes
32177 else
32178   echo "$as_me: failed program was:" >&5
32179 sed 's/^/| /' conftest.$ac_ext >&5
32180
32181         ac_cv_func_connect=no
32182 fi
32183
32184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32185       conftest$ac_exeext conftest.$ac_ext
32186 fi
32187 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32188 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32189
32190     if test $ac_cv_func_connect = no; then
32191       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32192 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32193 if test "${ac_cv_lib_socket_connect+set}" = set; then
32194   echo $ECHO_N "(cached) $ECHO_C" >&6
32195 else
32196   ac_check_lib_save_LIBS=$LIBS
32197 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32198 cat >conftest.$ac_ext <<_ACEOF
32199 /* confdefs.h.  */
32200 _ACEOF
32201 cat confdefs.h >>conftest.$ac_ext
32202 cat >>conftest.$ac_ext <<_ACEOF
32203 /* end confdefs.h.  */
32204
32205 /* Override any GCC internal prototype to avoid an error.
32206    Use char because int might match the return type of a GCC
32207    builtin and then its argument prototype would still apply.  */
32208 #ifdef __cplusplus
32209 extern "C"
32210 #endif
32211 char connect ();
32212 int
32213 main ()
32214 {
32215 return connect ();
32216   ;
32217   return 0;
32218 }
32219 _ACEOF
32220 rm -f conftest.$ac_objext conftest$ac_exeext
32221 if { (ac_try="$ac_link"
32222 case "(($ac_try" in
32223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32224   *) ac_try_echo=$ac_try;;
32225 esac
32226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32227   (eval "$ac_link") 2>conftest.er1
32228   ac_status=$?
32229   grep -v '^ *+' conftest.er1 >conftest.err
32230   rm -f conftest.er1
32231   cat conftest.err >&5
32232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233   (exit $ac_status); } && {
32234          test -z "$ac_c_werror_flag" ||
32235          test ! -s conftest.err
32236        } && test -s conftest$ac_exeext &&
32237        $as_test_x conftest$ac_exeext; then
32238   ac_cv_lib_socket_connect=yes
32239 else
32240   echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32242
32243         ac_cv_lib_socket_connect=no
32244 fi
32245
32246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32247       conftest$ac_exeext conftest.$ac_ext
32248 LIBS=$ac_check_lib_save_LIBS
32249 fi
32250 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32251 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32252 if test $ac_cv_lib_socket_connect = yes; then
32253   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32254 fi
32255
32256     fi
32257
32258     # Guillermo Gomez says -lposix is necessary on A/UX.
32259     { echo "$as_me:$LINENO: checking for remove" >&5
32260 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32261 if test "${ac_cv_func_remove+set}" = set; then
32262   echo $ECHO_N "(cached) $ECHO_C" >&6
32263 else
32264   cat >conftest.$ac_ext <<_ACEOF
32265 /* confdefs.h.  */
32266 _ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h.  */
32270 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32272 #define remove innocuous_remove
32273
32274 /* System header to define __stub macros and hopefully few prototypes,
32275     which can conflict with char remove (); below.
32276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32277     <limits.h> exists even on freestanding compilers.  */
32278
32279 #ifdef __STDC__
32280 # include <limits.h>
32281 #else
32282 # include <assert.h>
32283 #endif
32284
32285 #undef remove
32286
32287 /* Override any GCC internal prototype to avoid an error.
32288    Use char because int might match the return type of a GCC
32289    builtin and then its argument prototype would still apply.  */
32290 #ifdef __cplusplus
32291 extern "C"
32292 #endif
32293 char remove ();
32294 /* The GNU C library defines this for functions which it implements
32295     to always fail with ENOSYS.  Some functions are actually named
32296     something starting with __ and the normal name is an alias.  */
32297 #if defined __stub_remove || defined __stub___remove
32298 choke me
32299 #endif
32300
32301 int
32302 main ()
32303 {
32304 return remove ();
32305   ;
32306   return 0;
32307 }
32308 _ACEOF
32309 rm -f conftest.$ac_objext conftest$ac_exeext
32310 if { (ac_try="$ac_link"
32311 case "(($ac_try" in
32312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313   *) ac_try_echo=$ac_try;;
32314 esac
32315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316   (eval "$ac_link") 2>conftest.er1
32317   ac_status=$?
32318   grep -v '^ *+' conftest.er1 >conftest.err
32319   rm -f conftest.er1
32320   cat conftest.err >&5
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); } && {
32323          test -z "$ac_c_werror_flag" ||
32324          test ! -s conftest.err
32325        } && test -s conftest$ac_exeext &&
32326        $as_test_x conftest$ac_exeext; then
32327   ac_cv_func_remove=yes
32328 else
32329   echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32331
32332         ac_cv_func_remove=no
32333 fi
32334
32335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32336       conftest$ac_exeext conftest.$ac_ext
32337 fi
32338 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32339 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32340
32341     if test $ac_cv_func_remove = no; then
32342       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32343 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32344 if test "${ac_cv_lib_posix_remove+set}" = set; then
32345   echo $ECHO_N "(cached) $ECHO_C" >&6
32346 else
32347   ac_check_lib_save_LIBS=$LIBS
32348 LIBS="-lposix  $LIBS"
32349 cat >conftest.$ac_ext <<_ACEOF
32350 /* confdefs.h.  */
32351 _ACEOF
32352 cat confdefs.h >>conftest.$ac_ext
32353 cat >>conftest.$ac_ext <<_ACEOF
32354 /* end confdefs.h.  */
32355
32356 /* Override any GCC internal prototype to avoid an error.
32357    Use char because int might match the return type of a GCC
32358    builtin and then its argument prototype would still apply.  */
32359 #ifdef __cplusplus
32360 extern "C"
32361 #endif
32362 char remove ();
32363 int
32364 main ()
32365 {
32366 return remove ();
32367   ;
32368   return 0;
32369 }
32370 _ACEOF
32371 rm -f conftest.$ac_objext conftest$ac_exeext
32372 if { (ac_try="$ac_link"
32373 case "(($ac_try" in
32374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375   *) ac_try_echo=$ac_try;;
32376 esac
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378   (eval "$ac_link") 2>conftest.er1
32379   ac_status=$?
32380   grep -v '^ *+' conftest.er1 >conftest.err
32381   rm -f conftest.er1
32382   cat conftest.err >&5
32383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384   (exit $ac_status); } && {
32385          test -z "$ac_c_werror_flag" ||
32386          test ! -s conftest.err
32387        } && test -s conftest$ac_exeext &&
32388        $as_test_x conftest$ac_exeext; then
32389   ac_cv_lib_posix_remove=yes
32390 else
32391   echo "$as_me: failed program was:" >&5
32392 sed 's/^/| /' conftest.$ac_ext >&5
32393
32394         ac_cv_lib_posix_remove=no
32395 fi
32396
32397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32398       conftest$ac_exeext conftest.$ac_ext
32399 LIBS=$ac_check_lib_save_LIBS
32400 fi
32401 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32402 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32403 if test $ac_cv_lib_posix_remove = yes; then
32404   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32405 fi
32406
32407     fi
32408
32409     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32410     { echo "$as_me:$LINENO: checking for shmat" >&5
32411 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32412 if test "${ac_cv_func_shmat+set}" = set; then
32413   echo $ECHO_N "(cached) $ECHO_C" >&6
32414 else
32415   cat >conftest.$ac_ext <<_ACEOF
32416 /* confdefs.h.  */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h.  */
32421 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32423 #define shmat innocuous_shmat
32424
32425 /* System header to define __stub macros and hopefully few prototypes,
32426     which can conflict with char shmat (); below.
32427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32428     <limits.h> exists even on freestanding compilers.  */
32429
32430 #ifdef __STDC__
32431 # include <limits.h>
32432 #else
32433 # include <assert.h>
32434 #endif
32435
32436 #undef shmat
32437
32438 /* Override any GCC internal prototype to avoid an error.
32439    Use char because int might match the return type of a GCC
32440    builtin and then its argument prototype would still apply.  */
32441 #ifdef __cplusplus
32442 extern "C"
32443 #endif
32444 char shmat ();
32445 /* The GNU C library defines this for functions which it implements
32446     to always fail with ENOSYS.  Some functions are actually named
32447     something starting with __ and the normal name is an alias.  */
32448 #if defined __stub_shmat || defined __stub___shmat
32449 choke me
32450 #endif
32451
32452 int
32453 main ()
32454 {
32455 return shmat ();
32456   ;
32457   return 0;
32458 }
32459 _ACEOF
32460 rm -f conftest.$ac_objext conftest$ac_exeext
32461 if { (ac_try="$ac_link"
32462 case "(($ac_try" in
32463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32464   *) ac_try_echo=$ac_try;;
32465 esac
32466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32467   (eval "$ac_link") 2>conftest.er1
32468   ac_status=$?
32469   grep -v '^ *+' conftest.er1 >conftest.err
32470   rm -f conftest.er1
32471   cat conftest.err >&5
32472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473   (exit $ac_status); } && {
32474          test -z "$ac_c_werror_flag" ||
32475          test ! -s conftest.err
32476        } && test -s conftest$ac_exeext &&
32477        $as_test_x conftest$ac_exeext; then
32478   ac_cv_func_shmat=yes
32479 else
32480   echo "$as_me: failed program was:" >&5
32481 sed 's/^/| /' conftest.$ac_ext >&5
32482
32483         ac_cv_func_shmat=no
32484 fi
32485
32486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32487       conftest$ac_exeext conftest.$ac_ext
32488 fi
32489 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32490 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32491
32492     if test $ac_cv_func_shmat = no; then
32493       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32494 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32495 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32496   echo $ECHO_N "(cached) $ECHO_C" >&6
32497 else
32498   ac_check_lib_save_LIBS=$LIBS
32499 LIBS="-lipc  $LIBS"
32500 cat >conftest.$ac_ext <<_ACEOF
32501 /* confdefs.h.  */
32502 _ACEOF
32503 cat confdefs.h >>conftest.$ac_ext
32504 cat >>conftest.$ac_ext <<_ACEOF
32505 /* end confdefs.h.  */
32506
32507 /* Override any GCC internal prototype to avoid an error.
32508    Use char because int might match the return type of a GCC
32509    builtin and then its argument prototype would still apply.  */
32510 #ifdef __cplusplus
32511 extern "C"
32512 #endif
32513 char shmat ();
32514 int
32515 main ()
32516 {
32517 return shmat ();
32518   ;
32519   return 0;
32520 }
32521 _ACEOF
32522 rm -f conftest.$ac_objext conftest$ac_exeext
32523 if { (ac_try="$ac_link"
32524 case "(($ac_try" in
32525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526   *) ac_try_echo=$ac_try;;
32527 esac
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529   (eval "$ac_link") 2>conftest.er1
32530   ac_status=$?
32531   grep -v '^ *+' conftest.er1 >conftest.err
32532   rm -f conftest.er1
32533   cat conftest.err >&5
32534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535   (exit $ac_status); } && {
32536          test -z "$ac_c_werror_flag" ||
32537          test ! -s conftest.err
32538        } && test -s conftest$ac_exeext &&
32539        $as_test_x conftest$ac_exeext; then
32540   ac_cv_lib_ipc_shmat=yes
32541 else
32542   echo "$as_me: failed program was:" >&5
32543 sed 's/^/| /' conftest.$ac_ext >&5
32544
32545         ac_cv_lib_ipc_shmat=no
32546 fi
32547
32548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32549       conftest$ac_exeext conftest.$ac_ext
32550 LIBS=$ac_check_lib_save_LIBS
32551 fi
32552 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32553 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32554 if test $ac_cv_lib_ipc_shmat = yes; then
32555   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32556 fi
32557
32558     fi
32559   fi
32560
32561   # Check for libraries that X11R6 Xt/Xaw programs need.
32562   ac_save_LDFLAGS=$LDFLAGS
32563   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32564   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32565   # check for ICE first), but we must link in the order -lSM -lICE or
32566   # we get undefined symbols.  So assume we have SM if we have ICE.
32567   # These have to be linked with before -lX11, unlike the other
32568   # libraries we check for below, so use a different variable.
32569   # John Interrante, Karl Berry
32570   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32571 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32572 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32573   echo $ECHO_N "(cached) $ECHO_C" >&6
32574 else
32575   ac_check_lib_save_LIBS=$LIBS
32576 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32577 cat >conftest.$ac_ext <<_ACEOF
32578 /* confdefs.h.  */
32579 _ACEOF
32580 cat confdefs.h >>conftest.$ac_ext
32581 cat >>conftest.$ac_ext <<_ACEOF
32582 /* end confdefs.h.  */
32583
32584 /* Override any GCC internal prototype to avoid an error.
32585    Use char because int might match the return type of a GCC
32586    builtin and then its argument prototype would still apply.  */
32587 #ifdef __cplusplus
32588 extern "C"
32589 #endif
32590 char IceConnectionNumber ();
32591 int
32592 main ()
32593 {
32594 return IceConnectionNumber ();
32595   ;
32596   return 0;
32597 }
32598 _ACEOF
32599 rm -f conftest.$ac_objext conftest$ac_exeext
32600 if { (ac_try="$ac_link"
32601 case "(($ac_try" in
32602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32603   *) ac_try_echo=$ac_try;;
32604 esac
32605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32606   (eval "$ac_link") 2>conftest.er1
32607   ac_status=$?
32608   grep -v '^ *+' conftest.er1 >conftest.err
32609   rm -f conftest.er1
32610   cat conftest.err >&5
32611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612   (exit $ac_status); } && {
32613          test -z "$ac_c_werror_flag" ||
32614          test ! -s conftest.err
32615        } && test -s conftest$ac_exeext &&
32616        $as_test_x conftest$ac_exeext; then
32617   ac_cv_lib_ICE_IceConnectionNumber=yes
32618 else
32619   echo "$as_me: failed program was:" >&5
32620 sed 's/^/| /' conftest.$ac_ext >&5
32621
32622         ac_cv_lib_ICE_IceConnectionNumber=no
32623 fi
32624
32625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32626       conftest$ac_exeext conftest.$ac_ext
32627 LIBS=$ac_check_lib_save_LIBS
32628 fi
32629 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32630 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32631 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
32632   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32633 fi
32634
32635   LDFLAGS=$ac_save_LDFLAGS
32636
32637 fi
32638
32639
32640         if test "$no_x" = "yes"; then
32641           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32642 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
32643    { (exit 1); exit 1; }; }
32644         fi
32645
32646                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32647         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
32648         AFMINSTALL=afminstall
32649         COMPILED_X_PROGRAM=0
32650
32651     fi
32652
32653     if test "$wxUSE_X11" = 1; then
32654         if test "$wxUSE_NANOX" = "yes"; then
32655             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32656 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
32657             if test "x$MICROWIN" = x ; then
32658                 { echo "$as_me:$LINENO: result: not found" >&5
32659 echo "${ECHO_T}not found" >&6; }
32660                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32661 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
32662    { (exit 1); exit 1; }; }
32663             else
32664                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
32665 echo "${ECHO_T}$MICROWIN" >&6; }
32666                 cat >>confdefs.h <<\_ACEOF
32667 #define wxUSE_NANOX 1
32668 _ACEOF
32669
32670             fi
32671         fi
32672
32673         if test "$wxUSE_UNICODE" = "yes"; then
32674
32675
32676 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32677         if test -n "$ac_tool_prefix"; then
32678   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32679 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32682 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32683   echo $ECHO_N "(cached) $ECHO_C" >&6
32684 else
32685   case $PKG_CONFIG in
32686   [\\/]* | ?:[\\/]*)
32687   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32688   ;;
32689   *)
32690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32691 for as_dir in $PATH
32692 do
32693   IFS=$as_save_IFS
32694   test -z "$as_dir" && as_dir=.
32695   for ac_exec_ext in '' $ac_executable_extensions; do
32696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32697     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32699     break 2
32700   fi
32701 done
32702 done
32703 IFS=$as_save_IFS
32704
32705   ;;
32706 esac
32707 fi
32708 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32709 if test -n "$PKG_CONFIG"; then
32710   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32711 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32712 else
32713   { echo "$as_me:$LINENO: result: no" >&5
32714 echo "${ECHO_T}no" >&6; }
32715 fi
32716
32717
32718 fi
32719 if test -z "$ac_cv_path_PKG_CONFIG"; then
32720   ac_pt_PKG_CONFIG=$PKG_CONFIG
32721   # Extract the first word of "pkg-config", so it can be a program name with args.
32722 set dummy pkg-config; ac_word=$2
32723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32725 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32726   echo $ECHO_N "(cached) $ECHO_C" >&6
32727 else
32728   case $ac_pt_PKG_CONFIG in
32729   [\\/]* | ?:[\\/]*)
32730   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32731   ;;
32732   *)
32733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32734 for as_dir in $PATH
32735 do
32736   IFS=$as_save_IFS
32737   test -z "$as_dir" && as_dir=.
32738   for ac_exec_ext in '' $ac_executable_extensions; do
32739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32740     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32742     break 2
32743   fi
32744 done
32745 done
32746 IFS=$as_save_IFS
32747
32748   ;;
32749 esac
32750 fi
32751 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32752 if test -n "$ac_pt_PKG_CONFIG"; then
32753   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32754 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32755 else
32756   { echo "$as_me:$LINENO: result: no" >&5
32757 echo "${ECHO_T}no" >&6; }
32758 fi
32759
32760   if test "x$ac_pt_PKG_CONFIG" = x; then
32761     PKG_CONFIG=""
32762   else
32763     case $cross_compiling:$ac_tool_warned in
32764 yes:)
32765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32766 whose name does not start with the host triplet.  If you think this
32767 configuration is useful to you, please write to autoconf@gnu.org." >&5
32768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32769 whose name does not start with the host triplet.  If you think this
32770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32771 ac_tool_warned=yes ;;
32772 esac
32773     PKG_CONFIG=$ac_pt_PKG_CONFIG
32774   fi
32775 else
32776   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32777 fi
32778
32779 fi
32780 if test -n "$PKG_CONFIG"; then
32781         _pkg_min_version=0.9.0
32782         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32783 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32784         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32785                 { echo "$as_me:$LINENO: result: yes" >&5
32786 echo "${ECHO_T}yes" >&6; }
32787         else
32788                 { echo "$as_me:$LINENO: result: no" >&5
32789 echo "${ECHO_T}no" >&6; }
32790                 PKG_CONFIG=""
32791         fi
32792
32793 fi
32794
32795
32796 pkg_failed=no
32797 { echo "$as_me:$LINENO: checking for PANGOX" >&5
32798 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
32799
32800 if test -n "$PKG_CONFIG"; then
32801     if test -n "$PANGOX_CFLAGS"; then
32802         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
32803     else
32804         if test -n "$PKG_CONFIG" && \
32805     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32806   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32807   ac_status=$?
32808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809   (exit $ac_status); }; then
32810   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
32811 else
32812   pkg_failed=yes
32813 fi
32814     fi
32815 else
32816         pkg_failed=untried
32817 fi
32818 if test -n "$PKG_CONFIG"; then
32819     if test -n "$PANGOX_LIBS"; then
32820         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
32821     else
32822         if test -n "$PKG_CONFIG" && \
32823     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32824   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32825   ac_status=$?
32826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827   (exit $ac_status); }; then
32828   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
32829 else
32830   pkg_failed=yes
32831 fi
32832     fi
32833 else
32834         pkg_failed=untried
32835 fi
32836
32837
32838
32839 if test $pkg_failed = yes; then
32840
32841 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32842         _pkg_short_errors_supported=yes
32843 else
32844         _pkg_short_errors_supported=no
32845 fi
32846         if test $_pkg_short_errors_supported = yes; then
32847                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
32848         else
32849                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
32850         fi
32851         # Put the nasty error message in config.log where it belongs
32852         echo "$PANGOX_PKG_ERRORS" >&5
32853
32854
32855                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32856 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32857    { (exit 1); exit 1; }; }
32858
32859
32860 elif test $pkg_failed = untried; then
32861
32862                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32863 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32864    { (exit 1); exit 1; }; }
32865
32866
32867 else
32868         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
32869         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
32870         { echo "$as_me:$LINENO: result: yes" >&5
32871 echo "${ECHO_T}yes" >&6; }
32872
32873                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
32874                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
32875                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
32876
32877 fi
32878
32879 pkg_failed=no
32880 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
32881 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
32882
32883 if test -n "$PKG_CONFIG"; then
32884     if test -n "$PANGOFT2_CFLAGS"; then
32885         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
32886     else
32887         if test -n "$PKG_CONFIG" && \
32888     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
32889   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32890   ac_status=$?
32891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892   (exit $ac_status); }; then
32893   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
32894 else
32895   pkg_failed=yes
32896 fi
32897     fi
32898 else
32899         pkg_failed=untried
32900 fi
32901 if test -n "$PKG_CONFIG"; then
32902     if test -n "$PANGOFT2_LIBS"; then
32903         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
32904     else
32905         if test -n "$PKG_CONFIG" && \
32906     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
32907   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32908   ac_status=$?
32909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910   (exit $ac_status); }; then
32911   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
32912 else
32913   pkg_failed=yes
32914 fi
32915     fi
32916 else
32917         pkg_failed=untried
32918 fi
32919
32920
32921
32922 if test $pkg_failed = yes; then
32923
32924 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32925         _pkg_short_errors_supported=yes
32926 else
32927         _pkg_short_errors_supported=no
32928 fi
32929         if test $_pkg_short_errors_supported = yes; then
32930                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
32931         else
32932                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
32933         fi
32934         # Put the nasty error message in config.log where it belongs
32935         echo "$PANGOFT2_PKG_ERRORS" >&5
32936
32937
32938                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32939 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
32940                     wxUSE_PRINTING_ARCHITECTURE="no"
32941
32942
32943 elif test $pkg_failed = untried; then
32944
32945                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32946 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
32947                     wxUSE_PRINTING_ARCHITECTURE="no"
32948
32949
32950 else
32951         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
32952         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
32953         { echo "$as_me:$LINENO: result: yes" >&5
32954 echo "${ECHO_T}yes" >&6; }
32955
32956                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
32957                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
32958                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
32959
32960 fi
32961
32962 pkg_failed=no
32963 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
32964 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
32965
32966 if test -n "$PKG_CONFIG"; then
32967     if test -n "$PANGOXFT_CFLAGS"; then
32968         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
32969     else
32970         if test -n "$PKG_CONFIG" && \
32971     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32972   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32973   ac_status=$?
32974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); }; then
32976   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
32977 else
32978   pkg_failed=yes
32979 fi
32980     fi
32981 else
32982         pkg_failed=untried
32983 fi
32984 if test -n "$PKG_CONFIG"; then
32985     if test -n "$PANGOXFT_LIBS"; then
32986         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
32987     else
32988         if test -n "$PKG_CONFIG" && \
32989     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32990   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32991   ac_status=$?
32992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993   (exit $ac_status); }; then
32994   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
32995 else
32996   pkg_failed=yes
32997 fi
32998     fi
32999 else
33000         pkg_failed=untried
33001 fi
33002
33003
33004
33005 if test $pkg_failed = yes; then
33006
33007 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33008         _pkg_short_errors_supported=yes
33009 else
33010         _pkg_short_errors_supported=no
33011 fi
33012         if test $_pkg_short_errors_supported = yes; then
33013                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33014         else
33015                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33016         fi
33017         # Put the nasty error message in config.log where it belongs
33018         echo "$PANGOXFT_PKG_ERRORS" >&5
33019
33020
33021                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33022 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33023
33024
33025 elif test $pkg_failed = untried; then
33026
33027                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33028 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33029
33030
33031 else
33032         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33033         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33034         { echo "$as_me:$LINENO: result: yes" >&5
33035 echo "${ECHO_T}yes" >&6; }
33036
33037                     cat >>confdefs.h <<\_ACEOF
33038 #define HAVE_PANGO_XFT 1
33039 _ACEOF
33040
33041                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33042                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33043                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33044
33045 fi
33046             save_LIBS="$LIBS"
33047             LIBS="$LIBS $PANGOX_LIBS"
33048
33049 for ac_func in pango_font_family_is_monospace
33050 do
33051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33055   echo $ECHO_N "(cached) $ECHO_C" >&6
33056 else
33057   cat >conftest.$ac_ext <<_ACEOF
33058 /* confdefs.h.  */
33059 _ACEOF
33060 cat confdefs.h >>conftest.$ac_ext
33061 cat >>conftest.$ac_ext <<_ACEOF
33062 /* end confdefs.h.  */
33063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33065 #define $ac_func innocuous_$ac_func
33066
33067 /* System header to define __stub macros and hopefully few prototypes,
33068     which can conflict with char $ac_func (); below.
33069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33070     <limits.h> exists even on freestanding compilers.  */
33071
33072 #ifdef __STDC__
33073 # include <limits.h>
33074 #else
33075 # include <assert.h>
33076 #endif
33077
33078 #undef $ac_func
33079
33080 /* Override any GCC internal prototype to avoid an error.
33081    Use char because int might match the return type of a GCC
33082    builtin and then its argument prototype would still apply.  */
33083 #ifdef __cplusplus
33084 extern "C"
33085 #endif
33086 char $ac_func ();
33087 /* The GNU C library defines this for functions which it implements
33088     to always fail with ENOSYS.  Some functions are actually named
33089     something starting with __ and the normal name is an alias.  */
33090 #if defined __stub_$ac_func || defined __stub___$ac_func
33091 choke me
33092 #endif
33093
33094 int
33095 main ()
33096 {
33097 return $ac_func ();
33098   ;
33099   return 0;
33100 }
33101 _ACEOF
33102 rm -f conftest.$ac_objext conftest$ac_exeext
33103 if { (ac_try="$ac_link"
33104 case "(($ac_try" in
33105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33106   *) ac_try_echo=$ac_try;;
33107 esac
33108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33109   (eval "$ac_link") 2>conftest.er1
33110   ac_status=$?
33111   grep -v '^ *+' conftest.er1 >conftest.err
33112   rm -f conftest.er1
33113   cat conftest.err >&5
33114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115   (exit $ac_status); } && {
33116          test -z "$ac_c_werror_flag" ||
33117          test ! -s conftest.err
33118        } && test -s conftest$ac_exeext &&
33119        $as_test_x conftest$ac_exeext; then
33120   eval "$as_ac_var=yes"
33121 else
33122   echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33124
33125         eval "$as_ac_var=no"
33126 fi
33127
33128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33129       conftest$ac_exeext conftest.$ac_ext
33130 fi
33131 ac_res=`eval echo '${'$as_ac_var'}'`
33132                { echo "$as_me:$LINENO: result: $ac_res" >&5
33133 echo "${ECHO_T}$ac_res" >&6; }
33134 if test `eval echo '${'$as_ac_var'}'` = yes; then
33135   cat >>confdefs.h <<_ACEOF
33136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33137 _ACEOF
33138
33139 fi
33140 done
33141
33142             LIBS="$save_LIBS"
33143         fi
33144
33145         wxUSE_UNIVERSAL="yes"
33146
33147         if test "$wxUSE_NANOX" = "yes"; then
33148             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33149             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"
33150             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33151         else
33152             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33153         fi
33154
33155         TOOLKIT=X11
33156         GUIDIST=X11_DIST
33157     fi
33158
33159     if test "$wxUSE_MOTIF" = 1; then
33160         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33161 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33162
33163 ac_find_includes=
33164 for ac_dir in $SEARCH_INCLUDE /usr/include
33165   do
33166     if test -f "$ac_dir/Xm/Xm.h"; then
33167       ac_find_includes=$ac_dir
33168       break
33169     fi
33170   done
33171
33172         if test "$ac_find_includes" != "" ; then
33173             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33174 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33175
33176     if test "x$ac_find_includes" = "x/usr/include"; then
33177     ac_path_to_include=""
33178   else
33179     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33180     result=$?
33181     if test $result = 0; then
33182       ac_path_to_include=""
33183     else
33184       ac_path_to_include=" -I$ac_find_includes"
33185     fi
33186   fi
33187
33188             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33189         else
33190             save_CFLAGS=$CFLAGS
33191             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33192
33193             cat >conftest.$ac_ext <<_ACEOF
33194 /* confdefs.h.  */
33195 _ACEOF
33196 cat confdefs.h >>conftest.$ac_ext
33197 cat >>conftest.$ac_ext <<_ACEOF
33198 /* end confdefs.h.  */
33199
33200                     #include <Xm/Xm.h>
33201
33202 int
33203 main ()
33204 {
33205
33206                     int version;
33207                     version = xmUseVersion;
33208
33209   ;
33210   return 0;
33211 }
33212 _ACEOF
33213 rm -f conftest.$ac_objext
33214 if { (ac_try="$ac_compile"
33215 case "(($ac_try" in
33216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33217   *) ac_try_echo=$ac_try;;
33218 esac
33219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33220   (eval "$ac_compile") 2>conftest.er1
33221   ac_status=$?
33222   grep -v '^ *+' conftest.er1 >conftest.err
33223   rm -f conftest.er1
33224   cat conftest.err >&5
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); } && {
33227          test -z "$ac_c_werror_flag" ||
33228          test ! -s conftest.err
33229        } && test -s conftest.$ac_objext; then
33230
33231                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33232 echo "${ECHO_T}found in default search path" >&6; }
33233                     COMPILED_X_PROGRAM=1
33234
33235 else
33236   echo "$as_me: failed program was:" >&5
33237 sed 's/^/| /' conftest.$ac_ext >&5
33238
33239
33240                     { echo "$as_me:$LINENO: result: no" >&5
33241 echo "${ECHO_T}no" >&6; }
33242                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33243 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33244    { (exit 1); exit 1; }; }
33245
33246
33247 fi
33248
33249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33250
33251             CFLAGS=$save_CFLAGS
33252         fi
33253
33254
33255         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33256 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33257
33258   ac_find_libraries=
33259   for ac_dir in $SEARCH_LIB
33260   do
33261     for ac_extension in a so sl dylib dll.a; do
33262       if test -f "$ac_dir/libXm.$ac_extension"; then
33263         ac_find_libraries=$ac_dir
33264         break 2
33265       fi
33266     done
33267   done
33268
33269
33270         if test "x$ac_find_libraries" != "x" ; then
33271             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33272 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33273
33274
33275     if test "$ac_find_libraries" = "default location"; then
33276     ac_path_to_link=""
33277   else
33278     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33279     result=$?
33280     if test $result = 0; then
33281       ac_path_to_link=""
33282     else
33283       ac_path_to_link=" -L$ac_find_libraries"
33284     fi
33285   fi
33286
33287             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33288         else
33289                                                 save_CFLAGS=$CFLAGS
33290             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33291             save_LIBS="$LIBS"
33292             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33293
33294             cat >conftest.$ac_ext <<_ACEOF
33295 /* confdefs.h.  */
33296 _ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h.  */
33300
33301                     #include <Xm/Xm.h>
33302
33303 int
33304 main ()
33305 {
33306
33307                     int version;
33308                     version = xmUseVersion;
33309
33310   ;
33311   return 0;
33312 }
33313 _ACEOF
33314 rm -f conftest.$ac_objext conftest$ac_exeext
33315 if { (ac_try="$ac_link"
33316 case "(($ac_try" in
33317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33318   *) ac_try_echo=$ac_try;;
33319 esac
33320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33321   (eval "$ac_link") 2>conftest.er1
33322   ac_status=$?
33323   grep -v '^ *+' conftest.er1 >conftest.err
33324   rm -f conftest.er1
33325   cat conftest.err >&5
33326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327   (exit $ac_status); } && {
33328          test -z "$ac_c_werror_flag" ||
33329          test ! -s conftest.err
33330        } && test -s conftest$ac_exeext &&
33331        $as_test_x conftest$ac_exeext; then
33332
33333                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33334 echo "${ECHO_T}found in default search path" >&6; }
33335                     COMPILED_X_PROGRAM=1
33336
33337 else
33338   echo "$as_me: failed program was:" >&5
33339 sed 's/^/| /' conftest.$ac_ext >&5
33340
33341
33342                     { echo "$as_me:$LINENO: result: no" >&5
33343 echo "${ECHO_T}no" >&6; }
33344                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33345 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33346    { (exit 1); exit 1; }; }
33347
33348
33349 fi
33350
33351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33352       conftest$ac_exeext conftest.$ac_ext
33353
33354             CFLAGS=$save_CFLAGS
33355             LIBS="$save_LIBS"
33356         fi
33357
33358         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33359 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33360         libp_link=""
33361         libsm_ice_link=""
33362         libs_found=0
33363         for libp in "" " -lXp"; do
33364             if test "$libs_found" = 0; then
33365                 for libsm_ice in "" " -lSM -lICE"; do
33366                     if test "$libs_found" = 0; then
33367                         save_LIBS="$LIBS"
33368                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33369                         save_CFLAGS=$CFLAGS
33370                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33371
33372                         cat >conftest.$ac_ext <<_ACEOF
33373 /* confdefs.h.  */
33374 _ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h.  */
33378
33379                                 #include <Xm/Xm.h>
33380                                 #include <Xm/List.h>
33381
33382 int
33383 main ()
33384 {
33385
33386                                 XmString string = NULL;
33387                                 Widget w = NULL;
33388                                 int position = 0;
33389                                 XmListAddItem(w, string, position);
33390
33391   ;
33392   return 0;
33393 }
33394 _ACEOF
33395 rm -f conftest.$ac_objext conftest$ac_exeext
33396 if { (ac_try="$ac_link"
33397 case "(($ac_try" in
33398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399   *) ac_try_echo=$ac_try;;
33400 esac
33401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33402   (eval "$ac_link") 2>conftest.er1
33403   ac_status=$?
33404   grep -v '^ *+' conftest.er1 >conftest.err
33405   rm -f conftest.er1
33406   cat conftest.err >&5
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); } && {
33409          test -z "$ac_c_werror_flag" ||
33410          test ! -s conftest.err
33411        } && test -s conftest$ac_exeext &&
33412        $as_test_x conftest$ac_exeext; then
33413
33414                                 libp_link="$libp"
33415                                 libsm_ice_link="$libsm_ice"
33416                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33417 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33418                                 libs_found=1
33419
33420 else
33421   echo "$as_me: failed program was:" >&5
33422 sed 's/^/| /' conftest.$ac_ext >&5
33423
33424
33425
33426 fi
33427
33428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33429       conftest$ac_exeext conftest.$ac_ext
33430
33431                         LIBS="$save_LIBS"
33432                         CFLAGS=$save_CFLAGS
33433                     fi
33434                 done
33435             fi
33436         done
33437
33438         if test "$libs_found" = 0; then
33439             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33440 echo "${ECHO_T}can't find the right libraries" >&6; }
33441             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33442 echo "$as_me: error: can't link a simple motif program" >&2;}
33443    { (exit 1); exit 1; }; }
33444         fi
33445
33446                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33447 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33448 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33449   echo $ECHO_N "(cached) $ECHO_C" >&6
33450 else
33451   ac_check_lib_save_LIBS=$LIBS
33452 LIBS="-lSgm  $LIBS"
33453 cat >conftest.$ac_ext <<_ACEOF
33454 /* confdefs.h.  */
33455 _ACEOF
33456 cat confdefs.h >>conftest.$ac_ext
33457 cat >>conftest.$ac_ext <<_ACEOF
33458 /* end confdefs.h.  */
33459
33460 /* Override any GCC internal prototype to avoid an error.
33461    Use char because int might match the return type of a GCC
33462    builtin and then its argument prototype would still apply.  */
33463 #ifdef __cplusplus
33464 extern "C"
33465 #endif
33466 char SgCreateList ();
33467 int
33468 main ()
33469 {
33470 return SgCreateList ();
33471   ;
33472   return 0;
33473 }
33474 _ACEOF
33475 rm -f conftest.$ac_objext conftest$ac_exeext
33476 if { (ac_try="$ac_link"
33477 case "(($ac_try" in
33478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33479   *) ac_try_echo=$ac_try;;
33480 esac
33481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33482   (eval "$ac_link") 2>conftest.er1
33483   ac_status=$?
33484   grep -v '^ *+' conftest.er1 >conftest.err
33485   rm -f conftest.er1
33486   cat conftest.err >&5
33487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488   (exit $ac_status); } && {
33489          test -z "$ac_c_werror_flag" ||
33490          test ! -s conftest.err
33491        } && test -s conftest$ac_exeext &&
33492        $as_test_x conftest$ac_exeext; then
33493   ac_cv_lib_Sgm_SgCreateList=yes
33494 else
33495   echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33497
33498         ac_cv_lib_Sgm_SgCreateList=no
33499 fi
33500
33501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33502       conftest$ac_exeext conftest.$ac_ext
33503 LIBS=$ac_check_lib_save_LIBS
33504 fi
33505 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33506 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33507 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33508   libsgm_link=" -lSgm"
33509 fi
33510
33511
33512         save_CFLAGS=$CFLAGS
33513         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33514
33515         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33516 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33517 if test "${wx_cv_lib_motif2+set}" = set; then
33518   echo $ECHO_N "(cached) $ECHO_C" >&6
33519 else
33520   cat >conftest.$ac_ext <<_ACEOF
33521 /* confdefs.h.  */
33522 _ACEOF
33523 cat confdefs.h >>conftest.$ac_ext
33524 cat >>conftest.$ac_ext <<_ACEOF
33525 /* end confdefs.h.  */
33526
33527                             #include <Xm/Xm.h>
33528
33529 int
33530 main ()
33531 {
33532
33533                             #if XmVersion < 2000
33534                             Not Motif 2
33535                             #endif
33536
33537   ;
33538   return 0;
33539 }
33540 _ACEOF
33541 rm -f conftest.$ac_objext
33542 if { (ac_try="$ac_compile"
33543 case "(($ac_try" in
33544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545   *) ac_try_echo=$ac_try;;
33546 esac
33547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548   (eval "$ac_compile") 2>conftest.er1
33549   ac_status=$?
33550   grep -v '^ *+' conftest.er1 >conftest.err
33551   rm -f conftest.er1
33552   cat conftest.err >&5
33553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554   (exit $ac_status); } && {
33555          test -z "$ac_c_werror_flag" ||
33556          test ! -s conftest.err
33557        } && test -s conftest.$ac_objext; then
33558   wx_cv_lib_motif2="yes"
33559 else
33560   echo "$as_me: failed program was:" >&5
33561 sed 's/^/| /' conftest.$ac_ext >&5
33562
33563         wx_cv_lib_motif2="no"
33564 fi
33565
33566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33567 fi
33568 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33569 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33570         if test "$wx_cv_lib_motif2" = "yes"; then
33571             cat >>confdefs.h <<\_ACEOF
33572 #define __WXMOTIF20__ 1
33573 _ACEOF
33574
33575         else
33576             cat >>confdefs.h <<\_ACEOF
33577 #define __WXMOTIF20__ 0
33578 _ACEOF
33579
33580         fi
33581
33582         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33583 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33584 if test "${wx_cv_lib_lesstif+set}" = set; then
33585   echo $ECHO_N "(cached) $ECHO_C" >&6
33586 else
33587   cat >conftest.$ac_ext <<_ACEOF
33588 /* confdefs.h.  */
33589 _ACEOF
33590 cat confdefs.h >>conftest.$ac_ext
33591 cat >>conftest.$ac_ext <<_ACEOF
33592 /* end confdefs.h.  */
33593
33594                             #include <Xm/Xm.h>
33595
33596 int
33597 main ()
33598 {
33599
33600                             #if !defined(LesstifVersion) || LesstifVersion <= 0
33601                             Not Lesstif
33602                             #endif
33603
33604   ;
33605   return 0;
33606 }
33607 _ACEOF
33608 rm -f conftest.$ac_objext
33609 if { (ac_try="$ac_compile"
33610 case "(($ac_try" in
33611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612   *) ac_try_echo=$ac_try;;
33613 esac
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615   (eval "$ac_compile") 2>conftest.er1
33616   ac_status=$?
33617   grep -v '^ *+' conftest.er1 >conftest.err
33618   rm -f conftest.er1
33619   cat conftest.err >&5
33620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621   (exit $ac_status); } && {
33622          test -z "$ac_c_werror_flag" ||
33623          test ! -s conftest.err
33624        } && test -s conftest.$ac_objext; then
33625   wx_cv_lib_lesstif="yes"
33626 else
33627   echo "$as_me: failed program was:" >&5
33628 sed 's/^/| /' conftest.$ac_ext >&5
33629
33630         wx_cv_lib_lesstif="no"
33631 fi
33632
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33634
33635 fi
33636 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
33637 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
33638         if test "$wx_cv_lib_lesstif" = "yes"; then
33639             cat >>confdefs.h <<\_ACEOF
33640 #define __WXLESSTIF__ 1
33641 _ACEOF
33642
33643         else
33644             cat >>confdefs.h <<\_ACEOF
33645 #define __WXLESSTIF__ 0
33646 _ACEOF
33647
33648         fi
33649
33650         CFLAGS=$save_CFLAGS
33651
33652         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
33653         TOOLKIT=MOTIF
33654         GUIDIST=MOTIF_DIST
33655     fi
33656
33657         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33658                 if test "$wxUSE_LIBXPM" = "sys"; then
33659             { echo "$as_me:$LINENO: checking for Xpm library" >&5
33660 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
33661
33662   ac_find_libraries=
33663   for ac_dir in $SEARCH_LIB
33664   do
33665     for ac_extension in a so sl dylib dll.a; do
33666       if test -f "$ac_dir/libXpm.$ac_extension"; then
33667         ac_find_libraries=$ac_dir
33668         break 2
33669       fi
33670     done
33671   done
33672
33673             if test "$ac_find_libraries" != "" ; then
33674
33675     if test "$ac_find_libraries" = "default location"; then
33676     ac_path_to_link=""
33677   else
33678     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33679     result=$?
33680     if test $result = 0; then
33681       ac_path_to_link=""
33682     else
33683       ac_path_to_link=" -L$ac_find_libraries"
33684     fi
33685   fi
33686
33687                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33688                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33689 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33690
33691                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33692 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
33693 if test "${wx_cv_x11_xpm_h+set}" = set; then
33694   echo $ECHO_N "(cached) $ECHO_C" >&6
33695 else
33696
33697                         save_CFLAGS=$CFLAGS
33698                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33699
33700                         cat >conftest.$ac_ext <<_ACEOF
33701 /* confdefs.h.  */
33702 _ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h.  */
33706
33707                                 #include <X11/xpm.h>
33708
33709 int
33710 main ()
33711 {
33712
33713                                 int version;
33714                                 version = XpmLibraryVersion();
33715
33716   ;
33717   return 0;
33718 }
33719 _ACEOF
33720 rm -f conftest.$ac_objext
33721 if { (ac_try="$ac_compile"
33722 case "(($ac_try" in
33723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33724   *) ac_try_echo=$ac_try;;
33725 esac
33726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33727   (eval "$ac_compile") 2>conftest.er1
33728   ac_status=$?
33729   grep -v '^ *+' conftest.er1 >conftest.err
33730   rm -f conftest.er1
33731   cat conftest.err >&5
33732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733   (exit $ac_status); } && {
33734          test -z "$ac_c_werror_flag" ||
33735          test ! -s conftest.err
33736        } && test -s conftest.$ac_objext; then
33737   wx_cv_x11_xpm_h=yes
33738 else
33739   echo "$as_me: failed program was:" >&5
33740 sed 's/^/| /' conftest.$ac_ext >&5
33741
33742         wx_cv_x11_xpm_h=no
33743
33744 fi
33745
33746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33747
33748                         CFLAGS=$save_CFLAGS
33749
33750
33751 fi
33752 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
33753 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
33754
33755                 if test $wx_cv_x11_xpm_h = "yes"; then
33756                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
33757                     cat >>confdefs.h <<\_ACEOF
33758 #define wxHAVE_LIB_XPM 1
33759 _ACEOF
33760
33761                 else
33762                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
33763 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
33764                 fi
33765             fi
33766
33767         fi
33768
33769                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
33770 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
33771 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
33772   echo $ECHO_N "(cached) $ECHO_C" >&6
33773 else
33774   ac_check_lib_save_LIBS=$LIBS
33775 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
33776 cat >conftest.$ac_ext <<_ACEOF
33777 /* confdefs.h.  */
33778 _ACEOF
33779 cat confdefs.h >>conftest.$ac_ext
33780 cat >>conftest.$ac_ext <<_ACEOF
33781 /* end confdefs.h.  */
33782
33783 /* Override any GCC internal prototype to avoid an error.
33784    Use char because int might match the return type of a GCC
33785    builtin and then its argument prototype would still apply.  */
33786 #ifdef __cplusplus
33787 extern "C"
33788 #endif
33789 char XShapeQueryExtension ();
33790 int
33791 main ()
33792 {
33793 return XShapeQueryExtension ();
33794   ;
33795   return 0;
33796 }
33797 _ACEOF
33798 rm -f conftest.$ac_objext conftest$ac_exeext
33799 if { (ac_try="$ac_link"
33800 case "(($ac_try" in
33801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802   *) ac_try_echo=$ac_try;;
33803 esac
33804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805   (eval "$ac_link") 2>conftest.er1
33806   ac_status=$?
33807   grep -v '^ *+' conftest.er1 >conftest.err
33808   rm -f conftest.er1
33809   cat conftest.err >&5
33810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811   (exit $ac_status); } && {
33812          test -z "$ac_c_werror_flag" ||
33813          test ! -s conftest.err
33814        } && test -s conftest$ac_exeext &&
33815        $as_test_x conftest$ac_exeext; then
33816   ac_cv_lib_Xext_XShapeQueryExtension=yes
33817 else
33818   echo "$as_me: failed program was:" >&5
33819 sed 's/^/| /' conftest.$ac_ext >&5
33820
33821         ac_cv_lib_Xext_XShapeQueryExtension=no
33822 fi
33823
33824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33825       conftest$ac_exeext conftest.$ac_ext
33826 LIBS=$ac_check_lib_save_LIBS
33827 fi
33828 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
33829 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
33830 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
33831
33832                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
33833                       wxHAVE_XEXT_LIB=1
33834
33835 fi
33836
33837
33838         if test "$wxHAVE_XEXT_LIB" = 1; then
33839             save_CFLAGS="$CFLAGS"
33840             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33841
33842             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
33843 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
33844             cat >conftest.$ac_ext <<_ACEOF
33845 /* confdefs.h.  */
33846 _ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h.  */
33850
33851                             #include <X11/Xlib.h>
33852                             #include <X11/extensions/shape.h>
33853
33854 int
33855 main ()
33856 {
33857
33858                             int dummy1, dummy2;
33859                             XShapeQueryExtension((Display*)NULL,
33860                                                  (int*)NULL, (int*)NULL);
33861
33862   ;
33863   return 0;
33864 }
33865 _ACEOF
33866 rm -f conftest.$ac_objext
33867 if { (ac_try="$ac_compile"
33868 case "(($ac_try" in
33869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33870   *) ac_try_echo=$ac_try;;
33871 esac
33872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873   (eval "$ac_compile") 2>conftest.er1
33874   ac_status=$?
33875   grep -v '^ *+' conftest.er1 >conftest.err
33876   rm -f conftest.er1
33877   cat conftest.err >&5
33878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879   (exit $ac_status); } && {
33880          test -z "$ac_c_werror_flag" ||
33881          test ! -s conftest.err
33882        } && test -s conftest.$ac_objext; then
33883
33884                             cat >>confdefs.h <<\_ACEOF
33885 #define HAVE_XSHAPE 1
33886 _ACEOF
33887
33888                             { echo "$as_me:$LINENO: result: found" >&5
33889 echo "${ECHO_T}found" >&6; }
33890
33891 else
33892   echo "$as_me: failed program was:" >&5
33893 sed 's/^/| /' conftest.$ac_ext >&5
33894
33895
33896                             { echo "$as_me:$LINENO: result: not found" >&5
33897 echo "${ECHO_T}not found" >&6; }
33898
33899 fi
33900
33901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33902             CFLAGS="$save_CFLAGS"
33903
33904         fi
33905     fi
33906
33907     if test "$wxUSE_OSX_CARBON" = 1; then
33908         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
33909 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
33910         if test "$GCC" = yes; then
33911             { echo "$as_me:$LINENO: result: gcc" >&5
33912 echo "${ECHO_T}gcc" >&6; }
33913             CPPFLAGS_PASCAL="-fpascal-strings"
33914         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
33915             { echo "$as_me:$LINENO: result: xlc" >&5
33916 echo "${ECHO_T}xlc" >&6; }
33917             CPPFLAGS_PASCAL="-qmacpstr"
33918         else
33919             { echo "$as_me:$LINENO: result: none" >&5
33920 echo "${ECHO_T}none" >&6; }
33921         fi
33922
33923         if test "x$wxUSE_UNIX" = "xyes"; then
33924             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
33925         else
33926                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
33927         fi
33928
33929         TOOLKIT=OSX_CARBON
33930                 GUIDIST=OSX_CARBON_DIST
33931                         WXBASEPORT="_carbon"
33932
33933                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
33934     fi
33935
33936     if test "$wxUSE_OSX_COCOA" = 1; then
33937         TOOLKIT=OSX_COCOA
33938         GUIDIST=OSX_COCOA_DIST
33939
33940                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
33941     fi
33942
33943     if test "$wxUSE_OSX_IPHONE" = 1; then
33944         TOOLKIT=OSX_IPHONE
33945     fi
33946
33947     if test "$wxUSE_OLD_COCOA" = 1; then
33948         TOOLKIT=COCOA
33949         GUIDIST=COCOA_DIST
33950     fi
33951
33952     if test "$wxUSE_PM" = 1; then
33953         TOOLKIT=PM
33954         GUIDIST=PM_DIST
33955         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
33956 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
33957 if test "${wx_cv_spbcdata+set}" = set; then
33958   echo $ECHO_N "(cached) $ECHO_C" >&6
33959 else
33960
33961                 cat >conftest.$ac_ext <<_ACEOF
33962 /* confdefs.h.  */
33963 _ACEOF
33964 cat confdefs.h >>conftest.$ac_ext
33965 cat >>conftest.$ac_ext <<_ACEOF
33966 /* end confdefs.h.  */
33967
33968                         #define INCL_PM
33969                         #include <os2.h>
33970
33971 int
33972 main ()
33973 {
33974
33975                         SPBCDATA test;
33976
33977   ;
33978   return 0;
33979 }
33980 _ACEOF
33981 rm -f conftest.$ac_objext
33982 if { (ac_try="$ac_compile"
33983 case "(($ac_try" in
33984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985   *) ac_try_echo=$ac_try;;
33986 esac
33987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988   (eval "$ac_compile") 2>conftest.er1
33989   ac_status=$?
33990   grep -v '^ *+' conftest.er1 >conftest.err
33991   rm -f conftest.er1
33992   cat conftest.err >&5
33993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994   (exit $ac_status); } && {
33995          test -z "$ac_c_werror_flag" ||
33996          test ! -s conftest.err
33997        } && test -s conftest.$ac_objext; then
33998   wx_cv_spbcdata=yes
33999 else
34000   echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34002
34003         wx_cv_spbcdata=no
34004
34005 fi
34006
34007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34008
34009
34010 fi
34011 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34012 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34013
34014         if test $wx_cv_spbcdata = "yes"; then
34015             cat >>confdefs.h <<\_ACEOF
34016 #define HAVE_SPBCDATA 1
34017 _ACEOF
34018
34019         fi
34020     fi
34021
34022         if test "$TOOLKIT" = "PM" ; then
34023         TOOLKIT_DIR="os2"
34024     else
34025         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34026     fi
34027
34028     if test "$wxUSE_UNIVERSAL" = "yes"; then
34029         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34030         WIDGET_SET=univ
34031     fi
34032
34033         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34034     DISTDIR="wx\$(TOOLKIT)"
34035 else
34036     USE_GUI=0
34037
34038             TOOLKIT_DIR="base"
34039
34040         if test "$USE_WIN32" = 1 ; then
34041                         TOOLKIT="MSW"
34042     fi
34043
34044         GUIDIST="BASE_DIST"
34045     DISTDIR="wxBase"
34046 fi
34047
34048
34049
34050 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34051     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34052         wxUSE_UNICODE_UTF8=yes
34053     elif test "$USE_OS2" = 1 ; then
34054                                 wxUSE_UNICODE_UTF8=yes
34055     else
34056         wxUSE_UNICODE_UTF8=no
34057     fi
34058 fi
34059
34060
34061 if test "$wxUSE_GUI" = "yes"; then
34062     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34063
34064 for ac_header in X11/Xlib.h
34065 do
34066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34070   echo $ECHO_N "(cached) $ECHO_C" >&6
34071 else
34072   cat >conftest.$ac_ext <<_ACEOF
34073 /* confdefs.h.  */
34074 _ACEOF
34075 cat confdefs.h >>conftest.$ac_ext
34076 cat >>conftest.$ac_ext <<_ACEOF
34077 /* end confdefs.h.  */
34078
34079
34080 #include <$ac_header>
34081 _ACEOF
34082 rm -f conftest.$ac_objext
34083 if { (ac_try="$ac_compile"
34084 case "(($ac_try" in
34085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34086   *) ac_try_echo=$ac_try;;
34087 esac
34088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34089   (eval "$ac_compile") 2>conftest.er1
34090   ac_status=$?
34091   grep -v '^ *+' conftest.er1 >conftest.err
34092   rm -f conftest.er1
34093   cat conftest.err >&5
34094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095   (exit $ac_status); } && {
34096          test -z "$ac_c_werror_flag" ||
34097          test ! -s conftest.err
34098        } && test -s conftest.$ac_objext; then
34099   eval "$as_ac_Header=yes"
34100 else
34101   echo "$as_me: failed program was:" >&5
34102 sed 's/^/| /' conftest.$ac_ext >&5
34103
34104         eval "$as_ac_Header=no"
34105 fi
34106
34107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34108 fi
34109 ac_res=`eval echo '${'$as_ac_Header'}'`
34110                { echo "$as_me:$LINENO: result: $ac_res" >&5
34111 echo "${ECHO_T}$ac_res" >&6; }
34112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34113   cat >>confdefs.h <<_ACEOF
34114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34115 _ACEOF
34116
34117 fi
34118
34119 done
34120
34121
34122 for ac_header in X11/XKBlib.h
34123 do
34124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34128   echo $ECHO_N "(cached) $ECHO_C" >&6
34129 else
34130   cat >conftest.$ac_ext <<_ACEOF
34131 /* confdefs.h.  */
34132 _ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h.  */
34136
34137                           #if HAVE_X11_XLIB_H
34138                             #include <X11/Xlib.h>
34139                           #endif
34140
34141
34142 #include <$ac_header>
34143 _ACEOF
34144 rm -f conftest.$ac_objext
34145 if { (ac_try="$ac_compile"
34146 case "(($ac_try" in
34147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148   *) ac_try_echo=$ac_try;;
34149 esac
34150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34151   (eval "$ac_compile") 2>conftest.er1
34152   ac_status=$?
34153   grep -v '^ *+' conftest.er1 >conftest.err
34154   rm -f conftest.er1
34155   cat conftest.err >&5
34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157   (exit $ac_status); } && {
34158          test -z "$ac_c_werror_flag" ||
34159          test ! -s conftest.err
34160        } && test -s conftest.$ac_objext; then
34161   eval "$as_ac_Header=yes"
34162 else
34163   echo "$as_me: failed program was:" >&5
34164 sed 's/^/| /' conftest.$ac_ext >&5
34165
34166         eval "$as_ac_Header=no"
34167 fi
34168
34169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34170 fi
34171 ac_res=`eval echo '${'$as_ac_Header'}'`
34172                { echo "$as_me:$LINENO: result: $ac_res" >&5
34173 echo "${ECHO_T}$ac_res" >&6; }
34174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34175   cat >>confdefs.h <<_ACEOF
34176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34177 _ACEOF
34178
34179 fi
34180
34181 done
34182
34183     fi
34184 fi
34185
34186
34187
34188 USE_XINERAMA=0
34189 if test "$wxUSE_DISPLAY" = "yes"; then
34190         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34191         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34192 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34193
34194   ac_find_libraries=
34195   for ac_dir in $SEARCH_LIB
34196   do
34197     for ac_extension in a so sl dylib dll.a; do
34198       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34199         ac_find_libraries=$ac_dir
34200         break 2
34201       fi
34202     done
34203   done
34204
34205         if test "$ac_find_libraries" != "" ; then
34206
34207     if test "$ac_find_libraries" = "default location"; then
34208     ac_path_to_link=""
34209   else
34210     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34211     result=$?
34212     if test $result = 0; then
34213       ac_path_to_link=""
34214     else
34215       ac_path_to_link=" -L$ac_find_libraries"
34216     fi
34217   fi
34218
34219             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34220                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34221             fi
34222             USE_XINERAMA=1
34223             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34224             { echo "$as_me:$LINENO: result: yes" >&5
34225 echo "${ECHO_T}yes" >&6; }
34226         else
34227             { echo "$as_me:$LINENO: result: no" >&5
34228 echo "${ECHO_T}no" >&6; }
34229             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34230 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34231             wxUSE_DISPLAY="no"
34232         fi
34233     elif test "$wxUSE_MSW" = 1; then
34234                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34235 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34236 if test "${ac_cv_header_ddraw_h+set}" = set; then
34237   echo $ECHO_N "(cached) $ECHO_C" >&6
34238 else
34239   cat >conftest.$ac_ext <<_ACEOF
34240 /* confdefs.h.  */
34241 _ACEOF
34242 cat confdefs.h >>conftest.$ac_ext
34243 cat >>conftest.$ac_ext <<_ACEOF
34244 /* end confdefs.h.  */
34245 #include <windows.h>
34246
34247 #include <ddraw.h>
34248 _ACEOF
34249 rm -f conftest.$ac_objext
34250 if { (ac_try="$ac_compile"
34251 case "(($ac_try" in
34252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34253   *) ac_try_echo=$ac_try;;
34254 esac
34255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34256   (eval "$ac_compile") 2>conftest.er1
34257   ac_status=$?
34258   grep -v '^ *+' conftest.er1 >conftest.err
34259   rm -f conftest.er1
34260   cat conftest.err >&5
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); } && {
34263          test -z "$ac_c_werror_flag" ||
34264          test ! -s conftest.err
34265        } && test -s conftest.$ac_objext; then
34266   ac_cv_header_ddraw_h=yes
34267 else
34268   echo "$as_me: failed program was:" >&5
34269 sed 's/^/| /' conftest.$ac_ext >&5
34270
34271         ac_cv_header_ddraw_h=no
34272 fi
34273
34274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34275 fi
34276 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34277 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34278
34279
34280     fi
34281 fi
34282
34283 if test "$wxUSE_DISPLAY" = "yes"; then
34284         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34285         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34286 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34287
34288   ac_find_libraries=
34289   for ac_dir in $SEARCH_LIB
34290   do
34291     for ac_extension in a so sl dylib dll.a; do
34292       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34293         ac_find_libraries=$ac_dir
34294         break 2
34295       fi
34296     done
34297   done
34298
34299         if test "$ac_find_libraries" != "" ; then
34300             { echo "$as_me:$LINENO: result: yes" >&5
34301 echo "${ECHO_T}yes" >&6; }
34302
34303 for ac_header in X11/extensions/xf86vmode.h
34304 do
34305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34309   echo $ECHO_N "(cached) $ECHO_C" >&6
34310 else
34311   cat >conftest.$ac_ext <<_ACEOF
34312 /* confdefs.h.  */
34313 _ACEOF
34314 cat confdefs.h >>conftest.$ac_ext
34315 cat >>conftest.$ac_ext <<_ACEOF
34316 /* end confdefs.h.  */
34317
34318                                   #if HAVE_X11_XLIB_H
34319                                     #include <X11/Xlib.h>
34320                                   #endif
34321
34322
34323 #include <$ac_header>
34324 _ACEOF
34325 rm -f conftest.$ac_objext
34326 if { (ac_try="$ac_compile"
34327 case "(($ac_try" in
34328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34329   *) ac_try_echo=$ac_try;;
34330 esac
34331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34332   (eval "$ac_compile") 2>conftest.er1
34333   ac_status=$?
34334   grep -v '^ *+' conftest.er1 >conftest.err
34335   rm -f conftest.er1
34336   cat conftest.err >&5
34337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34338   (exit $ac_status); } && {
34339          test -z "$ac_c_werror_flag" ||
34340          test ! -s conftest.err
34341        } && test -s conftest.$ac_objext; then
34342   eval "$as_ac_Header=yes"
34343 else
34344   echo "$as_me: failed program was:" >&5
34345 sed 's/^/| /' conftest.$ac_ext >&5
34346
34347         eval "$as_ac_Header=no"
34348 fi
34349
34350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34351 fi
34352 ac_res=`eval echo '${'$as_ac_Header'}'`
34353                { echo "$as_me:$LINENO: result: $ac_res" >&5
34354 echo "${ECHO_T}$ac_res" >&6; }
34355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34356   cat >>confdefs.h <<_ACEOF
34357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34358 _ACEOF
34359
34360                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34361
34362 fi
34363
34364 done
34365
34366         else
34367             { echo "$as_me:$LINENO: result: no" >&5
34368 echo "${ECHO_T}no" >&6; }
34369         fi
34370     fi
34371 fi
34372
34373 if test "$wxUSE_DETECT_SM" = "yes"; then
34374     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34375         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34376 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34377
34378   ac_find_libraries=
34379   for ac_dir in $SEARCH_LIB
34380   do
34381     for ac_extension in a so sl dylib dll.a; do
34382       if test -f "$ac_dir/libSM.$ac_extension"; then
34383         ac_find_libraries=$ac_dir
34384         break 2
34385       fi
34386     done
34387   done
34388
34389         if test "$ac_find_libraries" != "" ; then
34390
34391     if test "$ac_find_libraries" = "default location"; then
34392     ac_path_to_link=""
34393   else
34394     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34395     result=$?
34396     if test $result = 0; then
34397       ac_path_to_link=""
34398     else
34399       ac_path_to_link=" -L$ac_find_libraries"
34400     fi
34401   fi
34402
34403             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34404                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34405             fi
34406             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34407             { echo "$as_me:$LINENO: result: yes" >&5
34408 echo "${ECHO_T}yes" >&6; }
34409         else
34410             { echo "$as_me:$LINENO: result: no" >&5
34411 echo "${ECHO_T}no" >&6; }
34412             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34413 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34414             wxUSE_DETECT_SM="no"
34415         fi
34416     else
34417         wxUSE_DETECT_SM="no"
34418     fi
34419 fi
34420
34421
34422
34423 USE_OPENGL=0
34424 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34425
34426
34427     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34428         OPENGL_LIBS="-framework OpenGL -framework AGL"
34429     elif test "$wxUSE_MSW" = 1; then
34430         OPENGL_LIBS="-lopengl32 -lglu32"
34431     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34432
34433                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34434 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34435
34436 ac_find_includes=
34437 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34438   do
34439     if test -f "$ac_dir/GL/gl.h"; then
34440       ac_find_includes=$ac_dir
34441       break
34442     fi
34443   done
34444
34445         if test "$ac_find_includes" != "" ; then
34446             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34447 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34448
34449     if test "x$ac_find_includes" = "x/usr/include"; then
34450     ac_path_to_include=""
34451   else
34452     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34453     result=$?
34454     if test $result = 0; then
34455       ac_path_to_include=""
34456     else
34457       ac_path_to_include=" -I$ac_find_includes"
34458     fi
34459   fi
34460
34461             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34462         else
34463             { echo "$as_me:$LINENO: result: not found" >&5
34464 echo "${ECHO_T}not found" >&6; }
34465         fi
34466
34467         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34468 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34469 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34470   echo $ECHO_N "(cached) $ECHO_C" >&6
34471 else
34472   cat >conftest.$ac_ext <<_ACEOF
34473 /* confdefs.h.  */
34474 _ACEOF
34475 cat confdefs.h >>conftest.$ac_ext
34476 cat >>conftest.$ac_ext <<_ACEOF
34477 /* end confdefs.h.  */
34478
34479
34480 #include <GL/gl.h>
34481 _ACEOF
34482 rm -f conftest.$ac_objext
34483 if { (ac_try="$ac_compile"
34484 case "(($ac_try" in
34485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486   *) ac_try_echo=$ac_try;;
34487 esac
34488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34489   (eval "$ac_compile") 2>conftest.er1
34490   ac_status=$?
34491   grep -v '^ *+' conftest.er1 >conftest.err
34492   rm -f conftest.er1
34493   cat conftest.err >&5
34494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495   (exit $ac_status); } && {
34496          test -z "$ac_c_werror_flag" ||
34497          test ! -s conftest.err
34498        } && test -s conftest.$ac_objext; then
34499   ac_cv_header_GL_gl_h=yes
34500 else
34501   echo "$as_me: failed program was:" >&5
34502 sed 's/^/| /' conftest.$ac_ext >&5
34503
34504         ac_cv_header_GL_gl_h=no
34505 fi
34506
34507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34508 fi
34509 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34510 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34511 if test $ac_cv_header_GL_gl_h = yes; then
34512
34513             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34514 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
34515 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34516   echo $ECHO_N "(cached) $ECHO_C" >&6
34517 else
34518   cat >conftest.$ac_ext <<_ACEOF
34519 /* confdefs.h.  */
34520 _ACEOF
34521 cat confdefs.h >>conftest.$ac_ext
34522 cat >>conftest.$ac_ext <<_ACEOF
34523 /* end confdefs.h.  */
34524
34525
34526 #include <GL/glu.h>
34527 _ACEOF
34528 rm -f conftest.$ac_objext
34529 if { (ac_try="$ac_compile"
34530 case "(($ac_try" in
34531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34532   *) ac_try_echo=$ac_try;;
34533 esac
34534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34535   (eval "$ac_compile") 2>conftest.er1
34536   ac_status=$?
34537   grep -v '^ *+' conftest.er1 >conftest.err
34538   rm -f conftest.er1
34539   cat conftest.err >&5
34540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541   (exit $ac_status); } && {
34542          test -z "$ac_c_werror_flag" ||
34543          test ! -s conftest.err
34544        } && test -s conftest.$ac_objext; then
34545   ac_cv_header_GL_glu_h=yes
34546 else
34547   echo "$as_me: failed program was:" >&5
34548 sed 's/^/| /' conftest.$ac_ext >&5
34549
34550         ac_cv_header_GL_glu_h=no
34551 fi
34552
34553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34554 fi
34555 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
34556 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
34557 if test $ac_cv_header_GL_glu_h = yes; then
34558
34559                 found_gl=0
34560
34561                 { echo "$as_me:$LINENO: checking for -lGL" >&5
34562 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
34563
34564   ac_find_libraries=
34565   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
34566   do
34567     for ac_extension in a so sl dylib dll.a; do
34568       if test -f "$ac_dir/libGL.$ac_extension"; then
34569         ac_find_libraries=$ac_dir
34570         break 2
34571       fi
34572     done
34573   done
34574
34575                 if test "$ac_find_libraries" != "" ; then
34576                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34577 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34578
34579
34580     if test "$ac_find_libraries" = "default location"; then
34581     ac_path_to_link=""
34582   else
34583     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34584     result=$?
34585     if test $result = 0; then
34586       ac_path_to_link=""
34587     else
34588       ac_path_to_link=" -L$ac_find_libraries"
34589     fi
34590   fi
34591
34592                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
34593                         LDFLAGS_GL="$ac_path_to_link"
34594                     fi
34595
34596                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
34597 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
34598
34599   ac_find_libraries=
34600   for ac_dir in $SEARCH_LIB
34601   do
34602     for ac_extension in a so sl dylib dll.a; do
34603       if test -f "$ac_dir/libGLU.$ac_extension"; then
34604         ac_find_libraries=$ac_dir
34605         break 2
34606       fi
34607     done
34608   done
34609
34610                     if test "$ac_find_libraries" != "" ; then
34611
34612     if test "$ac_find_libraries" = "default location"; then
34613     ac_path_to_link=""
34614   else
34615     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34616     result=$?
34617     if test $result = 0; then
34618       ac_path_to_link=""
34619     else
34620       ac_path_to_link=" -L$ac_find_libraries"
34621     fi
34622   fi
34623
34624                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
34625                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
34626                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
34627                         fi
34628
34629                         found_gl=1
34630                         OPENGL_LIBS="-lGL -lGLU"
34631                         { echo "$as_me:$LINENO: result: yes" >&5
34632 echo "${ECHO_T}yes" >&6; }
34633                     else
34634                         { echo "$as_me:$LINENO: result: no" >&5
34635 echo "${ECHO_T}no" >&6; }
34636                     fi
34637                 else
34638                     { echo "$as_me:$LINENO: result: no" >&5
34639 echo "${ECHO_T}no" >&6; }
34640                 fi
34641
34642                 if test "$found_gl" != 1; then
34643                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
34644 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
34645
34646   ac_find_libraries=
34647   for ac_dir in $SEARCH_LIB
34648   do
34649     for ac_extension in a so sl dylib dll.a; do
34650       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
34651         ac_find_libraries=$ac_dir
34652         break 2
34653       fi
34654     done
34655   done
34656
34657                     if test "$ac_find_libraries" != "" ; then
34658
34659     if test "$ac_find_libraries" = "default location"; then
34660     ac_path_to_link=""
34661   else
34662     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34663     result=$?
34664     if test $result = 0; then
34665       ac_path_to_link=""
34666     else
34667       ac_path_to_link=" -L$ac_find_libraries"
34668     fi
34669   fi
34670
34671                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
34672                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
34673                         { echo "$as_me:$LINENO: result: yes" >&5
34674 echo "${ECHO_T}yes" >&6; }
34675                     else
34676                         { echo "$as_me:$LINENO: result: no" >&5
34677 echo "${ECHO_T}no" >&6; }
34678                     fi
34679                 fi
34680
34681 fi
34682
34683
34684
34685 fi
34686
34687
34688
34689         if test "x$OPENGL_LIBS" = "x"; then
34690             if test "$wxUSE_OPENGL" = "yes"; then
34691                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
34692 echo "$as_me: error: OpenGL libraries not available" >&2;}
34693    { (exit 1); exit 1; }; }
34694             else
34695                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
34696 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
34697                 wxUSE_OPENGL=no
34698                 USE_OPENGL=0
34699             fi
34700         fi
34701     else
34702         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34703 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
34704         wxUSE_OPENGL="no"
34705     fi
34706
34707     if test "$wxUSE_OPENGL" = "auto"; then
34708                                 wxUSE_OPENGL=yes
34709     fi
34710
34711     if test "$wxUSE_OPENGL" = "yes"; then
34712         USE_OPENGL=1
34713         cat >>confdefs.h <<\_ACEOF
34714 #define wxUSE_OPENGL 1
34715 _ACEOF
34716
34717         cat >>confdefs.h <<\_ACEOF
34718 #define wxUSE_GLCANVAS 1
34719 _ACEOF
34720
34721         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34722     fi
34723 fi
34724
34725
34726 if test -n "$TOOLKIT" ; then
34727     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
34728 fi
34729
34730
34731
34732 if test "$wxUSE_SHARED" = "yes"; then
34733     case "${host}" in
34734       *-pc-msdosdjgpp )
34735                 wxUSE_SHARED=no
34736         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34737 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
34738       ;;
34739     esac
34740 fi
34741
34742 if test "$wxUSE_SHARED" = "yes"; then
34743
34744
34745     case "${host}" in
34746         *-*-cygwin* | *-*-mingw* )
34747                                                                                                 wx_cv_version_script=no
34748             ;;
34749
34750         *)
34751             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34752 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
34753 if test "${wx_cv_version_script+set}" = set; then
34754   echo $ECHO_N "(cached) $ECHO_C" >&6
34755 else
34756
34757                 echo "VER_1 { *; };" >conftest.sym
34758                 echo "int main() { return 0; }" >conftest.cpp
34759
34760                 if { ac_try='
34761                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34762                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
34763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34764   (eval $ac_try) 2>&5
34765   ac_status=$?
34766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767   (exit $ac_status); }; } ; then
34768                   if test -s conftest.stderr ; then
34769                       wx_cv_version_script=no
34770                   else
34771                       wx_cv_version_script=yes
34772                   fi
34773                 else
34774                   wx_cv_version_script=no
34775                 fi
34776
34777                                                                                                                                                                                                 if test $wx_cv_version_script = yes
34778                 then
34779                   echo "struct B { virtual ~B() { } }; \
34780                         struct D : public B { }; \
34781                         void F() { D d; }" > conftest.cpp
34782
34783                   if { ac_try='
34784                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34785                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
34786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34787   (eval $ac_try) 2>&5
34788   ac_status=$?
34789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790   (exit $ac_status); }; } &&
34791                      { ac_try='
34792                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34793                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
34794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34795   (eval $ac_try) 2>&5
34796   ac_status=$?
34797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798   (exit $ac_status); }; }
34799                   then
34800                     if { ac_try='
34801                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34802                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
34803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34804   (eval $ac_try) 2>&5
34805   ac_status=$?
34806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807   (exit $ac_status); }; }
34808                     then
34809                       wx_cv_version_script=yes
34810                     else
34811                       wx_cv_version_script=no
34812                     fi
34813                   fi
34814                 fi
34815
34816                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
34817                 rm -f conftest1.output conftest2.output conftest3.output
34818
34819 fi
34820 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
34821 echo "${ECHO_T}$wx_cv_version_script" >&6; }
34822
34823             if test $wx_cv_version_script = yes ; then
34824                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
34825             fi
34826             ;;
34827     esac
34828
34829
34830             if test "$wxUSE_VISIBILITY" != "no"; then
34831
34832
34833   if test -n "$GCC"; then
34834     CFLAGS_VISIBILITY="-fvisibility=hidden"
34835     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
34836     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
34837 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
34838     if test "${wx_cv_cc_visibility+set}" = set; then
34839   echo $ECHO_N "(cached) $ECHO_C" >&6
34840 else
34841
34842       wx_save_CXXFLAGS="$CXXFLAGS"
34843       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34844       ac_ext=cpp
34845 ac_cpp='$CXXCPP $CPPFLAGS'
34846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34849
34850       cat >conftest.$ac_ext <<_ACEOF
34851 /* confdefs.h.  */
34852 _ACEOF
34853 cat confdefs.h >>conftest.$ac_ext
34854 cat >>conftest.$ac_ext <<_ACEOF
34855 /* end confdefs.h.  */
34856
34857          /* we need gcc >= 4.0, older versions with visibility support
34858             didn't have class visibility: */
34859          #if defined(__GNUC__) && __GNUC__ < 4
34860          error this gcc is too old;
34861          #endif
34862
34863          /* visibility only makes sense for ELF shared libs: */
34864          #if !defined(__ELF__) && !defined(__APPLE__)
34865          error this platform has no visibility;
34866          #endif
34867
34868          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
34869          extern __attribute__((__visibility__("default"))) int exportedvar;
34870          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
34871          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
34872          class __attribute__((__visibility__("default"))) Foo {
34873            Foo() {}
34874          };
34875
34876 int
34877 main ()
34878 {
34879
34880   ;
34881   return 0;
34882 }
34883 _ACEOF
34884 rm -f conftest.$ac_objext
34885 if { (ac_try="$ac_compile"
34886 case "(($ac_try" in
34887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888   *) ac_try_echo=$ac_try;;
34889 esac
34890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891   (eval "$ac_compile") 2>conftest.er1
34892   ac_status=$?
34893   grep -v '^ *+' conftest.er1 >conftest.err
34894   rm -f conftest.er1
34895   cat conftest.err >&5
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); } && {
34898          test -z "$ac_cxx_werror_flag" ||
34899          test ! -s conftest.err
34900        } && test -s conftest.$ac_objext; then
34901   wx_cv_cc_visibility=yes
34902 else
34903   echo "$as_me: failed program was:" >&5
34904 sed 's/^/| /' conftest.$ac_ext >&5
34905
34906         wx_cv_cc_visibility=no
34907 fi
34908
34909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34910       ac_ext=c
34911 ac_cpp='$CPP $CPPFLAGS'
34912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34915
34916       CXXFLAGS="$wx_save_CXXFLAGS"
34917 fi
34918
34919     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
34920 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
34921     if test $wx_cv_cc_visibility = yes; then
34922                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
34923 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
34924       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
34925   echo $ECHO_N "(cached) $ECHO_C" >&6
34926 else
34927
34928         wx_save_CXXFLAGS="$CXXFLAGS"
34929         wx_save_LDFLAGS="$LDFLAGS"
34930         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34931         LDFLAGS="$LDFLAGS -shared -fPIC"
34932         ac_ext=cpp
34933 ac_cpp='$CXXCPP $CPPFLAGS'
34934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34937
34938         cat >conftest.$ac_ext <<_ACEOF
34939 /* confdefs.h.  */
34940 _ACEOF
34941 cat confdefs.h >>conftest.$ac_ext
34942 cat >>conftest.$ac_ext <<_ACEOF
34943 /* end confdefs.h.  */
34944
34945             #include <string>
34946
34947 int
34948 main ()
34949 {
34950
34951             std::string s("hello");
34952             return s.length();
34953
34954   ;
34955   return 0;
34956 }
34957 _ACEOF
34958 rm -f conftest.$ac_objext conftest$ac_exeext
34959 if { (ac_try="$ac_link"
34960 case "(($ac_try" in
34961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962   *) ac_try_echo=$ac_try;;
34963 esac
34964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965   (eval "$ac_link") 2>conftest.er1
34966   ac_status=$?
34967   grep -v '^ *+' conftest.er1 >conftest.err
34968   rm -f conftest.er1
34969   cat conftest.err >&5
34970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971   (exit $ac_status); } && {
34972          test -z "$ac_cxx_werror_flag" ||
34973          test ! -s conftest.err
34974        } && test -s conftest$ac_exeext &&
34975        $as_test_x conftest$ac_exeext; then
34976   wx_cv_cc_broken_libstdcxx_visibility=no
34977 else
34978   echo "$as_me: failed program was:" >&5
34979 sed 's/^/| /' conftest.$ac_ext >&5
34980
34981         wx_cv_cc_broken_libstdcxx_visibility=yes
34982 fi
34983
34984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34985       conftest$ac_exeext conftest.$ac_ext
34986         ac_ext=c
34987 ac_cpp='$CPP $CPPFLAGS'
34988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34991
34992         CXXFLAGS="$wx_save_CXXFLAGS"
34993         LDFLAGS="$wx_save_LDFLAGS"
34994 fi
34995
34996       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
34997 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
34998
34999       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35000         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35001 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35002         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35003   echo $ECHO_N "(cached) $ECHO_C" >&6
35004 else
35005
35006           ac_ext=cpp
35007 ac_cpp='$CXXCPP $CPPFLAGS'
35008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35011
35012           cat >conftest.$ac_ext <<_ACEOF
35013 /* confdefs.h.  */
35014 _ACEOF
35015 cat confdefs.h >>conftest.$ac_ext
35016 cat >>conftest.$ac_ext <<_ACEOF
35017 /* end confdefs.h.  */
35018
35019               #pragma GCC visibility push(default)
35020               #include <string>
35021               #pragma GCC visibility pop
35022
35023 int
35024 main ()
35025 {
35026
35027               std::string s("hello");
35028               return s.length();
35029
35030   ;
35031   return 0;
35032 }
35033 _ACEOF
35034 rm -f conftest.$ac_objext conftest$ac_exeext
35035 if { (ac_try="$ac_link"
35036 case "(($ac_try" in
35037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35038   *) ac_try_echo=$ac_try;;
35039 esac
35040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35041   (eval "$ac_link") 2>conftest.er1
35042   ac_status=$?
35043   grep -v '^ *+' conftest.er1 >conftest.err
35044   rm -f conftest.er1
35045   cat conftest.err >&5
35046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047   (exit $ac_status); } && {
35048          test -z "$ac_cxx_werror_flag" ||
35049          test ! -s conftest.err
35050        } && test -s conftest$ac_exeext &&
35051        $as_test_x conftest$ac_exeext; then
35052   wx_cv_cc_visibility_workaround=no
35053 else
35054   echo "$as_me: failed program was:" >&5
35055 sed 's/^/| /' conftest.$ac_ext >&5
35056
35057         wx_cv_cc_visibility_workaround=yes
35058 fi
35059
35060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35061       conftest$ac_exeext conftest.$ac_ext
35062           ac_ext=c
35063 ac_cpp='$CPP $CPPFLAGS'
35064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35067
35068
35069 fi
35070
35071         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35072 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35073
35074         if test $wx_cv_cc_visibility_workaround = no; then
35075                     wx_cv_cc_visibility=no
35076         fi
35077       fi
35078     fi
35079
35080     if test $wx_cv_cc_visibility = yes; then
35081       cat >>confdefs.h <<\_ACEOF
35082 #define HAVE_VISIBILITY 1
35083 _ACEOF
35084
35085       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35086         cat >>confdefs.h <<\_ACEOF
35087 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35088 _ACEOF
35089
35090       fi
35091     else
35092       CFLAGS_VISIBILITY=""
35093       CXXFLAGS_VISIBILITY=""
35094     fi
35095
35096
35097   fi
35098
35099     fi
35100
35101         if test "x$SUNCXX" = xyes; then
35102         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35103         WXCONFIG_RPATH="-R\$libdir"
35104     else
35105     case "${host}" in
35106       *-*-linux* | *-*-gnu* )
35107         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35108         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35109         ;;
35110
35111       *-*-solaris2* )
35112
35113                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35114
35115                         saveLdflags="$LDFLAGS"
35116         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35117         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35118 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35119         cat >conftest.$ac_ext <<_ACEOF
35120 /* confdefs.h.  */
35121 _ACEOF
35122 cat confdefs.h >>conftest.$ac_ext
35123 cat >>conftest.$ac_ext <<_ACEOF
35124 /* end confdefs.h.  */
35125
35126 int
35127 main ()
35128 {
35129
35130   ;
35131   return 0;
35132 }
35133 _ACEOF
35134 rm -f conftest.$ac_objext conftest$ac_exeext
35135 if { (ac_try="$ac_link"
35136 case "(($ac_try" in
35137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35138   *) ac_try_echo=$ac_try;;
35139 esac
35140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35141   (eval "$ac_link") 2>conftest.er1
35142   ac_status=$?
35143   grep -v '^ *+' conftest.er1 >conftest.err
35144   rm -f conftest.er1
35145   cat conftest.err >&5
35146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147   (exit $ac_status); } && {
35148          test -z "$ac_c_werror_flag" ||
35149          test ! -s conftest.err
35150        } && test -s conftest$ac_exeext &&
35151        $as_test_x conftest$ac_exeext; then
35152
35153                 { echo "$as_me:$LINENO: result: yes" >&5
35154 echo "${ECHO_T}yes" >&6; }
35155                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35156                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35157
35158 else
35159   echo "$as_me: failed program was:" >&5
35160 sed 's/^/| /' conftest.$ac_ext >&5
35161
35162
35163                 { echo "$as_me:$LINENO: result: no" >&5
35164 echo "${ECHO_T}no" >&6; }
35165                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35166 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35167                 LDFLAGS="$saveLdflags -Wl,-R,/"
35168                 cat >conftest.$ac_ext <<_ACEOF
35169 /* confdefs.h.  */
35170 _ACEOF
35171 cat confdefs.h >>conftest.$ac_ext
35172 cat >>conftest.$ac_ext <<_ACEOF
35173 /* end confdefs.h.  */
35174
35175 int
35176 main ()
35177 {
35178
35179   ;
35180   return 0;
35181 }
35182 _ACEOF
35183 rm -f conftest.$ac_objext conftest$ac_exeext
35184 if { (ac_try="$ac_link"
35185 case "(($ac_try" in
35186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35187   *) ac_try_echo=$ac_try;;
35188 esac
35189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35190   (eval "$ac_link") 2>conftest.er1
35191   ac_status=$?
35192   grep -v '^ *+' conftest.er1 >conftest.err
35193   rm -f conftest.er1
35194   cat conftest.err >&5
35195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196   (exit $ac_status); } && {
35197          test -z "$ac_c_werror_flag" ||
35198          test ! -s conftest.err
35199        } && test -s conftest$ac_exeext &&
35200        $as_test_x conftest$ac_exeext; then
35201
35202                         { echo "$as_me:$LINENO: result: yes" >&5
35203 echo "${ECHO_T}yes" >&6; }
35204                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35205                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35206
35207 else
35208   echo "$as_me: failed program was:" >&5
35209 sed 's/^/| /' conftest.$ac_ext >&5
35210
35211
35212                         { echo "$as_me:$LINENO: result: no" >&5
35213 echo "${ECHO_T}no" >&6; }
35214
35215 fi
35216
35217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35218       conftest$ac_exeext conftest.$ac_ext
35219
35220 fi
35221
35222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35223       conftest$ac_exeext conftest.$ac_ext
35224         LDFLAGS="$saveLdflags"
35225       ;;
35226
35227       *-*-darwin* )
35228         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35229         if test "$install_name_tool" -a -x "$install_name_tool"; then
35230             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35231             cat <<EOF >change-install-names
35232 #!/bin/sh
35233 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35234 for i in \${libnames} ; do
35235     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
35236     for dep in \${libnames} ; do
35237         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
35238     done
35239 done
35240 EOF
35241             chmod +x change-install-names
35242             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
35243         fi
35244
35245                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35246       ;;
35247
35248       *-*-cygwin* | *-*-mingw32* )
35249         ;;
35250
35251       *-*-hpux* )
35252         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35253         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35254         ;;
35255
35256     esac
35257     fi
35258
35259             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35260
35261     if test $wxUSE_RPATH = "no"; then
35262         SAMPLES_RPATH_FLAG=''
35263         DYLIB_PATH_POSTLINK=''
35264         WXCONFIG_RPATH=''
35265     fi
35266
35267     SHARED=1
35268
35269 else
35270
35271     config_linkage_component="-static"
35272     SHARED=0
35273
35274 fi
35275
35276
35277 UNICODE=0
35278 lib_unicode_suffix=
35279 WX_CHARTYPE="ansi"
35280 if test "$wxUSE_UNICODE" = "yes"; then
35281     lib_unicode_suffix=u
35282     WX_CHARTYPE="unicode"
35283     UNICODE=1
35284 fi
35285
35286 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35287 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35288
35289 DEBUG_INFO=0
35290 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35291     DEBUG_INFO=1
35292 fi
35293
35294 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35295
35296 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35297
35298 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35299
35300
35301 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35302     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35303 else
35304     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35305 fi
35306 if test "${TOOLKIT_DIR}" = "os2"; then
35307     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35308 else
35309     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35310 fi
35311
35312
35313
35314 if test "$wxUSE_OLD_COCOA" = 1; then
35315
35316     ac_ext=c
35317 ac_cpp='$CPP $CPPFLAGS'
35318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35321
35322 ac_ext=m
35323
35324     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35325 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35326     cat >conftest.$ac_ext <<_ACEOF
35327 /* confdefs.h.  */
35328 _ACEOF
35329 cat confdefs.h >>conftest.$ac_ext
35330 cat >>conftest.$ac_ext <<_ACEOF
35331 /* end confdefs.h.  */
35332 #include <AppKit/NSEvent.h>
35333 #include <CoreFoundation/CoreFoundation.h>
35334
35335 int
35336 main ()
35337 {
35338
35339   ;
35340   return 0;
35341 }
35342 _ACEOF
35343 rm -f conftest.$ac_objext
35344 if { (ac_try="$ac_compile"
35345 case "(($ac_try" in
35346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35347   *) ac_try_echo=$ac_try;;
35348 esac
35349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35350   (eval "$ac_compile") 2>conftest.er1
35351   ac_status=$?
35352   grep -v '^ *+' conftest.er1 >conftest.err
35353   rm -f conftest.er1
35354   cat conftest.err >&5
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); } && {
35357          test -z "$ac_c_werror_flag" ||
35358          test ! -s conftest.err
35359        } && test -s conftest.$ac_objext; then
35360   { echo "$as_me:$LINENO: result: no" >&5
35361 echo "${ECHO_T}no" >&6; }
35362 else
35363   echo "$as_me: failed program was:" >&5
35364 sed 's/^/| /' conftest.$ac_ext >&5
35365
35366         { echo "$as_me:$LINENO: result: yes" >&5
35367 echo "${ECHO_T}yes" >&6; }
35368         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35369 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35370         cat >conftest.$ac_ext <<_ACEOF
35371 /* confdefs.h.  */
35372 _ACEOF
35373 cat confdefs.h >>conftest.$ac_ext
35374 cat >>conftest.$ac_ext <<_ACEOF
35375 /* end confdefs.h.  */
35376 #define __Point__ 1
35377 #include <AppKit/NSEvent.h>
35378 #include <CoreFoundation/CoreFoundation.h>
35379
35380 int
35381 main ()
35382 {
35383
35384   ;
35385   return 0;
35386 }
35387 _ACEOF
35388 rm -f conftest.$ac_objext
35389 if { (ac_try="$ac_compile"
35390 case "(($ac_try" in
35391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35392   *) ac_try_echo=$ac_try;;
35393 esac
35394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35395   (eval "$ac_compile") 2>conftest.er1
35396   ac_status=$?
35397   grep -v '^ *+' conftest.er1 >conftest.err
35398   rm -f conftest.er1
35399   cat conftest.err >&5
35400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401   (exit $ac_status); } && {
35402          test -z "$ac_c_werror_flag" ||
35403          test ! -s conftest.err
35404        } && test -s conftest.$ac_objext; then
35405   { echo "$as_me:$LINENO: result: yes" >&5
35406 echo "${ECHO_T}yes" >&6; }
35407             cat >>confdefs.h <<\_ACEOF
35408 #define __Point__ 1
35409 _ACEOF
35410
35411
35412 else
35413   echo "$as_me: failed program was:" >&5
35414 sed 's/^/| /' conftest.$ac_ext >&5
35415
35416         { { echo "$as_me:$LINENO: error: no
35417 See \`config.log' for more details." >&5
35418 echo "$as_me: error: no
35419 See \`config.log' for more details." >&2;}
35420    { (exit 1); exit 1; }; }
35421
35422 fi
35423
35424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35425
35426 fi
35427
35428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35429     ac_ext=c
35430 ac_cpp='$CPP $CPPFLAGS'
35431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35434
35435 fi
35436
35437
35438 { echo "$as_me:$LINENO: checking for mode_t" >&5
35439 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35440 if test "${ac_cv_type_mode_t+set}" = set; then
35441   echo $ECHO_N "(cached) $ECHO_C" >&6
35442 else
35443   cat >conftest.$ac_ext <<_ACEOF
35444 /* confdefs.h.  */
35445 _ACEOF
35446 cat confdefs.h >>conftest.$ac_ext
35447 cat >>conftest.$ac_ext <<_ACEOF
35448 /* end confdefs.h.  */
35449 $ac_includes_default
35450 typedef mode_t ac__type_new_;
35451 int
35452 main ()
35453 {
35454 if ((ac__type_new_ *) 0)
35455   return 0;
35456 if (sizeof (ac__type_new_))
35457   return 0;
35458   ;
35459   return 0;
35460 }
35461 _ACEOF
35462 rm -f conftest.$ac_objext
35463 if { (ac_try="$ac_compile"
35464 case "(($ac_try" in
35465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35466   *) ac_try_echo=$ac_try;;
35467 esac
35468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35469   (eval "$ac_compile") 2>conftest.er1
35470   ac_status=$?
35471   grep -v '^ *+' conftest.er1 >conftest.err
35472   rm -f conftest.er1
35473   cat conftest.err >&5
35474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475   (exit $ac_status); } && {
35476          test -z "$ac_c_werror_flag" ||
35477          test ! -s conftest.err
35478        } && test -s conftest.$ac_objext; then
35479   ac_cv_type_mode_t=yes
35480 else
35481   echo "$as_me: failed program was:" >&5
35482 sed 's/^/| /' conftest.$ac_ext >&5
35483
35484         ac_cv_type_mode_t=no
35485 fi
35486
35487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35488 fi
35489 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35490 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35491 if test $ac_cv_type_mode_t = yes; then
35492   :
35493 else
35494
35495 cat >>confdefs.h <<_ACEOF
35496 #define mode_t int
35497 _ACEOF
35498
35499 fi
35500
35501 { echo "$as_me:$LINENO: checking for off_t" >&5
35502 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35503 if test "${ac_cv_type_off_t+set}" = set; then
35504   echo $ECHO_N "(cached) $ECHO_C" >&6
35505 else
35506   cat >conftest.$ac_ext <<_ACEOF
35507 /* confdefs.h.  */
35508 _ACEOF
35509 cat confdefs.h >>conftest.$ac_ext
35510 cat >>conftest.$ac_ext <<_ACEOF
35511 /* end confdefs.h.  */
35512 $ac_includes_default
35513 typedef off_t ac__type_new_;
35514 int
35515 main ()
35516 {
35517 if ((ac__type_new_ *) 0)
35518   return 0;
35519 if (sizeof (ac__type_new_))
35520   return 0;
35521   ;
35522   return 0;
35523 }
35524 _ACEOF
35525 rm -f conftest.$ac_objext
35526 if { (ac_try="$ac_compile"
35527 case "(($ac_try" in
35528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35529   *) ac_try_echo=$ac_try;;
35530 esac
35531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35532   (eval "$ac_compile") 2>conftest.er1
35533   ac_status=$?
35534   grep -v '^ *+' conftest.er1 >conftest.err
35535   rm -f conftest.er1
35536   cat conftest.err >&5
35537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538   (exit $ac_status); } && {
35539          test -z "$ac_c_werror_flag" ||
35540          test ! -s conftest.err
35541        } && test -s conftest.$ac_objext; then
35542   ac_cv_type_off_t=yes
35543 else
35544   echo "$as_me: failed program was:" >&5
35545 sed 's/^/| /' conftest.$ac_ext >&5
35546
35547         ac_cv_type_off_t=no
35548 fi
35549
35550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35551 fi
35552 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35553 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
35554 if test $ac_cv_type_off_t = yes; then
35555   :
35556 else
35557
35558 cat >>confdefs.h <<_ACEOF
35559 #define off_t long int
35560 _ACEOF
35561
35562 fi
35563
35564 { echo "$as_me:$LINENO: checking for pid_t" >&5
35565 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
35566 if test "${ac_cv_type_pid_t+set}" = set; then
35567   echo $ECHO_N "(cached) $ECHO_C" >&6
35568 else
35569   cat >conftest.$ac_ext <<_ACEOF
35570 /* confdefs.h.  */
35571 _ACEOF
35572 cat confdefs.h >>conftest.$ac_ext
35573 cat >>conftest.$ac_ext <<_ACEOF
35574 /* end confdefs.h.  */
35575 $ac_includes_default
35576 typedef pid_t ac__type_new_;
35577 int
35578 main ()
35579 {
35580 if ((ac__type_new_ *) 0)
35581   return 0;
35582 if (sizeof (ac__type_new_))
35583   return 0;
35584   ;
35585   return 0;
35586 }
35587 _ACEOF
35588 rm -f conftest.$ac_objext
35589 if { (ac_try="$ac_compile"
35590 case "(($ac_try" in
35591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35592   *) ac_try_echo=$ac_try;;
35593 esac
35594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35595   (eval "$ac_compile") 2>conftest.er1
35596   ac_status=$?
35597   grep -v '^ *+' conftest.er1 >conftest.err
35598   rm -f conftest.er1
35599   cat conftest.err >&5
35600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601   (exit $ac_status); } && {
35602          test -z "$ac_c_werror_flag" ||
35603          test ! -s conftest.err
35604        } && test -s conftest.$ac_objext; then
35605   ac_cv_type_pid_t=yes
35606 else
35607   echo "$as_me: failed program was:" >&5
35608 sed 's/^/| /' conftest.$ac_ext >&5
35609
35610         ac_cv_type_pid_t=no
35611 fi
35612
35613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35614 fi
35615 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35616 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
35617 if test $ac_cv_type_pid_t = yes; then
35618   :
35619 else
35620
35621 cat >>confdefs.h <<_ACEOF
35622 #define pid_t int
35623 _ACEOF
35624
35625 fi
35626
35627 { echo "$as_me:$LINENO: checking for size_t" >&5
35628 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35629 if test "${ac_cv_type_size_t+set}" = set; then
35630   echo $ECHO_N "(cached) $ECHO_C" >&6
35631 else
35632   cat >conftest.$ac_ext <<_ACEOF
35633 /* confdefs.h.  */
35634 _ACEOF
35635 cat confdefs.h >>conftest.$ac_ext
35636 cat >>conftest.$ac_ext <<_ACEOF
35637 /* end confdefs.h.  */
35638 $ac_includes_default
35639 typedef size_t ac__type_new_;
35640 int
35641 main ()
35642 {
35643 if ((ac__type_new_ *) 0)
35644   return 0;
35645 if (sizeof (ac__type_new_))
35646   return 0;
35647   ;
35648   return 0;
35649 }
35650 _ACEOF
35651 rm -f conftest.$ac_objext
35652 if { (ac_try="$ac_compile"
35653 case "(($ac_try" in
35654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35655   *) ac_try_echo=$ac_try;;
35656 esac
35657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35658   (eval "$ac_compile") 2>conftest.er1
35659   ac_status=$?
35660   grep -v '^ *+' conftest.er1 >conftest.err
35661   rm -f conftest.er1
35662   cat conftest.err >&5
35663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664   (exit $ac_status); } && {
35665          test -z "$ac_c_werror_flag" ||
35666          test ! -s conftest.err
35667        } && test -s conftest.$ac_objext; then
35668   ac_cv_type_size_t=yes
35669 else
35670   echo "$as_me: failed program was:" >&5
35671 sed 's/^/| /' conftest.$ac_ext >&5
35672
35673         ac_cv_type_size_t=no
35674 fi
35675
35676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35677 fi
35678 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35679 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35680 if test $ac_cv_type_size_t = yes; then
35681   :
35682 else
35683
35684 cat >>confdefs.h <<_ACEOF
35685 #define size_t unsigned int
35686 _ACEOF
35687
35688 fi
35689
35690
35691 { echo "$as_me:$LINENO: checking for ssize_t" >&5
35692 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
35693 if test "${ac_cv_type_ssize_t+set}" = set; then
35694   echo $ECHO_N "(cached) $ECHO_C" >&6
35695 else
35696   cat >conftest.$ac_ext <<_ACEOF
35697 /* confdefs.h.  */
35698 _ACEOF
35699 cat confdefs.h >>conftest.$ac_ext
35700 cat >>conftest.$ac_ext <<_ACEOF
35701 /* end confdefs.h.  */
35702 $ac_includes_default
35703 typedef ssize_t ac__type_new_;
35704 int
35705 main ()
35706 {
35707 if ((ac__type_new_ *) 0)
35708   return 0;
35709 if (sizeof (ac__type_new_))
35710   return 0;
35711   ;
35712   return 0;
35713 }
35714 _ACEOF
35715 rm -f conftest.$ac_objext
35716 if { (ac_try="$ac_compile"
35717 case "(($ac_try" in
35718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35719   *) ac_try_echo=$ac_try;;
35720 esac
35721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35722   (eval "$ac_compile") 2>conftest.er1
35723   ac_status=$?
35724   grep -v '^ *+' conftest.er1 >conftest.err
35725   rm -f conftest.er1
35726   cat conftest.err >&5
35727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728   (exit $ac_status); } && {
35729          test -z "$ac_c_werror_flag" ||
35730          test ! -s conftest.err
35731        } && test -s conftest.$ac_objext; then
35732   ac_cv_type_ssize_t=yes
35733 else
35734   echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35736
35737         ac_cv_type_ssize_t=no
35738 fi
35739
35740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35741 fi
35742 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35743 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
35744 if test $ac_cv_type_ssize_t = yes; then
35745
35746 cat >>confdefs.h <<_ACEOF
35747 #define HAVE_SSIZE_T 1
35748 _ACEOF
35749
35750
35751 fi
35752
35753
35754 ac_ext=cpp
35755 ac_cpp='$CXXCPP $CPPFLAGS'
35756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35759  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35760 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
35761 if test "${wx_cv_size_t_is_uint+set}" = set; then
35762   echo $ECHO_N "(cached) $ECHO_C" >&6
35763 else
35764
35765                             cat >conftest.$ac_ext <<_ACEOF
35766 /* confdefs.h.  */
35767 _ACEOF
35768 cat confdefs.h >>conftest.$ac_ext
35769 cat >>conftest.$ac_ext <<_ACEOF
35770 /* end confdefs.h.  */
35771 #include <stddef.h>
35772 int
35773 main ()
35774 {
35775
35776             return 0; }
35777
35778             struct Foo { void foo(size_t); void foo(unsigned int); };
35779
35780             int bar() {
35781
35782   ;
35783   return 0;
35784 }
35785 _ACEOF
35786 rm -f conftest.$ac_objext
35787 if { (ac_try="$ac_compile"
35788 case "(($ac_try" in
35789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35790   *) ac_try_echo=$ac_try;;
35791 esac
35792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35793   (eval "$ac_compile") 2>conftest.er1
35794   ac_status=$?
35795   grep -v '^ *+' conftest.er1 >conftest.err
35796   rm -f conftest.er1
35797   cat conftest.err >&5
35798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799   (exit $ac_status); } && {
35800          test -z "$ac_cxx_werror_flag" ||
35801          test ! -s conftest.err
35802        } && test -s conftest.$ac_objext; then
35803   wx_cv_size_t_is_uint=no
35804 else
35805   echo "$as_me: failed program was:" >&5
35806 sed 's/^/| /' conftest.$ac_ext >&5
35807
35808         wx_cv_size_t_is_uint=yes
35809
35810 fi
35811
35812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35813
35814
35815 fi
35816 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35817 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
35818
35819 if test "$wx_cv_size_t_is_uint" = "yes"; then
35820     cat >>confdefs.h <<\_ACEOF
35821 #define wxSIZE_T_IS_UINT 1
35822 _ACEOF
35823
35824 else
35825     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35826 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
35827 if test "${wx_cv_size_t_is_ulong+set}" = set; then
35828   echo $ECHO_N "(cached) $ECHO_C" >&6
35829 else
35830   cat >conftest.$ac_ext <<_ACEOF
35831 /* confdefs.h.  */
35832 _ACEOF
35833 cat confdefs.h >>conftest.$ac_ext
35834 cat >>conftest.$ac_ext <<_ACEOF
35835 /* end confdefs.h.  */
35836 #include <stddef.h>
35837 int
35838 main ()
35839 {
35840
35841                 return 0; }
35842
35843                 struct Foo { void foo(size_t); void foo(unsigned long); };
35844
35845                 int bar() {
35846
35847   ;
35848   return 0;
35849 }
35850 _ACEOF
35851 rm -f conftest.$ac_objext
35852 if { (ac_try="$ac_compile"
35853 case "(($ac_try" in
35854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35855   *) ac_try_echo=$ac_try;;
35856 esac
35857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35858   (eval "$ac_compile") 2>conftest.er1
35859   ac_status=$?
35860   grep -v '^ *+' conftest.er1 >conftest.err
35861   rm -f conftest.er1
35862   cat conftest.err >&5
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); } && {
35865          test -z "$ac_cxx_werror_flag" ||
35866          test ! -s conftest.err
35867        } && test -s conftest.$ac_objext; then
35868   wx_cv_size_t_is_ulong=no
35869 else
35870   echo "$as_me: failed program was:" >&5
35871 sed 's/^/| /' conftest.$ac_ext >&5
35872
35873         wx_cv_size_t_is_ulong=yes
35874
35875 fi
35876
35877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35878
35879 fi
35880 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
35881 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
35882
35883     if test "$wx_cv_size_t_is_ulong" = "yes"; then
35884         cat >>confdefs.h <<\_ACEOF
35885 #define wxSIZE_T_IS_ULONG 1
35886 _ACEOF
35887
35888     fi
35889 fi
35890
35891 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
35892 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
35893 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
35894   echo $ECHO_N "(cached) $ECHO_C" >&6
35895 else
35896   cat >conftest.$ac_ext <<_ACEOF
35897 /* confdefs.h.  */
35898 _ACEOF
35899 cat confdefs.h >>conftest.$ac_ext
35900 cat >>conftest.$ac_ext <<_ACEOF
35901 /* end confdefs.h.  */
35902 #include <wchar.h>
35903 int
35904 main ()
35905 {
35906
35907             return 0; }
35908
35909             struct Foo { void foo(wchar_t);
35910                          void foo(unsigned short);
35911                          void foo(unsigned int);
35912                          void foo(unsigned long); };
35913
35914             int bar() {
35915
35916   ;
35917   return 0;
35918 }
35919 _ACEOF
35920 rm -f conftest.$ac_objext
35921 if { (ac_try="$ac_compile"
35922 case "(($ac_try" in
35923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35924   *) ac_try_echo=$ac_try;;
35925 esac
35926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35927   (eval "$ac_compile") 2>conftest.er1
35928   ac_status=$?
35929   grep -v '^ *+' conftest.er1 >conftest.err
35930   rm -f conftest.er1
35931   cat conftest.err >&5
35932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933   (exit $ac_status); } && {
35934          test -z "$ac_cxx_werror_flag" ||
35935          test ! -s conftest.err
35936        } && test -s conftest.$ac_objext; then
35937   wx_cv_wchar_t_is_separate_type=yes
35938 else
35939   echo "$as_me: failed program was:" >&5
35940 sed 's/^/| /' conftest.$ac_ext >&5
35941
35942         wx_cv_wchar_t_is_separate_type=no
35943
35944 fi
35945
35946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35947
35948 fi
35949 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
35950 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
35951
35952 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
35953     cat >>confdefs.h <<\_ACEOF
35954 #define wxWCHAR_T_IS_REAL_TYPE 1
35955 _ACEOF
35956
35957 else
35958     cat >>confdefs.h <<\_ACEOF
35959 #define wxWCHAR_T_IS_REAL_TYPE 0
35960 _ACEOF
35961
35962 fi
35963
35964 ac_ext=c
35965 ac_cpp='$CPP $CPPFLAGS'
35966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35969
35970
35971 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
35972 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
35973 if test "${wx_cv_struct_pw_gecos+set}" = set; then
35974   echo $ECHO_N "(cached) $ECHO_C" >&6
35975 else
35976
35977         cat >conftest.$ac_ext <<_ACEOF
35978 /* confdefs.h.  */
35979 _ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h.  */
35983 #include <pwd.h>
35984 int
35985 main ()
35986 {
35987
35988                 char *p;
35989                 struct passwd *pw;
35990                 p = pw->pw_gecos;
35991
35992   ;
35993   return 0;
35994 }
35995 _ACEOF
35996 rm -f conftest.$ac_objext
35997 if { (ac_try="$ac_compile"
35998 case "(($ac_try" in
35999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36000   *) ac_try_echo=$ac_try;;
36001 esac
36002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36003   (eval "$ac_compile") 2>conftest.er1
36004   ac_status=$?
36005   grep -v '^ *+' conftest.er1 >conftest.err
36006   rm -f conftest.er1
36007   cat conftest.err >&5
36008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009   (exit $ac_status); } && {
36010          test -z "$ac_c_werror_flag" ||
36011          test ! -s conftest.err
36012        } && test -s conftest.$ac_objext; then
36013
36014                 wx_cv_struct_pw_gecos=yes
36015
36016 else
36017   echo "$as_me: failed program was:" >&5
36018 sed 's/^/| /' conftest.$ac_ext >&5
36019
36020
36021                 wx_cv_struct_pw_gecos=no
36022
36023
36024 fi
36025
36026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36027
36028
36029 fi
36030 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36031 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36032
36033 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36034     cat >>confdefs.h <<\_ACEOF
36035 #define HAVE_PW_GECOS 1
36036 _ACEOF
36037
36038 fi
36039
36040
36041 WCSLEN_FOUND=0
36042 WCHAR_LINK=
36043
36044 for ac_func in wcslen
36045 do
36046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36050   echo $ECHO_N "(cached) $ECHO_C" >&6
36051 else
36052   cat >conftest.$ac_ext <<_ACEOF
36053 /* confdefs.h.  */
36054 _ACEOF
36055 cat confdefs.h >>conftest.$ac_ext
36056 cat >>conftest.$ac_ext <<_ACEOF
36057 /* end confdefs.h.  */
36058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36060 #define $ac_func innocuous_$ac_func
36061
36062 /* System header to define __stub macros and hopefully few prototypes,
36063     which can conflict with char $ac_func (); below.
36064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36065     <limits.h> exists even on freestanding compilers.  */
36066
36067 #ifdef __STDC__
36068 # include <limits.h>
36069 #else
36070 # include <assert.h>
36071 #endif
36072
36073 #undef $ac_func
36074
36075 /* Override any GCC internal prototype to avoid an error.
36076    Use char because int might match the return type of a GCC
36077    builtin and then its argument prototype would still apply.  */
36078 #ifdef __cplusplus
36079 extern "C"
36080 #endif
36081 char $ac_func ();
36082 /* The GNU C library defines this for functions which it implements
36083     to always fail with ENOSYS.  Some functions are actually named
36084     something starting with __ and the normal name is an alias.  */
36085 #if defined __stub_$ac_func || defined __stub___$ac_func
36086 choke me
36087 #endif
36088
36089 int
36090 main ()
36091 {
36092 return $ac_func ();
36093   ;
36094   return 0;
36095 }
36096 _ACEOF
36097 rm -f conftest.$ac_objext conftest$ac_exeext
36098 if { (ac_try="$ac_link"
36099 case "(($ac_try" in
36100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36101   *) ac_try_echo=$ac_try;;
36102 esac
36103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36104   (eval "$ac_link") 2>conftest.er1
36105   ac_status=$?
36106   grep -v '^ *+' conftest.er1 >conftest.err
36107   rm -f conftest.er1
36108   cat conftest.err >&5
36109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110   (exit $ac_status); } && {
36111          test -z "$ac_c_werror_flag" ||
36112          test ! -s conftest.err
36113        } && test -s conftest$ac_exeext &&
36114        $as_test_x conftest$ac_exeext; then
36115   eval "$as_ac_var=yes"
36116 else
36117   echo "$as_me: failed program was:" >&5
36118 sed 's/^/| /' conftest.$ac_ext >&5
36119
36120         eval "$as_ac_var=no"
36121 fi
36122
36123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36124       conftest$ac_exeext conftest.$ac_ext
36125 fi
36126 ac_res=`eval echo '${'$as_ac_var'}'`
36127                { echo "$as_me:$LINENO: result: $ac_res" >&5
36128 echo "${ECHO_T}$ac_res" >&6; }
36129 if test `eval echo '${'$as_ac_var'}'` = yes; then
36130   cat >>confdefs.h <<_ACEOF
36131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36132 _ACEOF
36133  WCSLEN_FOUND=1
36134 fi
36135 done
36136
36137
36138 if test "$WCSLEN_FOUND" = 0; then
36139     if test "$TOOLKIT" = "MSW"; then
36140         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36141 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36142 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36143   echo $ECHO_N "(cached) $ECHO_C" >&6
36144 else
36145   ac_check_lib_save_LIBS=$LIBS
36146 LIBS="-lmsvcrt  $LIBS"
36147 cat >conftest.$ac_ext <<_ACEOF
36148 /* confdefs.h.  */
36149 _ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h.  */
36153
36154 /* Override any GCC internal prototype to avoid an error.
36155    Use char because int might match the return type of a GCC
36156    builtin and then its argument prototype would still apply.  */
36157 #ifdef __cplusplus
36158 extern "C"
36159 #endif
36160 char wcslen ();
36161 int
36162 main ()
36163 {
36164 return wcslen ();
36165   ;
36166   return 0;
36167 }
36168 _ACEOF
36169 rm -f conftest.$ac_objext conftest$ac_exeext
36170 if { (ac_try="$ac_link"
36171 case "(($ac_try" in
36172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36173   *) ac_try_echo=$ac_try;;
36174 esac
36175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36176   (eval "$ac_link") 2>conftest.er1
36177   ac_status=$?
36178   grep -v '^ *+' conftest.er1 >conftest.err
36179   rm -f conftest.er1
36180   cat conftest.err >&5
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); } && {
36183          test -z "$ac_c_werror_flag" ||
36184          test ! -s conftest.err
36185        } && test -s conftest$ac_exeext &&
36186        $as_test_x conftest$ac_exeext; then
36187   ac_cv_lib_msvcrt_wcslen=yes
36188 else
36189   echo "$as_me: failed program was:" >&5
36190 sed 's/^/| /' conftest.$ac_ext >&5
36191
36192         ac_cv_lib_msvcrt_wcslen=no
36193 fi
36194
36195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36196       conftest$ac_exeext conftest.$ac_ext
36197 LIBS=$ac_check_lib_save_LIBS
36198 fi
36199 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36200 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36201 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36202   WCHAR_OK=1
36203 fi
36204
36205     else
36206         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36207 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36208 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36209   echo $ECHO_N "(cached) $ECHO_C" >&6
36210 else
36211   ac_check_lib_save_LIBS=$LIBS
36212 LIBS="-lw  $LIBS"
36213 cat >conftest.$ac_ext <<_ACEOF
36214 /* confdefs.h.  */
36215 _ACEOF
36216 cat confdefs.h >>conftest.$ac_ext
36217 cat >>conftest.$ac_ext <<_ACEOF
36218 /* end confdefs.h.  */
36219
36220 /* Override any GCC internal prototype to avoid an error.
36221    Use char because int might match the return type of a GCC
36222    builtin and then its argument prototype would still apply.  */
36223 #ifdef __cplusplus
36224 extern "C"
36225 #endif
36226 char wcslen ();
36227 int
36228 main ()
36229 {
36230 return wcslen ();
36231   ;
36232   return 0;
36233 }
36234 _ACEOF
36235 rm -f conftest.$ac_objext conftest$ac_exeext
36236 if { (ac_try="$ac_link"
36237 case "(($ac_try" in
36238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36239   *) ac_try_echo=$ac_try;;
36240 esac
36241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36242   (eval "$ac_link") 2>conftest.er1
36243   ac_status=$?
36244   grep -v '^ *+' conftest.er1 >conftest.err
36245   rm -f conftest.er1
36246   cat conftest.err >&5
36247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248   (exit $ac_status); } && {
36249          test -z "$ac_c_werror_flag" ||
36250          test ! -s conftest.err
36251        } && test -s conftest$ac_exeext &&
36252        $as_test_x conftest$ac_exeext; then
36253   ac_cv_lib_w_wcslen=yes
36254 else
36255   echo "$as_me: failed program was:" >&5
36256 sed 's/^/| /' conftest.$ac_ext >&5
36257
36258         ac_cv_lib_w_wcslen=no
36259 fi
36260
36261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36262       conftest$ac_exeext conftest.$ac_ext
36263 LIBS=$ac_check_lib_save_LIBS
36264 fi
36265 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36266 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36267 if test $ac_cv_lib_w_wcslen = yes; then
36268
36269                         WCHAR_LINK=" -lw"
36270                         WCSLEN_FOUND=1
36271
36272 fi
36273
36274     fi
36275 fi
36276
36277 if test "$WCSLEN_FOUND" = 1; then
36278     cat >>confdefs.h <<\_ACEOF
36279 #define HAVE_WCSLEN 1
36280 _ACEOF
36281
36282 fi
36283
36284
36285
36286
36287
36288
36289
36290 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36291 do
36292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36296   echo $ECHO_N "(cached) $ECHO_C" >&6
36297 else
36298   cat >conftest.$ac_ext <<_ACEOF
36299 /* confdefs.h.  */
36300 _ACEOF
36301 cat confdefs.h >>conftest.$ac_ext
36302 cat >>conftest.$ac_ext <<_ACEOF
36303 /* end confdefs.h.  */
36304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36306 #define $ac_func innocuous_$ac_func
36307
36308 /* System header to define __stub macros and hopefully few prototypes,
36309     which can conflict with char $ac_func (); below.
36310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36311     <limits.h> exists even on freestanding compilers.  */
36312
36313 #ifdef __STDC__
36314 # include <limits.h>
36315 #else
36316 # include <assert.h>
36317 #endif
36318
36319 #undef $ac_func
36320
36321 /* Override any GCC internal prototype to avoid an error.
36322    Use char because int might match the return type of a GCC
36323    builtin and then its argument prototype would still apply.  */
36324 #ifdef __cplusplus
36325 extern "C"
36326 #endif
36327 char $ac_func ();
36328 /* The GNU C library defines this for functions which it implements
36329     to always fail with ENOSYS.  Some functions are actually named
36330     something starting with __ and the normal name is an alias.  */
36331 #if defined __stub_$ac_func || defined __stub___$ac_func
36332 choke me
36333 #endif
36334
36335 int
36336 main ()
36337 {
36338 return $ac_func ();
36339   ;
36340   return 0;
36341 }
36342 _ACEOF
36343 rm -f conftest.$ac_objext conftest$ac_exeext
36344 if { (ac_try="$ac_link"
36345 case "(($ac_try" in
36346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36347   *) ac_try_echo=$ac_try;;
36348 esac
36349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36350   (eval "$ac_link") 2>conftest.er1
36351   ac_status=$?
36352   grep -v '^ *+' conftest.er1 >conftest.err
36353   rm -f conftest.er1
36354   cat conftest.err >&5
36355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356   (exit $ac_status); } && {
36357          test -z "$ac_c_werror_flag" ||
36358          test ! -s conftest.err
36359        } && test -s conftest$ac_exeext &&
36360        $as_test_x conftest$ac_exeext; then
36361   eval "$as_ac_var=yes"
36362 else
36363   echo "$as_me: failed program was:" >&5
36364 sed 's/^/| /' conftest.$ac_ext >&5
36365
36366         eval "$as_ac_var=no"
36367 fi
36368
36369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36370       conftest$ac_exeext conftest.$ac_ext
36371 fi
36372 ac_res=`eval echo '${'$as_ac_var'}'`
36373                { echo "$as_me:$LINENO: result: $ac_res" >&5
36374 echo "${ECHO_T}$ac_res" >&6; }
36375 if test `eval echo '${'$as_ac_var'}'` = yes; then
36376   cat >>confdefs.h <<_ACEOF
36377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36378 _ACEOF
36379
36380 fi
36381 done
36382
36383
36384 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36385     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36386 fi
36387
36388 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36389 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36390 if test "${ac_cv_type_mbstate_t+set}" = set; then
36391   echo $ECHO_N "(cached) $ECHO_C" >&6
36392 else
36393   cat >conftest.$ac_ext <<_ACEOF
36394 /* confdefs.h.  */
36395 _ACEOF
36396 cat confdefs.h >>conftest.$ac_ext
36397 cat >>conftest.$ac_ext <<_ACEOF
36398 /* end confdefs.h.  */
36399 #include <wchar.h>
36400
36401 typedef mbstate_t ac__type_new_;
36402 int
36403 main ()
36404 {
36405 if ((ac__type_new_ *) 0)
36406   return 0;
36407 if (sizeof (ac__type_new_))
36408   return 0;
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_c_werror_flag" ||
36428          test ! -s conftest.err
36429        } && test -s conftest.$ac_objext; then
36430   ac_cv_type_mbstate_t=yes
36431 else
36432   echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36434
36435         ac_cv_type_mbstate_t=no
36436 fi
36437
36438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36439 fi
36440 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36441 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36442 if test $ac_cv_type_mbstate_t = yes; then
36443
36444 cat >>confdefs.h <<_ACEOF
36445 #define HAVE_MBSTATE_T 1
36446 _ACEOF
36447
36448
36449 for ac_func in wcsrtombs
36450 do
36451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36455   echo $ECHO_N "(cached) $ECHO_C" >&6
36456 else
36457   cat >conftest.$ac_ext <<_ACEOF
36458 /* confdefs.h.  */
36459 _ACEOF
36460 cat confdefs.h >>conftest.$ac_ext
36461 cat >>conftest.$ac_ext <<_ACEOF
36462 /* end confdefs.h.  */
36463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36465 #define $ac_func innocuous_$ac_func
36466
36467 /* System header to define __stub macros and hopefully few prototypes,
36468     which can conflict with char $ac_func (); below.
36469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36470     <limits.h> exists even on freestanding compilers.  */
36471
36472 #ifdef __STDC__
36473 # include <limits.h>
36474 #else
36475 # include <assert.h>
36476 #endif
36477
36478 #undef $ac_func
36479
36480 /* Override any GCC internal prototype to avoid an error.
36481    Use char because int might match the return type of a GCC
36482    builtin and then its argument prototype would still apply.  */
36483 #ifdef __cplusplus
36484 extern "C"
36485 #endif
36486 char $ac_func ();
36487 /* The GNU C library defines this for functions which it implements
36488     to always fail with ENOSYS.  Some functions are actually named
36489     something starting with __ and the normal name is an alias.  */
36490 #if defined __stub_$ac_func || defined __stub___$ac_func
36491 choke me
36492 #endif
36493
36494 int
36495 main ()
36496 {
36497 return $ac_func ();
36498   ;
36499   return 0;
36500 }
36501 _ACEOF
36502 rm -f conftest.$ac_objext conftest$ac_exeext
36503 if { (ac_try="$ac_link"
36504 case "(($ac_try" in
36505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36506   *) ac_try_echo=$ac_try;;
36507 esac
36508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36509   (eval "$ac_link") 2>conftest.er1
36510   ac_status=$?
36511   grep -v '^ *+' conftest.er1 >conftest.err
36512   rm -f conftest.er1
36513   cat conftest.err >&5
36514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515   (exit $ac_status); } && {
36516          test -z "$ac_c_werror_flag" ||
36517          test ! -s conftest.err
36518        } && test -s conftest$ac_exeext &&
36519        $as_test_x conftest$ac_exeext; then
36520   eval "$as_ac_var=yes"
36521 else
36522   echo "$as_me: failed program was:" >&5
36523 sed 's/^/| /' conftest.$ac_ext >&5
36524
36525         eval "$as_ac_var=no"
36526 fi
36527
36528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36529       conftest$ac_exeext conftest.$ac_ext
36530 fi
36531 ac_res=`eval echo '${'$as_ac_var'}'`
36532                { echo "$as_me:$LINENO: result: $ac_res" >&5
36533 echo "${ECHO_T}$ac_res" >&6; }
36534 if test `eval echo '${'$as_ac_var'}'` = yes; then
36535   cat >>confdefs.h <<_ACEOF
36536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36537 _ACEOF
36538
36539 fi
36540 done
36541
36542 fi
36543
36544
36545
36546
36547
36548 for ac_func in snprintf vsnprintf vsscanf
36549 do
36550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36551 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36553 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36554   echo $ECHO_N "(cached) $ECHO_C" >&6
36555 else
36556   cat >conftest.$ac_ext <<_ACEOF
36557 /* confdefs.h.  */
36558 _ACEOF
36559 cat confdefs.h >>conftest.$ac_ext
36560 cat >>conftest.$ac_ext <<_ACEOF
36561 /* end confdefs.h.  */
36562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36564 #define $ac_func innocuous_$ac_func
36565
36566 /* System header to define __stub macros and hopefully few prototypes,
36567     which can conflict with char $ac_func (); below.
36568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36569     <limits.h> exists even on freestanding compilers.  */
36570
36571 #ifdef __STDC__
36572 # include <limits.h>
36573 #else
36574 # include <assert.h>
36575 #endif
36576
36577 #undef $ac_func
36578
36579 /* Override any GCC internal prototype to avoid an error.
36580    Use char because int might match the return type of a GCC
36581    builtin and then its argument prototype would still apply.  */
36582 #ifdef __cplusplus
36583 extern "C"
36584 #endif
36585 char $ac_func ();
36586 /* The GNU C library defines this for functions which it implements
36587     to always fail with ENOSYS.  Some functions are actually named
36588     something starting with __ and the normal name is an alias.  */
36589 #if defined __stub_$ac_func || defined __stub___$ac_func
36590 choke me
36591 #endif
36592
36593 int
36594 main ()
36595 {
36596 return $ac_func ();
36597   ;
36598   return 0;
36599 }
36600 _ACEOF
36601 rm -f conftest.$ac_objext conftest$ac_exeext
36602 if { (ac_try="$ac_link"
36603 case "(($ac_try" in
36604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36605   *) ac_try_echo=$ac_try;;
36606 esac
36607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36608   (eval "$ac_link") 2>conftest.er1
36609   ac_status=$?
36610   grep -v '^ *+' conftest.er1 >conftest.err
36611   rm -f conftest.er1
36612   cat conftest.err >&5
36613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614   (exit $ac_status); } && {
36615          test -z "$ac_c_werror_flag" ||
36616          test ! -s conftest.err
36617        } && test -s conftest$ac_exeext &&
36618        $as_test_x conftest$ac_exeext; then
36619   eval "$as_ac_var=yes"
36620 else
36621   echo "$as_me: failed program was:" >&5
36622 sed 's/^/| /' conftest.$ac_ext >&5
36623
36624         eval "$as_ac_var=no"
36625 fi
36626
36627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36628       conftest$ac_exeext conftest.$ac_ext
36629 fi
36630 ac_res=`eval echo '${'$as_ac_var'}'`
36631                { echo "$as_me:$LINENO: result: $ac_res" >&5
36632 echo "${ECHO_T}$ac_res" >&6; }
36633 if test `eval echo '${'$as_ac_var'}'` = yes; then
36634   cat >>confdefs.h <<_ACEOF
36635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36636 _ACEOF
36637
36638 fi
36639 done
36640
36641
36642 ac_ext=cpp
36643 ac_cpp='$CXXCPP $CPPFLAGS'
36644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36647
36648 if test "$ac_cv_func_vsnprintf" = "yes"; then
36649         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36650 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
36651 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
36652   echo $ECHO_N "(cached) $ECHO_C" >&6
36653 else
36654
36655                                                             cat >conftest.$ac_ext <<_ACEOF
36656 /* confdefs.h.  */
36657 _ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h.  */
36661
36662                     #include <stdio.h>
36663                     #include <stdarg.h>
36664                     #ifdef __MSL__
36665                     #if __MSL__ >= 0x6000
36666                     namespace std {}
36667                     using namespace std;
36668                     #endif
36669                     #endif
36670
36671 int
36672 main ()
36673 {
36674
36675                     char *buf;
36676                     va_list ap;
36677                     vsnprintf(buf, 10u, "%s", ap);
36678
36679   ;
36680   return 0;
36681 }
36682 _ACEOF
36683 rm -f conftest.$ac_objext
36684 if { (ac_try="$ac_compile"
36685 case "(($ac_try" in
36686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36687   *) ac_try_echo=$ac_try;;
36688 esac
36689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36690   (eval "$ac_compile") 2>conftest.er1
36691   ac_status=$?
36692   grep -v '^ *+' conftest.er1 >conftest.err
36693   rm -f conftest.er1
36694   cat conftest.err >&5
36695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36696   (exit $ac_status); } && {
36697          test -z "$ac_cxx_werror_flag" ||
36698          test ! -s conftest.err
36699        } && test -s conftest.$ac_objext; then
36700   wx_cv_func_vsnprintf_decl=yes
36701 else
36702   echo "$as_me: failed program was:" >&5
36703 sed 's/^/| /' conftest.$ac_ext >&5
36704
36705         wx_cv_func_vsnprintf_decl=no
36706
36707 fi
36708
36709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36710
36711
36712 fi
36713 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36714 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
36715
36716     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36717         cat >>confdefs.h <<\_ACEOF
36718 #define HAVE_VSNPRINTF_DECL 1
36719 _ACEOF
36720
36721
36722                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36723 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
36724 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
36725   echo $ECHO_N "(cached) $ECHO_C" >&6
36726 else
36727
36728                 cat >conftest.$ac_ext <<_ACEOF
36729 /* confdefs.h.  */
36730 _ACEOF
36731 cat confdefs.h >>conftest.$ac_ext
36732 cat >>conftest.$ac_ext <<_ACEOF
36733 /* end confdefs.h.  */
36734
36735                         #include <stdio.h>
36736                         #include <stdarg.h>
36737                         #ifdef __MSL__
36738                         #if __MSL__ >= 0x6000
36739                         namespace std {}
36740                         using namespace std;
36741                         #endif
36742                         #endif
36743
36744 int
36745 main ()
36746 {
36747
36748                         char *buf;
36749                         va_list ap;
36750                         const char *fmt = "%s";
36751                         vsnprintf(buf, 10u, fmt, ap);
36752
36753   ;
36754   return 0;
36755 }
36756 _ACEOF
36757 rm -f conftest.$ac_objext
36758 if { (ac_try="$ac_compile"
36759 case "(($ac_try" in
36760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36761   *) ac_try_echo=$ac_try;;
36762 esac
36763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36764   (eval "$ac_compile") 2>conftest.er1
36765   ac_status=$?
36766   grep -v '^ *+' conftest.er1 >conftest.err
36767   rm -f conftest.er1
36768   cat conftest.err >&5
36769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36770   (exit $ac_status); } && {
36771          test -z "$ac_cxx_werror_flag" ||
36772          test ! -s conftest.err
36773        } && test -s conftest.$ac_objext; then
36774   wx_cv_func_broken_vsnprintf_decl=no
36775 else
36776   echo "$as_me: failed program was:" >&5
36777 sed 's/^/| /' conftest.$ac_ext >&5
36778
36779         wx_cv_func_broken_vsnprintf_decl=yes
36780
36781 fi
36782
36783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36784
36785
36786 fi
36787 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
36788 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
36789
36790         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
36791             cat >>confdefs.h <<\_ACEOF
36792 #define HAVE_BROKEN_VSNPRINTF_DECL 1
36793 _ACEOF
36794
36795         fi
36796     fi
36797 fi
36798
36799 if test "$ac_cv_func_snprintf" = "yes"; then
36800     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
36801 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
36802 if test "${wx_cv_func_snprintf_decl+set}" = set; then
36803   echo $ECHO_N "(cached) $ECHO_C" >&6
36804 else
36805
36806             cat >conftest.$ac_ext <<_ACEOF
36807 /* confdefs.h.  */
36808 _ACEOF
36809 cat confdefs.h >>conftest.$ac_ext
36810 cat >>conftest.$ac_ext <<_ACEOF
36811 /* end confdefs.h.  */
36812
36813                     #include <stdio.h>
36814                     #include <stdarg.h>
36815                     #ifdef __MSL__
36816                     #if __MSL__ >= 0x6000
36817                     namespace std {}
36818                     using namespace std;
36819                     #endif
36820                     #endif
36821
36822 int
36823 main ()
36824 {
36825
36826                     char *buf;
36827                     snprintf(buf, 10u, "%s", "wx");
36828
36829   ;
36830   return 0;
36831 }
36832 _ACEOF
36833 rm -f conftest.$ac_objext
36834 if { (ac_try="$ac_compile"
36835 case "(($ac_try" in
36836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36837   *) ac_try_echo=$ac_try;;
36838 esac
36839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36840   (eval "$ac_compile") 2>conftest.er1
36841   ac_status=$?
36842   grep -v '^ *+' conftest.er1 >conftest.err
36843   rm -f conftest.er1
36844   cat conftest.err >&5
36845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846   (exit $ac_status); } && {
36847          test -z "$ac_cxx_werror_flag" ||
36848          test ! -s conftest.err
36849        } && test -s conftest.$ac_objext; then
36850   wx_cv_func_snprintf_decl=yes
36851 else
36852   echo "$as_me: failed program was:" >&5
36853 sed 's/^/| /' conftest.$ac_ext >&5
36854
36855         wx_cv_func_snprintf_decl=no
36856
36857 fi
36858
36859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36860
36861
36862 fi
36863 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
36864 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
36865
36866     if test "$wx_cv_func_snprintf_decl" = "yes"; then
36867         cat >>confdefs.h <<\_ACEOF
36868 #define HAVE_SNPRINTF_DECL 1
36869 _ACEOF
36870
36871     fi
36872
36873     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
36874
36875                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
36876 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
36877 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
36878   echo $ECHO_N "(cached) $ECHO_C" >&6
36879 else
36880
36881                 if test "$cross_compiling" = yes; then
36882
36883                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
36884 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
36885 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
36886 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
36887                         wx_cv_func_snprintf_pos_params=no
36888
36889
36890 else
36891   cat >conftest.$ac_ext <<_ACEOF
36892 /* confdefs.h.  */
36893 _ACEOF
36894 cat confdefs.h >>conftest.$ac_ext
36895 cat >>conftest.$ac_ext <<_ACEOF
36896 /* end confdefs.h.  */
36897
36898                         #include <stdio.h>
36899
36900                         int main (void)
36901                         {
36902                             char buffer[128];
36903                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
36904                             if (strcmp ("2 3 1", buffer) == 0)
36905                                 exit (0);
36906                             exit (1);
36907                         }
36908
36909 _ACEOF
36910 rm -f conftest$ac_exeext
36911 if { (ac_try="$ac_link"
36912 case "(($ac_try" in
36913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36914   *) ac_try_echo=$ac_try;;
36915 esac
36916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36917   (eval "$ac_link") 2>&5
36918   ac_status=$?
36919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36921   { (case "(($ac_try" in
36922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36923   *) ac_try_echo=$ac_try;;
36924 esac
36925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36926   (eval "$ac_try") 2>&5
36927   ac_status=$?
36928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929   (exit $ac_status); }; }; then
36930   wx_cv_func_snprintf_pos_params=no
36931 else
36932   echo "$as_me: program exited with status $ac_status" >&5
36933 echo "$as_me: failed program was:" >&5
36934 sed 's/^/| /' conftest.$ac_ext >&5
36935
36936 ( exit $ac_status )
36937 wx_cv_func_snprintf_pos_params=yes
36938 fi
36939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36940 fi
36941
36942
36943
36944
36945 fi
36946 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
36947 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
36948
36949         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
36950             cat >>confdefs.h <<\_ACEOF
36951 #define HAVE_UNIX98_PRINTF 1
36952 _ACEOF
36953
36954         fi
36955     fi
36956 fi
36957
36958 if test "$ac_cv_func_vsscanf" = "yes"; then
36959     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
36960 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
36961 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
36962   echo $ECHO_N "(cached) $ECHO_C" >&6
36963 else
36964
36965             cat >conftest.$ac_ext <<_ACEOF
36966 /* confdefs.h.  */
36967 _ACEOF
36968 cat confdefs.h >>conftest.$ac_ext
36969 cat >>conftest.$ac_ext <<_ACEOF
36970 /* end confdefs.h.  */
36971
36972                     #include <stdio.h>
36973                     #include <stdarg.h>
36974                     #ifdef __MSL__
36975                     #if __MSL__ >= 0x6000
36976                     namespace std {}
36977                     using namespace std;
36978                     #endif
36979                     #endif
36980
36981 int
36982 main ()
36983 {
36984
36985                     char *buf;
36986                     va_list args;
36987                     vsscanf(buf, "%s", args);
36988
36989   ;
36990   return 0;
36991 }
36992 _ACEOF
36993 rm -f conftest.$ac_objext
36994 if { (ac_try="$ac_compile"
36995 case "(($ac_try" in
36996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36997   *) ac_try_echo=$ac_try;;
36998 esac
36999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37000   (eval "$ac_compile") 2>conftest.er1
37001   ac_status=$?
37002   grep -v '^ *+' conftest.er1 >conftest.err
37003   rm -f conftest.er1
37004   cat conftest.err >&5
37005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006   (exit $ac_status); } && {
37007          test -z "$ac_cxx_werror_flag" ||
37008          test ! -s conftest.err
37009        } && test -s conftest.$ac_objext; then
37010   wx_cv_func_vsscanf_decl=yes
37011 else
37012   echo "$as_me: failed program was:" >&5
37013 sed 's/^/| /' conftest.$ac_ext >&5
37014
37015         wx_cv_func_vsscanf_decl=no
37016
37017 fi
37018
37019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37020
37021
37022 fi
37023 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37024 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37025
37026     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37027         cat >>confdefs.h <<\_ACEOF
37028 #define HAVE_VSSCANF_DECL 1
37029 _ACEOF
37030
37031     fi
37032 fi
37033 ac_ext=c
37034 ac_cpp='$CPP $CPPFLAGS'
37035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37038
37039
37040 if test "$wxUSE_UNICODE" = yes; then
37041
37042             wchar_headers="#include <stdio.h>
37043 #include <wchar.h>"
37044     case "${host}" in
37045         *-*-solaris2* )
37046
37047 for ac_header in widec.h
37048 do
37049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37053   echo $ECHO_N "(cached) $ECHO_C" >&6
37054 else
37055   cat >conftest.$ac_ext <<_ACEOF
37056 /* confdefs.h.  */
37057 _ACEOF
37058 cat confdefs.h >>conftest.$ac_ext
37059 cat >>conftest.$ac_ext <<_ACEOF
37060 /* end confdefs.h.  */
37061 $ac_includes_default
37062
37063 #include <$ac_header>
37064 _ACEOF
37065 rm -f conftest.$ac_objext
37066 if { (ac_try="$ac_compile"
37067 case "(($ac_try" in
37068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37069   *) ac_try_echo=$ac_try;;
37070 esac
37071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37072   (eval "$ac_compile") 2>conftest.er1
37073   ac_status=$?
37074   grep -v '^ *+' conftest.er1 >conftest.err
37075   rm -f conftest.er1
37076   cat conftest.err >&5
37077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078   (exit $ac_status); } && {
37079          test -z "$ac_c_werror_flag" ||
37080          test ! -s conftest.err
37081        } && test -s conftest.$ac_objext; then
37082   eval "$as_ac_Header=yes"
37083 else
37084   echo "$as_me: failed program was:" >&5
37085 sed 's/^/| /' conftest.$ac_ext >&5
37086
37087         eval "$as_ac_Header=no"
37088 fi
37089
37090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37091 fi
37092 ac_res=`eval echo '${'$as_ac_Header'}'`
37093                { echo "$as_me:$LINENO: result: $ac_res" >&5
37094 echo "${ECHO_T}$ac_res" >&6; }
37095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37096   cat >>confdefs.h <<_ACEOF
37097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37098 _ACEOF
37099
37100 fi
37101
37102 done
37103
37104             if test "$ac_cv_header_widec_h" = "yes"; then
37105                 wchar_headers="$wchar_headers
37106 #include <widec.h>"
37107             fi
37108     esac
37109
37110
37111   for wx_func in putws fputws wprintf vswprintf vswscanf
37112   do
37113     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37114 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37115 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37116   echo $ECHO_N "(cached) $ECHO_C" >&6
37117 else
37118
37119         cat >conftest.$ac_ext <<_ACEOF
37120
37121             /* confdefs.h.  */
37122 _ACEOF
37123 cat confdefs.h >>conftest.$ac_ext
37124 cat >>conftest.$ac_ext <<_ACEOF
37125 /* end confdefs.h.  */
37126
37127                 $wchar_headers
37128                 $ac_includes_default
37129
37130 int
37131 main ()
37132 {
37133
37134                 #ifndef $wx_func
37135                   &$wx_func;
37136                 #endif
37137
37138
37139   ;
37140   return 0;
37141 }
37142
37143 _ACEOF
37144 rm -f conftest.$ac_objext conftest$ac_exeext
37145 if { (ac_try="$ac_link"
37146 case "(($ac_try" in
37147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37148   *) ac_try_echo=$ac_try;;
37149 esac
37150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37151   (eval "$ac_link") 2>conftest.er1
37152   ac_status=$?
37153   grep -v '^ *+' conftest.er1 >conftest.err
37154   rm -f conftest.er1
37155   cat conftest.err >&5
37156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157   (exit $ac_status); } && {
37158          test -z "$ac_c_werror_flag" ||
37159          test ! -s conftest.err
37160        } && test -s conftest$ac_exeext &&
37161        $as_test_x conftest$ac_exeext; then
37162   eval wx_cv_func_$wx_func=yes
37163 else
37164   echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37166
37167         eval wx_cv_func_$wx_func=no
37168 fi
37169
37170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37171       conftest$ac_exeext conftest.$ac_ext
37172
37173 fi
37174 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37175                { echo "$as_me:$LINENO: result: $ac_res" >&5
37176 echo "${ECHO_T}$ac_res" >&6; }
37177
37178     if eval test \$wx_cv_func_$wx_func = yes
37179     then
37180       cat >>confdefs.h <<_ACEOF
37181 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37182 _ACEOF
37183
37184
37185     else
37186       :
37187
37188     fi
37189   done
37190
37191
37192                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37193 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
37194     cat >conftest.$ac_ext <<_ACEOF
37195 /* confdefs.h.  */
37196 _ACEOF
37197 cat confdefs.h >>conftest.$ac_ext
37198 cat >>conftest.$ac_ext <<_ACEOF
37199 /* end confdefs.h.  */
37200 #include <wchar.h>
37201 int
37202 main ()
37203 {
37204 &_vsnwprintf;
37205   ;
37206   return 0;
37207 }
37208 _ACEOF
37209 rm -f conftest.$ac_objext
37210 if { (ac_try="$ac_compile"
37211 case "(($ac_try" in
37212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37213   *) ac_try_echo=$ac_try;;
37214 esac
37215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37216   (eval "$ac_compile") 2>conftest.er1
37217   ac_status=$?
37218   grep -v '^ *+' conftest.er1 >conftest.err
37219   rm -f conftest.er1
37220   cat conftest.err >&5
37221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222   (exit $ac_status); } && {
37223          test -z "$ac_c_werror_flag" ||
37224          test ! -s conftest.err
37225        } && test -s conftest.$ac_objext; then
37226   { echo "$as_me:$LINENO: result: yes" >&5
37227 echo "${ECHO_T}yes" >&6; }
37228                     cat >>confdefs.h <<\_ACEOF
37229 #define HAVE__VSNWPRINTF 1
37230 _ACEOF
37231
37232 else
37233   echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37235
37236         { echo "$as_me:$LINENO: result: no" >&5
37237 echo "${ECHO_T}no" >&6; }
37238 fi
37239
37240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37241 fi
37242
37243 if test "$wxUSE_FILE" = "yes"; then
37244
37245   for wx_func in fsync
37246   do
37247     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37248 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37249 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37250   echo $ECHO_N "(cached) $ECHO_C" >&6
37251 else
37252
37253         cat >conftest.$ac_ext <<_ACEOF
37254
37255             /* confdefs.h.  */
37256 _ACEOF
37257 cat confdefs.h >>conftest.$ac_ext
37258 cat >>conftest.$ac_ext <<_ACEOF
37259 /* end confdefs.h.  */
37260
37261
37262                 $ac_includes_default
37263
37264 int
37265 main ()
37266 {
37267
37268                 #ifndef $wx_func
37269                   &$wx_func;
37270                 #endif
37271
37272
37273   ;
37274   return 0;
37275 }
37276
37277 _ACEOF
37278 rm -f conftest.$ac_objext conftest$ac_exeext
37279 if { (ac_try="$ac_link"
37280 case "(($ac_try" in
37281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37282   *) ac_try_echo=$ac_try;;
37283 esac
37284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37285   (eval "$ac_link") 2>conftest.er1
37286   ac_status=$?
37287   grep -v '^ *+' conftest.er1 >conftest.err
37288   rm -f conftest.er1
37289   cat conftest.err >&5
37290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291   (exit $ac_status); } && {
37292          test -z "$ac_c_werror_flag" ||
37293          test ! -s conftest.err
37294        } && test -s conftest$ac_exeext &&
37295        $as_test_x conftest$ac_exeext; then
37296   eval wx_cv_func_$wx_func=yes
37297 else
37298   echo "$as_me: failed program was:" >&5
37299 sed 's/^/| /' conftest.$ac_ext >&5
37300
37301         eval wx_cv_func_$wx_func=no
37302 fi
37303
37304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37305       conftest$ac_exeext conftest.$ac_ext
37306
37307 fi
37308 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37309                { echo "$as_me:$LINENO: result: $ac_res" >&5
37310 echo "${ECHO_T}$ac_res" >&6; }
37311
37312     if eval test \$wx_cv_func_$wx_func = yes
37313     then
37314       cat >>confdefs.h <<_ACEOF
37315 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37316 _ACEOF
37317
37318
37319     else
37320       :
37321
37322     fi
37323   done
37324
37325 fi
37326
37327 ac_ext=cpp
37328 ac_cpp='$CXXCPP $CPPFLAGS'
37329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37332
37333
37334   for wx_func in round
37335   do
37336     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37337 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37338 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37339   echo $ECHO_N "(cached) $ECHO_C" >&6
37340 else
37341
37342         cat >conftest.$ac_ext <<_ACEOF
37343
37344             /* confdefs.h.  */
37345 _ACEOF
37346 cat confdefs.h >>conftest.$ac_ext
37347 cat >>conftest.$ac_ext <<_ACEOF
37348 /* end confdefs.h.  */
37349
37350                 #include <math.h>
37351                 $ac_includes_default
37352
37353 int
37354 main ()
37355 {
37356
37357                 #ifndef $wx_func
37358                   &$wx_func;
37359                 #endif
37360
37361
37362   ;
37363   return 0;
37364 }
37365
37366 _ACEOF
37367 rm -f conftest.$ac_objext conftest$ac_exeext
37368 if { (ac_try="$ac_link"
37369 case "(($ac_try" in
37370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37371   *) ac_try_echo=$ac_try;;
37372 esac
37373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37374   (eval "$ac_link") 2>conftest.er1
37375   ac_status=$?
37376   grep -v '^ *+' conftest.er1 >conftest.err
37377   rm -f conftest.er1
37378   cat conftest.err >&5
37379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380   (exit $ac_status); } && {
37381          test -z "$ac_cxx_werror_flag" ||
37382          test ! -s conftest.err
37383        } && test -s conftest$ac_exeext &&
37384        $as_test_x conftest$ac_exeext; then
37385   eval wx_cv_func_$wx_func=yes
37386 else
37387   echo "$as_me: failed program was:" >&5
37388 sed 's/^/| /' conftest.$ac_ext >&5
37389
37390         eval wx_cv_func_$wx_func=no
37391 fi
37392
37393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37394       conftest$ac_exeext conftest.$ac_ext
37395
37396 fi
37397 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37398                { echo "$as_me:$LINENO: result: $ac_res" >&5
37399 echo "${ECHO_T}$ac_res" >&6; }
37400
37401     if eval test \$wx_cv_func_$wx_func = yes
37402     then
37403       cat >>confdefs.h <<_ACEOF
37404 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37405 _ACEOF
37406
37407
37408     else
37409       :
37410
37411     fi
37412   done
37413
37414 ac_ext=c
37415 ac_cpp='$CPP $CPPFLAGS'
37416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37419
37420
37421 if test "$TOOLKIT" != "MSW"; then
37422
37423 if test "$wxUSE_LIBICONV" != "no" ; then
37424
37425
37426
37427 # Check whether --with-libiconv-prefix was given.
37428 if test "${with_libiconv_prefix+set}" = set; then
37429   withval=$with_libiconv_prefix;
37430     for dir in `echo "$withval" | tr : ' '`; do
37431       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37432       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37433     done
37434
37435 fi
37436
37437
37438   { echo "$as_me:$LINENO: checking for iconv" >&5
37439 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37440 if test "${am_cv_func_iconv+set}" = set; then
37441   echo $ECHO_N "(cached) $ECHO_C" >&6
37442 else
37443
37444     am_cv_func_iconv="no, consider installing GNU libiconv"
37445     am_cv_lib_iconv=no
37446     cat >conftest.$ac_ext <<_ACEOF
37447 /* confdefs.h.  */
37448 _ACEOF
37449 cat confdefs.h >>conftest.$ac_ext
37450 cat >>conftest.$ac_ext <<_ACEOF
37451 /* end confdefs.h.  */
37452 #include <stdlib.h>
37453 #include <iconv.h>
37454 int
37455 main ()
37456 {
37457 iconv_t cd = iconv_open("","");
37458        iconv(cd,NULL,NULL,NULL,NULL);
37459        iconv_close(cd);
37460   ;
37461   return 0;
37462 }
37463 _ACEOF
37464 rm -f conftest.$ac_objext conftest$ac_exeext
37465 if { (ac_try="$ac_link"
37466 case "(($ac_try" in
37467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37468   *) ac_try_echo=$ac_try;;
37469 esac
37470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37471   (eval "$ac_link") 2>conftest.er1
37472   ac_status=$?
37473   grep -v '^ *+' conftest.er1 >conftest.err
37474   rm -f conftest.er1
37475   cat conftest.err >&5
37476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37477   (exit $ac_status); } && {
37478          test -z "$ac_c_werror_flag" ||
37479          test ! -s conftest.err
37480        } && test -s conftest$ac_exeext &&
37481        $as_test_x conftest$ac_exeext; then
37482   am_cv_func_iconv=yes
37483 else
37484   echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37486
37487
37488 fi
37489
37490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37491       conftest$ac_exeext conftest.$ac_ext
37492     if test "$am_cv_func_iconv" != yes; then
37493       am_save_LIBS="$LIBS"
37494       LIBS="$LIBS -liconv"
37495       cat >conftest.$ac_ext <<_ACEOF
37496 /* confdefs.h.  */
37497 _ACEOF
37498 cat confdefs.h >>conftest.$ac_ext
37499 cat >>conftest.$ac_ext <<_ACEOF
37500 /* end confdefs.h.  */
37501 #include <stdlib.h>
37502 #include <iconv.h>
37503 int
37504 main ()
37505 {
37506 iconv_t cd = iconv_open("","");
37507          iconv(cd,NULL,NULL,NULL,NULL);
37508          iconv_close(cd);
37509   ;
37510   return 0;
37511 }
37512 _ACEOF
37513 rm -f conftest.$ac_objext conftest$ac_exeext
37514 if { (ac_try="$ac_link"
37515 case "(($ac_try" in
37516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37517   *) ac_try_echo=$ac_try;;
37518 esac
37519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37520   (eval "$ac_link") 2>conftest.er1
37521   ac_status=$?
37522   grep -v '^ *+' conftest.er1 >conftest.err
37523   rm -f conftest.er1
37524   cat conftest.err >&5
37525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526   (exit $ac_status); } && {
37527          test -z "$ac_c_werror_flag" ||
37528          test ! -s conftest.err
37529        } && test -s conftest$ac_exeext &&
37530        $as_test_x conftest$ac_exeext; then
37531   am_cv_lib_iconv=yes
37532         am_cv_func_iconv=yes
37533 else
37534   echo "$as_me: failed program was:" >&5
37535 sed 's/^/| /' conftest.$ac_ext >&5
37536
37537
37538 fi
37539
37540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37541       conftest$ac_exeext conftest.$ac_ext
37542       LIBS="$am_save_LIBS"
37543     fi
37544
37545 fi
37546 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37547 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37548   if test "$am_cv_func_iconv" = yes; then
37549
37550 cat >>confdefs.h <<\_ACEOF
37551 #define HAVE_ICONV 1
37552 _ACEOF
37553
37554     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
37555 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
37556 if test "${wx_cv_func_iconv_const+set}" = set; then
37557   echo $ECHO_N "(cached) $ECHO_C" >&6
37558 else
37559   cat >conftest.$ac_ext <<_ACEOF
37560 /* confdefs.h.  */
37561 _ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h.  */
37565
37566 #include <stdlib.h>
37567 #include <iconv.h>
37568 extern
37569 #ifdef __cplusplus
37570 "C"
37571 #endif
37572 #if defined(__STDC__) || defined(__cplusplus)
37573 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
37574 #else
37575 size_t iconv();
37576 #endif
37577
37578 int
37579 main ()
37580 {
37581
37582   ;
37583   return 0;
37584 }
37585 _ACEOF
37586 rm -f conftest.$ac_objext
37587 if { (ac_try="$ac_compile"
37588 case "(($ac_try" in
37589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37590   *) ac_try_echo=$ac_try;;
37591 esac
37592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37593   (eval "$ac_compile") 2>conftest.er1
37594   ac_status=$?
37595   grep -v '^ *+' conftest.er1 >conftest.err
37596   rm -f conftest.er1
37597   cat conftest.err >&5
37598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599   (exit $ac_status); } && {
37600          test -z "$ac_c_werror_flag" ||
37601          test ! -s conftest.err
37602        } && test -s conftest.$ac_objext; then
37603   wx_cv_func_iconv_const="no"
37604 else
37605   echo "$as_me: failed program was:" >&5
37606 sed 's/^/| /' conftest.$ac_ext >&5
37607
37608         wx_cv_func_iconv_const="yes"
37609
37610 fi
37611
37612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37613
37614 fi
37615 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37616 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
37617
37618     iconv_const=
37619     if test "x$wx_cv_func_iconv_const" = "xyes"; then
37620         iconv_const="const"
37621     fi
37622
37623
37624 cat >>confdefs.h <<_ACEOF
37625 #define ICONV_CONST $iconv_const
37626 _ACEOF
37627
37628   fi
37629   LIBICONV=
37630   if test "$am_cv_lib_iconv" = yes; then
37631     LIBICONV="-liconv"
37632   fi
37633
37634
37635     LIBS="$LIBICONV $LIBS"
37636 fi
37637
37638 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37639
37640 for ac_func in sigaction
37641 do
37642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37646   echo $ECHO_N "(cached) $ECHO_C" >&6
37647 else
37648   cat >conftest.$ac_ext <<_ACEOF
37649 /* confdefs.h.  */
37650 _ACEOF
37651 cat confdefs.h >>conftest.$ac_ext
37652 cat >>conftest.$ac_ext <<_ACEOF
37653 /* end confdefs.h.  */
37654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37656 #define $ac_func innocuous_$ac_func
37657
37658 /* System header to define __stub macros and hopefully few prototypes,
37659     which can conflict with char $ac_func (); below.
37660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37661     <limits.h> exists even on freestanding compilers.  */
37662
37663 #ifdef __STDC__
37664 # include <limits.h>
37665 #else
37666 # include <assert.h>
37667 #endif
37668
37669 #undef $ac_func
37670
37671 /* Override any GCC internal prototype to avoid an error.
37672    Use char because int might match the return type of a GCC
37673    builtin and then its argument prototype would still apply.  */
37674 #ifdef __cplusplus
37675 extern "C"
37676 #endif
37677 char $ac_func ();
37678 /* The GNU C library defines this for functions which it implements
37679     to always fail with ENOSYS.  Some functions are actually named
37680     something starting with __ and the normal name is an alias.  */
37681 #if defined __stub_$ac_func || defined __stub___$ac_func
37682 choke me
37683 #endif
37684
37685 int
37686 main ()
37687 {
37688 return $ac_func ();
37689   ;
37690   return 0;
37691 }
37692 _ACEOF
37693 rm -f conftest.$ac_objext conftest$ac_exeext
37694 if { (ac_try="$ac_link"
37695 case "(($ac_try" in
37696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37697   *) ac_try_echo=$ac_try;;
37698 esac
37699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37700   (eval "$ac_link") 2>conftest.er1
37701   ac_status=$?
37702   grep -v '^ *+' conftest.er1 >conftest.err
37703   rm -f conftest.er1
37704   cat conftest.err >&5
37705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706   (exit $ac_status); } && {
37707          test -z "$ac_c_werror_flag" ||
37708          test ! -s conftest.err
37709        } && test -s conftest$ac_exeext &&
37710        $as_test_x conftest$ac_exeext; then
37711   eval "$as_ac_var=yes"
37712 else
37713   echo "$as_me: failed program was:" >&5
37714 sed 's/^/| /' conftest.$ac_ext >&5
37715
37716         eval "$as_ac_var=no"
37717 fi
37718
37719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37720       conftest$ac_exeext conftest.$ac_ext
37721 fi
37722 ac_res=`eval echo '${'$as_ac_var'}'`
37723                { echo "$as_me:$LINENO: result: $ac_res" >&5
37724 echo "${ECHO_T}$ac_res" >&6; }
37725 if test `eval echo '${'$as_ac_var'}'` = yes; then
37726   cat >>confdefs.h <<_ACEOF
37727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37728 _ACEOF
37729
37730 fi
37731 done
37732
37733
37734     if test "$ac_cv_func_sigaction" = "no"; then
37735         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37736 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
37737         wxUSE_ON_FATAL_EXCEPTION=no
37738     fi
37739
37740     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37741       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
37742 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
37743 if test "${wx_cv_type_sa_handler+set}" = set; then
37744   echo $ECHO_N "(cached) $ECHO_C" >&6
37745 else
37746
37747                 ac_ext=cpp
37748 ac_cpp='$CXXCPP $CPPFLAGS'
37749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37752
37753         cat >conftest.$ac_ext <<_ACEOF
37754 /* confdefs.h.  */
37755 _ACEOF
37756 cat confdefs.h >>conftest.$ac_ext
37757 cat >>conftest.$ac_ext <<_ACEOF
37758 /* end confdefs.h.  */
37759 #include <signal.h>
37760 int
37761 main ()
37762 {
37763
37764                         extern void testSigHandler(int);
37765
37766                         struct sigaction sa;
37767                         sa.sa_handler = testSigHandler;
37768
37769   ;
37770   return 0;
37771 }
37772 _ACEOF
37773 rm -f conftest.$ac_objext
37774 if { (ac_try="$ac_compile"
37775 case "(($ac_try" in
37776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37777   *) ac_try_echo=$ac_try;;
37778 esac
37779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37780   (eval "$ac_compile") 2>conftest.er1
37781   ac_status=$?
37782   grep -v '^ *+' conftest.er1 >conftest.err
37783   rm -f conftest.er1
37784   cat conftest.err >&5
37785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786   (exit $ac_status); } && {
37787          test -z "$ac_cxx_werror_flag" ||
37788          test ! -s conftest.err
37789        } && test -s conftest.$ac_objext; then
37790
37791                         wx_cv_type_sa_handler=int
37792
37793 else
37794   echo "$as_me: failed program was:" >&5
37795 sed 's/^/| /' conftest.$ac_ext >&5
37796
37797
37798                         wx_cv_type_sa_handler=void
37799
37800 fi
37801
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803         ac_ext=c
37804 ac_cpp='$CPP $CPPFLAGS'
37805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37808
37809
37810 fi
37811 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37812 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
37813
37814       cat >>confdefs.h <<_ACEOF
37815 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37816 _ACEOF
37817
37818     fi
37819 fi
37820
37821 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37822     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37823 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
37824 if test "${wx_cv_func_backtrace+set}" = set; then
37825   echo $ECHO_N "(cached) $ECHO_C" >&6
37826 else
37827
37828             ac_ext=cpp
37829 ac_cpp='$CXXCPP $CPPFLAGS'
37830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37833
37834             cat >conftest.$ac_ext <<_ACEOF
37835 /* confdefs.h.  */
37836 _ACEOF
37837 cat confdefs.h >>conftest.$ac_ext
37838 cat >>conftest.$ac_ext <<_ACEOF
37839 /* end confdefs.h.  */
37840 #include <execinfo.h>
37841 int
37842 main ()
37843 {
37844
37845                     void *trace[1];
37846                     char **messages;
37847
37848                     backtrace(trace, 1);
37849                     messages = backtrace_symbols(trace, 1);
37850
37851   ;
37852   return 0;
37853 }
37854 _ACEOF
37855 rm -f conftest.$ac_objext
37856 if { (ac_try="$ac_compile"
37857 case "(($ac_try" in
37858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37859   *) ac_try_echo=$ac_try;;
37860 esac
37861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37862   (eval "$ac_compile") 2>conftest.er1
37863   ac_status=$?
37864   grep -v '^ *+' conftest.er1 >conftest.err
37865   rm -f conftest.er1
37866   cat conftest.err >&5
37867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37868   (exit $ac_status); } && {
37869          test -z "$ac_cxx_werror_flag" ||
37870          test ! -s conftest.err
37871        } && test -s conftest.$ac_objext; then
37872   wx_cv_func_backtrace=yes
37873 else
37874   echo "$as_me: failed program was:" >&5
37875 sed 's/^/| /' conftest.$ac_ext >&5
37876
37877         wx_cv_func_backtrace=no
37878
37879 fi
37880
37881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37882             ac_ext=c
37883 ac_cpp='$CPP $CPPFLAGS'
37884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37887
37888
37889
37890 fi
37891 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37892 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
37893
37894
37895     if test "$wx_cv_func_backtrace" = "no"; then
37896         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37897 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37898         wxUSE_STACKWALKER=no
37899     else
37900         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37901 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
37902 if test "${wx_cv_func_cxa_demangle+set}" = set; then
37903   echo $ECHO_N "(cached) $ECHO_C" >&6
37904 else
37905
37906                 ac_ext=cpp
37907 ac_cpp='$CXXCPP $CPPFLAGS'
37908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37911
37912                 cat >conftest.$ac_ext <<_ACEOF
37913 /* confdefs.h.  */
37914 _ACEOF
37915 cat confdefs.h >>conftest.$ac_ext
37916 cat >>conftest.$ac_ext <<_ACEOF
37917 /* end confdefs.h.  */
37918 #include <cxxabi.h>
37919 int
37920 main ()
37921 {
37922
37923                         int rc;
37924                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37925
37926   ;
37927   return 0;
37928 }
37929 _ACEOF
37930 rm -f conftest.$ac_objext conftest$ac_exeext
37931 if { (ac_try="$ac_link"
37932 case "(($ac_try" in
37933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37934   *) ac_try_echo=$ac_try;;
37935 esac
37936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37937   (eval "$ac_link") 2>conftest.er1
37938   ac_status=$?
37939   grep -v '^ *+' conftest.er1 >conftest.err
37940   rm -f conftest.er1
37941   cat conftest.err >&5
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); } && {
37944          test -z "$ac_cxx_werror_flag" ||
37945          test ! -s conftest.err
37946        } && test -s conftest$ac_exeext &&
37947        $as_test_x conftest$ac_exeext; then
37948   wx_cv_func_cxa_demangle=yes
37949 else
37950   echo "$as_me: failed program was:" >&5
37951 sed 's/^/| /' conftest.$ac_ext >&5
37952
37953         wx_cv_func_cxa_demangle=no
37954
37955 fi
37956
37957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37958       conftest$ac_exeext conftest.$ac_ext
37959                 ac_ext=c
37960 ac_cpp='$CPP $CPPFLAGS'
37961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37964
37965
37966
37967 fi
37968 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37969 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
37970
37971         if test "$wx_cv_func_cxa_demangle" = "yes"; then
37972             cat >>confdefs.h <<\_ACEOF
37973 #define HAVE_CXA_DEMANGLE 1
37974 _ACEOF
37975
37976         fi
37977     fi
37978 fi
37979
37980 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
37981     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37982 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37983     wxUSE_STACKWALKER=no
37984 fi
37985
37986
37987
37988
37989 for ac_func in mkstemp mktemp
37990 do
37991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37995   echo $ECHO_N "(cached) $ECHO_C" >&6
37996 else
37997   cat >conftest.$ac_ext <<_ACEOF
37998 /* confdefs.h.  */
37999 _ACEOF
38000 cat confdefs.h >>conftest.$ac_ext
38001 cat >>conftest.$ac_ext <<_ACEOF
38002 /* end confdefs.h.  */
38003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38005 #define $ac_func innocuous_$ac_func
38006
38007 /* System header to define __stub macros and hopefully few prototypes,
38008     which can conflict with char $ac_func (); below.
38009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38010     <limits.h> exists even on freestanding compilers.  */
38011
38012 #ifdef __STDC__
38013 # include <limits.h>
38014 #else
38015 # include <assert.h>
38016 #endif
38017
38018 #undef $ac_func
38019
38020 /* Override any GCC internal prototype to avoid an error.
38021    Use char because int might match the return type of a GCC
38022    builtin and then its argument prototype would still apply.  */
38023 #ifdef __cplusplus
38024 extern "C"
38025 #endif
38026 char $ac_func ();
38027 /* The GNU C library defines this for functions which it implements
38028     to always fail with ENOSYS.  Some functions are actually named
38029     something starting with __ and the normal name is an alias.  */
38030 #if defined __stub_$ac_func || defined __stub___$ac_func
38031 choke me
38032 #endif
38033
38034 int
38035 main ()
38036 {
38037 return $ac_func ();
38038   ;
38039   return 0;
38040 }
38041 _ACEOF
38042 rm -f conftest.$ac_objext conftest$ac_exeext
38043 if { (ac_try="$ac_link"
38044 case "(($ac_try" in
38045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38046   *) ac_try_echo=$ac_try;;
38047 esac
38048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38049   (eval "$ac_link") 2>conftest.er1
38050   ac_status=$?
38051   grep -v '^ *+' conftest.er1 >conftest.err
38052   rm -f conftest.er1
38053   cat conftest.err >&5
38054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055   (exit $ac_status); } && {
38056          test -z "$ac_c_werror_flag" ||
38057          test ! -s conftest.err
38058        } && test -s conftest$ac_exeext &&
38059        $as_test_x conftest$ac_exeext; then
38060   eval "$as_ac_var=yes"
38061 else
38062   echo "$as_me: failed program was:" >&5
38063 sed 's/^/| /' conftest.$ac_ext >&5
38064
38065         eval "$as_ac_var=no"
38066 fi
38067
38068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38069       conftest$ac_exeext conftest.$ac_ext
38070 fi
38071 ac_res=`eval echo '${'$as_ac_var'}'`
38072                { echo "$as_me:$LINENO: result: $ac_res" >&5
38073 echo "${ECHO_T}$ac_res" >&6; }
38074 if test `eval echo '${'$as_ac_var'}'` = yes; then
38075   cat >>confdefs.h <<_ACEOF
38076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38077 _ACEOF
38078  break
38079 fi
38080 done
38081
38082
38083 { echo "$as_me:$LINENO: checking for statfs" >&5
38084 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38085 if test "${wx_cv_func_statfs+set}" = set; then
38086   echo $ECHO_N "(cached) $ECHO_C" >&6
38087 else
38088   cat >conftest.$ac_ext <<_ACEOF
38089 /* confdefs.h.  */
38090 _ACEOF
38091 cat confdefs.h >>conftest.$ac_ext
38092 cat >>conftest.$ac_ext <<_ACEOF
38093 /* end confdefs.h.  */
38094
38095              #if defined(__BSD__)
38096              #include <sys/param.h>
38097              #include <sys/mount.h>
38098              #else
38099              #include <sys/vfs.h>
38100              #endif
38101
38102 int
38103 main ()
38104 {
38105
38106              long l;
38107              struct statfs fs;
38108              statfs("/", &fs);
38109              l = fs.f_bsize;
38110              l += fs.f_blocks;
38111              l += fs.f_bavail;
38112
38113   ;
38114   return 0;
38115 }
38116 _ACEOF
38117 rm -f conftest.$ac_objext
38118 if { (ac_try="$ac_compile"
38119 case "(($ac_try" in
38120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38121   *) ac_try_echo=$ac_try;;
38122 esac
38123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38124   (eval "$ac_compile") 2>conftest.er1
38125   ac_status=$?
38126   grep -v '^ *+' conftest.er1 >conftest.err
38127   rm -f conftest.er1
38128   cat conftest.err >&5
38129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130   (exit $ac_status); } && {
38131          test -z "$ac_c_werror_flag" ||
38132          test ! -s conftest.err
38133        } && test -s conftest.$ac_objext; then
38134   wx_cv_func_statfs=yes
38135 else
38136   echo "$as_me: failed program was:" >&5
38137 sed 's/^/| /' conftest.$ac_ext >&5
38138
38139         wx_cv_func_statfs=no
38140
38141 fi
38142
38143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38144
38145 fi
38146 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38147 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38148
38149 if test "$wx_cv_func_statfs" = "yes"; then
38150         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38151 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38152 if test "${wx_cv_func_statfs_decl+set}" = set; then
38153   echo $ECHO_N "(cached) $ECHO_C" >&6
38154 else
38155   ac_ext=cpp
38156 ac_cpp='$CXXCPP $CPPFLAGS'
38157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38160
38161         cat >conftest.$ac_ext <<_ACEOF
38162 /* confdefs.h.  */
38163 _ACEOF
38164 cat confdefs.h >>conftest.$ac_ext
38165 cat >>conftest.$ac_ext <<_ACEOF
38166 /* end confdefs.h.  */
38167
38168                  #if defined(__BSD__)
38169                  #include <sys/param.h>
38170                  #include <sys/mount.h>
38171                  #else
38172                  #include <sys/vfs.h>
38173                  #endif
38174
38175 int
38176 main ()
38177 {
38178
38179                 struct statfs fs;
38180                 statfs("", &fs);
38181
38182   ;
38183   return 0;
38184 }
38185 _ACEOF
38186 rm -f conftest.$ac_objext
38187 if { (ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
38201          test ! -s conftest.err
38202        } && test -s conftest.$ac_objext; then
38203   wx_cv_func_statfs_decl=yes
38204 else
38205   echo "$as_me: failed program was:" >&5
38206 sed 's/^/| /' conftest.$ac_ext >&5
38207
38208         wx_cv_func_statfs_decl=no
38209
38210 fi
38211
38212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38213         ac_ext=c
38214 ac_cpp='$CPP $CPPFLAGS'
38215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38218
38219
38220 fi
38221 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38222 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38223
38224     if test "$wx_cv_func_statfs_decl" = "yes"; then
38225         cat >>confdefs.h <<\_ACEOF
38226 #define HAVE_STATFS_DECL 1
38227 _ACEOF
38228
38229     fi
38230
38231     wx_cv_type_statvfs_t="struct statfs"
38232     cat >>confdefs.h <<\_ACEOF
38233 #define HAVE_STATFS 1
38234 _ACEOF
38235
38236 else
38237     { echo "$as_me:$LINENO: checking for statvfs" >&5
38238 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38239 if test "${wx_cv_func_statvfs+set}" = set; then
38240   echo $ECHO_N "(cached) $ECHO_C" >&6
38241 else
38242   cat >conftest.$ac_ext <<_ACEOF
38243 /* confdefs.h.  */
38244 _ACEOF
38245 cat confdefs.h >>conftest.$ac_ext
38246 cat >>conftest.$ac_ext <<_ACEOF
38247 /* end confdefs.h.  */
38248
38249                 #include <stddef.h>
38250                 #include <sys/statvfs.h>
38251
38252 int
38253 main ()
38254 {
38255
38256                 statvfs("/", NULL);
38257
38258   ;
38259   return 0;
38260 }
38261 _ACEOF
38262 rm -f conftest.$ac_objext
38263 if { (ac_try="$ac_compile"
38264 case "(($ac_try" in
38265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38266   *) ac_try_echo=$ac_try;;
38267 esac
38268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38269   (eval "$ac_compile") 2>conftest.er1
38270   ac_status=$?
38271   grep -v '^ *+' conftest.er1 >conftest.err
38272   rm -f conftest.er1
38273   cat conftest.err >&5
38274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275   (exit $ac_status); } && {
38276          test -z "$ac_c_werror_flag" ||
38277          test ! -s conftest.err
38278        } && test -s conftest.$ac_objext; then
38279   wx_cv_func_statvfs=yes
38280 else
38281   echo "$as_me: failed program was:" >&5
38282 sed 's/^/| /' conftest.$ac_ext >&5
38283
38284         wx_cv_func_statvfs=no
38285
38286 fi
38287
38288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38289
38290 fi
38291 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38292 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38293
38294     if test "$wx_cv_func_statvfs" = "yes"; then
38295                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38296 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38297 if test "${wx_cv_type_statvfs_t+set}" = set; then
38298   echo $ECHO_N "(cached) $ECHO_C" >&6
38299 else
38300   ac_ext=cpp
38301 ac_cpp='$CXXCPP $CPPFLAGS'
38302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38305
38306             cat >conftest.$ac_ext <<_ACEOF
38307 /* confdefs.h.  */
38308 _ACEOF
38309 cat confdefs.h >>conftest.$ac_ext
38310 cat >>conftest.$ac_ext <<_ACEOF
38311 /* end confdefs.h.  */
38312
38313                     #include <sys/statvfs.h>
38314
38315 int
38316 main ()
38317 {
38318
38319                     long l;
38320                     statvfs_t fs;
38321                     statvfs("/", &fs);
38322                     l = fs.f_bsize;
38323                     l += fs.f_blocks;
38324                     l += fs.f_bavail;
38325
38326   ;
38327   return 0;
38328 }
38329 _ACEOF
38330 rm -f conftest.$ac_objext
38331 if { (ac_try="$ac_compile"
38332 case "(($ac_try" in
38333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38334   *) ac_try_echo=$ac_try;;
38335 esac
38336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38337   (eval "$ac_compile") 2>conftest.er1
38338   ac_status=$?
38339   grep -v '^ *+' conftest.er1 >conftest.err
38340   rm -f conftest.er1
38341   cat conftest.err >&5
38342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343   (exit $ac_status); } && {
38344          test -z "$ac_cxx_werror_flag" ||
38345          test ! -s conftest.err
38346        } && test -s conftest.$ac_objext; then
38347   wx_cv_type_statvfs_t=statvfs_t
38348 else
38349   echo "$as_me: failed program was:" >&5
38350 sed 's/^/| /' conftest.$ac_ext >&5
38351
38352
38353                     cat >conftest.$ac_ext <<_ACEOF
38354 /* confdefs.h.  */
38355 _ACEOF
38356 cat confdefs.h >>conftest.$ac_ext
38357 cat >>conftest.$ac_ext <<_ACEOF
38358 /* end confdefs.h.  */
38359
38360                             #include <sys/statvfs.h>
38361
38362 int
38363 main ()
38364 {
38365
38366                             long l;
38367                             struct statvfs fs;
38368                             statvfs("/", &fs);
38369                             l = fs.f_bsize;
38370                             l += fs.f_blocks;
38371                             l += fs.f_bavail;
38372
38373   ;
38374   return 0;
38375 }
38376 _ACEOF
38377 rm -f conftest.$ac_objext
38378 if { (ac_try="$ac_compile"
38379 case "(($ac_try" in
38380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38381   *) ac_try_echo=$ac_try;;
38382 esac
38383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38384   (eval "$ac_compile") 2>conftest.er1
38385   ac_status=$?
38386   grep -v '^ *+' conftest.er1 >conftest.err
38387   rm -f conftest.er1
38388   cat conftest.err >&5
38389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38390   (exit $ac_status); } && {
38391          test -z "$ac_cxx_werror_flag" ||
38392          test ! -s conftest.err
38393        } && test -s conftest.$ac_objext; then
38394   wx_cv_type_statvfs_t="struct statvfs"
38395 else
38396   echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38398
38399         wx_cv_type_statvfs_t="unknown"
38400
38401 fi
38402
38403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38404
38405
38406 fi
38407
38408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38409             ac_ext=c
38410 ac_cpp='$CPP $CPPFLAGS'
38411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38414
38415
38416 fi
38417 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38418 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38419
38420         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38421             cat >>confdefs.h <<\_ACEOF
38422 #define HAVE_STATVFS 1
38423 _ACEOF
38424
38425         fi
38426     else
38427                 wx_cv_type_statvfs_t="unknown"
38428     fi
38429 fi
38430
38431 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38432     cat >>confdefs.h <<_ACEOF
38433 #define WX_STATFS_T $wx_cv_type_statvfs_t
38434 _ACEOF
38435
38436 else
38437     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38438 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38439 fi
38440
38441 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38442
38443
38444 for ac_func in fcntl flock
38445 do
38446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38450   echo $ECHO_N "(cached) $ECHO_C" >&6
38451 else
38452   cat >conftest.$ac_ext <<_ACEOF
38453 /* confdefs.h.  */
38454 _ACEOF
38455 cat confdefs.h >>conftest.$ac_ext
38456 cat >>conftest.$ac_ext <<_ACEOF
38457 /* end confdefs.h.  */
38458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38460 #define $ac_func innocuous_$ac_func
38461
38462 /* System header to define __stub macros and hopefully few prototypes,
38463     which can conflict with char $ac_func (); below.
38464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38465     <limits.h> exists even on freestanding compilers.  */
38466
38467 #ifdef __STDC__
38468 # include <limits.h>
38469 #else
38470 # include <assert.h>
38471 #endif
38472
38473 #undef $ac_func
38474
38475 /* Override any GCC internal prototype to avoid an error.
38476    Use char because int might match the return type of a GCC
38477    builtin and then its argument prototype would still apply.  */
38478 #ifdef __cplusplus
38479 extern "C"
38480 #endif
38481 char $ac_func ();
38482 /* The GNU C library defines this for functions which it implements
38483     to always fail with ENOSYS.  Some functions are actually named
38484     something starting with __ and the normal name is an alias.  */
38485 #if defined __stub_$ac_func || defined __stub___$ac_func
38486 choke me
38487 #endif
38488
38489 int
38490 main ()
38491 {
38492 return $ac_func ();
38493   ;
38494   return 0;
38495 }
38496 _ACEOF
38497 rm -f conftest.$ac_objext conftest$ac_exeext
38498 if { (ac_try="$ac_link"
38499 case "(($ac_try" in
38500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38501   *) ac_try_echo=$ac_try;;
38502 esac
38503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38504   (eval "$ac_link") 2>conftest.er1
38505   ac_status=$?
38506   grep -v '^ *+' conftest.er1 >conftest.err
38507   rm -f conftest.er1
38508   cat conftest.err >&5
38509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38510   (exit $ac_status); } && {
38511          test -z "$ac_c_werror_flag" ||
38512          test ! -s conftest.err
38513        } && test -s conftest$ac_exeext &&
38514        $as_test_x conftest$ac_exeext; then
38515   eval "$as_ac_var=yes"
38516 else
38517   echo "$as_me: failed program was:" >&5
38518 sed 's/^/| /' conftest.$ac_ext >&5
38519
38520         eval "$as_ac_var=no"
38521 fi
38522
38523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38524       conftest$ac_exeext conftest.$ac_ext
38525 fi
38526 ac_res=`eval echo '${'$as_ac_var'}'`
38527                { echo "$as_me:$LINENO: result: $ac_res" >&5
38528 echo "${ECHO_T}$ac_res" >&6; }
38529 if test `eval echo '${'$as_ac_var'}'` = yes; then
38530   cat >>confdefs.h <<_ACEOF
38531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38532 _ACEOF
38533  break
38534 fi
38535 done
38536
38537
38538     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
38539         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
38540 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
38541         wxUSE_SNGLINST_CHECKER=no
38542     fi
38543 fi
38544
38545
38546
38547 for ac_func in setenv putenv
38548 do
38549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38553   echo $ECHO_N "(cached) $ECHO_C" >&6
38554 else
38555   cat >conftest.$ac_ext <<_ACEOF
38556 /* confdefs.h.  */
38557 _ACEOF
38558 cat confdefs.h >>conftest.$ac_ext
38559 cat >>conftest.$ac_ext <<_ACEOF
38560 /* end confdefs.h.  */
38561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38563 #define $ac_func innocuous_$ac_func
38564
38565 /* System header to define __stub macros and hopefully few prototypes,
38566     which can conflict with char $ac_func (); below.
38567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38568     <limits.h> exists even on freestanding compilers.  */
38569
38570 #ifdef __STDC__
38571 # include <limits.h>
38572 #else
38573 # include <assert.h>
38574 #endif
38575
38576 #undef $ac_func
38577
38578 /* Override any GCC internal prototype to avoid an error.
38579    Use char because int might match the return type of a GCC
38580    builtin and then its argument prototype would still apply.  */
38581 #ifdef __cplusplus
38582 extern "C"
38583 #endif
38584 char $ac_func ();
38585 /* The GNU C library defines this for functions which it implements
38586     to always fail with ENOSYS.  Some functions are actually named
38587     something starting with __ and the normal name is an alias.  */
38588 #if defined __stub_$ac_func || defined __stub___$ac_func
38589 choke me
38590 #endif
38591
38592 int
38593 main ()
38594 {
38595 return $ac_func ();
38596   ;
38597   return 0;
38598 }
38599 _ACEOF
38600 rm -f conftest.$ac_objext conftest$ac_exeext
38601 if { (ac_try="$ac_link"
38602 case "(($ac_try" in
38603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38604   *) ac_try_echo=$ac_try;;
38605 esac
38606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38607   (eval "$ac_link") 2>conftest.er1
38608   ac_status=$?
38609   grep -v '^ *+' conftest.er1 >conftest.err
38610   rm -f conftest.er1
38611   cat conftest.err >&5
38612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38613   (exit $ac_status); } && {
38614          test -z "$ac_c_werror_flag" ||
38615          test ! -s conftest.err
38616        } && test -s conftest$ac_exeext &&
38617        $as_test_x conftest$ac_exeext; then
38618   eval "$as_ac_var=yes"
38619 else
38620   echo "$as_me: failed program was:" >&5
38621 sed 's/^/| /' conftest.$ac_ext >&5
38622
38623         eval "$as_ac_var=no"
38624 fi
38625
38626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38627       conftest$ac_exeext conftest.$ac_ext
38628 fi
38629 ac_res=`eval echo '${'$as_ac_var'}'`
38630                { echo "$as_me:$LINENO: result: $ac_res" >&5
38631 echo "${ECHO_T}$ac_res" >&6; }
38632 if test `eval echo '${'$as_ac_var'}'` = yes; then
38633   cat >>confdefs.h <<_ACEOF
38634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38635 _ACEOF
38636  break
38637 fi
38638 done
38639
38640 if test "$ac_cv_func_setenv" = "yes"; then
38641
38642 for ac_func in unsetenv
38643 do
38644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38648   echo $ECHO_N "(cached) $ECHO_C" >&6
38649 else
38650   cat >conftest.$ac_ext <<_ACEOF
38651 /* confdefs.h.  */
38652 _ACEOF
38653 cat confdefs.h >>conftest.$ac_ext
38654 cat >>conftest.$ac_ext <<_ACEOF
38655 /* end confdefs.h.  */
38656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38658 #define $ac_func innocuous_$ac_func
38659
38660 /* System header to define __stub macros and hopefully few prototypes,
38661     which can conflict with char $ac_func (); below.
38662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38663     <limits.h> exists even on freestanding compilers.  */
38664
38665 #ifdef __STDC__
38666 # include <limits.h>
38667 #else
38668 # include <assert.h>
38669 #endif
38670
38671 #undef $ac_func
38672
38673 /* Override any GCC internal prototype to avoid an error.
38674    Use char because int might match the return type of a GCC
38675    builtin and then its argument prototype would still apply.  */
38676 #ifdef __cplusplus
38677 extern "C"
38678 #endif
38679 char $ac_func ();
38680 /* The GNU C library defines this for functions which it implements
38681     to always fail with ENOSYS.  Some functions are actually named
38682     something starting with __ and the normal name is an alias.  */
38683 #if defined __stub_$ac_func || defined __stub___$ac_func
38684 choke me
38685 #endif
38686
38687 int
38688 main ()
38689 {
38690 return $ac_func ();
38691   ;
38692   return 0;
38693 }
38694 _ACEOF
38695 rm -f conftest.$ac_objext conftest$ac_exeext
38696 if { (ac_try="$ac_link"
38697 case "(($ac_try" in
38698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38699   *) ac_try_echo=$ac_try;;
38700 esac
38701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38702   (eval "$ac_link") 2>conftest.er1
38703   ac_status=$?
38704   grep -v '^ *+' conftest.er1 >conftest.err
38705   rm -f conftest.er1
38706   cat conftest.err >&5
38707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38708   (exit $ac_status); } && {
38709          test -z "$ac_c_werror_flag" ||
38710          test ! -s conftest.err
38711        } && test -s conftest$ac_exeext &&
38712        $as_test_x conftest$ac_exeext; then
38713   eval "$as_ac_var=yes"
38714 else
38715   echo "$as_me: failed program was:" >&5
38716 sed 's/^/| /' conftest.$ac_ext >&5
38717
38718         eval "$as_ac_var=no"
38719 fi
38720
38721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38722       conftest$ac_exeext conftest.$ac_ext
38723 fi
38724 ac_res=`eval echo '${'$as_ac_var'}'`
38725                { echo "$as_me:$LINENO: result: $ac_res" >&5
38726 echo "${ECHO_T}$ac_res" >&6; }
38727 if test `eval echo '${'$as_ac_var'}'` = yes; then
38728   cat >>confdefs.h <<_ACEOF
38729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38730 _ACEOF
38731
38732 fi
38733 done
38734
38735 fi
38736
38737 HAVE_SOME_SLEEP_FUNC=0
38738 if test "$USE_BEOS" = 1; then
38739             cat >>confdefs.h <<\_ACEOF
38740 #define HAVE_SLEEP 1
38741 _ACEOF
38742
38743     HAVE_SOME_SLEEP_FUNC=1
38744 fi
38745
38746 if test "$USE_DARWIN" = 1; then
38747             cat >>confdefs.h <<\_ACEOF
38748 #define HAVE_USLEEP 1
38749 _ACEOF
38750
38751     HAVE_SOME_SLEEP_FUNC=1
38752 fi
38753
38754 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38755         POSIX4_LINK=
38756
38757 for ac_func in nanosleep
38758 do
38759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38763   echo $ECHO_N "(cached) $ECHO_C" >&6
38764 else
38765   cat >conftest.$ac_ext <<_ACEOF
38766 /* confdefs.h.  */
38767 _ACEOF
38768 cat confdefs.h >>conftest.$ac_ext
38769 cat >>conftest.$ac_ext <<_ACEOF
38770 /* end confdefs.h.  */
38771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38773 #define $ac_func innocuous_$ac_func
38774
38775 /* System header to define __stub macros and hopefully few prototypes,
38776     which can conflict with char $ac_func (); below.
38777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38778     <limits.h> exists even on freestanding compilers.  */
38779
38780 #ifdef __STDC__
38781 # include <limits.h>
38782 #else
38783 # include <assert.h>
38784 #endif
38785
38786 #undef $ac_func
38787
38788 /* Override any GCC internal prototype to avoid an error.
38789    Use char because int might match the return type of a GCC
38790    builtin and then its argument prototype would still apply.  */
38791 #ifdef __cplusplus
38792 extern "C"
38793 #endif
38794 char $ac_func ();
38795 /* The GNU C library defines this for functions which it implements
38796     to always fail with ENOSYS.  Some functions are actually named
38797     something starting with __ and the normal name is an alias.  */
38798 #if defined __stub_$ac_func || defined __stub___$ac_func
38799 choke me
38800 #endif
38801
38802 int
38803 main ()
38804 {
38805 return $ac_func ();
38806   ;
38807   return 0;
38808 }
38809 _ACEOF
38810 rm -f conftest.$ac_objext conftest$ac_exeext
38811 if { (ac_try="$ac_link"
38812 case "(($ac_try" in
38813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38814   *) ac_try_echo=$ac_try;;
38815 esac
38816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38817   (eval "$ac_link") 2>conftest.er1
38818   ac_status=$?
38819   grep -v '^ *+' conftest.er1 >conftest.err
38820   rm -f conftest.er1
38821   cat conftest.err >&5
38822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); } && {
38824          test -z "$ac_c_werror_flag" ||
38825          test ! -s conftest.err
38826        } && test -s conftest$ac_exeext &&
38827        $as_test_x conftest$ac_exeext; then
38828   eval "$as_ac_var=yes"
38829 else
38830   echo "$as_me: failed program was:" >&5
38831 sed 's/^/| /' conftest.$ac_ext >&5
38832
38833         eval "$as_ac_var=no"
38834 fi
38835
38836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38837       conftest$ac_exeext conftest.$ac_ext
38838 fi
38839 ac_res=`eval echo '${'$as_ac_var'}'`
38840                { echo "$as_me:$LINENO: result: $ac_res" >&5
38841 echo "${ECHO_T}$ac_res" >&6; }
38842 if test `eval echo '${'$as_ac_var'}'` = yes; then
38843   cat >>confdefs.h <<_ACEOF
38844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38845 _ACEOF
38846  cat >>confdefs.h <<\_ACEOF
38847 #define HAVE_NANOSLEEP 1
38848 _ACEOF
38849
38850 else
38851
38852             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38853 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
38854 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38855   echo $ECHO_N "(cached) $ECHO_C" >&6
38856 else
38857   ac_check_lib_save_LIBS=$LIBS
38858 LIBS="-lposix4  $LIBS"
38859 cat >conftest.$ac_ext <<_ACEOF
38860 /* confdefs.h.  */
38861 _ACEOF
38862 cat confdefs.h >>conftest.$ac_ext
38863 cat >>conftest.$ac_ext <<_ACEOF
38864 /* end confdefs.h.  */
38865
38866 /* Override any GCC internal prototype to avoid an error.
38867    Use char because int might match the return type of a GCC
38868    builtin and then its argument prototype would still apply.  */
38869 #ifdef __cplusplus
38870 extern "C"
38871 #endif
38872 char nanosleep ();
38873 int
38874 main ()
38875 {
38876 return nanosleep ();
38877   ;
38878   return 0;
38879 }
38880 _ACEOF
38881 rm -f conftest.$ac_objext conftest$ac_exeext
38882 if { (ac_try="$ac_link"
38883 case "(($ac_try" in
38884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38885   *) ac_try_echo=$ac_try;;
38886 esac
38887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38888   (eval "$ac_link") 2>conftest.er1
38889   ac_status=$?
38890   grep -v '^ *+' conftest.er1 >conftest.err
38891   rm -f conftest.er1
38892   cat conftest.err >&5
38893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894   (exit $ac_status); } && {
38895          test -z "$ac_c_werror_flag" ||
38896          test ! -s conftest.err
38897        } && test -s conftest$ac_exeext &&
38898        $as_test_x conftest$ac_exeext; then
38899   ac_cv_lib_posix4_nanosleep=yes
38900 else
38901   echo "$as_me: failed program was:" >&5
38902 sed 's/^/| /' conftest.$ac_ext >&5
38903
38904         ac_cv_lib_posix4_nanosleep=no
38905 fi
38906
38907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38908       conftest$ac_exeext conftest.$ac_ext
38909 LIBS=$ac_check_lib_save_LIBS
38910 fi
38911 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38912 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
38913 if test $ac_cv_lib_posix4_nanosleep = yes; then
38914
38915                     cat >>confdefs.h <<\_ACEOF
38916 #define HAVE_NANOSLEEP 1
38917 _ACEOF
38918
38919                     POSIX4_LINK=" -lposix4"
38920
38921 else
38922
38923
38924   for wx_func in usleep
38925   do
38926     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38927 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38928 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38929   echo $ECHO_N "(cached) $ECHO_C" >&6
38930 else
38931
38932         cat >conftest.$ac_ext <<_ACEOF
38933
38934             /* confdefs.h.  */
38935 _ACEOF
38936 cat confdefs.h >>conftest.$ac_ext
38937 cat >>conftest.$ac_ext <<_ACEOF
38938 /* end confdefs.h.  */
38939
38940
38941                 $ac_includes_default
38942
38943 int
38944 main ()
38945 {
38946
38947                 #ifndef $wx_func
38948                   &$wx_func;
38949                 #endif
38950
38951
38952   ;
38953   return 0;
38954 }
38955
38956 _ACEOF
38957 rm -f conftest.$ac_objext conftest$ac_exeext
38958 if { (ac_try="$ac_link"
38959 case "(($ac_try" in
38960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38961   *) ac_try_echo=$ac_try;;
38962 esac
38963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38964   (eval "$ac_link") 2>conftest.er1
38965   ac_status=$?
38966   grep -v '^ *+' conftest.er1 >conftest.err
38967   rm -f conftest.er1
38968   cat conftest.err >&5
38969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970   (exit $ac_status); } && {
38971          test -z "$ac_c_werror_flag" ||
38972          test ! -s conftest.err
38973        } && test -s conftest$ac_exeext &&
38974        $as_test_x conftest$ac_exeext; then
38975   eval wx_cv_func_$wx_func=yes
38976 else
38977   echo "$as_me: failed program was:" >&5
38978 sed 's/^/| /' conftest.$ac_ext >&5
38979
38980         eval wx_cv_func_$wx_func=no
38981 fi
38982
38983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38984       conftest$ac_exeext conftest.$ac_ext
38985
38986 fi
38987 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38988                { echo "$as_me:$LINENO: result: $ac_res" >&5
38989 echo "${ECHO_T}$ac_res" >&6; }
38990
38991     if eval test \$wx_cv_func_$wx_func = yes
38992     then
38993       cat >>confdefs.h <<_ACEOF
38994 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38995 _ACEOF
38996
38997
38998     else
38999       :
39000       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39001 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39002
39003     fi
39004   done
39005
39006
39007
39008 fi
39009
39010
39011
39012 fi
39013 done
39014
39015 fi
39016
39017
39018   for wx_func in uname
39019   do
39020     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39021 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39022 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39023   echo $ECHO_N "(cached) $ECHO_C" >&6
39024 else
39025
39026         cat >conftest.$ac_ext <<_ACEOF
39027
39028             /* confdefs.h.  */
39029 _ACEOF
39030 cat confdefs.h >>conftest.$ac_ext
39031 cat >>conftest.$ac_ext <<_ACEOF
39032 /* end confdefs.h.  */
39033
39034                 #include <sys/utsname.h>
39035                 $ac_includes_default
39036
39037 int
39038 main ()
39039 {
39040
39041                 #ifndef $wx_func
39042                   &$wx_func;
39043                 #endif
39044
39045
39046   ;
39047   return 0;
39048 }
39049
39050 _ACEOF
39051 rm -f conftest.$ac_objext conftest$ac_exeext
39052 if { (ac_try="$ac_link"
39053 case "(($ac_try" in
39054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39055   *) ac_try_echo=$ac_try;;
39056 esac
39057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39058   (eval "$ac_link") 2>conftest.er1
39059   ac_status=$?
39060   grep -v '^ *+' conftest.er1 >conftest.err
39061   rm -f conftest.er1
39062   cat conftest.err >&5
39063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39064   (exit $ac_status); } && {
39065          test -z "$ac_c_werror_flag" ||
39066          test ! -s conftest.err
39067        } && test -s conftest$ac_exeext &&
39068        $as_test_x conftest$ac_exeext; then
39069   eval wx_cv_func_$wx_func=yes
39070 else
39071   echo "$as_me: failed program was:" >&5
39072 sed 's/^/| /' conftest.$ac_ext >&5
39073
39074         eval wx_cv_func_$wx_func=no
39075 fi
39076
39077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39078       conftest$ac_exeext conftest.$ac_ext
39079
39080 fi
39081 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39082                { echo "$as_me:$LINENO: result: $ac_res" >&5
39083 echo "${ECHO_T}$ac_res" >&6; }
39084
39085     if eval test \$wx_cv_func_$wx_func = yes
39086     then
39087       cat >>confdefs.h <<_ACEOF
39088 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39089 _ACEOF
39090
39091
39092     else
39093       :
39094
39095     fi
39096   done
39097
39098 if test "$wx_cv_func_uname" != yes; then
39099
39100   for wx_func in gethostname
39101   do
39102     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39103 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39104 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39105   echo $ECHO_N "(cached) $ECHO_C" >&6
39106 else
39107
39108         cat >conftest.$ac_ext <<_ACEOF
39109
39110             /* confdefs.h.  */
39111 _ACEOF
39112 cat confdefs.h >>conftest.$ac_ext
39113 cat >>conftest.$ac_ext <<_ACEOF
39114 /* end confdefs.h.  */
39115
39116
39117                 $ac_includes_default
39118
39119 int
39120 main ()
39121 {
39122
39123                 #ifndef $wx_func
39124                   &$wx_func;
39125                 #endif
39126
39127
39128   ;
39129   return 0;
39130 }
39131
39132 _ACEOF
39133 rm -f conftest.$ac_objext conftest$ac_exeext
39134 if { (ac_try="$ac_link"
39135 case "(($ac_try" in
39136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39137   *) ac_try_echo=$ac_try;;
39138 esac
39139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39140   (eval "$ac_link") 2>conftest.er1
39141   ac_status=$?
39142   grep -v '^ *+' conftest.er1 >conftest.err
39143   rm -f conftest.er1
39144   cat conftest.err >&5
39145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146   (exit $ac_status); } && {
39147          test -z "$ac_c_werror_flag" ||
39148          test ! -s conftest.err
39149        } && test -s conftest$ac_exeext &&
39150        $as_test_x conftest$ac_exeext; then
39151   eval wx_cv_func_$wx_func=yes
39152 else
39153   echo "$as_me: failed program was:" >&5
39154 sed 's/^/| /' conftest.$ac_ext >&5
39155
39156         eval wx_cv_func_$wx_func=no
39157 fi
39158
39159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39160       conftest$ac_exeext conftest.$ac_ext
39161
39162 fi
39163 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39164                { echo "$as_me:$LINENO: result: $ac_res" >&5
39165 echo "${ECHO_T}$ac_res" >&6; }
39166
39167     if eval test \$wx_cv_func_$wx_func = yes
39168     then
39169       cat >>confdefs.h <<_ACEOF
39170 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39171 _ACEOF
39172
39173
39174     else
39175       :
39176
39177     fi
39178   done
39179
39180 fi
39181
39182
39183   for wx_func in strtok_r
39184   do
39185     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39186 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39187 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39188   echo $ECHO_N "(cached) $ECHO_C" >&6
39189 else
39190
39191         cat >conftest.$ac_ext <<_ACEOF
39192
39193             /* confdefs.h.  */
39194 _ACEOF
39195 cat confdefs.h >>conftest.$ac_ext
39196 cat >>conftest.$ac_ext <<_ACEOF
39197 /* end confdefs.h.  */
39198
39199                 #define _REENTRANT
39200                 $ac_includes_default
39201
39202 int
39203 main ()
39204 {
39205
39206                 #ifndef $wx_func
39207                   &$wx_func;
39208                 #endif
39209
39210
39211   ;
39212   return 0;
39213 }
39214
39215 _ACEOF
39216 rm -f conftest.$ac_objext conftest$ac_exeext
39217 if { (ac_try="$ac_link"
39218 case "(($ac_try" in
39219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39220   *) ac_try_echo=$ac_try;;
39221 esac
39222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39223   (eval "$ac_link") 2>conftest.er1
39224   ac_status=$?
39225   grep -v '^ *+' conftest.er1 >conftest.err
39226   rm -f conftest.er1
39227   cat conftest.err >&5
39228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229   (exit $ac_status); } && {
39230          test -z "$ac_c_werror_flag" ||
39231          test ! -s conftest.err
39232        } && test -s conftest$ac_exeext &&
39233        $as_test_x conftest$ac_exeext; then
39234   eval wx_cv_func_$wx_func=yes
39235 else
39236   echo "$as_me: failed program was:" >&5
39237 sed 's/^/| /' conftest.$ac_ext >&5
39238
39239         eval wx_cv_func_$wx_func=no
39240 fi
39241
39242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39243       conftest$ac_exeext conftest.$ac_ext
39244
39245 fi
39246 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39247                { echo "$as_me:$LINENO: result: $ac_res" >&5
39248 echo "${ECHO_T}$ac_res" >&6; }
39249
39250     if eval test \$wx_cv_func_$wx_func = yes
39251     then
39252       cat >>confdefs.h <<_ACEOF
39253 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39254 _ACEOF
39255
39256
39257     else
39258       :
39259
39260     fi
39261   done
39262
39263
39264 INET_LINK=
39265
39266 for ac_func in inet_addr
39267 do
39268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39272   echo $ECHO_N "(cached) $ECHO_C" >&6
39273 else
39274   cat >conftest.$ac_ext <<_ACEOF
39275 /* confdefs.h.  */
39276 _ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h.  */
39280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39282 #define $ac_func innocuous_$ac_func
39283
39284 /* System header to define __stub macros and hopefully few prototypes,
39285     which can conflict with char $ac_func (); below.
39286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39287     <limits.h> exists even on freestanding compilers.  */
39288
39289 #ifdef __STDC__
39290 # include <limits.h>
39291 #else
39292 # include <assert.h>
39293 #endif
39294
39295 #undef $ac_func
39296
39297 /* Override any GCC internal prototype to avoid an error.
39298    Use char because int might match the return type of a GCC
39299    builtin and then its argument prototype would still apply.  */
39300 #ifdef __cplusplus
39301 extern "C"
39302 #endif
39303 char $ac_func ();
39304 /* The GNU C library defines this for functions which it implements
39305     to always fail with ENOSYS.  Some functions are actually named
39306     something starting with __ and the normal name is an alias.  */
39307 #if defined __stub_$ac_func || defined __stub___$ac_func
39308 choke me
39309 #endif
39310
39311 int
39312 main ()
39313 {
39314 return $ac_func ();
39315   ;
39316   return 0;
39317 }
39318 _ACEOF
39319 rm -f conftest.$ac_objext conftest$ac_exeext
39320 if { (ac_try="$ac_link"
39321 case "(($ac_try" in
39322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39323   *) ac_try_echo=$ac_try;;
39324 esac
39325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39326   (eval "$ac_link") 2>conftest.er1
39327   ac_status=$?
39328   grep -v '^ *+' conftest.er1 >conftest.err
39329   rm -f conftest.er1
39330   cat conftest.err >&5
39331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39332   (exit $ac_status); } && {
39333          test -z "$ac_c_werror_flag" ||
39334          test ! -s conftest.err
39335        } && test -s conftest$ac_exeext &&
39336        $as_test_x conftest$ac_exeext; then
39337   eval "$as_ac_var=yes"
39338 else
39339   echo "$as_me: failed program was:" >&5
39340 sed 's/^/| /' conftest.$ac_ext >&5
39341
39342         eval "$as_ac_var=no"
39343 fi
39344
39345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39346       conftest$ac_exeext conftest.$ac_ext
39347 fi
39348 ac_res=`eval echo '${'$as_ac_var'}'`
39349                { echo "$as_me:$LINENO: result: $ac_res" >&5
39350 echo "${ECHO_T}$ac_res" >&6; }
39351 if test `eval echo '${'$as_ac_var'}'` = yes; then
39352   cat >>confdefs.h <<_ACEOF
39353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39354 _ACEOF
39355  cat >>confdefs.h <<\_ACEOF
39356 #define HAVE_INET_ADDR 1
39357 _ACEOF
39358
39359 else
39360
39361         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39362 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39363 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39364   echo $ECHO_N "(cached) $ECHO_C" >&6
39365 else
39366   ac_check_lib_save_LIBS=$LIBS
39367 LIBS="-lnsl  $LIBS"
39368 cat >conftest.$ac_ext <<_ACEOF
39369 /* confdefs.h.  */
39370 _ACEOF
39371 cat confdefs.h >>conftest.$ac_ext
39372 cat >>conftest.$ac_ext <<_ACEOF
39373 /* end confdefs.h.  */
39374
39375 /* Override any GCC internal prototype to avoid an error.
39376    Use char because int might match the return type of a GCC
39377    builtin and then its argument prototype would still apply.  */
39378 #ifdef __cplusplus
39379 extern "C"
39380 #endif
39381 char inet_addr ();
39382 int
39383 main ()
39384 {
39385 return inet_addr ();
39386   ;
39387   return 0;
39388 }
39389 _ACEOF
39390 rm -f conftest.$ac_objext conftest$ac_exeext
39391 if { (ac_try="$ac_link"
39392 case "(($ac_try" in
39393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39394   *) ac_try_echo=$ac_try;;
39395 esac
39396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39397   (eval "$ac_link") 2>conftest.er1
39398   ac_status=$?
39399   grep -v '^ *+' conftest.er1 >conftest.err
39400   rm -f conftest.er1
39401   cat conftest.err >&5
39402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403   (exit $ac_status); } && {
39404          test -z "$ac_c_werror_flag" ||
39405          test ! -s conftest.err
39406        } && test -s conftest$ac_exeext &&
39407        $as_test_x conftest$ac_exeext; then
39408   ac_cv_lib_nsl_inet_addr=yes
39409 else
39410   echo "$as_me: failed program was:" >&5
39411 sed 's/^/| /' conftest.$ac_ext >&5
39412
39413         ac_cv_lib_nsl_inet_addr=no
39414 fi
39415
39416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39417       conftest$ac_exeext conftest.$ac_ext
39418 LIBS=$ac_check_lib_save_LIBS
39419 fi
39420 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39421 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39422 if test $ac_cv_lib_nsl_inet_addr = yes; then
39423   INET_LINK="nsl"
39424 else
39425
39426                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39427 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39428 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39429   echo $ECHO_N "(cached) $ECHO_C" >&6
39430 else
39431   ac_check_lib_save_LIBS=$LIBS
39432 LIBS="-lresolv  $LIBS"
39433 cat >conftest.$ac_ext <<_ACEOF
39434 /* confdefs.h.  */
39435 _ACEOF
39436 cat confdefs.h >>conftest.$ac_ext
39437 cat >>conftest.$ac_ext <<_ACEOF
39438 /* end confdefs.h.  */
39439
39440 /* Override any GCC internal prototype to avoid an error.
39441    Use char because int might match the return type of a GCC
39442    builtin and then its argument prototype would still apply.  */
39443 #ifdef __cplusplus
39444 extern "C"
39445 #endif
39446 char inet_addr ();
39447 int
39448 main ()
39449 {
39450 return inet_addr ();
39451   ;
39452   return 0;
39453 }
39454 _ACEOF
39455 rm -f conftest.$ac_objext conftest$ac_exeext
39456 if { (ac_try="$ac_link"
39457 case "(($ac_try" in
39458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39459   *) ac_try_echo=$ac_try;;
39460 esac
39461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39462   (eval "$ac_link") 2>conftest.er1
39463   ac_status=$?
39464   grep -v '^ *+' conftest.er1 >conftest.err
39465   rm -f conftest.er1
39466   cat conftest.err >&5
39467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468   (exit $ac_status); } && {
39469          test -z "$ac_c_werror_flag" ||
39470          test ! -s conftest.err
39471        } && test -s conftest$ac_exeext &&
39472        $as_test_x conftest$ac_exeext; then
39473   ac_cv_lib_resolv_inet_addr=yes
39474 else
39475   echo "$as_me: failed program was:" >&5
39476 sed 's/^/| /' conftest.$ac_ext >&5
39477
39478         ac_cv_lib_resolv_inet_addr=no
39479 fi
39480
39481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39482       conftest$ac_exeext conftest.$ac_ext
39483 LIBS=$ac_check_lib_save_LIBS
39484 fi
39485 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39486 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39487 if test $ac_cv_lib_resolv_inet_addr = yes; then
39488   INET_LINK="resolv"
39489 else
39490
39491                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39492 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39493 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39494   echo $ECHO_N "(cached) $ECHO_C" >&6
39495 else
39496   ac_check_lib_save_LIBS=$LIBS
39497 LIBS="-lsocket  $LIBS"
39498 cat >conftest.$ac_ext <<_ACEOF
39499 /* confdefs.h.  */
39500 _ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h.  */
39504
39505 /* Override any GCC internal prototype to avoid an error.
39506    Use char because int might match the return type of a GCC
39507    builtin and then its argument prototype would still apply.  */
39508 #ifdef __cplusplus
39509 extern "C"
39510 #endif
39511 char inet_addr ();
39512 int
39513 main ()
39514 {
39515 return inet_addr ();
39516   ;
39517   return 0;
39518 }
39519 _ACEOF
39520 rm -f conftest.$ac_objext conftest$ac_exeext
39521 if { (ac_try="$ac_link"
39522 case "(($ac_try" in
39523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39524   *) ac_try_echo=$ac_try;;
39525 esac
39526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39527   (eval "$ac_link") 2>conftest.er1
39528   ac_status=$?
39529   grep -v '^ *+' conftest.er1 >conftest.err
39530   rm -f conftest.er1
39531   cat conftest.err >&5
39532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533   (exit $ac_status); } && {
39534          test -z "$ac_c_werror_flag" ||
39535          test ! -s conftest.err
39536        } && test -s conftest$ac_exeext &&
39537        $as_test_x conftest$ac_exeext; then
39538   ac_cv_lib_socket_inet_addr=yes
39539 else
39540   echo "$as_me: failed program was:" >&5
39541 sed 's/^/| /' conftest.$ac_ext >&5
39542
39543         ac_cv_lib_socket_inet_addr=no
39544 fi
39545
39546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39547       conftest$ac_exeext conftest.$ac_ext
39548 LIBS=$ac_check_lib_save_LIBS
39549 fi
39550 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39551 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
39552 if test $ac_cv_lib_socket_inet_addr = yes; then
39553   INET_LINK="socket"
39554
39555 fi
39556
39557
39558
39559 fi
39560
39561
39562
39563 fi
39564
39565
39566
39567 fi
39568 done
39569
39570
39571
39572 for ac_func in inet_aton
39573 do
39574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39578   echo $ECHO_N "(cached) $ECHO_C" >&6
39579 else
39580   cat >conftest.$ac_ext <<_ACEOF
39581 /* confdefs.h.  */
39582 _ACEOF
39583 cat confdefs.h >>conftest.$ac_ext
39584 cat >>conftest.$ac_ext <<_ACEOF
39585 /* end confdefs.h.  */
39586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39588 #define $ac_func innocuous_$ac_func
39589
39590 /* System header to define __stub macros and hopefully few prototypes,
39591     which can conflict with char $ac_func (); below.
39592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39593     <limits.h> exists even on freestanding compilers.  */
39594
39595 #ifdef __STDC__
39596 # include <limits.h>
39597 #else
39598 # include <assert.h>
39599 #endif
39600
39601 #undef $ac_func
39602
39603 /* Override any GCC internal prototype to avoid an error.
39604    Use char because int might match the return type of a GCC
39605    builtin and then its argument prototype would still apply.  */
39606 #ifdef __cplusplus
39607 extern "C"
39608 #endif
39609 char $ac_func ();
39610 /* The GNU C library defines this for functions which it implements
39611     to always fail with ENOSYS.  Some functions are actually named
39612     something starting with __ and the normal name is an alias.  */
39613 #if defined __stub_$ac_func || defined __stub___$ac_func
39614 choke me
39615 #endif
39616
39617 int
39618 main ()
39619 {
39620 return $ac_func ();
39621   ;
39622   return 0;
39623 }
39624 _ACEOF
39625 rm -f conftest.$ac_objext conftest$ac_exeext
39626 if { (ac_try="$ac_link"
39627 case "(($ac_try" in
39628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39629   *) ac_try_echo=$ac_try;;
39630 esac
39631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39632   (eval "$ac_link") 2>conftest.er1
39633   ac_status=$?
39634   grep -v '^ *+' conftest.er1 >conftest.err
39635   rm -f conftest.er1
39636   cat conftest.err >&5
39637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638   (exit $ac_status); } && {
39639          test -z "$ac_c_werror_flag" ||
39640          test ! -s conftest.err
39641        } && test -s conftest$ac_exeext &&
39642        $as_test_x conftest$ac_exeext; then
39643   eval "$as_ac_var=yes"
39644 else
39645   echo "$as_me: failed program was:" >&5
39646 sed 's/^/| /' conftest.$ac_ext >&5
39647
39648         eval "$as_ac_var=no"
39649 fi
39650
39651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39652       conftest$ac_exeext conftest.$ac_ext
39653 fi
39654 ac_res=`eval echo '${'$as_ac_var'}'`
39655                { echo "$as_me:$LINENO: result: $ac_res" >&5
39656 echo "${ECHO_T}$ac_res" >&6; }
39657 if test `eval echo '${'$as_ac_var'}'` = yes; then
39658   cat >>confdefs.h <<_ACEOF
39659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39660 _ACEOF
39661  cat >>confdefs.h <<\_ACEOF
39662 #define HAVE_INET_ATON 1
39663 _ACEOF
39664
39665 else
39666
39667                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39668 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39669 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
39670 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39671   echo $ECHO_N "(cached) $ECHO_C" >&6
39672 else
39673   ac_check_lib_save_LIBS=$LIBS
39674 LIBS="-l$INET_LINK  $LIBS"
39675 cat >conftest.$ac_ext <<_ACEOF
39676 /* confdefs.h.  */
39677 _ACEOF
39678 cat confdefs.h >>conftest.$ac_ext
39679 cat >>conftest.$ac_ext <<_ACEOF
39680 /* end confdefs.h.  */
39681
39682 /* Override any GCC internal prototype to avoid an error.
39683    Use char because int might match the return type of a GCC
39684    builtin and then its argument prototype would still apply.  */
39685 #ifdef __cplusplus
39686 extern "C"
39687 #endif
39688 char inet_aton ();
39689 int
39690 main ()
39691 {
39692 return inet_aton ();
39693   ;
39694   return 0;
39695 }
39696 _ACEOF
39697 rm -f conftest.$ac_objext conftest$ac_exeext
39698 if { (ac_try="$ac_link"
39699 case "(($ac_try" in
39700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39701   *) ac_try_echo=$ac_try;;
39702 esac
39703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39704   (eval "$ac_link") 2>conftest.er1
39705   ac_status=$?
39706   grep -v '^ *+' conftest.er1 >conftest.err
39707   rm -f conftest.er1
39708   cat conftest.err >&5
39709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710   (exit $ac_status); } && {
39711          test -z "$ac_c_werror_flag" ||
39712          test ! -s conftest.err
39713        } && test -s conftest$ac_exeext &&
39714        $as_test_x conftest$ac_exeext; then
39715   eval "$as_ac_Lib=yes"
39716 else
39717   echo "$as_me: failed program was:" >&5
39718 sed 's/^/| /' conftest.$ac_ext >&5
39719
39720         eval "$as_ac_Lib=no"
39721 fi
39722
39723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39724       conftest$ac_exeext conftest.$ac_ext
39725 LIBS=$ac_check_lib_save_LIBS
39726 fi
39727 ac_res=`eval echo '${'$as_ac_Lib'}'`
39728                { echo "$as_me:$LINENO: result: $ac_res" >&5
39729 echo "${ECHO_T}$ac_res" >&6; }
39730 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39731   cat >>confdefs.h <<\_ACEOF
39732 #define HAVE_INET_ATON 1
39733 _ACEOF
39734
39735 fi
39736
39737
39738 fi
39739 done
39740
39741
39742 if test "x$INET_LINK" != "x"; then
39743     cat >>confdefs.h <<\_ACEOF
39744 #define HAVE_INET_ADDR 1
39745 _ACEOF
39746
39747     INET_LINK=" -l$INET_LINK"
39748 fi
39749
39750
39751   for wx_func in fdopen
39752   do
39753     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39754 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39755 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39756   echo $ECHO_N "(cached) $ECHO_C" >&6
39757 else
39758
39759         cat >conftest.$ac_ext <<_ACEOF
39760
39761             /* confdefs.h.  */
39762 _ACEOF
39763 cat confdefs.h >>conftest.$ac_ext
39764 cat >>conftest.$ac_ext <<_ACEOF
39765 /* end confdefs.h.  */
39766
39767
39768                 $ac_includes_default
39769
39770 int
39771 main ()
39772 {
39773
39774                 #ifndef $wx_func
39775                   &$wx_func;
39776                 #endif
39777
39778
39779   ;
39780   return 0;
39781 }
39782
39783 _ACEOF
39784 rm -f conftest.$ac_objext conftest$ac_exeext
39785 if { (ac_try="$ac_link"
39786 case "(($ac_try" in
39787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39788   *) ac_try_echo=$ac_try;;
39789 esac
39790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39791   (eval "$ac_link") 2>conftest.er1
39792   ac_status=$?
39793   grep -v '^ *+' conftest.er1 >conftest.err
39794   rm -f conftest.er1
39795   cat conftest.err >&5
39796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797   (exit $ac_status); } && {
39798          test -z "$ac_c_werror_flag" ||
39799          test ! -s conftest.err
39800        } && test -s conftest$ac_exeext &&
39801        $as_test_x conftest$ac_exeext; then
39802   eval wx_cv_func_$wx_func=yes
39803 else
39804   echo "$as_me: failed program was:" >&5
39805 sed 's/^/| /' conftest.$ac_ext >&5
39806
39807         eval wx_cv_func_$wx_func=no
39808 fi
39809
39810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39811       conftest$ac_exeext conftest.$ac_ext
39812
39813 fi
39814 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39815                { echo "$as_me:$LINENO: result: $ac_res" >&5
39816 echo "${ECHO_T}$ac_res" >&6; }
39817
39818     if eval test \$wx_cv_func_$wx_func = yes
39819     then
39820       cat >>confdefs.h <<_ACEOF
39821 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39822 _ACEOF
39823
39824
39825     else
39826       :
39827
39828     fi
39829   done
39830
39831
39832 if test "$wxUSE_TARSTREAM" = "yes"; then
39833
39834   for wx_func in sysconf
39835   do
39836     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39837 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39838 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39839   echo $ECHO_N "(cached) $ECHO_C" >&6
39840 else
39841
39842         cat >conftest.$ac_ext <<_ACEOF
39843
39844             /* confdefs.h.  */
39845 _ACEOF
39846 cat confdefs.h >>conftest.$ac_ext
39847 cat >>conftest.$ac_ext <<_ACEOF
39848 /* end confdefs.h.  */
39849
39850
39851                 $ac_includes_default
39852
39853 int
39854 main ()
39855 {
39856
39857                 #ifndef $wx_func
39858                   &$wx_func;
39859                 #endif
39860
39861
39862   ;
39863   return 0;
39864 }
39865
39866 _ACEOF
39867 rm -f conftest.$ac_objext conftest$ac_exeext
39868 if { (ac_try="$ac_link"
39869 case "(($ac_try" in
39870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39871   *) ac_try_echo=$ac_try;;
39872 esac
39873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39874   (eval "$ac_link") 2>conftest.er1
39875   ac_status=$?
39876   grep -v '^ *+' conftest.er1 >conftest.err
39877   rm -f conftest.er1
39878   cat conftest.err >&5
39879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880   (exit $ac_status); } && {
39881          test -z "$ac_c_werror_flag" ||
39882          test ! -s conftest.err
39883        } && test -s conftest$ac_exeext &&
39884        $as_test_x conftest$ac_exeext; then
39885   eval wx_cv_func_$wx_func=yes
39886 else
39887   echo "$as_me: failed program was:" >&5
39888 sed 's/^/| /' conftest.$ac_ext >&5
39889
39890         eval wx_cv_func_$wx_func=no
39891 fi
39892
39893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39894       conftest$ac_exeext conftest.$ac_ext
39895
39896 fi
39897 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39898                { echo "$as_me:$LINENO: result: $ac_res" >&5
39899 echo "${ECHO_T}$ac_res" >&6; }
39900
39901     if eval test \$wx_cv_func_$wx_func = yes
39902     then
39903       cat >>confdefs.h <<_ACEOF
39904 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39905 _ACEOF
39906
39907
39908     else
39909       :
39910
39911     fi
39912   done
39913
39914
39915
39916   for wx_func in getpwuid_r
39917   do
39918     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39919 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39920 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39921   echo $ECHO_N "(cached) $ECHO_C" >&6
39922 else
39923
39924         cat >conftest.$ac_ext <<_ACEOF
39925
39926             /* confdefs.h.  */
39927 _ACEOF
39928 cat confdefs.h >>conftest.$ac_ext
39929 cat >>conftest.$ac_ext <<_ACEOF
39930 /* end confdefs.h.  */
39931
39932
39933                     #define _REENTRANT
39934                     #include <pwd.h>
39935
39936                 $ac_includes_default
39937
39938 int
39939 main ()
39940 {
39941
39942                 #ifndef $wx_func
39943                   &$wx_func;
39944                 #endif
39945
39946                     struct passwd pw, *ppw;
39947                     char buf[1024];
39948                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
39949
39950
39951   ;
39952   return 0;
39953 }
39954
39955 _ACEOF
39956 rm -f conftest.$ac_objext conftest$ac_exeext
39957 if { (ac_try="$ac_link"
39958 case "(($ac_try" in
39959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39960   *) ac_try_echo=$ac_try;;
39961 esac
39962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39963   (eval "$ac_link") 2>conftest.er1
39964   ac_status=$?
39965   grep -v '^ *+' conftest.er1 >conftest.err
39966   rm -f conftest.er1
39967   cat conftest.err >&5
39968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969   (exit $ac_status); } && {
39970          test -z "$ac_c_werror_flag" ||
39971          test ! -s conftest.err
39972        } && test -s conftest$ac_exeext &&
39973        $as_test_x conftest$ac_exeext; then
39974   eval wx_cv_func_$wx_func=yes
39975 else
39976   echo "$as_me: failed program was:" >&5
39977 sed 's/^/| /' conftest.$ac_ext >&5
39978
39979         eval wx_cv_func_$wx_func=no
39980 fi
39981
39982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39983       conftest$ac_exeext conftest.$ac_ext
39984
39985 fi
39986 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39987                { echo "$as_me:$LINENO: result: $ac_res" >&5
39988 echo "${ECHO_T}$ac_res" >&6; }
39989
39990     if eval test \$wx_cv_func_$wx_func = yes
39991     then
39992       cat >>confdefs.h <<_ACEOF
39993 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39994 _ACEOF
39995
39996
39997     else
39998       :
39999
40000     fi
40001   done
40002
40003
40004
40005   for wx_func in getgrgid_r
40006   do
40007     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40008 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40009 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40010   echo $ECHO_N "(cached) $ECHO_C" >&6
40011 else
40012
40013         cat >conftest.$ac_ext <<_ACEOF
40014
40015             /* confdefs.h.  */
40016 _ACEOF
40017 cat confdefs.h >>conftest.$ac_ext
40018 cat >>conftest.$ac_ext <<_ACEOF
40019 /* end confdefs.h.  */
40020
40021
40022                     #define _REENTRANT
40023                     #include <grp.h>
40024
40025                 $ac_includes_default
40026
40027 int
40028 main ()
40029 {
40030
40031                 #ifndef $wx_func
40032                   &$wx_func;
40033                 #endif
40034
40035                     struct group grp, *pgrp;
40036                     char buf[1024];
40037                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40038
40039
40040   ;
40041   return 0;
40042 }
40043
40044 _ACEOF
40045 rm -f conftest.$ac_objext conftest$ac_exeext
40046 if { (ac_try="$ac_link"
40047 case "(($ac_try" in
40048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40049   *) ac_try_echo=$ac_try;;
40050 esac
40051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40052   (eval "$ac_link") 2>conftest.er1
40053   ac_status=$?
40054   grep -v '^ *+' conftest.er1 >conftest.err
40055   rm -f conftest.er1
40056   cat conftest.err >&5
40057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058   (exit $ac_status); } && {
40059          test -z "$ac_c_werror_flag" ||
40060          test ! -s conftest.err
40061        } && test -s conftest$ac_exeext &&
40062        $as_test_x conftest$ac_exeext; then
40063   eval wx_cv_func_$wx_func=yes
40064 else
40065   echo "$as_me: failed program was:" >&5
40066 sed 's/^/| /' conftest.$ac_ext >&5
40067
40068         eval wx_cv_func_$wx_func=no
40069 fi
40070
40071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40072       conftest$ac_exeext conftest.$ac_ext
40073
40074 fi
40075 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40076                { echo "$as_me:$LINENO: result: $ac_res" >&5
40077 echo "${ECHO_T}$ac_res" >&6; }
40078
40079     if eval test \$wx_cv_func_$wx_func = yes
40080     then
40081       cat >>confdefs.h <<_ACEOF
40082 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40083 _ACEOF
40084
40085
40086     else
40087       :
40088
40089     fi
40090   done
40091
40092 fi
40093
40094 fi
40095
40096
40097
40098 cat >confcache <<\_ACEOF
40099 # This file is a shell script that caches the results of configure
40100 # tests run on this system so they can be shared between configure
40101 # scripts and configure runs, see configure's option --config-cache.
40102 # It is not useful on other systems.  If it contains results you don't
40103 # want to keep, you may remove or edit it.
40104 #
40105 # config.status only pays attention to the cache file if you give it
40106 # the --recheck option to rerun configure.
40107 #
40108 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40109 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40110 # following values.
40111
40112 _ACEOF
40113
40114 # The following way of writing the cache mishandles newlines in values,
40115 # but we know of no workaround that is simple, portable, and efficient.
40116 # So, we kill variables containing newlines.
40117 # Ultrix sh set writes to stderr and can't be redirected directly,
40118 # and sets the high bit in the cache file unless we assign to the vars.
40119 (
40120   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40121     eval ac_val=\$$ac_var
40122     case $ac_val in #(
40123     *${as_nl}*)
40124       case $ac_var in #(
40125       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40126 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40127       esac
40128       case $ac_var in #(
40129       _ | IFS | as_nl) ;; #(
40130       *) $as_unset $ac_var ;;
40131       esac ;;
40132     esac
40133   done
40134
40135   (set) 2>&1 |
40136     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40137     *${as_nl}ac_space=\ *)
40138       # `set' does not quote correctly, so add quotes (double-quote
40139       # substitution turns \\\\ into \\, and sed turns \\ into \).
40140       sed -n \
40141         "s/'/'\\\\''/g;
40142           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40143       ;; #(
40144     *)
40145       # `set' quotes correctly as required by POSIX, so do not add quotes.
40146       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40147       ;;
40148     esac |
40149     sort
40150 ) |
40151   sed '
40152      /^ac_cv_env_/b end
40153      t clear
40154      :clear
40155      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40156      t end
40157      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40158      :end' >>confcache
40159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40160   if test -w "$cache_file"; then
40161     test "x$cache_file" != "x/dev/null" &&
40162       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40163 echo "$as_me: updating cache $cache_file" >&6;}
40164     cat confcache >$cache_file
40165   else
40166     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40167 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40168   fi
40169 fi
40170 rm -f confcache
40171
40172
40173 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40174
40175
40176     THREADS_LINK=
40177     THREADS_CFLAGS=
40178
40179     if test "$wxUSE_THREADS" = "yes" ; then
40180         if test "$USE_BEOS" = 1; then
40181             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40182 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40183             wxUSE_THREADS="no"
40184         fi
40185     fi
40186
40187     if test "$wxUSE_THREADS" = "yes" ; then
40188
40189
40190                                 THREAD_OPTS="-pthread"
40191         if test "x$SUNCXX" = xyes; then
40192             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40193         fi
40194
40195         case "${host}" in
40196           *-*-solaris2* | *-*-sunos4* )
40197                 if test "x$GCC" = "xyes"; then
40198                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40199                 fi
40200                 ;;
40201           *-*-freebsd*)
40202                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40203                 ;;
40204           *-*-darwin* | *-*-cygwin* )
40205                                                 THREAD_OPTS=""
40206                 ;;
40207           *-*-aix*)
40208                                 THREAD_OPTS="pthreads"
40209                 ;;
40210           *-hp-hpux* )
40211                 if test "x$GCC" = "xyes"; then
40212                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40213                         THREAD_OPTS=""
40214                 else
40215                                                             THREAD_OPTS="-mt"
40216                 fi
40217                 ;;
40218
40219           *-*-irix* )
40220                                                                 if test "x$GCC" = "xyes"; then
40221                     THREAD_OPTS=""
40222                 fi
40223                 ;;
40224
40225           *-*-qnx*)
40226                                                 THREAD_OPTS=""
40227                 ;;
40228
40229           *-*-*UnixWare*)
40230                                 if test "x$GCC" != "xyes"; then
40231                     THREAD_OPTS="-Ethread"
40232                 fi
40233                 ;;
40234         esac
40235
40236         case "${host}" in
40237             *-*-qnx*)
40238                                                                 THREAD_OPTS="none pthread"
40239                 ;;
40240
40241             *)
40242                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40243                 ;;
40244         esac
40245
40246                 THREADS_OK=no
40247         for flag in $THREAD_OPTS; do
40248             case $flag in
40249                 none)
40250                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40251 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40252                     ;;
40253
40254                 -*)
40255                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40256 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40257                     THREADS_CFLAGS="$flag"
40258                     ;;
40259
40260                 *)
40261                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40262 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40263                     THREADS_LINK="-l$flag"
40264                     ;;
40265               esac
40266
40267               save_LIBS="$LIBS"
40268               save_CFLAGS="$CFLAGS"
40269               LIBS="$THREADS_LINK $LIBS"
40270               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40271
40272               cat >conftest.$ac_ext <<_ACEOF
40273 /* confdefs.h.  */
40274 _ACEOF
40275 cat confdefs.h >>conftest.$ac_ext
40276 cat >>conftest.$ac_ext <<_ACEOF
40277 /* end confdefs.h.  */
40278 #include <pthread.h>
40279 int
40280 main ()
40281 {
40282 pthread_create(0,0,0,0);
40283   ;
40284   return 0;
40285 }
40286 _ACEOF
40287 rm -f conftest.$ac_objext conftest$ac_exeext
40288 if { (ac_try="$ac_link"
40289 case "(($ac_try" in
40290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40291   *) ac_try_echo=$ac_try;;
40292 esac
40293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40294   (eval "$ac_link") 2>conftest.er1
40295   ac_status=$?
40296   grep -v '^ *+' conftest.er1 >conftest.err
40297   rm -f conftest.er1
40298   cat conftest.err >&5
40299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40300   (exit $ac_status); } && {
40301          test -z "$ac_c_werror_flag" ||
40302          test ! -s conftest.err
40303        } && test -s conftest$ac_exeext &&
40304        $as_test_x conftest$ac_exeext; then
40305   THREADS_OK=yes
40306 else
40307   echo "$as_me: failed program was:" >&5
40308 sed 's/^/| /' conftest.$ac_ext >&5
40309
40310
40311 fi
40312
40313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40314       conftest$ac_exeext conftest.$ac_ext
40315
40316               LIBS="$save_LIBS"
40317               CFLAGS="$save_CFLAGS"
40318
40319               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40320 echo "${ECHO_T}$THREADS_OK" >&6; }
40321               if test "x$THREADS_OK" = "xyes"; then
40322                       break;
40323               fi
40324
40325               THREADS_LINK=""
40326               THREADS_CFLAGS=""
40327       done
40328
40329       if test "x$THREADS_OK" != "xyes"; then
40330           wxUSE_THREADS=no
40331           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40332 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40333       else
40334                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40335           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40336           LIBS="$THREADS_LINK $LIBS"
40337
40338           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40339 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40340           flag=no
40341           case "${host}" in
40342             *-aix*)
40343                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40344                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40345                 flag="-D_THREAD_SAFE"
40346                 ;;
40347             *-freebsd*)
40348                 flag="-D_THREAD_SAFE"
40349                 ;;
40350             *-hp-hpux* )
40351                 flag="-D_REENTRANT"
40352                 if test "x$GCC" != "xyes"; then
40353                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40354                 fi
40355                 ;;
40356             *solaris* | alpha*-osf*)
40357                 flag="-D_REENTRANT"
40358                 ;;
40359           esac
40360           { echo "$as_me:$LINENO: result: ${flag}" >&5
40361 echo "${ECHO_T}${flag}" >&6; }
40362           if test "x$flag" != xno; then
40363               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40364           fi
40365
40366                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40367       fi
40368     fi
40369
40370         if test "$wxUSE_THREADS" = "yes" ; then
40371
40372 for ac_func in thr_setconcurrency
40373 do
40374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40378   echo $ECHO_N "(cached) $ECHO_C" >&6
40379 else
40380   cat >conftest.$ac_ext <<_ACEOF
40381 /* confdefs.h.  */
40382 _ACEOF
40383 cat confdefs.h >>conftest.$ac_ext
40384 cat >>conftest.$ac_ext <<_ACEOF
40385 /* end confdefs.h.  */
40386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40388 #define $ac_func innocuous_$ac_func
40389
40390 /* System header to define __stub macros and hopefully few prototypes,
40391     which can conflict with char $ac_func (); below.
40392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40393     <limits.h> exists even on freestanding compilers.  */
40394
40395 #ifdef __STDC__
40396 # include <limits.h>
40397 #else
40398 # include <assert.h>
40399 #endif
40400
40401 #undef $ac_func
40402
40403 /* Override any GCC internal prototype to avoid an error.
40404    Use char because int might match the return type of a GCC
40405    builtin and then its argument prototype would still apply.  */
40406 #ifdef __cplusplus
40407 extern "C"
40408 #endif
40409 char $ac_func ();
40410 /* The GNU C library defines this for functions which it implements
40411     to always fail with ENOSYS.  Some functions are actually named
40412     something starting with __ and the normal name is an alias.  */
40413 #if defined __stub_$ac_func || defined __stub___$ac_func
40414 choke me
40415 #endif
40416
40417 int
40418 main ()
40419 {
40420 return $ac_func ();
40421   ;
40422   return 0;
40423 }
40424 _ACEOF
40425 rm -f conftest.$ac_objext conftest$ac_exeext
40426 if { (ac_try="$ac_link"
40427 case "(($ac_try" in
40428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40429   *) ac_try_echo=$ac_try;;
40430 esac
40431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40432   (eval "$ac_link") 2>conftest.er1
40433   ac_status=$?
40434   grep -v '^ *+' conftest.er1 >conftest.err
40435   rm -f conftest.er1
40436   cat conftest.err >&5
40437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40438   (exit $ac_status); } && {
40439          test -z "$ac_c_werror_flag" ||
40440          test ! -s conftest.err
40441        } && test -s conftest$ac_exeext &&
40442        $as_test_x conftest$ac_exeext; then
40443   eval "$as_ac_var=yes"
40444 else
40445   echo "$as_me: failed program was:" >&5
40446 sed 's/^/| /' conftest.$ac_ext >&5
40447
40448         eval "$as_ac_var=no"
40449 fi
40450
40451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40452       conftest$ac_exeext conftest.$ac_ext
40453 fi
40454 ac_res=`eval echo '${'$as_ac_var'}'`
40455                { echo "$as_me:$LINENO: result: $ac_res" >&5
40456 echo "${ECHO_T}$ac_res" >&6; }
40457 if test `eval echo '${'$as_ac_var'}'` = yes; then
40458   cat >>confdefs.h <<_ACEOF
40459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40460 _ACEOF
40461
40462 fi
40463 done
40464
40465
40466                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40467 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40468 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40469   echo $ECHO_N "(cached) $ECHO_C" >&6
40470 else
40471
40472                                 ac_ext=cpp
40473 ac_cpp='$CXXCPP $CPPFLAGS'
40474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40477
40478         cat >conftest.$ac_ext <<_ACEOF
40479 /* confdefs.h.  */
40480 _ACEOF
40481 cat confdefs.h >>conftest.$ac_ext
40482 cat >>conftest.$ac_ext <<_ACEOF
40483 /* end confdefs.h.  */
40484 #include <pthread.h>
40485                void ThreadCleanupFunc(void *p);
40486
40487 int
40488 main ()
40489 {
40490
40491                 void *p;
40492                 pthread_cleanup_push(ThreadCleanupFunc, p);
40493                 pthread_cleanup_pop(0);
40494
40495   ;
40496   return 0;
40497 }
40498 _ACEOF
40499 rm -f conftest.$ac_objext
40500 if { (ac_try="$ac_compile"
40501 case "(($ac_try" in
40502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40503   *) ac_try_echo=$ac_try;;
40504 esac
40505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40506   (eval "$ac_compile") 2>conftest.er1
40507   ac_status=$?
40508   grep -v '^ *+' conftest.er1 >conftest.err
40509   rm -f conftest.er1
40510   cat conftest.err >&5
40511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40512   (exit $ac_status); } && {
40513          test -z "$ac_cxx_werror_flag" ||
40514          test ! -s conftest.err
40515        } && test -s conftest.$ac_objext; then
40516
40517                wx_cv_func_pthread_cleanup=yes
40518
40519 else
40520   echo "$as_me: failed program was:" >&5
40521 sed 's/^/| /' conftest.$ac_ext >&5
40522
40523
40524                wx_cv_func_pthread_cleanup=no
40525
40526
40527 fi
40528
40529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40530         ac_ext=c
40531 ac_cpp='$CPP $CPPFLAGS'
40532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40535
40536
40537 fi
40538 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40539 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
40540       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40541         cat >>confdefs.h <<\_ACEOF
40542 #define wxHAVE_PTHREAD_CLEANUP 1
40543 _ACEOF
40544
40545       fi
40546
40547
40548 for ac_header in sched.h
40549 do
40550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40554   echo $ECHO_N "(cached) $ECHO_C" >&6
40555 else
40556   cat >conftest.$ac_ext <<_ACEOF
40557 /* confdefs.h.  */
40558 _ACEOF
40559 cat confdefs.h >>conftest.$ac_ext
40560 cat >>conftest.$ac_ext <<_ACEOF
40561 /* end confdefs.h.  */
40562 $ac_includes_default
40563
40564 #include <$ac_header>
40565 _ACEOF
40566 rm -f conftest.$ac_objext
40567 if { (ac_try="$ac_compile"
40568 case "(($ac_try" in
40569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40570   *) ac_try_echo=$ac_try;;
40571 esac
40572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40573   (eval "$ac_compile") 2>conftest.er1
40574   ac_status=$?
40575   grep -v '^ *+' conftest.er1 >conftest.err
40576   rm -f conftest.er1
40577   cat conftest.err >&5
40578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579   (exit $ac_status); } && {
40580          test -z "$ac_c_werror_flag" ||
40581          test ! -s conftest.err
40582        } && test -s conftest.$ac_objext; then
40583   eval "$as_ac_Header=yes"
40584 else
40585   echo "$as_me: failed program was:" >&5
40586 sed 's/^/| /' conftest.$ac_ext >&5
40587
40588         eval "$as_ac_Header=no"
40589 fi
40590
40591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40592 fi
40593 ac_res=`eval echo '${'$as_ac_Header'}'`
40594                { echo "$as_me:$LINENO: result: $ac_res" >&5
40595 echo "${ECHO_T}$ac_res" >&6; }
40596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40597   cat >>confdefs.h <<_ACEOF
40598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40599 _ACEOF
40600
40601 fi
40602
40603 done
40604
40605       if test "$ac_cv_header_sched_h" = "yes"; then
40606           { echo "$as_me:$LINENO: checking for sched_yield" >&5
40607 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
40608 if test "${ac_cv_func_sched_yield+set}" = set; then
40609   echo $ECHO_N "(cached) $ECHO_C" >&6
40610 else
40611   cat >conftest.$ac_ext <<_ACEOF
40612 /* confdefs.h.  */
40613 _ACEOF
40614 cat confdefs.h >>conftest.$ac_ext
40615 cat >>conftest.$ac_ext <<_ACEOF
40616 /* end confdefs.h.  */
40617 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40619 #define sched_yield innocuous_sched_yield
40620
40621 /* System header to define __stub macros and hopefully few prototypes,
40622     which can conflict with char sched_yield (); below.
40623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40624     <limits.h> exists even on freestanding compilers.  */
40625
40626 #ifdef __STDC__
40627 # include <limits.h>
40628 #else
40629 # include <assert.h>
40630 #endif
40631
40632 #undef sched_yield
40633
40634 /* Override any GCC internal prototype to avoid an error.
40635    Use char because int might match the return type of a GCC
40636    builtin and then its argument prototype would still apply.  */
40637 #ifdef __cplusplus
40638 extern "C"
40639 #endif
40640 char sched_yield ();
40641 /* The GNU C library defines this for functions which it implements
40642     to always fail with ENOSYS.  Some functions are actually named
40643     something starting with __ and the normal name is an alias.  */
40644 #if defined __stub_sched_yield || defined __stub___sched_yield
40645 choke me
40646 #endif
40647
40648 int
40649 main ()
40650 {
40651 return sched_yield ();
40652   ;
40653   return 0;
40654 }
40655 _ACEOF
40656 rm -f conftest.$ac_objext conftest$ac_exeext
40657 if { (ac_try="$ac_link"
40658 case "(($ac_try" in
40659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40660   *) ac_try_echo=$ac_try;;
40661 esac
40662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40663   (eval "$ac_link") 2>conftest.er1
40664   ac_status=$?
40665   grep -v '^ *+' conftest.er1 >conftest.err
40666   rm -f conftest.er1
40667   cat conftest.err >&5
40668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669   (exit $ac_status); } && {
40670          test -z "$ac_c_werror_flag" ||
40671          test ! -s conftest.err
40672        } && test -s conftest$ac_exeext &&
40673        $as_test_x conftest$ac_exeext; then
40674   ac_cv_func_sched_yield=yes
40675 else
40676   echo "$as_me: failed program was:" >&5
40677 sed 's/^/| /' conftest.$ac_ext >&5
40678
40679         ac_cv_func_sched_yield=no
40680 fi
40681
40682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40683       conftest$ac_exeext conftest.$ac_ext
40684 fi
40685 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40686 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
40687 if test $ac_cv_func_sched_yield = yes; then
40688   cat >>confdefs.h <<\_ACEOF
40689 #define HAVE_SCHED_YIELD 1
40690 _ACEOF
40691
40692 else
40693
40694                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40695 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
40696 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40697   echo $ECHO_N "(cached) $ECHO_C" >&6
40698 else
40699   ac_check_lib_save_LIBS=$LIBS
40700 LIBS="-lposix4  $LIBS"
40701 cat >conftest.$ac_ext <<_ACEOF
40702 /* confdefs.h.  */
40703 _ACEOF
40704 cat confdefs.h >>conftest.$ac_ext
40705 cat >>conftest.$ac_ext <<_ACEOF
40706 /* end confdefs.h.  */
40707
40708 /* Override any GCC internal prototype to avoid an error.
40709    Use char because int might match the return type of a GCC
40710    builtin and then its argument prototype would still apply.  */
40711 #ifdef __cplusplus
40712 extern "C"
40713 #endif
40714 char sched_yield ();
40715 int
40716 main ()
40717 {
40718 return sched_yield ();
40719   ;
40720   return 0;
40721 }
40722 _ACEOF
40723 rm -f conftest.$ac_objext conftest$ac_exeext
40724 if { (ac_try="$ac_link"
40725 case "(($ac_try" in
40726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40727   *) ac_try_echo=$ac_try;;
40728 esac
40729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40730   (eval "$ac_link") 2>conftest.er1
40731   ac_status=$?
40732   grep -v '^ *+' conftest.er1 >conftest.err
40733   rm -f conftest.er1
40734   cat conftest.err >&5
40735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736   (exit $ac_status); } && {
40737          test -z "$ac_c_werror_flag" ||
40738          test ! -s conftest.err
40739        } && test -s conftest$ac_exeext &&
40740        $as_test_x conftest$ac_exeext; then
40741   ac_cv_lib_posix4_sched_yield=yes
40742 else
40743   echo "$as_me: failed program was:" >&5
40744 sed 's/^/| /' conftest.$ac_ext >&5
40745
40746         ac_cv_lib_posix4_sched_yield=no
40747 fi
40748
40749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40750       conftest$ac_exeext conftest.$ac_ext
40751 LIBS=$ac_check_lib_save_LIBS
40752 fi
40753 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40754 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
40755 if test $ac_cv_lib_posix4_sched_yield = yes; then
40756   cat >>confdefs.h <<\_ACEOF
40757 #define HAVE_SCHED_YIELD 1
40758 _ACEOF
40759  POSIX4_LINK=" -lposix4"
40760 else
40761   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40762 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40763
40764 fi
40765
40766
40767
40768 fi
40769
40770       fi
40771
40772                                           HAVE_PRIOR_FUNCS=0
40773       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40774 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
40775 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40776   echo $ECHO_N "(cached) $ECHO_C" >&6
40777 else
40778   cat >conftest.$ac_ext <<_ACEOF
40779 /* confdefs.h.  */
40780 _ACEOF
40781 cat confdefs.h >>conftest.$ac_ext
40782 cat >>conftest.$ac_ext <<_ACEOF
40783 /* end confdefs.h.  */
40784 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40786 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40787
40788 /* System header to define __stub macros and hopefully few prototypes,
40789     which can conflict with char pthread_attr_getschedpolicy (); below.
40790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40791     <limits.h> exists even on freestanding compilers.  */
40792
40793 #ifdef __STDC__
40794 # include <limits.h>
40795 #else
40796 # include <assert.h>
40797 #endif
40798
40799 #undef pthread_attr_getschedpolicy
40800
40801 /* Override any GCC internal prototype to avoid an error.
40802    Use char because int might match the return type of a GCC
40803    builtin and then its argument prototype would still apply.  */
40804 #ifdef __cplusplus
40805 extern "C"
40806 #endif
40807 char pthread_attr_getschedpolicy ();
40808 /* The GNU C library defines this for functions which it implements
40809     to always fail with ENOSYS.  Some functions are actually named
40810     something starting with __ and the normal name is an alias.  */
40811 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
40812 choke me
40813 #endif
40814
40815 int
40816 main ()
40817 {
40818 return pthread_attr_getschedpolicy ();
40819   ;
40820   return 0;
40821 }
40822 _ACEOF
40823 rm -f conftest.$ac_objext conftest$ac_exeext
40824 if { (ac_try="$ac_link"
40825 case "(($ac_try" in
40826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40827   *) ac_try_echo=$ac_try;;
40828 esac
40829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40830   (eval "$ac_link") 2>conftest.er1
40831   ac_status=$?
40832   grep -v '^ *+' conftest.er1 >conftest.err
40833   rm -f conftest.er1
40834   cat conftest.err >&5
40835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40836   (exit $ac_status); } && {
40837          test -z "$ac_c_werror_flag" ||
40838          test ! -s conftest.err
40839        } && test -s conftest$ac_exeext &&
40840        $as_test_x conftest$ac_exeext; then
40841   ac_cv_func_pthread_attr_getschedpolicy=yes
40842 else
40843   echo "$as_me: failed program was:" >&5
40844 sed 's/^/| /' conftest.$ac_ext >&5
40845
40846         ac_cv_func_pthread_attr_getschedpolicy=no
40847 fi
40848
40849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40850       conftest$ac_exeext conftest.$ac_ext
40851 fi
40852 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40853 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
40854 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40855   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40856 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
40857 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40858   echo $ECHO_N "(cached) $ECHO_C" >&6
40859 else
40860   cat >conftest.$ac_ext <<_ACEOF
40861 /* confdefs.h.  */
40862 _ACEOF
40863 cat confdefs.h >>conftest.$ac_ext
40864 cat >>conftest.$ac_ext <<_ACEOF
40865 /* end confdefs.h.  */
40866 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40868 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40869
40870 /* System header to define __stub macros and hopefully few prototypes,
40871     which can conflict with char pthread_attr_setschedparam (); below.
40872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40873     <limits.h> exists even on freestanding compilers.  */
40874
40875 #ifdef __STDC__
40876 # include <limits.h>
40877 #else
40878 # include <assert.h>
40879 #endif
40880
40881 #undef pthread_attr_setschedparam
40882
40883 /* Override any GCC internal prototype to avoid an error.
40884    Use char because int might match the return type of a GCC
40885    builtin and then its argument prototype would still apply.  */
40886 #ifdef __cplusplus
40887 extern "C"
40888 #endif
40889 char pthread_attr_setschedparam ();
40890 /* The GNU C library defines this for functions which it implements
40891     to always fail with ENOSYS.  Some functions are actually named
40892     something starting with __ and the normal name is an alias.  */
40893 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
40894 choke me
40895 #endif
40896
40897 int
40898 main ()
40899 {
40900 return pthread_attr_setschedparam ();
40901   ;
40902   return 0;
40903 }
40904 _ACEOF
40905 rm -f conftest.$ac_objext conftest$ac_exeext
40906 if { (ac_try="$ac_link"
40907 case "(($ac_try" in
40908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40909   *) ac_try_echo=$ac_try;;
40910 esac
40911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40912   (eval "$ac_link") 2>conftest.er1
40913   ac_status=$?
40914   grep -v '^ *+' conftest.er1 >conftest.err
40915   rm -f conftest.er1
40916   cat conftest.err >&5
40917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40918   (exit $ac_status); } && {
40919          test -z "$ac_c_werror_flag" ||
40920          test ! -s conftest.err
40921        } && test -s conftest$ac_exeext &&
40922        $as_test_x conftest$ac_exeext; then
40923   ac_cv_func_pthread_attr_setschedparam=yes
40924 else
40925   echo "$as_me: failed program was:" >&5
40926 sed 's/^/| /' conftest.$ac_ext >&5
40927
40928         ac_cv_func_pthread_attr_setschedparam=no
40929 fi
40930
40931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40932       conftest$ac_exeext conftest.$ac_ext
40933 fi
40934 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40935 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
40936 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40937   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40938 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
40939 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40940   echo $ECHO_N "(cached) $ECHO_C" >&6
40941 else
40942   cat >conftest.$ac_ext <<_ACEOF
40943 /* confdefs.h.  */
40944 _ACEOF
40945 cat confdefs.h >>conftest.$ac_ext
40946 cat >>conftest.$ac_ext <<_ACEOF
40947 /* end confdefs.h.  */
40948 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40950 #define sched_get_priority_max innocuous_sched_get_priority_max
40951
40952 /* System header to define __stub macros and hopefully few prototypes,
40953     which can conflict with char sched_get_priority_max (); below.
40954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40955     <limits.h> exists even on freestanding compilers.  */
40956
40957 #ifdef __STDC__
40958 # include <limits.h>
40959 #else
40960 # include <assert.h>
40961 #endif
40962
40963 #undef sched_get_priority_max
40964
40965 /* Override any GCC internal prototype to avoid an error.
40966    Use char because int might match the return type of a GCC
40967    builtin and then its argument prototype would still apply.  */
40968 #ifdef __cplusplus
40969 extern "C"
40970 #endif
40971 char sched_get_priority_max ();
40972 /* The GNU C library defines this for functions which it implements
40973     to always fail with ENOSYS.  Some functions are actually named
40974     something starting with __ and the normal name is an alias.  */
40975 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
40976 choke me
40977 #endif
40978
40979 int
40980 main ()
40981 {
40982 return sched_get_priority_max ();
40983   ;
40984   return 0;
40985 }
40986 _ACEOF
40987 rm -f conftest.$ac_objext conftest$ac_exeext
40988 if { (ac_try="$ac_link"
40989 case "(($ac_try" in
40990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40991   *) ac_try_echo=$ac_try;;
40992 esac
40993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40994   (eval "$ac_link") 2>conftest.er1
40995   ac_status=$?
40996   grep -v '^ *+' conftest.er1 >conftest.err
40997   rm -f conftest.er1
40998   cat conftest.err >&5
40999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41000   (exit $ac_status); } && {
41001          test -z "$ac_c_werror_flag" ||
41002          test ! -s conftest.err
41003        } && test -s conftest$ac_exeext &&
41004        $as_test_x conftest$ac_exeext; then
41005   ac_cv_func_sched_get_priority_max=yes
41006 else
41007   echo "$as_me: failed program was:" >&5
41008 sed 's/^/| /' conftest.$ac_ext >&5
41009
41010         ac_cv_func_sched_get_priority_max=no
41011 fi
41012
41013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41014       conftest$ac_exeext conftest.$ac_ext
41015 fi
41016 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41017 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41018 if test $ac_cv_func_sched_get_priority_max = yes; then
41019   HAVE_PRIOR_FUNCS=1
41020 else
41021   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41022 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41023 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41024   echo $ECHO_N "(cached) $ECHO_C" >&6
41025 else
41026   ac_check_lib_save_LIBS=$LIBS
41027 LIBS="-lposix4  $LIBS"
41028 cat >conftest.$ac_ext <<_ACEOF
41029 /* confdefs.h.  */
41030 _ACEOF
41031 cat confdefs.h >>conftest.$ac_ext
41032 cat >>conftest.$ac_ext <<_ACEOF
41033 /* end confdefs.h.  */
41034
41035 /* Override any GCC internal prototype to avoid an error.
41036    Use char because int might match the return type of a GCC
41037    builtin and then its argument prototype would still apply.  */
41038 #ifdef __cplusplus
41039 extern "C"
41040 #endif
41041 char sched_get_priority_max ();
41042 int
41043 main ()
41044 {
41045 return sched_get_priority_max ();
41046   ;
41047   return 0;
41048 }
41049 _ACEOF
41050 rm -f conftest.$ac_objext conftest$ac_exeext
41051 if { (ac_try="$ac_link"
41052 case "(($ac_try" in
41053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41054   *) ac_try_echo=$ac_try;;
41055 esac
41056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41057   (eval "$ac_link") 2>conftest.er1
41058   ac_status=$?
41059   grep -v '^ *+' conftest.er1 >conftest.err
41060   rm -f conftest.er1
41061   cat conftest.err >&5
41062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063   (exit $ac_status); } && {
41064          test -z "$ac_c_werror_flag" ||
41065          test ! -s conftest.err
41066        } && test -s conftest$ac_exeext &&
41067        $as_test_x conftest$ac_exeext; then
41068   ac_cv_lib_posix4_sched_get_priority_max=yes
41069 else
41070   echo "$as_me: failed program was:" >&5
41071 sed 's/^/| /' conftest.$ac_ext >&5
41072
41073         ac_cv_lib_posix4_sched_get_priority_max=no
41074 fi
41075
41076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41077       conftest$ac_exeext conftest.$ac_ext
41078 LIBS=$ac_check_lib_save_LIBS
41079 fi
41080 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41081 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41082 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41083
41084                                 HAVE_PRIOR_FUNCS=1
41085                                 POSIX4_LINK=" -lposix4"
41086
41087 fi
41088
41089
41090 fi
41091
41092
41093 fi
41094
41095
41096 fi
41097
41098
41099       if test "$HAVE_PRIOR_FUNCS" = 1; then
41100         cat >>confdefs.h <<\_ACEOF
41101 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41102 _ACEOF
41103
41104       else
41105         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41106 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41107       fi
41108
41109       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41110 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41111 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41112   echo $ECHO_N "(cached) $ECHO_C" >&6
41113 else
41114   cat >conftest.$ac_ext <<_ACEOF
41115 /* confdefs.h.  */
41116 _ACEOF
41117 cat confdefs.h >>conftest.$ac_ext
41118 cat >>conftest.$ac_ext <<_ACEOF
41119 /* end confdefs.h.  */
41120 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41122 #define pthread_cancel innocuous_pthread_cancel
41123
41124 /* System header to define __stub macros and hopefully few prototypes,
41125     which can conflict with char pthread_cancel (); below.
41126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41127     <limits.h> exists even on freestanding compilers.  */
41128
41129 #ifdef __STDC__
41130 # include <limits.h>
41131 #else
41132 # include <assert.h>
41133 #endif
41134
41135 #undef pthread_cancel
41136
41137 /* Override any GCC internal prototype to avoid an error.
41138    Use char because int might match the return type of a GCC
41139    builtin and then its argument prototype would still apply.  */
41140 #ifdef __cplusplus
41141 extern "C"
41142 #endif
41143 char pthread_cancel ();
41144 /* The GNU C library defines this for functions which it implements
41145     to always fail with ENOSYS.  Some functions are actually named
41146     something starting with __ and the normal name is an alias.  */
41147 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41148 choke me
41149 #endif
41150
41151 int
41152 main ()
41153 {
41154 return pthread_cancel ();
41155   ;
41156   return 0;
41157 }
41158 _ACEOF
41159 rm -f conftest.$ac_objext conftest$ac_exeext
41160 if { (ac_try="$ac_link"
41161 case "(($ac_try" in
41162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41163   *) ac_try_echo=$ac_try;;
41164 esac
41165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41166   (eval "$ac_link") 2>conftest.er1
41167   ac_status=$?
41168   grep -v '^ *+' conftest.er1 >conftest.err
41169   rm -f conftest.er1
41170   cat conftest.err >&5
41171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41172   (exit $ac_status); } && {
41173          test -z "$ac_c_werror_flag" ||
41174          test ! -s conftest.err
41175        } && test -s conftest$ac_exeext &&
41176        $as_test_x conftest$ac_exeext; then
41177   ac_cv_func_pthread_cancel=yes
41178 else
41179   echo "$as_me: failed program was:" >&5
41180 sed 's/^/| /' conftest.$ac_ext >&5
41181
41182         ac_cv_func_pthread_cancel=no
41183 fi
41184
41185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41186       conftest$ac_exeext conftest.$ac_ext
41187 fi
41188 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41189 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41190 if test $ac_cv_func_pthread_cancel = yes; then
41191   cat >>confdefs.h <<\_ACEOF
41192 #define HAVE_PTHREAD_CANCEL 1
41193 _ACEOF
41194
41195 else
41196   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41197 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41198 fi
41199
41200
41201       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41202 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41203 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41204   echo $ECHO_N "(cached) $ECHO_C" >&6
41205 else
41206   cat >conftest.$ac_ext <<_ACEOF
41207 /* confdefs.h.  */
41208 _ACEOF
41209 cat confdefs.h >>conftest.$ac_ext
41210 cat >>conftest.$ac_ext <<_ACEOF
41211 /* end confdefs.h.  */
41212 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41214 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41215
41216 /* System header to define __stub macros and hopefully few prototypes,
41217     which can conflict with char pthread_mutex_timedlock (); below.
41218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41219     <limits.h> exists even on freestanding compilers.  */
41220
41221 #ifdef __STDC__
41222 # include <limits.h>
41223 #else
41224 # include <assert.h>
41225 #endif
41226
41227 #undef pthread_mutex_timedlock
41228
41229 /* Override any GCC internal prototype to avoid an error.
41230    Use char because int might match the return type of a GCC
41231    builtin and then its argument prototype would still apply.  */
41232 #ifdef __cplusplus
41233 extern "C"
41234 #endif
41235 char pthread_mutex_timedlock ();
41236 /* The GNU C library defines this for functions which it implements
41237     to always fail with ENOSYS.  Some functions are actually named
41238     something starting with __ and the normal name is an alias.  */
41239 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41240 choke me
41241 #endif
41242
41243 int
41244 main ()
41245 {
41246 return pthread_mutex_timedlock ();
41247   ;
41248   return 0;
41249 }
41250 _ACEOF
41251 rm -f conftest.$ac_objext conftest$ac_exeext
41252 if { (ac_try="$ac_link"
41253 case "(($ac_try" in
41254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41255   *) ac_try_echo=$ac_try;;
41256 esac
41257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41258   (eval "$ac_link") 2>conftest.er1
41259   ac_status=$?
41260   grep -v '^ *+' conftest.er1 >conftest.err
41261   rm -f conftest.er1
41262   cat conftest.err >&5
41263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264   (exit $ac_status); } && {
41265          test -z "$ac_c_werror_flag" ||
41266          test ! -s conftest.err
41267        } && test -s conftest$ac_exeext &&
41268        $as_test_x conftest$ac_exeext; then
41269   ac_cv_func_pthread_mutex_timedlock=yes
41270 else
41271   echo "$as_me: failed program was:" >&5
41272 sed 's/^/| /' conftest.$ac_ext >&5
41273
41274         ac_cv_func_pthread_mutex_timedlock=no
41275 fi
41276
41277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41278       conftest$ac_exeext conftest.$ac_ext
41279 fi
41280 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41281 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41282 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41283   cat >>confdefs.h <<\_ACEOF
41284 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41285 _ACEOF
41286
41287 else
41288   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41289 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41290 fi
41291
41292
41293       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41294 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41295 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41296   echo $ECHO_N "(cached) $ECHO_C" >&6
41297 else
41298   cat >conftest.$ac_ext <<_ACEOF
41299 /* confdefs.h.  */
41300 _ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h.  */
41304 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41306 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41307
41308 /* System header to define __stub macros and hopefully few prototypes,
41309     which can conflict with char pthread_attr_setstacksize (); below.
41310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41311     <limits.h> exists even on freestanding compilers.  */
41312
41313 #ifdef __STDC__
41314 # include <limits.h>
41315 #else
41316 # include <assert.h>
41317 #endif
41318
41319 #undef pthread_attr_setstacksize
41320
41321 /* Override any GCC internal prototype to avoid an error.
41322    Use char because int might match the return type of a GCC
41323    builtin and then its argument prototype would still apply.  */
41324 #ifdef __cplusplus
41325 extern "C"
41326 #endif
41327 char pthread_attr_setstacksize ();
41328 /* The GNU C library defines this for functions which it implements
41329     to always fail with ENOSYS.  Some functions are actually named
41330     something starting with __ and the normal name is an alias.  */
41331 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41332 choke me
41333 #endif
41334
41335 int
41336 main ()
41337 {
41338 return pthread_attr_setstacksize ();
41339   ;
41340   return 0;
41341 }
41342 _ACEOF
41343 rm -f conftest.$ac_objext conftest$ac_exeext
41344 if { (ac_try="$ac_link"
41345 case "(($ac_try" in
41346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41347   *) ac_try_echo=$ac_try;;
41348 esac
41349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41350   (eval "$ac_link") 2>conftest.er1
41351   ac_status=$?
41352   grep -v '^ *+' conftest.er1 >conftest.err
41353   rm -f conftest.er1
41354   cat conftest.err >&5
41355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41356   (exit $ac_status); } && {
41357          test -z "$ac_c_werror_flag" ||
41358          test ! -s conftest.err
41359        } && test -s conftest$ac_exeext &&
41360        $as_test_x conftest$ac_exeext; then
41361   ac_cv_func_pthread_attr_setstacksize=yes
41362 else
41363   echo "$as_me: failed program was:" >&5
41364 sed 's/^/| /' conftest.$ac_ext >&5
41365
41366         ac_cv_func_pthread_attr_setstacksize=no
41367 fi
41368
41369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41370       conftest$ac_exeext conftest.$ac_ext
41371 fi
41372 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41373 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41374 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41375   cat >>confdefs.h <<\_ACEOF
41376 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41377 _ACEOF
41378
41379 fi
41380
41381
41382
41383       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41384 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41385 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41386   echo $ECHO_N "(cached) $ECHO_C" >&6
41387 else
41388
41389         cat >conftest.$ac_ext <<_ACEOF
41390 /* confdefs.h.  */
41391 _ACEOF
41392 cat confdefs.h >>conftest.$ac_ext
41393 cat >>conftest.$ac_ext <<_ACEOF
41394 /* end confdefs.h.  */
41395 #include <pthread.h>
41396 int
41397 main ()
41398 {
41399
41400                pthread_mutexattr_t attr;
41401                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41402
41403   ;
41404   return 0;
41405 }
41406 _ACEOF
41407 rm -f conftest.$ac_objext
41408 if { (ac_try="$ac_compile"
41409 case "(($ac_try" in
41410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41411   *) ac_try_echo=$ac_try;;
41412 esac
41413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41414   (eval "$ac_compile") 2>conftest.er1
41415   ac_status=$?
41416   grep -v '^ *+' conftest.er1 >conftest.err
41417   rm -f conftest.er1
41418   cat conftest.err >&5
41419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420   (exit $ac_status); } && {
41421          test -z "$ac_c_werror_flag" ||
41422          test ! -s conftest.err
41423        } && test -s conftest.$ac_objext; then
41424   wx_cv_type_pthread_mutexattr_t=yes
41425 else
41426   echo "$as_me: failed program was:" >&5
41427 sed 's/^/| /' conftest.$ac_ext >&5
41428
41429         wx_cv_type_pthread_mutexattr_t=no
41430
41431 fi
41432
41433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41434
41435 fi
41436 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41437 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41438
41439       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41440         cat >>confdefs.h <<\_ACEOF
41441 #define HAVE_PTHREAD_MUTEXATTR_T 1
41442 _ACEOF
41443
41444
41445                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41446 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41447 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41448   echo $ECHO_N "(cached) $ECHO_C" >&6
41449 else
41450
41451                        cat >conftest.$ac_ext <<_ACEOF
41452 /* confdefs.h.  */
41453 _ACEOF
41454 cat confdefs.h >>conftest.$ac_ext
41455 cat >>conftest.$ac_ext <<_ACEOF
41456 /* end confdefs.h.  */
41457 #include <pthread.h>
41458 int
41459 main ()
41460 {
41461
41462                                pthread_mutexattr_t attr;
41463                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41464
41465   ;
41466   return 0;
41467 }
41468 _ACEOF
41469 rm -f conftest.$ac_objext
41470 if { (ac_try="$ac_compile"
41471 case "(($ac_try" in
41472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41473   *) ac_try_echo=$ac_try;;
41474 esac
41475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41476   (eval "$ac_compile") 2>conftest.er1
41477   ac_status=$?
41478   grep -v '^ *+' conftest.er1 >conftest.err
41479   rm -f conftest.er1
41480   cat conftest.err >&5
41481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482   (exit $ac_status); } && {
41483          test -z "$ac_c_werror_flag" ||
41484          test ! -s conftest.err
41485        } && test -s conftest.$ac_objext; then
41486   wx_cv_func_pthread_mutexattr_settype_decl=yes
41487 else
41488   echo "$as_me: failed program was:" >&5
41489 sed 's/^/| /' conftest.$ac_ext >&5
41490
41491         wx_cv_func_pthread_mutexattr_settype_decl=no
41492
41493 fi
41494
41495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41496
41497 fi
41498 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41499 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41500         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41501             cat >>confdefs.h <<\_ACEOF
41502 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41503 _ACEOF
41504
41505         fi
41506       else
41507                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41508 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
41509 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41510   echo $ECHO_N "(cached) $ECHO_C" >&6
41511 else
41512
41513             cat >conftest.$ac_ext <<_ACEOF
41514 /* confdefs.h.  */
41515 _ACEOF
41516 cat confdefs.h >>conftest.$ac_ext
41517 cat >>conftest.$ac_ext <<_ACEOF
41518 /* end confdefs.h.  */
41519 #include <pthread.h>
41520 int
41521 main ()
41522 {
41523
41524                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41525
41526   ;
41527   return 0;
41528 }
41529 _ACEOF
41530 rm -f conftest.$ac_objext
41531 if { (ac_try="$ac_compile"
41532 case "(($ac_try" in
41533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41534   *) ac_try_echo=$ac_try;;
41535 esac
41536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41537   (eval "$ac_compile") 2>conftest.er1
41538   ac_status=$?
41539   grep -v '^ *+' conftest.er1 >conftest.err
41540   rm -f conftest.er1
41541   cat conftest.err >&5
41542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543   (exit $ac_status); } && {
41544          test -z "$ac_c_werror_flag" ||
41545          test ! -s conftest.err
41546        } && test -s conftest.$ac_objext; then
41547
41548                     wx_cv_type_pthread_rec_mutex_init=yes
41549
41550 else
41551   echo "$as_me: failed program was:" >&5
41552 sed 's/^/| /' conftest.$ac_ext >&5
41553
41554
41555                     wx_cv_type_pthread_rec_mutex_init=no
41556
41557
41558 fi
41559
41560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41561
41562 fi
41563 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41564 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
41565         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41566           cat >>confdefs.h <<\_ACEOF
41567 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41568 _ACEOF
41569
41570         else
41571                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41572 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41573         fi
41574       fi
41575
41576       if test "$wxUSE_COMPILER_TLS" = "auto"; then
41577           if test "$USE_NETBSD" = 1; then
41578               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
41579 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
41580               wxUSE_COMPILER_TLS=no
41581           else
41582               wxUSE_COMPILER_TLS=yes
41583           fi
41584       fi
41585
41586       if test "$wxUSE_COMPILER_TLS" = "yes"; then
41587                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
41588 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
41589 if test "${wx_cv_cc___thread+set}" = set; then
41590   echo $ECHO_N "(cached) $ECHO_C" >&6
41591 else
41592
41593                   cat >conftest.$ac_ext <<_ACEOF
41594 /* confdefs.h.  */
41595 _ACEOF
41596 cat confdefs.h >>conftest.$ac_ext
41597 cat >>conftest.$ac_ext <<_ACEOF
41598 /* end confdefs.h.  */
41599 #include <pthread.h>
41600 int
41601 main ()
41602 {
41603
41604                           static __thread int n = 0;
41605                           static __thread int *p = 0;
41606
41607   ;
41608   return 0;
41609 }
41610 _ACEOF
41611 rm -f conftest.$ac_objext
41612 if { (ac_try="$ac_compile"
41613 case "(($ac_try" in
41614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41615   *) ac_try_echo=$ac_try;;
41616 esac
41617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41618   (eval "$ac_compile") 2>conftest.er1
41619   ac_status=$?
41620   grep -v '^ *+' conftest.er1 >conftest.err
41621   rm -f conftest.er1
41622   cat conftest.err >&5
41623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41624   (exit $ac_status); } && {
41625          test -z "$ac_c_werror_flag" ||
41626          test ! -s conftest.err
41627        } && test -s conftest.$ac_objext; then
41628   wx_cv_cc___thread=yes
41629 else
41630   echo "$as_me: failed program was:" >&5
41631 sed 's/^/| /' conftest.$ac_ext >&5
41632
41633         wx_cv_cc___thread=no
41634
41635 fi
41636
41637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41638
41639
41640 fi
41641 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
41642 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
41643
41644           if test "$wx_cv_cc___thread" = "yes"; then
41645
41646   GXX_VERSION=""
41647
41648
41649
41650   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
41651 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
41652
41653   if  test "x$GCC" = "xyes" ; then
41654
41655     if  test -z "" ; then
41656
41657       ax_gcc_option_test="int main()
41658 {
41659         return 0;
41660 }"
41661
41662 else
41663
41664       ax_gcc_option_test=""
41665
41666 fi
41667
41668
41669     # Dump the test program to file
41670     cat <<EOF > conftest.c
41671 $ax_gcc_option_test
41672 EOF
41673
41674     # Dump back the file to the log, useful for debugging purposes
41675     { ac_try='cat conftest.c 1>&5'
41676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41677   (eval $ac_try) 2>&5
41678   ac_status=$?
41679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41680   (exit $ac_status); }; }
41681
41682     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
41683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41684   (eval $ac_try) 2>&5
41685   ac_status=$?
41686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41687   (exit $ac_status); }; } ; then
41688
41689                 { echo "$as_me:$LINENO: result: yes" >&5
41690 echo "${ECHO_T}yes" >&6; }
41691
41692     ax_gcc_version_option=yes
41693
41694
41695 else
41696
41697                 { echo "$as_me:$LINENO: result: no" >&5
41698 echo "${ECHO_T}no" >&6; }
41699
41700     ax_gcc_version_option=no
41701
41702
41703 fi
41704
41705
41706 else
41707
41708     { echo "$as_me:$LINENO: result: no gcc available" >&5
41709 echo "${ECHO_T}no gcc available" >&6; }
41710
41711 fi
41712
41713
41714   if test "x$GXX" = "xyes"; then
41715
41716     if test "x$ax_gxx_version_option" != "no"; then
41717
41718       { echo "$as_me:$LINENO: checking gxx version" >&5
41719 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
41720 if test "${ax_cv_gxx_version+set}" = set; then
41721   echo $ECHO_N "(cached) $ECHO_C" >&6
41722 else
41723
41724         ax_cv_gxx_version="`$CXX -dumpversion`"
41725         if test "x$ax_cv_gxx_version" = "x"; then
41726
41727           ax_cv_gxx_version=""
41728
41729 fi
41730
41731
41732 fi
41733 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
41734 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
41735       GXX_VERSION=$ax_cv_gxx_version
41736
41737 fi
41738
41739
41740 fi
41741
41742
41743
41744               if test -n "$ax_cv_gxx_version"; then
41745                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
41746 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
41747                   case "$ax_cv_gxx_version" in
41748                     1.* | 2.* | 3.* )
41749                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
41750 echo "${ECHO_T}no, it's broken" >&6; }
41751                         wx_cv_cc___thread=no
41752                         ;;
41753                     *)
41754                         { echo "$as_me:$LINENO: result: yes, it works" >&5
41755 echo "${ECHO_T}yes, it works" >&6; }
41756                         ;;
41757                   esac
41758               fi
41759           fi
41760
41761           if test "$wx_cv_cc___thread" = "yes"; then
41762             cat >>confdefs.h <<\_ACEOF
41763 #define HAVE___THREAD_KEYWORD 1
41764 _ACEOF
41765
41766           fi
41767         fi
41768     fi
41769
41770 else
41771     if test "$wxUSE_THREADS" = "yes" ; then
41772       case "${host}" in
41773         x86_64-*-mingw32* )
41774         ;;
41775         *-*-mingw32* )
41776                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41777 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
41778 if test "${wx_cv_cflags_mthread+set}" = set; then
41779   echo $ECHO_N "(cached) $ECHO_C" >&6
41780 else
41781
41782                     CFLAGS_OLD="$CFLAGS"
41783                     CFLAGS="-mthreads $CFLAGS"
41784                     cat >conftest.$ac_ext <<_ACEOF
41785 /* confdefs.h.  */
41786 _ACEOF
41787 cat confdefs.h >>conftest.$ac_ext
41788 cat >>conftest.$ac_ext <<_ACEOF
41789 /* end confdefs.h.  */
41790
41791 int
41792 main ()
41793 {
41794
41795   ;
41796   return 0;
41797 }
41798 _ACEOF
41799 rm -f conftest.$ac_objext
41800 if { (ac_try="$ac_compile"
41801 case "(($ac_try" in
41802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41803   *) ac_try_echo=$ac_try;;
41804 esac
41805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41806   (eval "$ac_compile") 2>conftest.er1
41807   ac_status=$?
41808   grep -v '^ *+' conftest.er1 >conftest.err
41809   rm -f conftest.er1
41810   cat conftest.err >&5
41811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41812   (exit $ac_status); } && {
41813          test -z "$ac_c_werror_flag" ||
41814          test ! -s conftest.err
41815        } && test -s conftest.$ac_objext; then
41816   wx_cv_cflags_mthread=yes
41817 else
41818   echo "$as_me: failed program was:" >&5
41819 sed 's/^/| /' conftest.$ac_ext >&5
41820
41821         wx_cv_cflags_mthread=no
41822
41823 fi
41824
41825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41826
41827
41828 fi
41829 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41830 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
41831
41832             if test "$wx_cv_cflags_mthread" = "yes"; then
41833                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
41834                 LDFLAGS="$LDFLAGS -mthreads"
41835             else
41836                                 CFLAGS="$CFLAGS_OLD"
41837             fi
41838         ;;
41839         *-pc-os2*emx )
41840             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41841             LDFLAGS="$LDFLAGS -Zmt"
41842         ;;
41843       esac
41844     fi
41845 fi
41846
41847 { echo "$as_me:$LINENO: checking for localtime_r" >&5
41848 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
41849 if test "${ac_cv_func_localtime_r+set}" = set; then
41850   echo $ECHO_N "(cached) $ECHO_C" >&6
41851 else
41852   cat >conftest.$ac_ext <<_ACEOF
41853 /* confdefs.h.  */
41854 _ACEOF
41855 cat confdefs.h >>conftest.$ac_ext
41856 cat >>conftest.$ac_ext <<_ACEOF
41857 /* end confdefs.h.  */
41858 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
41859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41860 #define localtime_r innocuous_localtime_r
41861
41862 /* System header to define __stub macros and hopefully few prototypes,
41863     which can conflict with char localtime_r (); below.
41864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41865     <limits.h> exists even on freestanding compilers.  */
41866
41867 #ifdef __STDC__
41868 # include <limits.h>
41869 #else
41870 # include <assert.h>
41871 #endif
41872
41873 #undef localtime_r
41874
41875 /* Override any GCC internal prototype to avoid an error.
41876    Use char because int might match the return type of a GCC
41877    builtin and then its argument prototype would still apply.  */
41878 #ifdef __cplusplus
41879 extern "C"
41880 #endif
41881 char localtime_r ();
41882 /* The GNU C library defines this for functions which it implements
41883     to always fail with ENOSYS.  Some functions are actually named
41884     something starting with __ and the normal name is an alias.  */
41885 #if defined __stub_localtime_r || defined __stub___localtime_r
41886 choke me
41887 #endif
41888
41889 int
41890 main ()
41891 {
41892 return localtime_r ();
41893   ;
41894   return 0;
41895 }
41896 _ACEOF
41897 rm -f conftest.$ac_objext conftest$ac_exeext
41898 if { (ac_try="$ac_link"
41899 case "(($ac_try" in
41900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41901   *) ac_try_echo=$ac_try;;
41902 esac
41903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41904   (eval "$ac_link") 2>conftest.er1
41905   ac_status=$?
41906   grep -v '^ *+' conftest.er1 >conftest.err
41907   rm -f conftest.er1
41908   cat conftest.err >&5
41909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910   (exit $ac_status); } && {
41911          test -z "$ac_c_werror_flag" ||
41912          test ! -s conftest.err
41913        } && test -s conftest$ac_exeext &&
41914        $as_test_x conftest$ac_exeext; then
41915   ac_cv_func_localtime_r=yes
41916 else
41917   echo "$as_me: failed program was:" >&5
41918 sed 's/^/| /' conftest.$ac_ext >&5
41919
41920         ac_cv_func_localtime_r=no
41921 fi
41922
41923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41924       conftest$ac_exeext conftest.$ac_ext
41925 fi
41926 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41927 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
41928 if test $ac_cv_func_localtime_r = yes; then
41929    cat >>confdefs.h <<\_ACEOF
41930 #define HAVE_LOCALTIME_R 1
41931 _ACEOF
41932
41933 fi
41934
41935 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
41936 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
41937 if test "${ac_cv_func_gmtime_r+set}" = set; then
41938   echo $ECHO_N "(cached) $ECHO_C" >&6
41939 else
41940   cat >conftest.$ac_ext <<_ACEOF
41941 /* confdefs.h.  */
41942 _ACEOF
41943 cat confdefs.h >>conftest.$ac_ext
41944 cat >>conftest.$ac_ext <<_ACEOF
41945 /* end confdefs.h.  */
41946 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41948 #define gmtime_r innocuous_gmtime_r
41949
41950 /* System header to define __stub macros and hopefully few prototypes,
41951     which can conflict with char gmtime_r (); below.
41952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41953     <limits.h> exists even on freestanding compilers.  */
41954
41955 #ifdef __STDC__
41956 # include <limits.h>
41957 #else
41958 # include <assert.h>
41959 #endif
41960
41961 #undef gmtime_r
41962
41963 /* Override any GCC internal prototype to avoid an error.
41964    Use char because int might match the return type of a GCC
41965    builtin and then its argument prototype would still apply.  */
41966 #ifdef __cplusplus
41967 extern "C"
41968 #endif
41969 char gmtime_r ();
41970 /* The GNU C library defines this for functions which it implements
41971     to always fail with ENOSYS.  Some functions are actually named
41972     something starting with __ and the normal name is an alias.  */
41973 #if defined __stub_gmtime_r || defined __stub___gmtime_r
41974 choke me
41975 #endif
41976
41977 int
41978 main ()
41979 {
41980 return gmtime_r ();
41981   ;
41982   return 0;
41983 }
41984 _ACEOF
41985 rm -f conftest.$ac_objext conftest$ac_exeext
41986 if { (ac_try="$ac_link"
41987 case "(($ac_try" in
41988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41989   *) ac_try_echo=$ac_try;;
41990 esac
41991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41992   (eval "$ac_link") 2>conftest.er1
41993   ac_status=$?
41994   grep -v '^ *+' conftest.er1 >conftest.err
41995   rm -f conftest.er1
41996   cat conftest.err >&5
41997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41998   (exit $ac_status); } && {
41999          test -z "$ac_c_werror_flag" ||
42000          test ! -s conftest.err
42001        } && test -s conftest$ac_exeext &&
42002        $as_test_x conftest$ac_exeext; then
42003   ac_cv_func_gmtime_r=yes
42004 else
42005   echo "$as_me: failed program was:" >&5
42006 sed 's/^/| /' conftest.$ac_ext >&5
42007
42008         ac_cv_func_gmtime_r=no
42009 fi
42010
42011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42012       conftest$ac_exeext conftest.$ac_ext
42013 fi
42014 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42015 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42016 if test $ac_cv_func_gmtime_r = yes; then
42017    cat >>confdefs.h <<\_ACEOF
42018 #define HAVE_GMTIME_R 1
42019 _ACEOF
42020
42021 fi
42022
42023
42024
42025
42026     ac_ext=c
42027 ac_cpp='$CPP $CPPFLAGS'
42028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42031
42032     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42033 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42034
42035     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42036   echo $ECHO_N "(cached) $ECHO_C" >&6
42037 else
42038
42039
42040 ################################################################
42041
42042 ac_cv_func_which_gethostbyname_r=unknown
42043
42044 #
42045 # ONE ARGUMENT (sanity check)
42046 #
42047
42048 # This should fail, as there is no variant of gethostbyname_r() that takes
42049 # a single argument. If it actually compiles, then we can assume that
42050 # netdb.h is not declaring the function, and the compiler is thereby
42051 # assuming an implicit prototype. In which case, we're out of luck.
42052 #
42053 cat >conftest.$ac_ext <<_ACEOF
42054 /* confdefs.h.  */
42055 _ACEOF
42056 cat confdefs.h >>conftest.$ac_ext
42057 cat >>conftest.$ac_ext <<_ACEOF
42058 /* end confdefs.h.  */
42059 #include <netdb.h>
42060 int
42061 main ()
42062 {
42063
42064             char *name = "www.gnu.org";
42065             (void)gethostbyname_r(name) /* ; */
42066
42067   ;
42068   return 0;
42069 }
42070 _ACEOF
42071 rm -f conftest.$ac_objext
42072 if { (ac_try="$ac_compile"
42073 case "(($ac_try" in
42074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42075   *) ac_try_echo=$ac_try;;
42076 esac
42077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42078   (eval "$ac_compile") 2>conftest.er1
42079   ac_status=$?
42080   grep -v '^ *+' conftest.er1 >conftest.err
42081   rm -f conftest.er1
42082   cat conftest.err >&5
42083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084   (exit $ac_status); } && {
42085          test -z "$ac_c_werror_flag" ||
42086          test ! -s conftest.err
42087        } && test -s conftest.$ac_objext; then
42088   ac_cv_func_which_gethostbyname_r=no
42089 else
42090   echo "$as_me: failed program was:" >&5
42091 sed 's/^/| /' conftest.$ac_ext >&5
42092
42093
42094 fi
42095
42096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42097
42098 #
42099 # SIX ARGUMENTS
42100 # (e.g. Linux)
42101 #
42102
42103 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42104
42105 cat >conftest.$ac_ext <<_ACEOF
42106 /* confdefs.h.  */
42107 _ACEOF
42108 cat confdefs.h >>conftest.$ac_ext
42109 cat >>conftest.$ac_ext <<_ACEOF
42110 /* end confdefs.h.  */
42111 #include <netdb.h>
42112 int
42113 main ()
42114 {
42115
42116             char *name = "www.gnu.org";
42117             struct hostent ret, *retp;
42118             char buf[1024];
42119             int buflen = 1024;
42120             int my_h_errno;
42121             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42122
42123   ;
42124   return 0;
42125 }
42126 _ACEOF
42127 rm -f conftest.$ac_objext
42128 if { (ac_try="$ac_compile"
42129 case "(($ac_try" in
42130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42131   *) ac_try_echo=$ac_try;;
42132 esac
42133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42134   (eval "$ac_compile") 2>conftest.er1
42135   ac_status=$?
42136   grep -v '^ *+' conftest.er1 >conftest.err
42137   rm -f conftest.er1
42138   cat conftest.err >&5
42139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42140   (exit $ac_status); } && {
42141          test -z "$ac_c_werror_flag" ||
42142          test ! -s conftest.err
42143        } && test -s conftest.$ac_objext; then
42144   ac_cv_func_which_gethostbyname_r=six
42145 else
42146   echo "$as_me: failed program was:" >&5
42147 sed 's/^/| /' conftest.$ac_ext >&5
42148
42149
42150 fi
42151
42152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42153
42154 fi
42155
42156 #
42157 # FIVE ARGUMENTS
42158 # (e.g. Solaris)
42159 #
42160
42161 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42162
42163 cat >conftest.$ac_ext <<_ACEOF
42164 /* confdefs.h.  */
42165 _ACEOF
42166 cat confdefs.h >>conftest.$ac_ext
42167 cat >>conftest.$ac_ext <<_ACEOF
42168 /* end confdefs.h.  */
42169 #include <netdb.h>
42170 int
42171 main ()
42172 {
42173
42174             char *name = "www.gnu.org";
42175             struct hostent ret;
42176             char buf[1024];
42177             int buflen = 1024;
42178             int my_h_errno;
42179             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42180
42181   ;
42182   return 0;
42183 }
42184 _ACEOF
42185 rm -f conftest.$ac_objext
42186 if { (ac_try="$ac_compile"
42187 case "(($ac_try" in
42188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42189   *) ac_try_echo=$ac_try;;
42190 esac
42191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42192   (eval "$ac_compile") 2>conftest.er1
42193   ac_status=$?
42194   grep -v '^ *+' conftest.er1 >conftest.err
42195   rm -f conftest.er1
42196   cat conftest.err >&5
42197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198   (exit $ac_status); } && {
42199          test -z "$ac_c_werror_flag" ||
42200          test ! -s conftest.err
42201        } && test -s conftest.$ac_objext; then
42202   ac_cv_func_which_gethostbyname_r=five
42203 else
42204   echo "$as_me: failed program was:" >&5
42205 sed 's/^/| /' conftest.$ac_ext >&5
42206
42207
42208 fi
42209
42210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42211
42212 fi
42213
42214 #
42215 # THREE ARGUMENTS
42216 # (e.g. AIX, HP-UX, Tru64)
42217 #
42218
42219 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42220
42221 cat >conftest.$ac_ext <<_ACEOF
42222 /* confdefs.h.  */
42223 _ACEOF
42224 cat confdefs.h >>conftest.$ac_ext
42225 cat >>conftest.$ac_ext <<_ACEOF
42226 /* end confdefs.h.  */
42227 #include <netdb.h>
42228 int
42229 main ()
42230 {
42231
42232             char *name = "www.gnu.org";
42233             struct hostent ret;
42234             struct hostent_data data;
42235             (void)gethostbyname_r(name, &ret, &data) /* ; */
42236
42237   ;
42238   return 0;
42239 }
42240 _ACEOF
42241 rm -f conftest.$ac_objext
42242 if { (ac_try="$ac_compile"
42243 case "(($ac_try" in
42244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42245   *) ac_try_echo=$ac_try;;
42246 esac
42247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42248   (eval "$ac_compile") 2>conftest.er1
42249   ac_status=$?
42250   grep -v '^ *+' conftest.er1 >conftest.err
42251   rm -f conftest.er1
42252   cat conftest.err >&5
42253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254   (exit $ac_status); } && {
42255          test -z "$ac_c_werror_flag" ||
42256          test ! -s conftest.err
42257        } && test -s conftest.$ac_objext; then
42258   ac_cv_func_which_gethostbyname_r=three
42259 else
42260   echo "$as_me: failed program was:" >&5
42261 sed 's/^/| /' conftest.$ac_ext >&5
42262
42263
42264 fi
42265
42266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42267
42268 fi
42269
42270 ################################################################
42271
42272
42273 fi
42274
42275 case "$ac_cv_func_which_gethostbyname_r" in
42276     three)
42277     { echo "$as_me:$LINENO: result: three" >&5
42278 echo "${ECHO_T}three" >&6; }
42279     cat >>confdefs.h <<\_ACEOF
42280 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42281 _ACEOF
42282
42283     ;;
42284
42285     five)
42286     { echo "$as_me:$LINENO: result: five" >&5
42287 echo "${ECHO_T}five" >&6; }
42288     cat >>confdefs.h <<\_ACEOF
42289 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42290 _ACEOF
42291
42292     ;;
42293
42294     six)
42295     { echo "$as_me:$LINENO: result: six" >&5
42296 echo "${ECHO_T}six" >&6; }
42297     cat >>confdefs.h <<\_ACEOF
42298 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42299 _ACEOF
42300
42301     ;;
42302
42303     no)
42304     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42305 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42306     ;;
42307
42308     unknown)
42309     { echo "$as_me:$LINENO: result: can't tell" >&5
42310 echo "${ECHO_T}can't tell" >&6; }
42311     ;;
42312
42313     *)
42314     { { echo "$as_me:$LINENO: error: internal error" >&5
42315 echo "$as_me: error: internal error" >&2;}
42316    { (exit 1); exit 1; }; }
42317     ;;
42318 esac
42319
42320 ac_ext=c
42321 ac_cpp='$CPP $CPPFLAGS'
42322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42325
42326
42327
42328       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42329               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42330           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42331 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42332 if test "${ac_cv_func_gethostbyname+set}" = set; then
42333   echo $ECHO_N "(cached) $ECHO_C" >&6
42334 else
42335   cat >conftest.$ac_ext <<_ACEOF
42336 /* confdefs.h.  */
42337 _ACEOF
42338 cat confdefs.h >>conftest.$ac_ext
42339 cat >>conftest.$ac_ext <<_ACEOF
42340 /* end confdefs.h.  */
42341 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42343 #define gethostbyname innocuous_gethostbyname
42344
42345 /* System header to define __stub macros and hopefully few prototypes,
42346     which can conflict with char gethostbyname (); below.
42347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42348     <limits.h> exists even on freestanding compilers.  */
42349
42350 #ifdef __STDC__
42351 # include <limits.h>
42352 #else
42353 # include <assert.h>
42354 #endif
42355
42356 #undef gethostbyname
42357
42358 /* Override any GCC internal prototype to avoid an error.
42359    Use char because int might match the return type of a GCC
42360    builtin and then its argument prototype would still apply.  */
42361 #ifdef __cplusplus
42362 extern "C"
42363 #endif
42364 char gethostbyname ();
42365 /* The GNU C library defines this for functions which it implements
42366     to always fail with ENOSYS.  Some functions are actually named
42367     something starting with __ and the normal name is an alias.  */
42368 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42369 choke me
42370 #endif
42371
42372 int
42373 main ()
42374 {
42375 return gethostbyname ();
42376   ;
42377   return 0;
42378 }
42379 _ACEOF
42380 rm -f conftest.$ac_objext conftest$ac_exeext
42381 if { (ac_try="$ac_link"
42382 case "(($ac_try" in
42383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42384   *) ac_try_echo=$ac_try;;
42385 esac
42386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42387   (eval "$ac_link") 2>conftest.er1
42388   ac_status=$?
42389   grep -v '^ *+' conftest.er1 >conftest.err
42390   rm -f conftest.er1
42391   cat conftest.err >&5
42392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42393   (exit $ac_status); } && {
42394          test -z "$ac_c_werror_flag" ||
42395          test ! -s conftest.err
42396        } && test -s conftest$ac_exeext &&
42397        $as_test_x conftest$ac_exeext; then
42398   ac_cv_func_gethostbyname=yes
42399 else
42400   echo "$as_me: failed program was:" >&5
42401 sed 's/^/| /' conftest.$ac_ext >&5
42402
42403         ac_cv_func_gethostbyname=no
42404 fi
42405
42406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42407       conftest$ac_exeext conftest.$ac_ext
42408 fi
42409 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42410 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42411 if test $ac_cv_func_gethostbyname = yes; then
42412    cat >>confdefs.h <<\_ACEOF
42413 #define HAVE_GETHOSTBYNAME 1
42414 _ACEOF
42415
42416 fi
42417
42418       fi
42419
42420 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42421 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42422 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42423   echo $ECHO_N "(cached) $ECHO_C" >&6
42424 else
42425
42426                 ac_ext=cpp
42427 ac_cpp='$CXXCPP $CPPFLAGS'
42428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42431
42432
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 #include <netdb.h>
42440 int
42441 main ()
42442 {
42443
42444                 char *name;
42445                 char *proto;
42446                 struct servent *se, *res;
42447                 char buffer[2048];
42448                 int buflen = 2048;
42449                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42450
42451   ;
42452   return 0;
42453 }
42454 _ACEOF
42455 rm -f conftest.$ac_objext
42456 if { (ac_try="$ac_compile"
42457 case "(($ac_try" in
42458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42459   *) ac_try_echo=$ac_try;;
42460 esac
42461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42462   (eval "$ac_compile") 2>conftest.er1
42463   ac_status=$?
42464   grep -v '^ *+' conftest.er1 >conftest.err
42465   rm -f conftest.er1
42466   cat conftest.err >&5
42467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468   (exit $ac_status); } && {
42469          test -z "$ac_cxx_werror_flag" ||
42470          test ! -s conftest.err
42471        } && test -s conftest.$ac_objext; then
42472   ac_cv_func_which_getservbyname_r=six
42473 else
42474   echo "$as_me: failed program was:" >&5
42475 sed 's/^/| /' conftest.$ac_ext >&5
42476
42477
42478                 cat >conftest.$ac_ext <<_ACEOF
42479 /* confdefs.h.  */
42480 _ACEOF
42481 cat confdefs.h >>conftest.$ac_ext
42482 cat >>conftest.$ac_ext <<_ACEOF
42483 /* end confdefs.h.  */
42484 #include <netdb.h>
42485 int
42486 main ()
42487 {
42488
42489                         char *name;
42490                         char *proto;
42491                         struct servent *se;
42492                         char buffer[2048];
42493                         int buflen = 2048;
42494                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42495
42496   ;
42497   return 0;
42498 }
42499 _ACEOF
42500 rm -f conftest.$ac_objext
42501 if { (ac_try="$ac_compile"
42502 case "(($ac_try" in
42503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42504   *) ac_try_echo=$ac_try;;
42505 esac
42506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42507   (eval "$ac_compile") 2>conftest.er1
42508   ac_status=$?
42509   grep -v '^ *+' conftest.er1 >conftest.err
42510   rm -f conftest.er1
42511   cat conftest.err >&5
42512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42513   (exit $ac_status); } && {
42514          test -z "$ac_cxx_werror_flag" ||
42515          test ! -s conftest.err
42516        } && test -s conftest.$ac_objext; then
42517   ac_cv_func_which_getservbyname_r=five
42518 else
42519   echo "$as_me: failed program was:" >&5
42520 sed 's/^/| /' conftest.$ac_ext >&5
42521
42522
42523                         cat >conftest.$ac_ext <<_ACEOF
42524 /* confdefs.h.  */
42525 _ACEOF
42526 cat confdefs.h >>conftest.$ac_ext
42527 cat >>conftest.$ac_ext <<_ACEOF
42528 /* end confdefs.h.  */
42529 #include <netdb.h>
42530 int
42531 main ()
42532 {
42533
42534                                 char *name;
42535                                 char *proto;
42536                                 struct servent *se;
42537                                 struct servent_data data;
42538                                 (void) getservbyname_r(name, proto, se, &data);
42539
42540   ;
42541   return 0;
42542 }
42543 _ACEOF
42544 rm -f conftest.$ac_objext
42545 if { (ac_try="$ac_compile"
42546 case "(($ac_try" in
42547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42548   *) ac_try_echo=$ac_try;;
42549 esac
42550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42551   (eval "$ac_compile") 2>conftest.er1
42552   ac_status=$?
42553   grep -v '^ *+' conftest.er1 >conftest.err
42554   rm -f conftest.er1
42555   cat conftest.err >&5
42556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42557   (exit $ac_status); } && {
42558          test -z "$ac_cxx_werror_flag" ||
42559          test ! -s conftest.err
42560        } && test -s conftest.$ac_objext; then
42561   ac_cv_func_which_getservbyname_r=four
42562 else
42563   echo "$as_me: failed program was:" >&5
42564 sed 's/^/| /' conftest.$ac_ext >&5
42565
42566         ac_cv_func_which_getservbyname_r=no
42567
42568 fi
42569
42570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42571
42572
42573 fi
42574
42575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42576
42577
42578 fi
42579
42580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42581         ac_ext=c
42582 ac_cpp='$CPP $CPPFLAGS'
42583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42586
42587
42588
42589 fi
42590 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
42591 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
42592
42593 if test $ac_cv_func_which_getservbyname_r = six; then
42594   cat >>confdefs.h <<\_ACEOF
42595 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
42596 _ACEOF
42597
42598 elif test $ac_cv_func_which_getservbyname_r = five; then
42599   cat >>confdefs.h <<\_ACEOF
42600 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
42601 _ACEOF
42602
42603 elif test $ac_cv_func_which_getservbyname_r = four; then
42604   cat >>confdefs.h <<\_ACEOF
42605 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
42606 _ACEOF
42607
42608 fi
42609
42610
42611       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
42612               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
42613
42614 for ac_func in getservbyname
42615 do
42616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42620   echo $ECHO_N "(cached) $ECHO_C" >&6
42621 else
42622   cat >conftest.$ac_ext <<_ACEOF
42623 /* confdefs.h.  */
42624 _ACEOF
42625 cat confdefs.h >>conftest.$ac_ext
42626 cat >>conftest.$ac_ext <<_ACEOF
42627 /* end confdefs.h.  */
42628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42630 #define $ac_func innocuous_$ac_func
42631
42632 /* System header to define __stub macros and hopefully few prototypes,
42633     which can conflict with char $ac_func (); below.
42634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42635     <limits.h> exists even on freestanding compilers.  */
42636
42637 #ifdef __STDC__
42638 # include <limits.h>
42639 #else
42640 # include <assert.h>
42641 #endif
42642
42643 #undef $ac_func
42644
42645 /* Override any GCC internal prototype to avoid an error.
42646    Use char because int might match the return type of a GCC
42647    builtin and then its argument prototype would still apply.  */
42648 #ifdef __cplusplus
42649 extern "C"
42650 #endif
42651 char $ac_func ();
42652 /* The GNU C library defines this for functions which it implements
42653     to always fail with ENOSYS.  Some functions are actually named
42654     something starting with __ and the normal name is an alias.  */
42655 #if defined __stub_$ac_func || defined __stub___$ac_func
42656 choke me
42657 #endif
42658
42659 int
42660 main ()
42661 {
42662 return $ac_func ();
42663   ;
42664   return 0;
42665 }
42666 _ACEOF
42667 rm -f conftest.$ac_objext conftest$ac_exeext
42668 if { (ac_try="$ac_link"
42669 case "(($ac_try" in
42670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42671   *) ac_try_echo=$ac_try;;
42672 esac
42673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42674   (eval "$ac_link") 2>conftest.er1
42675   ac_status=$?
42676   grep -v '^ *+' conftest.er1 >conftest.err
42677   rm -f conftest.er1
42678   cat conftest.err >&5
42679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42680   (exit $ac_status); } && {
42681          test -z "$ac_c_werror_flag" ||
42682          test ! -s conftest.err
42683        } && test -s conftest$ac_exeext &&
42684        $as_test_x conftest$ac_exeext; then
42685   eval "$as_ac_var=yes"
42686 else
42687   echo "$as_me: failed program was:" >&5
42688 sed 's/^/| /' conftest.$ac_ext >&5
42689
42690         eval "$as_ac_var=no"
42691 fi
42692
42693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42694       conftest$ac_exeext conftest.$ac_ext
42695 fi
42696 ac_res=`eval echo '${'$as_ac_var'}'`
42697                { echo "$as_me:$LINENO: result: $ac_res" >&5
42698 echo "${ECHO_T}$ac_res" >&6; }
42699 if test `eval echo '${'$as_ac_var'}'` = yes; then
42700   cat >>confdefs.h <<_ACEOF
42701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42702 _ACEOF
42703   cat >>confdefs.h <<\_ACEOF
42704 #define HAVE_GETSERVBYNAME 1
42705 _ACEOF
42706
42707 fi
42708 done
42709
42710       fi
42711
42712 if test "$wxUSE_THREADS" = "yes"; then
42713   cat >>confdefs.h <<\_ACEOF
42714 #define wxUSE_THREADS 1
42715 _ACEOF
42716
42717
42718   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42719 else
42720       if test "$wx_cv_func_strtok_r" = "yes"; then
42721     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42722 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
42723     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42724         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42725         { echo "$as_me:$LINENO: result: yes" >&5
42726 echo "${ECHO_T}yes" >&6; }
42727     else
42728         { echo "$as_me:$LINENO: result: no" >&5
42729 echo "${ECHO_T}no" >&6; }
42730     fi
42731   fi
42732 fi
42733
42734 if test "$WXGTK2" = 1 ; then
42735   cat >>confdefs.h <<_ACEOF
42736 #define __WXGTK20__ $WXGTK2
42737 _ACEOF
42738
42739   WXGTK12=1
42740 fi
42741
42742 if test "$WXGTK12" = 1 ; then
42743   cat >>confdefs.h <<_ACEOF
42744 #define __WXGTK12__ $WXGTK12
42745 _ACEOF
42746
42747 fi
42748
42749 if test "$WXGTK127" = 1 ; then
42750   cat >>confdefs.h <<_ACEOF
42751 #define __WXGTK127__ $WXGTK127
42752 _ACEOF
42753
42754 fi
42755
42756 if test "$WXGPE" = 1 ; then
42757   cat >>confdefs.h <<_ACEOF
42758 #define __WXGPE__ $WXGPE
42759 _ACEOF
42760
42761 fi
42762
42763 DEBUG_CFLAGS=
42764 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
42765                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
42766 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
42767 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
42768     DEBUG_CFLAGS="-g"
42769 fi
42770
42771 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42772     wxUSE_DEBUG_INFO=yes
42773     if test "$GCC" = yes; then
42774         DEBUG_CFLAGS="-ggdb"
42775     fi
42776 fi
42777
42778 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
42779     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
42780
42781     if test "$wxUSE_GTK" = 1 ; then
42782         if test "x$wxGTK_VERSION" = "x1" ; then
42783             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42784         fi
42785     fi
42786 fi
42787
42788 if test "$wxUSE_MEM_TRACING" = "yes" ; then
42789     cat >>confdefs.h <<\_ACEOF
42790 #define wxUSE_MEMORY_TRACING 1
42791 _ACEOF
42792
42793     cat >>confdefs.h <<\_ACEOF
42794 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42795 _ACEOF
42796
42797     cat >>confdefs.h <<\_ACEOF
42798 #define wxUSE_DEBUG_NEW_ALWAYS 1
42799 _ACEOF
42800
42801     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42802 fi
42803
42804 if test "$wxUSE_DMALLOC" = "yes" ; then
42805     DMALLOC_LIBS="-ldmallocthcxx"
42806 fi
42807
42808 PROFILE_FLAGS=
42809 if test "$wxUSE_PROFILE" = "yes" ; then
42810     PROFILE_FLAGS=" -pg"
42811 fi
42812
42813 if test "$GCC" = "yes" ; then
42814     if test "$wxUSE_NO_RTTI" = "yes" ; then
42815                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
42816     fi
42817     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42818         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42819     fi
42820     if test "$wxUSE_PERMISSIVE" = "yes" ; then
42821         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42822     fi
42823
42824                                                 case "${host}" in
42825       powerpc*-*-aix* )
42826         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42827         ;;
42828       *-hppa* )
42829         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42830         ;;
42831     esac
42832 fi
42833
42834 OPTIMISE_CFLAGS=
42835 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
42836                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
42837 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
42838 else
42839     if test "$wxUSE_OPTIMISE" = "no" ; then
42840         if test "$GCC" = yes ; then
42841                                     OPTIMISE_CFLAGS="-O0"
42842         fi
42843     else
42844         if test "$GCC" = yes ; then
42845             case "${host}" in
42846                 *-pc-os2_emx | *-pc-os2-emx )
42847                                                             OPTIMISE_CFLAGS="-O2"
42848                 ;;
42849                 *)
42850                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42851                 ;;
42852             esac
42853         else
42854             OPTIMISE_CFLAGS="-O"
42855         fi
42856     fi
42857 fi
42858
42859
42860 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
42861     cat >>confdefs.h <<\_ACEOF
42862 #define WXWIN_COMPATIBILITY_2_6 1
42863 _ACEOF
42864
42865
42866     WXWIN_COMPATIBILITY_2_8="yes"
42867 fi
42868
42869 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
42870     cat >>confdefs.h <<\_ACEOF
42871 #define WXWIN_COMPATIBILITY_2_8 1
42872 _ACEOF
42873
42874 fi
42875
42876
42877 if test "$wxUSE_GUI" = "yes"; then
42878     cat >>confdefs.h <<\_ACEOF
42879 #define wxUSE_GUI 1
42880 _ACEOF
42881
42882
42883                                             fi
42884
42885
42886 if test "$wxUSE_UNIX" = "yes"; then
42887   cat >>confdefs.h <<\_ACEOF
42888 #define wxUSE_UNIX 1
42889 _ACEOF
42890
42891 fi
42892
42893
42894 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42895
42896     HAVE_DL_FUNCS=0
42897     HAVE_SHL_FUNCS=0
42898     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42899         if test "$USE_DOS" = 1; then
42900             HAVE_DL_FUNCS=0
42901         else
42902
42903 for ac_func in dlopen
42904 do
42905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42909   echo $ECHO_N "(cached) $ECHO_C" >&6
42910 else
42911   cat >conftest.$ac_ext <<_ACEOF
42912 /* confdefs.h.  */
42913 _ACEOF
42914 cat confdefs.h >>conftest.$ac_ext
42915 cat >>conftest.$ac_ext <<_ACEOF
42916 /* end confdefs.h.  */
42917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42919 #define $ac_func innocuous_$ac_func
42920
42921 /* System header to define __stub macros and hopefully few prototypes,
42922     which can conflict with char $ac_func (); below.
42923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42924     <limits.h> exists even on freestanding compilers.  */
42925
42926 #ifdef __STDC__
42927 # include <limits.h>
42928 #else
42929 # include <assert.h>
42930 #endif
42931
42932 #undef $ac_func
42933
42934 /* Override any GCC internal prototype to avoid an error.
42935    Use char because int might match the return type of a GCC
42936    builtin and then its argument prototype would still apply.  */
42937 #ifdef __cplusplus
42938 extern "C"
42939 #endif
42940 char $ac_func ();
42941 /* The GNU C library defines this for functions which it implements
42942     to always fail with ENOSYS.  Some functions are actually named
42943     something starting with __ and the normal name is an alias.  */
42944 #if defined __stub_$ac_func || defined __stub___$ac_func
42945 choke me
42946 #endif
42947
42948 int
42949 main ()
42950 {
42951 return $ac_func ();
42952   ;
42953   return 0;
42954 }
42955 _ACEOF
42956 rm -f conftest.$ac_objext conftest$ac_exeext
42957 if { (ac_try="$ac_link"
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_link") 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_c_werror_flag" ||
42971          test ! -s conftest.err
42972        } && test -s conftest$ac_exeext &&
42973        $as_test_x conftest$ac_exeext; then
42974   eval "$as_ac_var=yes"
42975 else
42976   echo "$as_me: failed program was:" >&5
42977 sed 's/^/| /' conftest.$ac_ext >&5
42978
42979         eval "$as_ac_var=no"
42980 fi
42981
42982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42983       conftest$ac_exeext conftest.$ac_ext
42984 fi
42985 ac_res=`eval echo '${'$as_ac_var'}'`
42986                { echo "$as_me:$LINENO: result: $ac_res" >&5
42987 echo "${ECHO_T}$ac_res" >&6; }
42988 if test `eval echo '${'$as_ac_var'}'` = yes; then
42989   cat >>confdefs.h <<_ACEOF
42990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42991 _ACEOF
42992
42993                 cat >>confdefs.h <<\_ACEOF
42994 #define HAVE_DLOPEN 1
42995 _ACEOF
42996
42997                 HAVE_DL_FUNCS=1
42998
42999 else
43000
43001                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43002 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43003 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43004   echo $ECHO_N "(cached) $ECHO_C" >&6
43005 else
43006   ac_check_lib_save_LIBS=$LIBS
43007 LIBS="-ldl  $LIBS"
43008 cat >conftest.$ac_ext <<_ACEOF
43009 /* confdefs.h.  */
43010 _ACEOF
43011 cat confdefs.h >>conftest.$ac_ext
43012 cat >>conftest.$ac_ext <<_ACEOF
43013 /* end confdefs.h.  */
43014
43015 /* Override any GCC internal prototype to avoid an error.
43016    Use char because int might match the return type of a GCC
43017    builtin and then its argument prototype would still apply.  */
43018 #ifdef __cplusplus
43019 extern "C"
43020 #endif
43021 char dlopen ();
43022 int
43023 main ()
43024 {
43025 return dlopen ();
43026   ;
43027   return 0;
43028 }
43029 _ACEOF
43030 rm -f conftest.$ac_objext conftest$ac_exeext
43031 if { (ac_try="$ac_link"
43032 case "(($ac_try" in
43033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43034   *) ac_try_echo=$ac_try;;
43035 esac
43036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43037   (eval "$ac_link") 2>conftest.er1
43038   ac_status=$?
43039   grep -v '^ *+' conftest.er1 >conftest.err
43040   rm -f conftest.er1
43041   cat conftest.err >&5
43042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43043   (exit $ac_status); } && {
43044          test -z "$ac_c_werror_flag" ||
43045          test ! -s conftest.err
43046        } && test -s conftest$ac_exeext &&
43047        $as_test_x conftest$ac_exeext; then
43048   ac_cv_lib_dl_dlopen=yes
43049 else
43050   echo "$as_me: failed program was:" >&5
43051 sed 's/^/| /' conftest.$ac_ext >&5
43052
43053         ac_cv_lib_dl_dlopen=no
43054 fi
43055
43056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43057       conftest$ac_exeext conftest.$ac_ext
43058 LIBS=$ac_check_lib_save_LIBS
43059 fi
43060 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43061 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43062 if test $ac_cv_lib_dl_dlopen = yes; then
43063
43064                                 cat >>confdefs.h <<\_ACEOF
43065 #define HAVE_DLOPEN 1
43066 _ACEOF
43067
43068                                 HAVE_DL_FUNCS=1
43069                                 DL_LINK=" -ldl$DL_LINK"
43070
43071 else
43072
43073
43074 for ac_func in shl_load
43075 do
43076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43080   echo $ECHO_N "(cached) $ECHO_C" >&6
43081 else
43082   cat >conftest.$ac_ext <<_ACEOF
43083 /* confdefs.h.  */
43084 _ACEOF
43085 cat confdefs.h >>conftest.$ac_ext
43086 cat >>conftest.$ac_ext <<_ACEOF
43087 /* end confdefs.h.  */
43088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43090 #define $ac_func innocuous_$ac_func
43091
43092 /* System header to define __stub macros and hopefully few prototypes,
43093     which can conflict with char $ac_func (); below.
43094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43095     <limits.h> exists even on freestanding compilers.  */
43096
43097 #ifdef __STDC__
43098 # include <limits.h>
43099 #else
43100 # include <assert.h>
43101 #endif
43102
43103 #undef $ac_func
43104
43105 /* Override any GCC internal prototype to avoid an error.
43106    Use char because int might match the return type of a GCC
43107    builtin and then its argument prototype would still apply.  */
43108 #ifdef __cplusplus
43109 extern "C"
43110 #endif
43111 char $ac_func ();
43112 /* The GNU C library defines this for functions which it implements
43113     to always fail with ENOSYS.  Some functions are actually named
43114     something starting with __ and the normal name is an alias.  */
43115 #if defined __stub_$ac_func || defined __stub___$ac_func
43116 choke me
43117 #endif
43118
43119 int
43120 main ()
43121 {
43122 return $ac_func ();
43123   ;
43124   return 0;
43125 }
43126 _ACEOF
43127 rm -f conftest.$ac_objext conftest$ac_exeext
43128 if { (ac_try="$ac_link"
43129 case "(($ac_try" in
43130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43131   *) ac_try_echo=$ac_try;;
43132 esac
43133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43134   (eval "$ac_link") 2>conftest.er1
43135   ac_status=$?
43136   grep -v '^ *+' conftest.er1 >conftest.err
43137   rm -f conftest.er1
43138   cat conftest.err >&5
43139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43140   (exit $ac_status); } && {
43141          test -z "$ac_c_werror_flag" ||
43142          test ! -s conftest.err
43143        } && test -s conftest$ac_exeext &&
43144        $as_test_x conftest$ac_exeext; then
43145   eval "$as_ac_var=yes"
43146 else
43147   echo "$as_me: failed program was:" >&5
43148 sed 's/^/| /' conftest.$ac_ext >&5
43149
43150         eval "$as_ac_var=no"
43151 fi
43152
43153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43154       conftest$ac_exeext conftest.$ac_ext
43155 fi
43156 ac_res=`eval echo '${'$as_ac_var'}'`
43157                { echo "$as_me:$LINENO: result: $ac_res" >&5
43158 echo "${ECHO_T}$ac_res" >&6; }
43159 if test `eval echo '${'$as_ac_var'}'` = yes; then
43160   cat >>confdefs.h <<_ACEOF
43161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43162 _ACEOF
43163
43164                                                 cat >>confdefs.h <<\_ACEOF
43165 #define HAVE_SHL_LOAD 1
43166 _ACEOF
43167
43168                                                 HAVE_SHL_FUNCS=1
43169
43170 else
43171
43172                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43173 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43174 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43175   echo $ECHO_N "(cached) $ECHO_C" >&6
43176 else
43177   ac_check_lib_save_LIBS=$LIBS
43178 LIBS="-lshl_load  $LIBS"
43179 cat >conftest.$ac_ext <<_ACEOF
43180 /* confdefs.h.  */
43181 _ACEOF
43182 cat confdefs.h >>conftest.$ac_ext
43183 cat >>conftest.$ac_ext <<_ACEOF
43184 /* end confdefs.h.  */
43185
43186 /* Override any GCC internal prototype to avoid an error.
43187    Use char because int might match the return type of a GCC
43188    builtin and then its argument prototype would still apply.  */
43189 #ifdef __cplusplus
43190 extern "C"
43191 #endif
43192 char dld ();
43193 int
43194 main ()
43195 {
43196 return dld ();
43197   ;
43198   return 0;
43199 }
43200 _ACEOF
43201 rm -f conftest.$ac_objext conftest$ac_exeext
43202 if { (ac_try="$ac_link"
43203 case "(($ac_try" in
43204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43205   *) ac_try_echo=$ac_try;;
43206 esac
43207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43208   (eval "$ac_link") 2>conftest.er1
43209   ac_status=$?
43210   grep -v '^ *+' conftest.er1 >conftest.err
43211   rm -f conftest.er1
43212   cat conftest.err >&5
43213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214   (exit $ac_status); } && {
43215          test -z "$ac_c_werror_flag" ||
43216          test ! -s conftest.err
43217        } && test -s conftest$ac_exeext &&
43218        $as_test_x conftest$ac_exeext; then
43219   ac_cv_lib_shl_load_dld=yes
43220 else
43221   echo "$as_me: failed program was:" >&5
43222 sed 's/^/| /' conftest.$ac_ext >&5
43223
43224         ac_cv_lib_shl_load_dld=no
43225 fi
43226
43227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43228       conftest$ac_exeext conftest.$ac_ext
43229 LIBS=$ac_check_lib_save_LIBS
43230 fi
43231 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43232 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43233 if test $ac_cv_lib_shl_load_dld = yes; then
43234
43235                                                                 HAVE_SHL_FUNCS=1
43236                                                                 DL_LINK=" -ldld$DL_LINK"
43237
43238 fi
43239
43240
43241 fi
43242 done
43243
43244
43245 fi
43246
43247
43248 fi
43249 done
43250
43251
43252                         if test "$HAVE_DL_FUNCS" = 1; then
43253
43254 for ac_func in dlerror
43255 do
43256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43260   echo $ECHO_N "(cached) $ECHO_C" >&6
43261 else
43262   cat >conftest.$ac_ext <<_ACEOF
43263 /* confdefs.h.  */
43264 _ACEOF
43265 cat confdefs.h >>conftest.$ac_ext
43266 cat >>conftest.$ac_ext <<_ACEOF
43267 /* end confdefs.h.  */
43268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43270 #define $ac_func innocuous_$ac_func
43271
43272 /* System header to define __stub macros and hopefully few prototypes,
43273     which can conflict with char $ac_func (); below.
43274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43275     <limits.h> exists even on freestanding compilers.  */
43276
43277 #ifdef __STDC__
43278 # include <limits.h>
43279 #else
43280 # include <assert.h>
43281 #endif
43282
43283 #undef $ac_func
43284
43285 /* Override any GCC internal prototype to avoid an error.
43286    Use char because int might match the return type of a GCC
43287    builtin and then its argument prototype would still apply.  */
43288 #ifdef __cplusplus
43289 extern "C"
43290 #endif
43291 char $ac_func ();
43292 /* The GNU C library defines this for functions which it implements
43293     to always fail with ENOSYS.  Some functions are actually named
43294     something starting with __ and the normal name is an alias.  */
43295 #if defined __stub_$ac_func || defined __stub___$ac_func
43296 choke me
43297 #endif
43298
43299 int
43300 main ()
43301 {
43302 return $ac_func ();
43303   ;
43304   return 0;
43305 }
43306 _ACEOF
43307 rm -f conftest.$ac_objext conftest$ac_exeext
43308 if { (ac_try="$ac_link"
43309 case "(($ac_try" in
43310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43311   *) ac_try_echo=$ac_try;;
43312 esac
43313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43314   (eval "$ac_link") 2>conftest.er1
43315   ac_status=$?
43316   grep -v '^ *+' conftest.er1 >conftest.err
43317   rm -f conftest.er1
43318   cat conftest.err >&5
43319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43320   (exit $ac_status); } && {
43321          test -z "$ac_c_werror_flag" ||
43322          test ! -s conftest.err
43323        } && test -s conftest$ac_exeext &&
43324        $as_test_x conftest$ac_exeext; then
43325   eval "$as_ac_var=yes"
43326 else
43327   echo "$as_me: failed program was:" >&5
43328 sed 's/^/| /' conftest.$ac_ext >&5
43329
43330         eval "$as_ac_var=no"
43331 fi
43332
43333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43334       conftest$ac_exeext conftest.$ac_ext
43335 fi
43336 ac_res=`eval echo '${'$as_ac_var'}'`
43337                { echo "$as_me:$LINENO: result: $ac_res" >&5
43338 echo "${ECHO_T}$ac_res" >&6; }
43339 if test `eval echo '${'$as_ac_var'}'` = yes; then
43340   cat >>confdefs.h <<_ACEOF
43341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43342 _ACEOF
43343  cat >>confdefs.h <<\_ACEOF
43344 #define HAVE_DLERROR 1
43345 _ACEOF
43346
43347 else
43348
43349                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43350 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43351 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43352   echo $ECHO_N "(cached) $ECHO_C" >&6
43353 else
43354   ac_check_lib_save_LIBS=$LIBS
43355 LIBS="-ldl  $LIBS"
43356 cat >conftest.$ac_ext <<_ACEOF
43357 /* confdefs.h.  */
43358 _ACEOF
43359 cat confdefs.h >>conftest.$ac_ext
43360 cat >>conftest.$ac_ext <<_ACEOF
43361 /* end confdefs.h.  */
43362
43363 /* Override any GCC internal prototype to avoid an error.
43364    Use char because int might match the return type of a GCC
43365    builtin and then its argument prototype would still apply.  */
43366 #ifdef __cplusplus
43367 extern "C"
43368 #endif
43369 char dlerror ();
43370 int
43371 main ()
43372 {
43373 return dlerror ();
43374   ;
43375   return 0;
43376 }
43377 _ACEOF
43378 rm -f conftest.$ac_objext conftest$ac_exeext
43379 if { (ac_try="$ac_link"
43380 case "(($ac_try" in
43381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43382   *) ac_try_echo=$ac_try;;
43383 esac
43384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43385   (eval "$ac_link") 2>conftest.er1
43386   ac_status=$?
43387   grep -v '^ *+' conftest.er1 >conftest.err
43388   rm -f conftest.er1
43389   cat conftest.err >&5
43390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43391   (exit $ac_status); } && {
43392          test -z "$ac_c_werror_flag" ||
43393          test ! -s conftest.err
43394        } && test -s conftest$ac_exeext &&
43395        $as_test_x conftest$ac_exeext; then
43396   ac_cv_lib_dl_dlerror=yes
43397 else
43398   echo "$as_me: failed program was:" >&5
43399 sed 's/^/| /' conftest.$ac_ext >&5
43400
43401         ac_cv_lib_dl_dlerror=no
43402 fi
43403
43404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43405       conftest$ac_exeext conftest.$ac_ext
43406 LIBS=$ac_check_lib_save_LIBS
43407 fi
43408 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43409 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43410 if test $ac_cv_lib_dl_dlerror = yes; then
43411   cat >>confdefs.h <<\_ACEOF
43412 #define HAVE_DLERROR 1
43413 _ACEOF
43414
43415 fi
43416
43417
43418
43419 fi
43420 done
43421
43422             fi
43423         fi
43424
43425                 if test "$USE_DARWIN" = 1; then
43426                         HAVE_DL_FUNCS=1
43427         fi
43428
43429         if test "$HAVE_DL_FUNCS" = 0; then
43430             if test "$HAVE_SHL_FUNCS" = 0; then
43431               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43432                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43433 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43434                   wxUSE_DYNAMIC_LOADER=no
43435                   wxUSE_DYNLIB_CLASS=no
43436               else
43437                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43438 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43439               fi
43440             fi
43441         fi
43442     fi
43443 fi
43444
43445 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43446     cat >>confdefs.h <<\_ACEOF
43447 #define wxUSE_DYNAMIC_LOADER 1
43448 _ACEOF
43449
43450 fi
43451 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43452     cat >>confdefs.h <<\_ACEOF
43453 #define wxUSE_DYNLIB_CLASS 1
43454 _ACEOF
43455
43456 fi
43457
43458
43459
43460 if test "$wxUSE_PLUGINS" = "yes" ; then
43461     if test "$wxUSE_SHARED" = "no" ; then
43462         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43463 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43464         wxUSE_PLUGINS=no
43465     fi
43466     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43467         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43468 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43469         wxUSE_PLUGINS=no
43470     fi
43471     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43472         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43473 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43474         wxUSE_PLUGINS=no
43475     fi
43476     if test "$wxUSE_PLUGINS" = "yes" ; then
43477         cat >>confdefs.h <<\_ACEOF
43478 #define wxUSE_PLUGINS 1
43479 _ACEOF
43480
43481     fi
43482 fi
43483
43484
43485 if test "$wxUSE_FSWATCHER" = "yes"; then
43486                 if test "$wxUSE_MSW" != "1"; then
43487         if test "$wxUSE_UNIX" = "yes"; then
43488
43489 for ac_header in sys/inotify.h
43490 do
43491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43495   echo $ECHO_N "(cached) $ECHO_C" >&6
43496 else
43497   cat >conftest.$ac_ext <<_ACEOF
43498 /* confdefs.h.  */
43499 _ACEOF
43500 cat confdefs.h >>conftest.$ac_ext
43501 cat >>conftest.$ac_ext <<_ACEOF
43502 /* end confdefs.h.  */
43503 $ac_includes_default
43504
43505 #include <$ac_header>
43506 _ACEOF
43507 rm -f conftest.$ac_objext
43508 if { (ac_try="$ac_compile"
43509 case "(($ac_try" in
43510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43511   *) ac_try_echo=$ac_try;;
43512 esac
43513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43514   (eval "$ac_compile") 2>conftest.er1
43515   ac_status=$?
43516   grep -v '^ *+' conftest.er1 >conftest.err
43517   rm -f conftest.er1
43518   cat conftest.err >&5
43519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520   (exit $ac_status); } && {
43521          test -z "$ac_c_werror_flag" ||
43522          test ! -s conftest.err
43523        } && test -s conftest.$ac_objext; then
43524   eval "$as_ac_Header=yes"
43525 else
43526   echo "$as_me: failed program was:" >&5
43527 sed 's/^/| /' conftest.$ac_ext >&5
43528
43529         eval "$as_ac_Header=no"
43530 fi
43531
43532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43533 fi
43534 ac_res=`eval echo '${'$as_ac_Header'}'`
43535                { echo "$as_me:$LINENO: result: $ac_res" >&5
43536 echo "${ECHO_T}$ac_res" >&6; }
43537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43538   cat >>confdefs.h <<_ACEOF
43539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43540 _ACEOF
43541
43542 fi
43543
43544 done
43545
43546             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
43547                 cat >>confdefs.h <<\_ACEOF
43548 #define wxHAS_INOTIFY 1
43549 _ACEOF
43550
43551             else
43552
43553 for ac_header in sys/event.h
43554 do
43555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43559   echo $ECHO_N "(cached) $ECHO_C" >&6
43560 else
43561   cat >conftest.$ac_ext <<_ACEOF
43562 /* confdefs.h.  */
43563 _ACEOF
43564 cat confdefs.h >>conftest.$ac_ext
43565 cat >>conftest.$ac_ext <<_ACEOF
43566 /* end confdefs.h.  */
43567 $ac_includes_default
43568
43569 #include <$ac_header>
43570 _ACEOF
43571 rm -f conftest.$ac_objext
43572 if { (ac_try="$ac_compile"
43573 case "(($ac_try" in
43574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43575   *) ac_try_echo=$ac_try;;
43576 esac
43577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43578   (eval "$ac_compile") 2>conftest.er1
43579   ac_status=$?
43580   grep -v '^ *+' conftest.er1 >conftest.err
43581   rm -f conftest.er1
43582   cat conftest.err >&5
43583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43584   (exit $ac_status); } && {
43585          test -z "$ac_c_werror_flag" ||
43586          test ! -s conftest.err
43587        } && test -s conftest.$ac_objext; then
43588   eval "$as_ac_Header=yes"
43589 else
43590   echo "$as_me: failed program was:" >&5
43591 sed 's/^/| /' conftest.$ac_ext >&5
43592
43593         eval "$as_ac_Header=no"
43594 fi
43595
43596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43597 fi
43598 ac_res=`eval echo '${'$as_ac_Header'}'`
43599                { echo "$as_me:$LINENO: result: $ac_res" >&5
43600 echo "${ECHO_T}$ac_res" >&6; }
43601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43602   cat >>confdefs.h <<_ACEOF
43603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43604 _ACEOF
43605
43606 fi
43607
43608 done
43609
43610                 if test "$ac_cv_header_sys_event_h" = "yes"; then
43611                     cat >>confdefs.h <<\_ACEOF
43612 #define wxHAS_KQUEUE 1
43613 _ACEOF
43614
43615                 else
43616                     wxUSE_FSWATCHER=no
43617                 fi
43618             fi
43619         else
43620             wxUSE_FSWATCHER=no
43621         fi
43622     fi
43623
43624     if test "$wxUSE_FSWATCHER" = "yes"; then
43625         cat >>confdefs.h <<\_ACEOF
43626 #define wxUSE_FSWATCHER 1
43627 _ACEOF
43628
43629         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
43630     else
43631         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
43632 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
43633     fi
43634 fi
43635
43636
43637 if test "$wxUSE_STL" = "yes"; then
43638   cat >>confdefs.h <<\_ACEOF
43639 #define wxUSE_STL 1
43640 _ACEOF
43641
43642 fi
43643
43644 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43645   cat >>confdefs.h <<\_ACEOF
43646 #define wxUSE_EXTENDED_RTTI 1
43647 _ACEOF
43648
43649 fi
43650
43651 if test "$wxUSE_ANY" = "yes"; then
43652     cat >>confdefs.h <<\_ACEOF
43653 #define wxUSE_ANY 1
43654 _ACEOF
43655
43656 fi
43657
43658 if test "$wxUSE_APPLE_IEEE" = "yes"; then
43659   cat >>confdefs.h <<\_ACEOF
43660 #define wxUSE_APPLE_IEEE 1
43661 _ACEOF
43662
43663 fi
43664
43665 if test "$wxUSE_TIMER" = "yes"; then
43666   cat >>confdefs.h <<\_ACEOF
43667 #define wxUSE_TIMER 1
43668 _ACEOF
43669
43670 fi
43671
43672 if test "$USE_UNIX" = 1 ; then
43673         if test "$wxUSE_MGL" != 1; then
43674                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43675 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
43676 if test "${ac_cv_header_sys_soundcard+set}" = set; then
43677   echo $ECHO_N "(cached) $ECHO_C" >&6
43678 else
43679
43680             cat >conftest.$ac_ext <<_ACEOF
43681 /* confdefs.h.  */
43682 _ACEOF
43683 cat confdefs.h >>conftest.$ac_ext
43684 cat >>conftest.$ac_ext <<_ACEOF
43685 /* end confdefs.h.  */
43686
43687                     #include <sys/ioctl.h>
43688                     #include <sys/soundcard.h>
43689
43690 int
43691 main ()
43692 {
43693
43694                     ioctl(0, SNDCTL_DSP_SPEED, 0);
43695
43696   ;
43697   return 0;
43698 }
43699 _ACEOF
43700 rm -f conftest.$ac_objext conftest$ac_exeext
43701 if { (ac_try="$ac_link"
43702 case "(($ac_try" in
43703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43704   *) ac_try_echo=$ac_try;;
43705 esac
43706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43707   (eval "$ac_link") 2>conftest.er1
43708   ac_status=$?
43709   grep -v '^ *+' conftest.er1 >conftest.err
43710   rm -f conftest.er1
43711   cat conftest.err >&5
43712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43713   (exit $ac_status); } && {
43714          test -z "$ac_c_werror_flag" ||
43715          test ! -s conftest.err
43716        } && test -s conftest$ac_exeext &&
43717        $as_test_x conftest$ac_exeext; then
43718   ac_cv_header_sys_soundcard=yes
43719 else
43720   echo "$as_me: failed program was:" >&5
43721 sed 's/^/| /' conftest.$ac_ext >&5
43722
43723
43724                     saveLibs="$LIBS"
43725                     LIBS="$saveLibs -lossaudio"
43726                     cat >conftest.$ac_ext <<_ACEOF
43727 /* confdefs.h.  */
43728 _ACEOF
43729 cat confdefs.h >>conftest.$ac_ext
43730 cat >>conftest.$ac_ext <<_ACEOF
43731 /* end confdefs.h.  */
43732
43733                             #include <sys/ioctl.h>
43734                             #include <sys/soundcard.h>
43735
43736 int
43737 main ()
43738 {
43739
43740                             ioctl(0, SNDCTL_DSP_SPEED, 0);
43741
43742   ;
43743   return 0;
43744 }
43745 _ACEOF
43746 rm -f conftest.$ac_objext conftest$ac_exeext
43747 if { (ac_try="$ac_link"
43748 case "(($ac_try" in
43749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43750   *) ac_try_echo=$ac_try;;
43751 esac
43752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43753   (eval "$ac_link") 2>conftest.er1
43754   ac_status=$?
43755   grep -v '^ *+' conftest.er1 >conftest.err
43756   rm -f conftest.er1
43757   cat conftest.err >&5
43758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759   (exit $ac_status); } && {
43760          test -z "$ac_c_werror_flag" ||
43761          test ! -s conftest.err
43762        } && test -s conftest$ac_exeext &&
43763        $as_test_x conftest$ac_exeext; then
43764   ac_cv_header_sys_soundcard=yes
43765 else
43766   echo "$as_me: failed program was:" >&5
43767 sed 's/^/| /' conftest.$ac_ext >&5
43768
43769
43770                             LIBS="$saveLibs"
43771                             ac_cv_header_sys_soundcard=no
43772
43773
43774 fi
43775
43776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43777       conftest$ac_exeext conftest.$ac_ext
43778
43779
43780 fi
43781
43782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43783       conftest$ac_exeext conftest.$ac_ext
43784
43785 fi
43786 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43787 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
43788     fi
43789
43790     if test "$ac_cv_header_sys_soundcard" = "yes"; then
43791         cat >>confdefs.h <<\_ACEOF
43792 #define HAVE_SYS_SOUNDCARD_H 1
43793 _ACEOF
43794
43795     fi
43796 fi
43797
43798 WITH_PLUGIN_SDL=0
43799 if test "$wxUSE_SOUND" = "yes"; then
43800   if test "$USE_UNIX" = 1 ; then
43801     if test "$wxUSE_LIBSDL" != "no"; then
43802
43803 # Check whether --with-sdl-prefix was given.
43804 if test "${with_sdl_prefix+set}" = set; then
43805   withval=$with_sdl_prefix; sdl_prefix="$withval"
43806 else
43807   sdl_prefix=""
43808 fi
43809
43810
43811 # Check whether --with-sdl-exec-prefix was given.
43812 if test "${with_sdl_exec_prefix+set}" = set; then
43813   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
43814 else
43815   sdl_exec_prefix=""
43816 fi
43817
43818 # Check whether --enable-sdltest was given.
43819 if test "${enable_sdltest+set}" = set; then
43820   enableval=$enable_sdltest;
43821 else
43822   enable_sdltest=yes
43823 fi
43824
43825
43826   if test x$sdl_exec_prefix != x ; then
43827     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43828     if test x${SDL_CONFIG+set} != xset ; then
43829       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43830     fi
43831   fi
43832   if test x$sdl_prefix != x ; then
43833     sdl_args="$sdl_args --prefix=$sdl_prefix"
43834     if test x${SDL_CONFIG+set} != xset ; then
43835       SDL_CONFIG=$sdl_prefix/bin/sdl-config
43836     fi
43837   fi
43838
43839   if test "x$prefix" != xNONE; then
43840     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43841   fi
43842   # Extract the first word of "sdl-config", so it can be a program name with args.
43843 set dummy sdl-config; ac_word=$2
43844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43846 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43847   echo $ECHO_N "(cached) $ECHO_C" >&6
43848 else
43849   case $SDL_CONFIG in
43850   [\\/]* | ?:[\\/]*)
43851   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43852   ;;
43853   *)
43854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43855 for as_dir in $PATH
43856 do
43857   IFS=$as_save_IFS
43858   test -z "$as_dir" && as_dir=.
43859   for ac_exec_ext in '' $ac_executable_extensions; do
43860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43861     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43863     break 2
43864   fi
43865 done
43866 done
43867 IFS=$as_save_IFS
43868
43869   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43870   ;;
43871 esac
43872 fi
43873 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
43874 if test -n "$SDL_CONFIG"; then
43875   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43876 echo "${ECHO_T}$SDL_CONFIG" >&6; }
43877 else
43878   { echo "$as_me:$LINENO: result: no" >&5
43879 echo "${ECHO_T}no" >&6; }
43880 fi
43881
43882
43883   min_sdl_version=1.2.0
43884   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43885 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
43886   no_sdl=""
43887   if test "$SDL_CONFIG" = "no" ; then
43888     no_sdl=yes
43889   else
43890     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43891     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43892
43893     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43894            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43895     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43896            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43897     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43898            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43899     if test "x$enable_sdltest" = "xyes" ; then
43900       ac_save_CFLAGS="$CFLAGS"
43901       ac_save_CXXFLAGS="$CXXFLAGS"
43902       ac_save_LIBS="$LIBS"
43903       CFLAGS="$CFLAGS $SDL_CFLAGS"
43904       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43905       LIBS="$LIBS $SDL_LIBS"
43906       rm -f conf.sdltest
43907       if test "$cross_compiling" = yes; then
43908   echo $ac_n "cross compiling; assumed OK... $ac_c"
43909 else
43910   cat >conftest.$ac_ext <<_ACEOF
43911 /* confdefs.h.  */
43912 _ACEOF
43913 cat confdefs.h >>conftest.$ac_ext
43914 cat >>conftest.$ac_ext <<_ACEOF
43915 /* end confdefs.h.  */
43916
43917 #include <stdio.h>
43918 #include <stdlib.h>
43919 #include <string.h>
43920 #include "SDL.h"
43921
43922 char*
43923 my_strdup (char *str)
43924 {
43925   char *new_str;
43926
43927   if (str)
43928     {
43929       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43930       strcpy (new_str, str);
43931     }
43932   else
43933     new_str = NULL;
43934
43935   return new_str;
43936 }
43937
43938 int main (int argc, char *argv[])
43939 {
43940   int major, minor, micro;
43941   char *tmp_version;
43942
43943   /* This hangs on some systems (?)
43944   system ("touch conf.sdltest");
43945   */
43946   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43947
43948   /* HP/UX 9 (%@#!) writes to sscanf strings */
43949   tmp_version = my_strdup("$min_sdl_version");
43950   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43951      printf("%s, bad version string\n", "$min_sdl_version");
43952      exit(1);
43953    }
43954
43955    if (($sdl_major_version > major) ||
43956       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43957       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43958     {
43959       return 0;
43960     }
43961   else
43962     {
43963       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43964       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43965       printf("*** best to upgrade to the required version.\n");
43966       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43967       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43968       printf("*** config.cache before re-running configure\n");
43969       return 1;
43970     }
43971 }
43972
43973
43974 _ACEOF
43975 rm -f conftest$ac_exeext
43976 if { (ac_try="$ac_link"
43977 case "(($ac_try" in
43978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43979   *) ac_try_echo=$ac_try;;
43980 esac
43981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43982   (eval "$ac_link") 2>&5
43983   ac_status=$?
43984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43986   { (case "(($ac_try" in
43987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43988   *) ac_try_echo=$ac_try;;
43989 esac
43990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43991   (eval "$ac_try") 2>&5
43992   ac_status=$?
43993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43994   (exit $ac_status); }; }; then
43995   :
43996 else
43997   echo "$as_me: program exited with status $ac_status" >&5
43998 echo "$as_me: failed program was:" >&5
43999 sed 's/^/| /' conftest.$ac_ext >&5
44000
44001 ( exit $ac_status )
44002 no_sdl=yes
44003 fi
44004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44005 fi
44006
44007
44008        CFLAGS="$ac_save_CFLAGS"
44009        CXXFLAGS="$ac_save_CXXFLAGS"
44010        LIBS="$ac_save_LIBS"
44011      fi
44012   fi
44013   if test "x$no_sdl" = x ; then
44014      { echo "$as_me:$LINENO: result: yes" >&5
44015 echo "${ECHO_T}yes" >&6; }
44016
44017                     EXTRALIBS_SDL="$SDL_LIBS"
44018                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44019                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44020                     cat >>confdefs.h <<\_ACEOF
44021 #define wxUSE_LIBSDL 1
44022 _ACEOF
44023
44024
44025   else
44026      { echo "$as_me:$LINENO: result: no" >&5
44027 echo "${ECHO_T}no" >&6; }
44028      if test "$SDL_CONFIG" = "no" ; then
44029        echo "*** The sdl-config script installed by SDL could not be found"
44030        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44031        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44032        echo "*** full path to sdl-config."
44033      else
44034        if test -f conf.sdltest ; then
44035         :
44036        else
44037           echo "*** Could not run SDL test program, checking why..."
44038           CFLAGS="$CFLAGS $SDL_CFLAGS"
44039           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44040           LIBS="$LIBS $SDL_LIBS"
44041           cat >conftest.$ac_ext <<_ACEOF
44042 /* confdefs.h.  */
44043 _ACEOF
44044 cat confdefs.h >>conftest.$ac_ext
44045 cat >>conftest.$ac_ext <<_ACEOF
44046 /* end confdefs.h.  */
44047
44048 #include <stdio.h>
44049 #include "SDL.h"
44050
44051 int main(int argc, char *argv[])
44052 { return 0; }
44053 #undef  main
44054 #define main K_and_R_C_main
44055
44056 int
44057 main ()
44058 {
44059  return 0;
44060   ;
44061   return 0;
44062 }
44063 _ACEOF
44064 rm -f conftest.$ac_objext conftest$ac_exeext
44065 if { (ac_try="$ac_link"
44066 case "(($ac_try" in
44067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44068   *) ac_try_echo=$ac_try;;
44069 esac
44070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44071   (eval "$ac_link") 2>conftest.er1
44072   ac_status=$?
44073   grep -v '^ *+' conftest.er1 >conftest.err
44074   rm -f conftest.er1
44075   cat conftest.err >&5
44076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44077   (exit $ac_status); } && {
44078          test -z "$ac_c_werror_flag" ||
44079          test ! -s conftest.err
44080        } && test -s conftest$ac_exeext &&
44081        $as_test_x conftest$ac_exeext; then
44082    echo "*** The test program compiled, but did not run. This usually means"
44083           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44084           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44085           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44086           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44087           echo "*** is required on your system"
44088           echo "***"
44089           echo "*** If you have an old version installed, it is best to remove it, although"
44090           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44091 else
44092   echo "$as_me: failed program was:" >&5
44093 sed 's/^/| /' conftest.$ac_ext >&5
44094
44095          echo "*** The test program failed to compile or link. See the file config.log for the"
44096           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44097           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44098           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44099 fi
44100
44101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44102       conftest$ac_exeext conftest.$ac_ext
44103           CFLAGS="$ac_save_CFLAGS"
44104           CXXFLAGS="$ac_save_CXXFLAGS"
44105           LIBS="$ac_save_LIBS"
44106        fi
44107      fi
44108      SDL_CFLAGS=""
44109      SDL_LIBS=""
44110      wxUSE_LIBSDL="no"
44111   fi
44112
44113
44114   rm -f conf.sdltest
44115
44116       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44117         WITH_PLUGIN_SDL=1
44118       fi
44119     fi
44120   else
44121         if test "$wxUSE_MGL" = 1; then
44122         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44123 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44124         wxUSE_SOUND="no"
44125     fi
44126   fi
44127 fi
44128
44129 if test "$wxUSE_SOUND" = "yes"; then
44130   cat >>confdefs.h <<\_ACEOF
44131 #define wxUSE_SOUND 1
44132 _ACEOF
44133
44134   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44135 fi
44136
44137 if test "$WXGTK2" = 1; then
44138
44139
44140 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44141         if test -n "$ac_tool_prefix"; then
44142   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44143 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44146 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44147   echo $ECHO_N "(cached) $ECHO_C" >&6
44148 else
44149   case $PKG_CONFIG in
44150   [\\/]* | ?:[\\/]*)
44151   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44152   ;;
44153   *)
44154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44155 for as_dir in $PATH
44156 do
44157   IFS=$as_save_IFS
44158   test -z "$as_dir" && as_dir=.
44159   for ac_exec_ext in '' $ac_executable_extensions; do
44160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44161     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44163     break 2
44164   fi
44165 done
44166 done
44167 IFS=$as_save_IFS
44168
44169   ;;
44170 esac
44171 fi
44172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44173 if test -n "$PKG_CONFIG"; then
44174   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44175 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44176 else
44177   { echo "$as_me:$LINENO: result: no" >&5
44178 echo "${ECHO_T}no" >&6; }
44179 fi
44180
44181
44182 fi
44183 if test -z "$ac_cv_path_PKG_CONFIG"; then
44184   ac_pt_PKG_CONFIG=$PKG_CONFIG
44185   # Extract the first word of "pkg-config", so it can be a program name with args.
44186 set dummy pkg-config; ac_word=$2
44187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44189 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44190   echo $ECHO_N "(cached) $ECHO_C" >&6
44191 else
44192   case $ac_pt_PKG_CONFIG in
44193   [\\/]* | ?:[\\/]*)
44194   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44195   ;;
44196   *)
44197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44198 for as_dir in $PATH
44199 do
44200   IFS=$as_save_IFS
44201   test -z "$as_dir" && as_dir=.
44202   for ac_exec_ext in '' $ac_executable_extensions; do
44203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44204     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44206     break 2
44207   fi
44208 done
44209 done
44210 IFS=$as_save_IFS
44211
44212   ;;
44213 esac
44214 fi
44215 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44216 if test -n "$ac_pt_PKG_CONFIG"; then
44217   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44218 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44219 else
44220   { echo "$as_me:$LINENO: result: no" >&5
44221 echo "${ECHO_T}no" >&6; }
44222 fi
44223
44224   if test "x$ac_pt_PKG_CONFIG" = x; then
44225     PKG_CONFIG=""
44226   else
44227     case $cross_compiling:$ac_tool_warned in
44228 yes:)
44229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44230 whose name does not start with the host triplet.  If you think this
44231 configuration is useful to you, please write to autoconf@gnu.org." >&5
44232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44233 whose name does not start with the host triplet.  If you think this
44234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44235 ac_tool_warned=yes ;;
44236 esac
44237     PKG_CONFIG=$ac_pt_PKG_CONFIG
44238   fi
44239 else
44240   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44241 fi
44242
44243 fi
44244 if test -n "$PKG_CONFIG"; then
44245         _pkg_min_version=0.9.0
44246         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44247 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44248         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44249                 { echo "$as_me:$LINENO: result: yes" >&5
44250 echo "${ECHO_T}yes" >&6; }
44251         else
44252                 { echo "$as_me:$LINENO: result: no" >&5
44253 echo "${ECHO_T}no" >&6; }
44254                 PKG_CONFIG=""
44255         fi
44256
44257 fi
44258
44259     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44260
44261         if test "$wxUSE_GTKPRINT" = "yes" ; then
44262
44263
44264 pkg_failed=no
44265 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44266 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44267
44268 if test -n "$PKG_CONFIG"; then
44269     if test -n "$GTKPRINT_CFLAGS"; then
44270         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44271     else
44272         if test -n "$PKG_CONFIG" && \
44273     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44274   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44275   ac_status=$?
44276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44277   (exit $ac_status); }; then
44278   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44279 else
44280   pkg_failed=yes
44281 fi
44282     fi
44283 else
44284         pkg_failed=untried
44285 fi
44286 if test -n "$PKG_CONFIG"; then
44287     if test -n "$GTKPRINT_LIBS"; then
44288         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44289     else
44290         if test -n "$PKG_CONFIG" && \
44291     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44292   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44293   ac_status=$?
44294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44295   (exit $ac_status); }; then
44296   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44297 else
44298   pkg_failed=yes
44299 fi
44300     fi
44301 else
44302         pkg_failed=untried
44303 fi
44304
44305
44306
44307 if test $pkg_failed = yes; then
44308
44309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44310         _pkg_short_errors_supported=yes
44311 else
44312         _pkg_short_errors_supported=no
44313 fi
44314         if test $_pkg_short_errors_supported = yes; then
44315                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44316         else
44317                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44318         fi
44319         # Put the nasty error message in config.log where it belongs
44320         echo "$GTKPRINT_PKG_ERRORS" >&5
44321
44322
44323                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44324 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44325                         wxUSE_GTKPRINT="no"
44326
44327
44328 elif test $pkg_failed = untried; then
44329
44330                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44331 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44332                         wxUSE_GTKPRINT="no"
44333
44334
44335 else
44336         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44337         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44338         { echo "$as_me:$LINENO: result: yes" >&5
44339 echo "${ECHO_T}yes" >&6; }
44340
44341                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44342                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44343                         cat >>confdefs.h <<\_ACEOF
44344 #define wxUSE_GTKPRINT 1
44345 _ACEOF
44346
44347
44348 fi
44349         fi
44350
44351         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44352
44353
44354 pkg_failed=no
44355 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44356 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44357
44358 if test -n "$PKG_CONFIG"; then
44359     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44360         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44361     else
44362         if test -n "$PKG_CONFIG" && \
44363     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44364   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44365   ac_status=$?
44366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44367   (exit $ac_status); }; then
44368   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44369 else
44370   pkg_failed=yes
44371 fi
44372     fi
44373 else
44374         pkg_failed=untried
44375 fi
44376 if test -n "$PKG_CONFIG"; then
44377     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44378         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44379     else
44380         if test -n "$PKG_CONFIG" && \
44381     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44382   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44383   ac_status=$?
44384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44385   (exit $ac_status); }; then
44386   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44387 else
44388   pkg_failed=yes
44389 fi
44390     fi
44391 else
44392         pkg_failed=untried
44393 fi
44394
44395
44396
44397 if test $pkg_failed = yes; then
44398
44399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44400         _pkg_short_errors_supported=yes
44401 else
44402         _pkg_short_errors_supported=no
44403 fi
44404         if test $_pkg_short_errors_supported = yes; then
44405                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44406         else
44407                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44408         fi
44409         # Put the nasty error message in config.log where it belongs
44410         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44411
44412
44413                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44414 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44415                         wxUSE_LIBGNOMEPRINT="no"
44416
44417
44418 elif test $pkg_failed = untried; then
44419
44420                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44421 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44422                         wxUSE_LIBGNOMEPRINT="no"
44423
44424
44425 else
44426         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44427         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44428         { echo "$as_me:$LINENO: result: yes" >&5
44429 echo "${ECHO_T}yes" >&6; }
44430
44431                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44432                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44433                         cat >>confdefs.h <<\_ACEOF
44434 #define wxUSE_LIBGNOMEPRINT 1
44435 _ACEOF
44436
44437
44438 fi
44439         fi
44440     fi
44441
44442     if test "$wxUSE_MIMETYPE" = "yes" ; then
44443         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44444
44445
44446 pkg_failed=no
44447 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44448 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44449
44450 if test -n "$PKG_CONFIG"; then
44451     if test -n "$GNOMEVFS_CFLAGS"; then
44452         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44453     else
44454         if test -n "$PKG_CONFIG" && \
44455     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44456   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44457   ac_status=$?
44458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44459   (exit $ac_status); }; then
44460   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44461 else
44462   pkg_failed=yes
44463 fi
44464     fi
44465 else
44466         pkg_failed=untried
44467 fi
44468 if test -n "$PKG_CONFIG"; then
44469     if test -n "$GNOMEVFS_LIBS"; then
44470         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44471     else
44472         if test -n "$PKG_CONFIG" && \
44473     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44474   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44475   ac_status=$?
44476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44477   (exit $ac_status); }; then
44478   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44479 else
44480   pkg_failed=yes
44481 fi
44482     fi
44483 else
44484         pkg_failed=untried
44485 fi
44486
44487
44488
44489 if test $pkg_failed = yes; then
44490
44491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44492         _pkg_short_errors_supported=yes
44493 else
44494         _pkg_short_errors_supported=no
44495 fi
44496         if test $_pkg_short_errors_supported = yes; then
44497                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44498         else
44499                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44500         fi
44501         # Put the nasty error message in config.log where it belongs
44502         echo "$GNOMEVFS_PKG_ERRORS" >&5
44503
44504
44505                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44506 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44507                         wxUSE_LIBGNOMEVFS="no"
44508
44509
44510 elif test $pkg_failed = untried; then
44511
44512                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44513 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44514                         wxUSE_LIBGNOMEVFS="no"
44515
44516
44517 else
44518         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44519         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44520         { echo "$as_me:$LINENO: result: yes" >&5
44521 echo "${ECHO_T}yes" >&6; }
44522
44523                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44524                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44525                         cat >>confdefs.h <<\_ACEOF
44526 #define wxUSE_LIBGNOMEVFS 1
44527 _ACEOF
44528
44529
44530 fi
44531         fi
44532     fi
44533
44534     if test "$wxUSE_LIBHILDON" = "yes" ; then
44535
44536 pkg_failed=no
44537 { echo "$as_me:$LINENO: checking for HILDON" >&5
44538 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
44539
44540 if test -n "$PKG_CONFIG"; then
44541     if test -n "$HILDON_CFLAGS"; then
44542         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44543     else
44544         if test -n "$PKG_CONFIG" && \
44545     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44546   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44547   ac_status=$?
44548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44549   (exit $ac_status); }; then
44550   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
44551 else
44552   pkg_failed=yes
44553 fi
44554     fi
44555 else
44556         pkg_failed=untried
44557 fi
44558 if test -n "$PKG_CONFIG"; then
44559     if test -n "$HILDON_LIBS"; then
44560         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44561     else
44562         if test -n "$PKG_CONFIG" && \
44563     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44564   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44565   ac_status=$?
44566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44567   (exit $ac_status); }; then
44568   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
44569 else
44570   pkg_failed=yes
44571 fi
44572     fi
44573 else
44574         pkg_failed=untried
44575 fi
44576
44577
44578
44579 if test $pkg_failed = yes; then
44580
44581 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44582         _pkg_short_errors_supported=yes
44583 else
44584         _pkg_short_errors_supported=no
44585 fi
44586         if test $_pkg_short_errors_supported = yes; then
44587                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44588         else
44589                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44590         fi
44591         # Put the nasty error message in config.log where it belongs
44592         echo "$HILDON_PKG_ERRORS" >&5
44593
44594
44595                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44596 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44597                         wxUSE_LIBHILDON="no"
44598                         ac_hildon_lgpl=0
44599
44600
44601 elif test $pkg_failed = untried; then
44602
44603                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44604 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44605                         wxUSE_LIBHILDON="no"
44606                         ac_hildon_lgpl=0
44607
44608
44609 else
44610         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
44611         HILDON_LIBS=$pkg_cv_HILDON_LIBS
44612         { echo "$as_me:$LINENO: result: yes" >&5
44613 echo "${ECHO_T}yes" >&6; }
44614
44615                 EXTRALIBS_HILDON="$HILDON_LIBS"
44616                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
44617                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
44618                 cat >>confdefs.h <<\_ACEOF
44619 #define wxUSE_LIBHILDON 1
44620 _ACEOF
44621
44622                 ac_hildon_lgpl=1
44623
44624 fi
44625
44626         if test "$ac_hildon_lgpl" = 0 ; then
44627
44628 pkg_failed=no
44629 { echo "$as_me:$LINENO: checking for HILDON2" >&5
44630 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
44631
44632 if test -n "$PKG_CONFIG"; then
44633     if test -n "$HILDON2_CFLAGS"; then
44634         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
44635     else
44636         if test -n "$PKG_CONFIG" && \
44637     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44638   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44639   ac_status=$?
44640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44641   (exit $ac_status); }; then
44642   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
44643 else
44644   pkg_failed=yes
44645 fi
44646     fi
44647 else
44648         pkg_failed=untried
44649 fi
44650 if test -n "$PKG_CONFIG"; then
44651     if test -n "$HILDON2_LIBS"; then
44652         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
44653     else
44654         if test -n "$PKG_CONFIG" && \
44655     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44656   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44657   ac_status=$?
44658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659   (exit $ac_status); }; then
44660   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
44661 else
44662   pkg_failed=yes
44663 fi
44664     fi
44665 else
44666         pkg_failed=untried
44667 fi
44668
44669
44670
44671 if test $pkg_failed = yes; then
44672
44673 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44674         _pkg_short_errors_supported=yes
44675 else
44676         _pkg_short_errors_supported=no
44677 fi
44678         if test $_pkg_short_errors_supported = yes; then
44679                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44680         else
44681                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44682         fi
44683         # Put the nasty error message in config.log where it belongs
44684         echo "$HILDON2_PKG_ERRORS" >&5
44685
44686
44687                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44688 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44689                             wxUSE_LIBHILDON2="no"
44690
44691
44692 elif test $pkg_failed = untried; then
44693
44694                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44695 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44696                             wxUSE_LIBHILDON2="no"
44697
44698
44699 else
44700         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
44701         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
44702         { echo "$as_me:$LINENO: result: yes" >&5
44703 echo "${ECHO_T}yes" >&6; }
44704
44705                     EXTRALIBS_HILDON="$HILDON2_LIBS"
44706                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
44707                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
44708                     cat >>confdefs.h <<\_ACEOF
44709 #define wxUSE_LIBHILDON2 1
44710 _ACEOF
44711
44712
44713 fi
44714         fi
44715     fi
44716 fi
44717
44718 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44719   cat >>confdefs.h <<\_ACEOF
44720 #define wxUSE_CMDLINE_PARSER 1
44721 _ACEOF
44722
44723 fi
44724
44725 if test "$wxUSE_STOPWATCH" = "yes"; then
44726   cat >>confdefs.h <<\_ACEOF
44727 #define wxUSE_STOPWATCH 1
44728 _ACEOF
44729
44730 fi
44731
44732 if test "$wxUSE_DATETIME" = "yes"; then
44733   cat >>confdefs.h <<\_ACEOF
44734 #define wxUSE_DATETIME 1
44735 _ACEOF
44736
44737 fi
44738
44739 if test "$wxUSE_FILE" = "yes"; then
44740   cat >>confdefs.h <<\_ACEOF
44741 #define wxUSE_FILE 1
44742 _ACEOF
44743
44744 fi
44745
44746 if test "$wxUSE_FFILE" = "yes"; then
44747   cat >>confdefs.h <<\_ACEOF
44748 #define wxUSE_FFILE 1
44749 _ACEOF
44750
44751 fi
44752
44753 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
44754   if test "$wxUSE_STREAMS" != yes; then
44755     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44756 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
44757     wxUSE_ARCHIVE_STREAMS=no
44758   else
44759     cat >>confdefs.h <<\_ACEOF
44760 #define wxUSE_ARCHIVE_STREAMS 1
44761 _ACEOF
44762
44763   fi
44764 fi
44765
44766 if test "$wxUSE_ZIPSTREAM" = "yes"; then
44767   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44768     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
44769 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
44770   elif test "$wxUSE_ZLIB" = "no"; then
44771     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
44772 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
44773   else
44774     cat >>confdefs.h <<\_ACEOF
44775 #define wxUSE_ZIPSTREAM 1
44776 _ACEOF
44777
44778   fi
44779 fi
44780
44781 if test "$wxUSE_TARSTREAM" = "yes"; then
44782   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44783     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
44784 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
44785   else
44786     cat >>confdefs.h <<\_ACEOF
44787 #define wxUSE_TARSTREAM 1
44788 _ACEOF
44789
44790   fi
44791 fi
44792
44793 if test "$wxUSE_FILE_HISTORY" = "yes"; then
44794   cat >>confdefs.h <<\_ACEOF
44795 #define wxUSE_FILE_HISTORY 1
44796 _ACEOF
44797
44798 fi
44799
44800 if test "$wxUSE_FILESYSTEM" = "yes"; then
44801   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
44802     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
44803 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
44804     wxUSE_FILESYSTEM=no
44805   else
44806     cat >>confdefs.h <<\_ACEOF
44807 #define wxUSE_FILESYSTEM 1
44808 _ACEOF
44809
44810   fi
44811 fi
44812
44813 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
44814   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
44815     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
44816 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
44817   else
44818     cat >>confdefs.h <<\_ACEOF
44819 #define wxUSE_FS_ARCHIVE 1
44820 _ACEOF
44821
44822   fi
44823 fi
44824
44825 if test "$wxUSE_FS_ZIP" = "yes"; then
44826   if test "$wxUSE_FS_ARCHIVE" != yes; then
44827     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
44828 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
44829   else
44830     cat >>confdefs.h <<\_ACEOF
44831 #define wxUSE_FS_ZIP 1
44832 _ACEOF
44833
44834   fi
44835 fi
44836
44837 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44838   if test "$USE_UNIX" != 1; then
44839     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
44840 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
44841     wxUSE_ON_FATAL_EXCEPTION=no
44842   else
44843     cat >>confdefs.h <<\_ACEOF
44844 #define wxUSE_ON_FATAL_EXCEPTION 1
44845 _ACEOF
44846
44847   fi
44848 fi
44849
44850 if test "$wxUSE_STACKWALKER" = "yes"; then
44851     cat >>confdefs.h <<\_ACEOF
44852 #define wxUSE_STACKWALKER 1
44853 _ACEOF
44854
44855 fi
44856
44857 if test "$wxUSE_DEBUGREPORT" = "yes"; then
44858     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
44859         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
44860 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
44861         wxUSE_DEBUGREPORT=no
44862     else
44863         cat >>confdefs.h <<\_ACEOF
44864 #define wxUSE_DEBUGREPORT 1
44865 _ACEOF
44866
44867         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44868             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
44869         fi
44870     fi
44871 fi
44872
44873 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
44874   cat >>confdefs.h <<\_ACEOF
44875 #define wxUSE_SNGLINST_CHECKER 1
44876 _ACEOF
44877
44878 fi
44879
44880 if test "$wxUSE_BUSYINFO" = "yes"; then
44881   cat >>confdefs.h <<\_ACEOF
44882 #define wxUSE_BUSYINFO 1
44883 _ACEOF
44884
44885 fi
44886
44887 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
44888   cat >>confdefs.h <<\_ACEOF
44889 #define wxUSE_STD_IOSTREAM 1
44890 _ACEOF
44891
44892 fi
44893
44894 if test "$wxUSE_STD_STRING" = "yes"; then
44895   cat >>confdefs.h <<\_ACEOF
44896 #define wxUSE_STD_STRING 1
44897 _ACEOF
44898
44899 fi
44900
44901 if test "$wxUSE_STDPATHS" = "yes"; then
44902   cat >>confdefs.h <<\_ACEOF
44903 #define wxUSE_STDPATHS 1
44904 _ACEOF
44905
44906 fi
44907
44908 if test "$wxUSE_TEXTBUFFER" = "yes"; then
44909     cat >>confdefs.h <<\_ACEOF
44910 #define wxUSE_TEXTBUFFER 1
44911 _ACEOF
44912
44913 fi
44914
44915 if test "$wxUSE_TEXTFILE" = "yes"; then
44916   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
44917     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
44918 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
44919   else
44920     cat >>confdefs.h <<\_ACEOF
44921 #define wxUSE_TEXTFILE 1
44922 _ACEOF
44923
44924   fi
44925 fi
44926
44927 if test "$wxUSE_CONFIG" = "yes" ; then
44928   if test "$wxUSE_TEXTFILE" != "yes"; then
44929     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
44930 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
44931   else
44932     cat >>confdefs.h <<\_ACEOF
44933 #define wxUSE_CONFIG 1
44934 _ACEOF
44935
44936     cat >>confdefs.h <<\_ACEOF
44937 #define wxUSE_CONFIG_NATIVE 1
44938 _ACEOF
44939
44940     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
44941   fi
44942 fi
44943
44944 if test "$wxUSE_INTL" = "yes" ; then
44945   if test "$wxUSE_FILE" != "yes"; then
44946     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
44947 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
44948   else
44949     cat >>confdefs.h <<\_ACEOF
44950 #define wxUSE_INTL 1
44951 _ACEOF
44952
44953     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
44954     GUIDIST="$GUIDIST INTL_DIST"
44955   fi
44956 fi
44957
44958 if test "$wxUSE_XLOCALE" = "yes" ; then
44959     cat >>confdefs.h <<\_ACEOF
44960 #define wxUSE_XLOCALE 1
44961 _ACEOF
44962
44963     { echo "$as_me:$LINENO: checking for locale_t" >&5
44964 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
44965 if test "${ac_cv_type_locale_t+set}" = set; then
44966   echo $ECHO_N "(cached) $ECHO_C" >&6
44967 else
44968   cat >conftest.$ac_ext <<_ACEOF
44969 /* confdefs.h.  */
44970 _ACEOF
44971 cat confdefs.h >>conftest.$ac_ext
44972 cat >>conftest.$ac_ext <<_ACEOF
44973 /* end confdefs.h.  */
44974 #include <xlocale.h>
44975                     #include <locale.h>
44976
44977 typedef locale_t ac__type_new_;
44978 int
44979 main ()
44980 {
44981 if ((ac__type_new_ *) 0)
44982   return 0;
44983 if (sizeof (ac__type_new_))
44984   return 0;
44985   ;
44986   return 0;
44987 }
44988 _ACEOF
44989 rm -f conftest.$ac_objext
44990 if { (ac_try="$ac_compile"
44991 case "(($ac_try" in
44992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44993   *) ac_try_echo=$ac_try;;
44994 esac
44995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44996   (eval "$ac_compile") 2>conftest.er1
44997   ac_status=$?
44998   grep -v '^ *+' conftest.er1 >conftest.err
44999   rm -f conftest.er1
45000   cat conftest.err >&5
45001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45002   (exit $ac_status); } && {
45003          test -z "$ac_c_werror_flag" ||
45004          test ! -s conftest.err
45005        } && test -s conftest.$ac_objext; then
45006   ac_cv_type_locale_t=yes
45007 else
45008   echo "$as_me: failed program was:" >&5
45009 sed 's/^/| /' conftest.$ac_ext >&5
45010
45011         ac_cv_type_locale_t=no
45012 fi
45013
45014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45015 fi
45016 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45017 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45018 if test $ac_cv_type_locale_t = yes; then
45019
45020 cat >>confdefs.h <<_ACEOF
45021 #define HAVE_LOCALE_T 1
45022 _ACEOF
45023
45024
45025 fi
45026
45027 fi
45028
45029 if test "$wxUSE_LOG" = "yes"; then
45030   cat >>confdefs.h <<\_ACEOF
45031 #define wxUSE_LOG 1
45032 _ACEOF
45033
45034
45035     if test "$wxUSE_LOGGUI" = "yes"; then
45036       cat >>confdefs.h <<\_ACEOF
45037 #define wxUSE_LOGGUI 1
45038 _ACEOF
45039
45040     fi
45041
45042     if test "$wxUSE_LOGWINDOW" = "yes"; then
45043       cat >>confdefs.h <<\_ACEOF
45044 #define wxUSE_LOGWINDOW 1
45045 _ACEOF
45046
45047     fi
45048
45049     if test "$wxUSE_LOGDIALOG" = "yes"; then
45050       cat >>confdefs.h <<\_ACEOF
45051 #define wxUSE_LOG_DIALOG 1
45052 _ACEOF
45053
45054     fi
45055
45056         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45057 fi
45058
45059 if test "$wxUSE_LONGLONG" = "yes"; then
45060   cat >>confdefs.h <<\_ACEOF
45061 #define wxUSE_LONGLONG 1
45062 _ACEOF
45063
45064 fi
45065
45066 if test "$wxUSE_GEOMETRY" = "yes"; then
45067   cat >>confdefs.h <<\_ACEOF
45068 #define wxUSE_GEOMETRY 1
45069 _ACEOF
45070
45071 fi
45072
45073 if test "$wxUSE_BASE64" = "yes"; then
45074   cat >>confdefs.h <<\_ACEOF
45075 #define wxUSE_BASE64 1
45076 _ACEOF
45077
45078 fi
45079
45080 if test "$wxUSE_STREAMS" = "yes" ; then
45081   cat >>confdefs.h <<\_ACEOF
45082 #define wxUSE_STREAMS 1
45083 _ACEOF
45084
45085 fi
45086
45087 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45088   cat >>confdefs.h <<\_ACEOF
45089 #define wxUSE_PRINTF_POS_PARAMS 1
45090 _ACEOF
45091
45092 fi
45093
45094 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45095   cat >>confdefs.h <<\_ACEOF
45096 #define wxUSE_OBJC_UNIQUIFYING 1
45097 _ACEOF
45098
45099 fi
45100
45101
45102 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45103     cat >>confdefs.h <<\_ACEOF
45104 #define wxUSE_CONSOLE_EVENTLOOP 1
45105 _ACEOF
45106
45107
45108     if test "$wxUSE_UNIX" = "yes"; then
45109         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45110             cat >>confdefs.h <<\_ACEOF
45111 #define wxUSE_SELECT_DISPATCHER 1
45112 _ACEOF
45113
45114         fi
45115
45116         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45117
45118 for ac_header in sys/epoll.h
45119 do
45120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45124   echo $ECHO_N "(cached) $ECHO_C" >&6
45125 else
45126   cat >conftest.$ac_ext <<_ACEOF
45127 /* confdefs.h.  */
45128 _ACEOF
45129 cat confdefs.h >>conftest.$ac_ext
45130 cat >>conftest.$ac_ext <<_ACEOF
45131 /* end confdefs.h.  */
45132 $ac_includes_default
45133
45134 #include <$ac_header>
45135 _ACEOF
45136 rm -f conftest.$ac_objext
45137 if { (ac_try="$ac_compile"
45138 case "(($ac_try" in
45139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45140   *) ac_try_echo=$ac_try;;
45141 esac
45142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45143   (eval "$ac_compile") 2>conftest.er1
45144   ac_status=$?
45145   grep -v '^ *+' conftest.er1 >conftest.err
45146   rm -f conftest.er1
45147   cat conftest.err >&5
45148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45149   (exit $ac_status); } && {
45150          test -z "$ac_c_werror_flag" ||
45151          test ! -s conftest.err
45152        } && test -s conftest.$ac_objext; then
45153   eval "$as_ac_Header=yes"
45154 else
45155   echo "$as_me: failed program was:" >&5
45156 sed 's/^/| /' conftest.$ac_ext >&5
45157
45158         eval "$as_ac_Header=no"
45159 fi
45160
45161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45162 fi
45163 ac_res=`eval echo '${'$as_ac_Header'}'`
45164                { echo "$as_me:$LINENO: result: $ac_res" >&5
45165 echo "${ECHO_T}$ac_res" >&6; }
45166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45167   cat >>confdefs.h <<_ACEOF
45168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45169 _ACEOF
45170
45171 fi
45172
45173 done
45174
45175             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45176                 cat >>confdefs.h <<\_ACEOF
45177 #define wxUSE_EPOLL_DISPATCHER 1
45178 _ACEOF
45179
45180             else
45181                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45182 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45183             fi
45184         fi
45185     fi
45186 fi
45187
45188
45189
45190
45191 for ac_func in gettimeofday ftime
45192 do
45193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45197   echo $ECHO_N "(cached) $ECHO_C" >&6
45198 else
45199   cat >conftest.$ac_ext <<_ACEOF
45200 /* confdefs.h.  */
45201 _ACEOF
45202 cat confdefs.h >>conftest.$ac_ext
45203 cat >>conftest.$ac_ext <<_ACEOF
45204 /* end confdefs.h.  */
45205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45207 #define $ac_func innocuous_$ac_func
45208
45209 /* System header to define __stub macros and hopefully few prototypes,
45210     which can conflict with char $ac_func (); below.
45211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45212     <limits.h> exists even on freestanding compilers.  */
45213
45214 #ifdef __STDC__
45215 # include <limits.h>
45216 #else
45217 # include <assert.h>
45218 #endif
45219
45220 #undef $ac_func
45221
45222 /* Override any GCC internal prototype to avoid an error.
45223    Use char because int might match the return type of a GCC
45224    builtin and then its argument prototype would still apply.  */
45225 #ifdef __cplusplus
45226 extern "C"
45227 #endif
45228 char $ac_func ();
45229 /* The GNU C library defines this for functions which it implements
45230     to always fail with ENOSYS.  Some functions are actually named
45231     something starting with __ and the normal name is an alias.  */
45232 #if defined __stub_$ac_func || defined __stub___$ac_func
45233 choke me
45234 #endif
45235
45236 int
45237 main ()
45238 {
45239 return $ac_func ();
45240   ;
45241   return 0;
45242 }
45243 _ACEOF
45244 rm -f conftest.$ac_objext conftest$ac_exeext
45245 if { (ac_try="$ac_link"
45246 case "(($ac_try" in
45247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45248   *) ac_try_echo=$ac_try;;
45249 esac
45250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45251   (eval "$ac_link") 2>conftest.er1
45252   ac_status=$?
45253   grep -v '^ *+' conftest.er1 >conftest.err
45254   rm -f conftest.er1
45255   cat conftest.err >&5
45256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45257   (exit $ac_status); } && {
45258          test -z "$ac_c_werror_flag" ||
45259          test ! -s conftest.err
45260        } && test -s conftest$ac_exeext &&
45261        $as_test_x conftest$ac_exeext; then
45262   eval "$as_ac_var=yes"
45263 else
45264   echo "$as_me: failed program was:" >&5
45265 sed 's/^/| /' conftest.$ac_ext >&5
45266
45267         eval "$as_ac_var=no"
45268 fi
45269
45270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45271       conftest$ac_exeext conftest.$ac_ext
45272 fi
45273 ac_res=`eval echo '${'$as_ac_var'}'`
45274                { echo "$as_me:$LINENO: result: $ac_res" >&5
45275 echo "${ECHO_T}$ac_res" >&6; }
45276 if test `eval echo '${'$as_ac_var'}'` = yes; then
45277   cat >>confdefs.h <<_ACEOF
45278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45279 _ACEOF
45280  break
45281 fi
45282 done
45283
45284
45285 if test "$ac_cv_func_gettimeofday" = "yes"; then
45286     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45287 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45288 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45289   echo $ECHO_N "(cached) $ECHO_C" >&6
45290 else
45291
45292                 cat >conftest.$ac_ext <<_ACEOF
45293 /* confdefs.h.  */
45294 _ACEOF
45295 cat confdefs.h >>conftest.$ac_ext
45296 cat >>conftest.$ac_ext <<_ACEOF
45297 /* end confdefs.h.  */
45298
45299                 #include <sys/time.h>
45300                 #include <unistd.h>
45301
45302 int
45303 main ()
45304 {
45305
45306                 struct timeval tv;
45307                 gettimeofday(&tv, NULL);
45308
45309   ;
45310   return 0;
45311 }
45312 _ACEOF
45313 rm -f conftest.$ac_objext
45314 if { (ac_try="$ac_compile"
45315 case "(($ac_try" in
45316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45317   *) ac_try_echo=$ac_try;;
45318 esac
45319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45320   (eval "$ac_compile") 2>conftest.er1
45321   ac_status=$?
45322   grep -v '^ *+' conftest.er1 >conftest.err
45323   rm -f conftest.er1
45324   cat conftest.err >&5
45325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45326   (exit $ac_status); } && {
45327          test -z "$ac_c_werror_flag" ||
45328          test ! -s conftest.err
45329        } && test -s conftest.$ac_objext; then
45330   wx_cv_func_gettimeofday_has_2_args=yes
45331 else
45332   echo "$as_me: failed program was:" >&5
45333 sed 's/^/| /' conftest.$ac_ext >&5
45334
45335         cat >conftest.$ac_ext <<_ACEOF
45336 /* confdefs.h.  */
45337 _ACEOF
45338 cat confdefs.h >>conftest.$ac_ext
45339 cat >>conftest.$ac_ext <<_ACEOF
45340 /* end confdefs.h.  */
45341
45342                     #include <sys/time.h>
45343                     #include <unistd.h>
45344
45345 int
45346 main ()
45347 {
45348
45349                     struct timeval tv;
45350                     gettimeofday(&tv);
45351
45352   ;
45353   return 0;
45354 }
45355 _ACEOF
45356 rm -f conftest.$ac_objext
45357 if { (ac_try="$ac_compile"
45358 case "(($ac_try" in
45359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45360   *) ac_try_echo=$ac_try;;
45361 esac
45362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45363   (eval "$ac_compile") 2>conftest.er1
45364   ac_status=$?
45365   grep -v '^ *+' conftest.er1 >conftest.err
45366   rm -f conftest.er1
45367   cat conftest.err >&5
45368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45369   (exit $ac_status); } && {
45370          test -z "$ac_c_werror_flag" ||
45371          test ! -s conftest.err
45372        } && test -s conftest.$ac_objext; then
45373   wx_cv_func_gettimeofday_has_2_args=no
45374 else
45375   echo "$as_me: failed program was:" >&5
45376 sed 's/^/| /' conftest.$ac_ext >&5
45377
45378
45379                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45380 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45381                     wx_cv_func_gettimeofday_has_2_args=unknown
45382
45383
45384 fi
45385
45386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45387
45388 fi
45389
45390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45391
45392 fi
45393 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45394 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45395
45396     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45397         cat >>confdefs.h <<\_ACEOF
45398 #define WX_GETTIMEOFDAY_NO_TZ 1
45399 _ACEOF
45400
45401     fi
45402 fi
45403
45404 if test "$wxUSE_DATETIME" = "yes"; then
45405             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45406 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45407 if test "${wx_cv_var_timezone+set}" = set; then
45408   echo $ECHO_N "(cached) $ECHO_C" >&6
45409 else
45410
45411                         ac_ext=cpp
45412 ac_cpp='$CXXCPP $CPPFLAGS'
45413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45416
45417                         cat >conftest.$ac_ext <<_ACEOF
45418 /* confdefs.h.  */
45419 _ACEOF
45420 cat confdefs.h >>conftest.$ac_ext
45421 cat >>conftest.$ac_ext <<_ACEOF
45422 /* end confdefs.h.  */
45423
45424                                 #include <time.h>
45425
45426 int
45427 main ()
45428 {
45429
45430                                 int tz;
45431                                 tz = timezone;
45432
45433   ;
45434   return 0;
45435 }
45436 _ACEOF
45437 rm -f conftest.$ac_objext
45438 if { (ac_try="$ac_compile"
45439 case "(($ac_try" in
45440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45441   *) ac_try_echo=$ac_try;;
45442 esac
45443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45444   (eval "$ac_compile") 2>conftest.er1
45445   ac_status=$?
45446   grep -v '^ *+' conftest.er1 >conftest.err
45447   rm -f conftest.er1
45448   cat conftest.err >&5
45449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45450   (exit $ac_status); } && {
45451          test -z "$ac_cxx_werror_flag" ||
45452          test ! -s conftest.err
45453        } && test -s conftest.$ac_objext; then
45454
45455                                 wx_cv_var_timezone=timezone
45456
45457 else
45458   echo "$as_me: failed program was:" >&5
45459 sed 's/^/| /' conftest.$ac_ext >&5
45460
45461
45462                                 cat >conftest.$ac_ext <<_ACEOF
45463 /* confdefs.h.  */
45464 _ACEOF
45465 cat confdefs.h >>conftest.$ac_ext
45466 cat >>conftest.$ac_ext <<_ACEOF
45467 /* end confdefs.h.  */
45468
45469                                         #include <time.h>
45470
45471 int
45472 main ()
45473 {
45474
45475                                         int tz;
45476                                         tz = _timezone;
45477
45478   ;
45479   return 0;
45480 }
45481 _ACEOF
45482 rm -f conftest.$ac_objext
45483 if { (ac_try="$ac_compile"
45484 case "(($ac_try" in
45485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45486   *) ac_try_echo=$ac_try;;
45487 esac
45488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45489   (eval "$ac_compile") 2>conftest.er1
45490   ac_status=$?
45491   grep -v '^ *+' conftest.er1 >conftest.err
45492   rm -f conftest.er1
45493   cat conftest.err >&5
45494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45495   (exit $ac_status); } && {
45496          test -z "$ac_cxx_werror_flag" ||
45497          test ! -s conftest.err
45498        } && test -s conftest.$ac_objext; then
45499
45500                                         wx_cv_var_timezone=_timezone
45501
45502 else
45503   echo "$as_me: failed program was:" >&5
45504 sed 's/^/| /' conftest.$ac_ext >&5
45505
45506
45507                                         cat >conftest.$ac_ext <<_ACEOF
45508 /* confdefs.h.  */
45509 _ACEOF
45510 cat confdefs.h >>conftest.$ac_ext
45511 cat >>conftest.$ac_ext <<_ACEOF
45512 /* end confdefs.h.  */
45513
45514                                                 #include <time.h>
45515
45516 int
45517 main ()
45518 {
45519
45520                                                 int tz;
45521                                                 tz = __timezone;
45522
45523   ;
45524   return 0;
45525 }
45526 _ACEOF
45527 rm -f conftest.$ac_objext
45528 if { (ac_try="$ac_compile"
45529 case "(($ac_try" in
45530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45531   *) ac_try_echo=$ac_try;;
45532 esac
45533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45534   (eval "$ac_compile") 2>conftest.er1
45535   ac_status=$?
45536   grep -v '^ *+' conftest.er1 >conftest.err
45537   rm -f conftest.er1
45538   cat conftest.err >&5
45539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45540   (exit $ac_status); } && {
45541          test -z "$ac_cxx_werror_flag" ||
45542          test ! -s conftest.err
45543        } && test -s conftest.$ac_objext; then
45544
45545                                                 wx_cv_var_timezone=__timezone
45546
45547 else
45548   echo "$as_me: failed program was:" >&5
45549 sed 's/^/| /' conftest.$ac_ext >&5
45550
45551
45552                                                 if test "$USE_DOS" = 0 ; then
45553                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
45554 echo "$as_me: WARNING: no timezone variable" >&2;}
45555                                                 fi
45556
45557
45558 fi
45559
45560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45561
45562
45563 fi
45564
45565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45566
45567
45568 fi
45569
45570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45571                         ac_ext=c
45572 ac_cpp='$CPP $CPPFLAGS'
45573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45576
45577
45578
45579 fi
45580 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
45581 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
45582
45583         if test "x$wx_cv_var_timezone" != x ; then
45584         cat >>confdefs.h <<_ACEOF
45585 #define WX_TIMEZONE $wx_cv_var_timezone
45586 _ACEOF
45587
45588     fi
45589
45590
45591 for ac_func in localtime
45592 do
45593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45597   echo $ECHO_N "(cached) $ECHO_C" >&6
45598 else
45599   cat >conftest.$ac_ext <<_ACEOF
45600 /* confdefs.h.  */
45601 _ACEOF
45602 cat confdefs.h >>conftest.$ac_ext
45603 cat >>conftest.$ac_ext <<_ACEOF
45604 /* end confdefs.h.  */
45605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45607 #define $ac_func innocuous_$ac_func
45608
45609 /* System header to define __stub macros and hopefully few prototypes,
45610     which can conflict with char $ac_func (); below.
45611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45612     <limits.h> exists even on freestanding compilers.  */
45613
45614 #ifdef __STDC__
45615 # include <limits.h>
45616 #else
45617 # include <assert.h>
45618 #endif
45619
45620 #undef $ac_func
45621
45622 /* Override any GCC internal prototype to avoid an error.
45623    Use char because int might match the return type of a GCC
45624    builtin and then its argument prototype would still apply.  */
45625 #ifdef __cplusplus
45626 extern "C"
45627 #endif
45628 char $ac_func ();
45629 /* The GNU C library defines this for functions which it implements
45630     to always fail with ENOSYS.  Some functions are actually named
45631     something starting with __ and the normal name is an alias.  */
45632 #if defined __stub_$ac_func || defined __stub___$ac_func
45633 choke me
45634 #endif
45635
45636 int
45637 main ()
45638 {
45639 return $ac_func ();
45640   ;
45641   return 0;
45642 }
45643 _ACEOF
45644 rm -f conftest.$ac_objext conftest$ac_exeext
45645 if { (ac_try="$ac_link"
45646 case "(($ac_try" in
45647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45648   *) ac_try_echo=$ac_try;;
45649 esac
45650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45651   (eval "$ac_link") 2>conftest.er1
45652   ac_status=$?
45653   grep -v '^ *+' conftest.er1 >conftest.err
45654   rm -f conftest.er1
45655   cat conftest.err >&5
45656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45657   (exit $ac_status); } && {
45658          test -z "$ac_c_werror_flag" ||
45659          test ! -s conftest.err
45660        } && test -s conftest$ac_exeext &&
45661        $as_test_x conftest$ac_exeext; then
45662   eval "$as_ac_var=yes"
45663 else
45664   echo "$as_me: failed program was:" >&5
45665 sed 's/^/| /' conftest.$ac_ext >&5
45666
45667         eval "$as_ac_var=no"
45668 fi
45669
45670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45671       conftest$ac_exeext conftest.$ac_ext
45672 fi
45673 ac_res=`eval echo '${'$as_ac_var'}'`
45674                { echo "$as_me:$LINENO: result: $ac_res" >&5
45675 echo "${ECHO_T}$ac_res" >&6; }
45676 if test `eval echo '${'$as_ac_var'}'` = yes; then
45677   cat >>confdefs.h <<_ACEOF
45678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45679 _ACEOF
45680
45681 fi
45682 done
45683
45684
45685     if test "$ac_cv_func_localtime" = "yes"; then
45686         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45687 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
45688 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
45689   echo $ECHO_N "(cached) $ECHO_C" >&6
45690 else
45691
45692             cat >conftest.$ac_ext <<_ACEOF
45693 /* confdefs.h.  */
45694 _ACEOF
45695 cat confdefs.h >>conftest.$ac_ext
45696 cat >>conftest.$ac_ext <<_ACEOF
45697 /* end confdefs.h.  */
45698
45699                     #include <time.h>
45700
45701 int
45702 main ()
45703 {
45704
45705                     struct tm tm;
45706                     tm.tm_gmtoff++;
45707
45708   ;
45709   return 0;
45710 }
45711 _ACEOF
45712 rm -f conftest.$ac_objext
45713 if { (ac_try="$ac_compile"
45714 case "(($ac_try" in
45715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45716   *) ac_try_echo=$ac_try;;
45717 esac
45718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45719   (eval "$ac_compile") 2>conftest.er1
45720   ac_status=$?
45721   grep -v '^ *+' conftest.er1 >conftest.err
45722   rm -f conftest.er1
45723   cat conftest.err >&5
45724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45725   (exit $ac_status); } && {
45726          test -z "$ac_c_werror_flag" ||
45727          test ! -s conftest.err
45728        } && test -s conftest.$ac_objext; then
45729
45730                     wx_cv_struct_tm_has_gmtoff=yes
45731
45732 else
45733   echo "$as_me: failed program was:" >&5
45734 sed 's/^/| /' conftest.$ac_ext >&5
45735
45736         wx_cv_struct_tm_has_gmtoff=no
45737
45738 fi
45739
45740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45741
45742 fi
45743 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45744 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
45745     fi
45746
45747     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
45748         cat >>confdefs.h <<\_ACEOF
45749 #define WX_GMTOFF_IN_TM 1
45750 _ACEOF
45751
45752     fi
45753
45754     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
45755 fi
45756
45757
45758 if test "$wxUSE_SOCKETS" = "yes"; then
45759     if test "$wxUSE_MGL" = 1; then
45760         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
45761 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
45762         wxUSE_SOCKETS="no"
45763     fi
45764 fi
45765
45766 if test "$wxUSE_SOCKETS" = "yes"; then
45767         if test "$TOOLKIT" != "MSW"; then
45768                 { echo "$as_me:$LINENO: checking for socket" >&5
45769 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
45770 if test "${ac_cv_func_socket+set}" = set; then
45771   echo $ECHO_N "(cached) $ECHO_C" >&6
45772 else
45773   cat >conftest.$ac_ext <<_ACEOF
45774 /* confdefs.h.  */
45775 _ACEOF
45776 cat confdefs.h >>conftest.$ac_ext
45777 cat >>conftest.$ac_ext <<_ACEOF
45778 /* end confdefs.h.  */
45779 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
45780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45781 #define socket innocuous_socket
45782
45783 /* System header to define __stub macros and hopefully few prototypes,
45784     which can conflict with char socket (); below.
45785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45786     <limits.h> exists even on freestanding compilers.  */
45787
45788 #ifdef __STDC__
45789 # include <limits.h>
45790 #else
45791 # include <assert.h>
45792 #endif
45793
45794 #undef socket
45795
45796 /* Override any GCC internal prototype to avoid an error.
45797    Use char because int might match the return type of a GCC
45798    builtin and then its argument prototype would still apply.  */
45799 #ifdef __cplusplus
45800 extern "C"
45801 #endif
45802 char socket ();
45803 /* The GNU C library defines this for functions which it implements
45804     to always fail with ENOSYS.  Some functions are actually named
45805     something starting with __ and the normal name is an alias.  */
45806 #if defined __stub_socket || defined __stub___socket
45807 choke me
45808 #endif
45809
45810 int
45811 main ()
45812 {
45813 return socket ();
45814   ;
45815   return 0;
45816 }
45817 _ACEOF
45818 rm -f conftest.$ac_objext conftest$ac_exeext
45819 if { (ac_try="$ac_link"
45820 case "(($ac_try" in
45821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45822   *) ac_try_echo=$ac_try;;
45823 esac
45824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45825   (eval "$ac_link") 2>conftest.er1
45826   ac_status=$?
45827   grep -v '^ *+' conftest.er1 >conftest.err
45828   rm -f conftest.er1
45829   cat conftest.err >&5
45830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45831   (exit $ac_status); } && {
45832          test -z "$ac_c_werror_flag" ||
45833          test ! -s conftest.err
45834        } && test -s conftest$ac_exeext &&
45835        $as_test_x conftest$ac_exeext; then
45836   ac_cv_func_socket=yes
45837 else
45838   echo "$as_me: failed program was:" >&5
45839 sed 's/^/| /' conftest.$ac_ext >&5
45840
45841         ac_cv_func_socket=no
45842 fi
45843
45844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45845       conftest$ac_exeext conftest.$ac_ext
45846 fi
45847 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45848 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
45849 if test $ac_cv_func_socket = yes; then
45850   :
45851 else
45852
45853                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
45854 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
45855 if test "${ac_cv_lib_socket_socket+set}" = set; then
45856   echo $ECHO_N "(cached) $ECHO_C" >&6
45857 else
45858   ac_check_lib_save_LIBS=$LIBS
45859 LIBS="-lsocket  $LIBS"
45860 cat >conftest.$ac_ext <<_ACEOF
45861 /* confdefs.h.  */
45862 _ACEOF
45863 cat confdefs.h >>conftest.$ac_ext
45864 cat >>conftest.$ac_ext <<_ACEOF
45865 /* end confdefs.h.  */
45866
45867 /* Override any GCC internal prototype to avoid an error.
45868    Use char because int might match the return type of a GCC
45869    builtin and then its argument prototype would still apply.  */
45870 #ifdef __cplusplus
45871 extern "C"
45872 #endif
45873 char socket ();
45874 int
45875 main ()
45876 {
45877 return socket ();
45878   ;
45879   return 0;
45880 }
45881 _ACEOF
45882 rm -f conftest.$ac_objext conftest$ac_exeext
45883 if { (ac_try="$ac_link"
45884 case "(($ac_try" in
45885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45886   *) ac_try_echo=$ac_try;;
45887 esac
45888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45889   (eval "$ac_link") 2>conftest.er1
45890   ac_status=$?
45891   grep -v '^ *+' conftest.er1 >conftest.err
45892   rm -f conftest.er1
45893   cat conftest.err >&5
45894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45895   (exit $ac_status); } && {
45896          test -z "$ac_c_werror_flag" ||
45897          test ! -s conftest.err
45898        } && test -s conftest$ac_exeext &&
45899        $as_test_x conftest$ac_exeext; then
45900   ac_cv_lib_socket_socket=yes
45901 else
45902   echo "$as_me: failed program was:" >&5
45903 sed 's/^/| /' conftest.$ac_ext >&5
45904
45905         ac_cv_lib_socket_socket=no
45906 fi
45907
45908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45909       conftest$ac_exeext conftest.$ac_ext
45910 LIBS=$ac_check_lib_save_LIBS
45911 fi
45912 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
45913 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
45914 if test $ac_cv_lib_socket_socket = yes; then
45915   if test "$INET_LINK" != " -lsocket"; then
45916                         INET_LINK="$INET_LINK -lsocket"
45917                     fi
45918 else
45919
45920                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
45921 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
45922                         wxUSE_SOCKETS=no
45923
45924
45925 fi
45926
45927
45928
45929 fi
45930
45931     fi
45932 fi
45933
45934 if test "$wxUSE_SOCKETS" = "yes" ; then
45935                 if test "$TOOLKIT" != "MSW"; then
45936                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
45937 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
45938 if test "${wx_cv_type_getsockname3+set}" = set; then
45939   echo $ECHO_N "(cached) $ECHO_C" >&6
45940 else
45941
45942                 ac_ext=cpp
45943 ac_cpp='$CXXCPP $CPPFLAGS'
45944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45947
45948                 cat >conftest.$ac_ext <<_ACEOF
45949 /* confdefs.h.  */
45950 _ACEOF
45951 cat confdefs.h >>conftest.$ac_ext
45952 cat >>conftest.$ac_ext <<_ACEOF
45953 /* end confdefs.h.  */
45954
45955                         #include <sys/types.h>
45956                         #include <sys/socket.h>
45957
45958 int
45959 main ()
45960 {
45961
45962                         socklen_t len;
45963                         getsockname(0, 0, &len);
45964
45965   ;
45966   return 0;
45967 }
45968 _ACEOF
45969 rm -f conftest.$ac_objext
45970 if { (ac_try="$ac_compile"
45971 case "(($ac_try" in
45972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45973   *) ac_try_echo=$ac_try;;
45974 esac
45975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45976   (eval "$ac_compile") 2>conftest.er1
45977   ac_status=$?
45978   grep -v '^ *+' conftest.er1 >conftest.err
45979   rm -f conftest.er1
45980   cat conftest.err >&5
45981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45982   (exit $ac_status); } && {
45983          test -z "$ac_cxx_werror_flag" ||
45984          test ! -s conftest.err
45985        } && test -s conftest.$ac_objext; then
45986   wx_cv_type_getsockname3=socklen_t
45987 else
45988   echo "$as_me: failed program was:" >&5
45989 sed 's/^/| /' conftest.$ac_ext >&5
45990
45991
45992                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
45993                         if test "$GCC" = yes ; then
45994                             CFLAGS="-Werror $CFLAGS"
45995                         fi
45996
45997                         cat >conftest.$ac_ext <<_ACEOF
45998 /* confdefs.h.  */
45999 _ACEOF
46000 cat confdefs.h >>conftest.$ac_ext
46001 cat >>conftest.$ac_ext <<_ACEOF
46002 /* end confdefs.h.  */
46003
46004                                 #include <sys/types.h>
46005                                 #include <sys/socket.h>
46006
46007 int
46008 main ()
46009 {
46010
46011                                 size_t len;
46012                                 getsockname(0, 0, &len);
46013
46014   ;
46015   return 0;
46016 }
46017 _ACEOF
46018 rm -f conftest.$ac_objext
46019 if { (ac_try="$ac_compile"
46020 case "(($ac_try" in
46021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46022   *) ac_try_echo=$ac_try;;
46023 esac
46024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46025   (eval "$ac_compile") 2>conftest.er1
46026   ac_status=$?
46027   grep -v '^ *+' conftest.er1 >conftest.err
46028   rm -f conftest.er1
46029   cat conftest.err >&5
46030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46031   (exit $ac_status); } && {
46032          test -z "$ac_cxx_werror_flag" ||
46033          test ! -s conftest.err
46034        } && test -s conftest.$ac_objext; then
46035   wx_cv_type_getsockname3=size_t
46036 else
46037   echo "$as_me: failed program was:" >&5
46038 sed 's/^/| /' conftest.$ac_ext >&5
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 <sys/types.h>
46048                                     #include <sys/socket.h>
46049
46050 int
46051 main ()
46052 {
46053
46054                                     int len;
46055                                     getsockname(0, 0, &len);
46056
46057   ;
46058   return 0;
46059 }
46060 _ACEOF
46061 rm -f conftest.$ac_objext
46062 if { (ac_try="$ac_compile"
46063 case "(($ac_try" in
46064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46065   *) ac_try_echo=$ac_try;;
46066 esac
46067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46068   (eval "$ac_compile") 2>conftest.er1
46069   ac_status=$?
46070   grep -v '^ *+' conftest.er1 >conftest.err
46071   rm -f conftest.er1
46072   cat conftest.err >&5
46073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46074   (exit $ac_status); } && {
46075          test -z "$ac_cxx_werror_flag" ||
46076          test ! -s conftest.err
46077        } && test -s conftest.$ac_objext; then
46078   wx_cv_type_getsockname3=int
46079 else
46080   echo "$as_me: failed program was:" >&5
46081 sed 's/^/| /' conftest.$ac_ext >&5
46082
46083         wx_cv_type_getsockname3=unknown
46084
46085 fi
46086
46087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46088
46089 fi
46090
46091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46092
46093                         CFLAGS="$CFLAGS_OLD"
46094
46095
46096 fi
46097
46098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46099                 ac_ext=c
46100 ac_cpp='$CPP $CPPFLAGS'
46101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46104
46105
46106 fi
46107 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46108 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46109
46110         if test "$wx_cv_type_getsockname3" = "unknown"; then
46111             wxUSE_SOCKETS=no
46112             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46113 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46114         else
46115             cat >>confdefs.h <<_ACEOF
46116 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46117 _ACEOF
46118
46119         fi
46120                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46121 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46122 if test "${wx_cv_type_getsockopt5+set}" = set; then
46123   echo $ECHO_N "(cached) $ECHO_C" >&6
46124 else
46125
46126                                                                                                 ac_ext=cpp
46127 ac_cpp='$CXXCPP $CPPFLAGS'
46128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46131
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
46139                         #include <sys/types.h>
46140                         #include <sys/socket.h>
46141
46142 int
46143 main ()
46144 {
46145
46146                         socklen_t len;
46147                         getsockopt(0, 0, 0, 0, &len);
46148
46149   ;
46150   return 0;
46151 }
46152 _ACEOF
46153 rm -f conftest.$ac_objext
46154 if { (ac_try="$ac_compile"
46155 case "(($ac_try" in
46156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46157   *) ac_try_echo=$ac_try;;
46158 esac
46159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46160   (eval "$ac_compile") 2>conftest.er1
46161   ac_status=$?
46162   grep -v '^ *+' conftest.er1 >conftest.err
46163   rm -f conftest.er1
46164   cat conftest.err >&5
46165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46166   (exit $ac_status); } && {
46167          test -z "$ac_cxx_werror_flag" ||
46168          test ! -s conftest.err
46169        } && test -s conftest.$ac_objext; then
46170   wx_cv_type_getsockopt5=socklen_t
46171 else
46172   echo "$as_me: failed program was:" >&5
46173 sed 's/^/| /' conftest.$ac_ext >&5
46174
46175
46176                         cat >conftest.$ac_ext <<_ACEOF
46177 /* confdefs.h.  */
46178 _ACEOF
46179 cat confdefs.h >>conftest.$ac_ext
46180 cat >>conftest.$ac_ext <<_ACEOF
46181 /* end confdefs.h.  */
46182
46183                                 #include <sys/types.h>
46184                                 #include <sys/socket.h>
46185
46186 int
46187 main ()
46188 {
46189
46190                                 size_t len;
46191                                 getsockopt(0, 0, 0, 0, &len);
46192
46193   ;
46194   return 0;
46195 }
46196 _ACEOF
46197 rm -f conftest.$ac_objext
46198 if { (ac_try="$ac_compile"
46199 case "(($ac_try" in
46200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46201   *) ac_try_echo=$ac_try;;
46202 esac
46203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46204   (eval "$ac_compile") 2>conftest.er1
46205   ac_status=$?
46206   grep -v '^ *+' conftest.er1 >conftest.err
46207   rm -f conftest.er1
46208   cat conftest.err >&5
46209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46210   (exit $ac_status); } && {
46211          test -z "$ac_cxx_werror_flag" ||
46212          test ! -s conftest.err
46213        } && test -s conftest.$ac_objext; then
46214   wx_cv_type_getsockopt5=size_t
46215 else
46216   echo "$as_me: failed program was:" >&5
46217 sed 's/^/| /' conftest.$ac_ext >&5
46218
46219         cat >conftest.$ac_ext <<_ACEOF
46220 /* confdefs.h.  */
46221 _ACEOF
46222 cat confdefs.h >>conftest.$ac_ext
46223 cat >>conftest.$ac_ext <<_ACEOF
46224 /* end confdefs.h.  */
46225
46226                                     #include <sys/types.h>
46227                                     #include <sys/socket.h>
46228
46229 int
46230 main ()
46231 {
46232
46233                                     int len;
46234                                     getsockopt(0, 0, 0, 0, &len);
46235
46236   ;
46237   return 0;
46238 }
46239 _ACEOF
46240 rm -f conftest.$ac_objext
46241 if { (ac_try="$ac_compile"
46242 case "(($ac_try" in
46243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46244   *) ac_try_echo=$ac_try;;
46245 esac
46246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46247   (eval "$ac_compile") 2>conftest.er1
46248   ac_status=$?
46249   grep -v '^ *+' conftest.er1 >conftest.err
46250   rm -f conftest.er1
46251   cat conftest.err >&5
46252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46253   (exit $ac_status); } && {
46254          test -z "$ac_cxx_werror_flag" ||
46255          test ! -s conftest.err
46256        } && test -s conftest.$ac_objext; then
46257   wx_cv_type_getsockopt5=int
46258 else
46259   echo "$as_me: failed program was:" >&5
46260 sed 's/^/| /' conftest.$ac_ext >&5
46261
46262         wx_cv_type_getsockopt5=unknown
46263
46264 fi
46265
46266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46267
46268 fi
46269
46270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46271
46272
46273 fi
46274
46275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46276                 ac_ext=c
46277 ac_cpp='$CPP $CPPFLAGS'
46278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46281
46282
46283 fi
46284 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46285 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46286
46287         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46288             wxUSE_SOCKETS=no
46289             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46290 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46291         else
46292             cat >>confdefs.h <<_ACEOF
46293 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46294 _ACEOF
46295
46296         fi
46297     fi
46298 fi
46299
46300 if test "$wxUSE_SOCKETS" = "yes" ; then
46301     if test "$wxUSE_IPV6" = "yes"; then
46302         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46303 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46304 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46305   echo $ECHO_N "(cached) $ECHO_C" >&6
46306 else
46307
46308                 cat >conftest.$ac_ext <<_ACEOF
46309 /* confdefs.h.  */
46310 _ACEOF
46311 cat confdefs.h >>conftest.$ac_ext
46312 cat >>conftest.$ac_ext <<_ACEOF
46313 /* end confdefs.h.  */
46314
46315                         #include <sys/types.h>
46316                         #include <sys/socket.h>
46317                         #include <netinet/in.h>
46318
46319 int
46320 main ()
46321 {
46322
46323                         struct sockaddr_in6 sa6;
46324
46325   ;
46326   return 0;
46327 }
46328 _ACEOF
46329 rm -f conftest.$ac_objext
46330 if { (ac_try="$ac_compile"
46331 case "(($ac_try" in
46332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46333   *) ac_try_echo=$ac_try;;
46334 esac
46335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46336   (eval "$ac_compile") 2>conftest.er1
46337   ac_status=$?
46338   grep -v '^ *+' conftest.er1 >conftest.err
46339   rm -f conftest.er1
46340   cat conftest.err >&5
46341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46342   (exit $ac_status); } && {
46343          test -z "$ac_c_werror_flag" ||
46344          test ! -s conftest.err
46345        } && test -s conftest.$ac_objext; then
46346   wx_cv_type_sockaddr_in6=yes
46347 else
46348   echo "$as_me: failed program was:" >&5
46349 sed 's/^/| /' conftest.$ac_ext >&5
46350
46351         wx_cv_type_sockaddr_in6=no
46352
46353 fi
46354
46355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46356
46357
46358 fi
46359 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46360 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46361
46362         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46363             cat >>confdefs.h <<\_ACEOF
46364 #define wxUSE_IPV6 1
46365 _ACEOF
46366
46367         else
46368             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46369 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46370         fi
46371     fi
46372
46373     cat >>confdefs.h <<\_ACEOF
46374 #define wxUSE_SOCKETS 1
46375 _ACEOF
46376
46377     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46378 fi
46379
46380 if test "$wxUSE_PROTOCOL" = "yes"; then
46381     if test "$wxUSE_SOCKETS" != "yes"; then
46382         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46383 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46384         wxUSE_PROTOCOL=no
46385     fi
46386 fi
46387
46388 if test "$wxUSE_PROTOCOL" = "yes"; then
46389     cat >>confdefs.h <<\_ACEOF
46390 #define wxUSE_PROTOCOL 1
46391 _ACEOF
46392
46393
46394     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46395         cat >>confdefs.h <<\_ACEOF
46396 #define wxUSE_PROTOCOL_HTTP 1
46397 _ACEOF
46398
46399     fi
46400     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46401         cat >>confdefs.h <<\_ACEOF
46402 #define wxUSE_PROTOCOL_FTP 1
46403 _ACEOF
46404
46405     fi
46406     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46407         cat >>confdefs.h <<\_ACEOF
46408 #define wxUSE_PROTOCOL_FILE 1
46409 _ACEOF
46410
46411     fi
46412 else
46413     if test "$wxUSE_FS_INET" = "yes"; then
46414         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46415 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46416         wxUSE_FS_INET="no"
46417     fi
46418 fi
46419
46420 if test "$wxUSE_URL" = "yes"; then
46421     if test "$wxUSE_PROTOCOL" != "yes"; then
46422         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46423 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46424         wxUSE_URL=no
46425     fi
46426     if test "$wxUSE_URL" = "yes"; then
46427         cat >>confdefs.h <<\_ACEOF
46428 #define wxUSE_URL 1
46429 _ACEOF
46430
46431     fi
46432 fi
46433
46434 if test "$wxUSE_VARIANT" = "yes"; then
46435     cat >>confdefs.h <<\_ACEOF
46436 #define wxUSE_VARIANT 1
46437 _ACEOF
46438
46439 fi
46440
46441 if test "$wxUSE_FS_INET" = "yes"; then
46442   cat >>confdefs.h <<\_ACEOF
46443 #define wxUSE_FS_INET 1
46444 _ACEOF
46445
46446 fi
46447
46448
46449 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46450     wxUSE_JOYSTICK=no
46451
46452         if test "$TOOLKIT" = "MSW"; then
46453         wxUSE_JOYSTICK=yes
46454
46455         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46456         if test "$USE_DARWIN" = 1; then
46457                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46458 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46459             ac_ext=cpp
46460 ac_cpp='$CXXCPP $CPPFLAGS'
46461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46464
46465             cat >conftest.$ac_ext <<_ACEOF
46466 /* confdefs.h.  */
46467 _ACEOF
46468 cat confdefs.h >>conftest.$ac_ext
46469 cat >>conftest.$ac_ext <<_ACEOF
46470 /* end confdefs.h.  */
46471  #include <IOKit/hid/IOHIDLib.h>
46472 int
46473 main ()
46474 {
46475  IOHIDQueueInterface *qi = NULL;
46476                               IOHIDCallbackFunction cb = NULL;
46477                               qi->setEventCallout(NULL, cb, NULL, NULL);
46478   ;
46479   return 0;
46480 }
46481 _ACEOF
46482 rm -f conftest.$ac_objext
46483 if { (ac_try="$ac_compile"
46484 case "(($ac_try" in
46485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46486   *) ac_try_echo=$ac_try;;
46487 esac
46488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46489   (eval "$ac_compile") 2>conftest.er1
46490   ac_status=$?
46491   grep -v '^ *+' conftest.er1 >conftest.err
46492   rm -f conftest.er1
46493   cat conftest.err >&5
46494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46495   (exit $ac_status); } && {
46496          test -z "$ac_cxx_werror_flag" ||
46497          test ! -s conftest.err
46498        } && test -s conftest.$ac_objext; then
46499    wxUSE_JOYSTICK=yes
46500
46501 else
46502   echo "$as_me: failed program was:" >&5
46503 sed 's/^/| /' conftest.$ac_ext >&5
46504
46505
46506 fi
46507
46508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46509             ac_ext=c
46510 ac_cpp='$CPP $CPPFLAGS'
46511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46514
46515             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
46516 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
46517         fi
46518
46519         else
46520                 if test "$wxUSE_MGL" != 1; then
46521
46522 for ac_header in linux/joystick.h
46523 do
46524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46528   echo $ECHO_N "(cached) $ECHO_C" >&6
46529 else
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 $ac_includes_default
46537
46538 #include <$ac_header>
46539 _ACEOF
46540 rm -f conftest.$ac_objext
46541 if { (ac_try="$ac_compile"
46542 case "(($ac_try" in
46543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46544   *) ac_try_echo=$ac_try;;
46545 esac
46546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46547   (eval "$ac_compile") 2>conftest.er1
46548   ac_status=$?
46549   grep -v '^ *+' conftest.er1 >conftest.err
46550   rm -f conftest.er1
46551   cat conftest.err >&5
46552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46553   (exit $ac_status); } && {
46554          test -z "$ac_c_werror_flag" ||
46555          test ! -s conftest.err
46556        } && test -s conftest.$ac_objext; then
46557   eval "$as_ac_Header=yes"
46558 else
46559   echo "$as_me: failed program was:" >&5
46560 sed 's/^/| /' conftest.$ac_ext >&5
46561
46562         eval "$as_ac_Header=no"
46563 fi
46564
46565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46566 fi
46567 ac_res=`eval echo '${'$as_ac_Header'}'`
46568                { echo "$as_me:$LINENO: result: $ac_res" >&5
46569 echo "${ECHO_T}$ac_res" >&6; }
46570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46571   cat >>confdefs.h <<_ACEOF
46572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46573 _ACEOF
46574  wxUSE_JOYSTICK=yes
46575 fi
46576
46577 done
46578
46579         fi
46580     fi
46581
46582     if test "$wxUSE_JOYSTICK" = "yes"; then
46583         cat >>confdefs.h <<\_ACEOF
46584 #define wxUSE_JOYSTICK 1
46585 _ACEOF
46586
46587         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
46588     else
46589         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
46590 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
46591     fi
46592 fi
46593
46594
46595
46596 if test "$wxUSE_FONTENUM" = "yes" ; then
46597   cat >>confdefs.h <<\_ACEOF
46598 #define wxUSE_FONTENUM 1
46599 _ACEOF
46600
46601 fi
46602
46603 if test "$wxUSE_FONTMAP" = "yes" ; then
46604   cat >>confdefs.h <<\_ACEOF
46605 #define wxUSE_FONTMAP 1
46606 _ACEOF
46607
46608 fi
46609
46610 if test "$wxUSE_UNICODE" = "yes" ; then
46611   cat >>confdefs.h <<\_ACEOF
46612 #define wxUSE_UNICODE 1
46613 _ACEOF
46614
46615
46616   if test "$USE_WIN32" != 1; then
46617       wxUSE_UNICODE_MSLU=no
46618   fi
46619
46620   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
46621         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
46622 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
46623 if test "${ac_cv_lib_unicows_main+set}" = set; then
46624   echo $ECHO_N "(cached) $ECHO_C" >&6
46625 else
46626   ac_check_lib_save_LIBS=$LIBS
46627 LIBS="-lunicows  $LIBS"
46628 cat >conftest.$ac_ext <<_ACEOF
46629 /* confdefs.h.  */
46630 _ACEOF
46631 cat confdefs.h >>conftest.$ac_ext
46632 cat >>conftest.$ac_ext <<_ACEOF
46633 /* end confdefs.h.  */
46634
46635
46636 int
46637 main ()
46638 {
46639 return main ();
46640   ;
46641   return 0;
46642 }
46643 _ACEOF
46644 rm -f conftest.$ac_objext conftest$ac_exeext
46645 if { (ac_try="$ac_link"
46646 case "(($ac_try" in
46647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46648   *) ac_try_echo=$ac_try;;
46649 esac
46650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46651   (eval "$ac_link") 2>conftest.er1
46652   ac_status=$?
46653   grep -v '^ *+' conftest.er1 >conftest.err
46654   rm -f conftest.er1
46655   cat conftest.err >&5
46656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46657   (exit $ac_status); } && {
46658          test -z "$ac_c_werror_flag" ||
46659          test ! -s conftest.err
46660        } && test -s conftest$ac_exeext &&
46661        $as_test_x conftest$ac_exeext; then
46662   ac_cv_lib_unicows_main=yes
46663 else
46664   echo "$as_me: failed program was:" >&5
46665 sed 's/^/| /' conftest.$ac_ext >&5
46666
46667         ac_cv_lib_unicows_main=no
46668 fi
46669
46670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46671       conftest$ac_exeext conftest.$ac_ext
46672 LIBS=$ac_check_lib_save_LIBS
46673 fi
46674 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46675 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
46676 if test $ac_cv_lib_unicows_main = yes; then
46677
46678                 cat >>confdefs.h <<\_ACEOF
46679 #define wxUSE_UNICODE_MSLU 1
46680 _ACEOF
46681
46682
46683 else
46684
46685                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46686                              Applications will only run on Windows NT/2000/XP!" >&5
46687 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46688                              Applications will only run on Windows NT/2000/XP!" >&2;}
46689                 wxUSE_UNICODE_MSLU=no
46690
46691 fi
46692
46693     fi
46694 fi
46695
46696 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46697     cat >>confdefs.h <<\_ACEOF
46698 #define wxUSE_UNICODE_UTF8 1
46699 _ACEOF
46700
46701
46702     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46703         cat >>confdefs.h <<\_ACEOF
46704 #define wxUSE_UTF8_LOCALE_ONLY 1
46705 _ACEOF
46706
46707     fi
46708 fi
46709
46710
46711 if test "$wxUSE_CONSTRAINTS" = "yes"; then
46712     cat >>confdefs.h <<\_ACEOF
46713 #define wxUSE_CONSTRAINTS 1
46714 _ACEOF
46715
46716     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46717 fi
46718
46719 if test "$wxUSE_MDI" = "yes"; then
46720     cat >>confdefs.h <<\_ACEOF
46721 #define wxUSE_MDI 1
46722 _ACEOF
46723
46724
46725     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46726         cat >>confdefs.h <<\_ACEOF
46727 #define wxUSE_MDI_ARCHITECTURE 1
46728 _ACEOF
46729
46730         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46731     fi
46732 fi
46733
46734 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46735     cat >>confdefs.h <<\_ACEOF
46736 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
46737 _ACEOF
46738
46739     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
46740 fi
46741
46742 if test "$wxUSE_HELP" = "yes"; then
46743     cat >>confdefs.h <<\_ACEOF
46744 #define wxUSE_HELP 1
46745 _ACEOF
46746
46747     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
46748
46749     if test "$wxUSE_MSW" = 1; then
46750       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
46751         cat >>confdefs.h <<\_ACEOF
46752 #define wxUSE_MS_HTML_HELP 1
46753 _ACEOF
46754
46755       fi
46756     fi
46757
46758     if test "$wxUSE_WXHTML_HELP" = "yes"; then
46759       if test "$wxUSE_HTML" = "yes"; then
46760         cat >>confdefs.h <<\_ACEOF
46761 #define wxUSE_WXHTML_HELP 1
46762 _ACEOF
46763
46764       else
46765         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
46766 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
46767         wxUSE_WXHTML_HELP=no
46768       fi
46769     fi
46770 fi
46771
46772 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46773     cat >>confdefs.h <<\_ACEOF
46774 #define wxUSE_PRINTING_ARCHITECTURE 1
46775 _ACEOF
46776
46777     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
46778 fi
46779
46780 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
46781   cat >>confdefs.h <<\_ACEOF
46782 #define wxUSE_POSTSCRIPT 1
46783 _ACEOF
46784
46785 fi
46786
46787 cat >>confdefs.h <<\_ACEOF
46788 #define wxUSE_AFM_FOR_POSTSCRIPT 1
46789 _ACEOF
46790
46791
46792 if test "$wxUSE_SVG" = "yes"; then
46793     cat >>confdefs.h <<\_ACEOF
46794 #define wxUSE_SVG 1
46795 _ACEOF
46796
46797 fi
46798
46799
46800 if test "$wxUSE_METAFILE" = "yes"; then
46801     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
46802         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
46803 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
46804         wxUSE_METAFILE=no
46805     fi
46806 fi
46807
46808
46809 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
46810                           -o "$wxUSE_CLIPBOARD"     = "yes" \
46811                           -o "$wxUSE_OLE"     = "yes" \
46812                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
46813     { echo "$as_me:$LINENO: checking for ole2.h" >&5
46814 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
46815 if test "${ac_cv_header_ole2_h+set}" = set; then
46816   echo $ECHO_N "(cached) $ECHO_C" >&6
46817 else
46818   cat >conftest.$ac_ext <<_ACEOF
46819 /* confdefs.h.  */
46820 _ACEOF
46821 cat confdefs.h >>conftest.$ac_ext
46822 cat >>conftest.$ac_ext <<_ACEOF
46823 /* end confdefs.h.  */
46824
46825
46826 #include <ole2.h>
46827 _ACEOF
46828 rm -f conftest.$ac_objext
46829 if { (ac_try="$ac_compile"
46830 case "(($ac_try" in
46831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46832   *) ac_try_echo=$ac_try;;
46833 esac
46834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46835   (eval "$ac_compile") 2>conftest.er1
46836   ac_status=$?
46837   grep -v '^ *+' conftest.er1 >conftest.err
46838   rm -f conftest.er1
46839   cat conftest.err >&5
46840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46841   (exit $ac_status); } && {
46842          test -z "$ac_c_werror_flag" ||
46843          test ! -s conftest.err
46844        } && test -s conftest.$ac_objext; then
46845   ac_cv_header_ole2_h=yes
46846 else
46847   echo "$as_me: failed program was:" >&5
46848 sed 's/^/| /' conftest.$ac_ext >&5
46849
46850         ac_cv_header_ole2_h=no
46851 fi
46852
46853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46854 fi
46855 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
46856 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
46857
46858
46859
46860     if test "$ac_cv_header_ole2_h" = "yes" ; then
46861         if test "$GCC" = yes ; then
46862             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
46863 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
46864             cat >conftest.$ac_ext <<_ACEOF
46865 /* confdefs.h.  */
46866 _ACEOF
46867 cat confdefs.h >>conftest.$ac_ext
46868 cat >>conftest.$ac_ext <<_ACEOF
46869 /* end confdefs.h.  */
46870 #include <windows.h>
46871                             #include <ole2.h>
46872 int
46873 main ()
46874 {
46875
46876   ;
46877   return 0;
46878 }
46879 _ACEOF
46880 rm -f conftest.$ac_objext
46881 if { (ac_try="$ac_compile"
46882 case "(($ac_try" in
46883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46884   *) ac_try_echo=$ac_try;;
46885 esac
46886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46887   (eval "$ac_compile") 2>conftest.er1
46888   ac_status=$?
46889   grep -v '^ *+' conftest.er1 >conftest.err
46890   rm -f conftest.er1
46891   cat conftest.err >&5
46892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46893   (exit $ac_status); } && {
46894          test -z "$ac_c_werror_flag" ||
46895          test ! -s conftest.err
46896        } && test -s conftest.$ac_objext; then
46897   { echo "$as_me:$LINENO: result: no" >&5
46898 echo "${ECHO_T}no" >&6; }
46899 else
46900   echo "$as_me: failed program was:" >&5
46901 sed 's/^/| /' conftest.$ac_ext >&5
46902
46903         { echo "$as_me:$LINENO: result: yes" >&5
46904 echo "${ECHO_T}yes" >&6; }
46905                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
46906 fi
46907
46908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46909             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
46910             if test "$wxUSE_OLE" = "yes" ; then
46911                 cat >>confdefs.h <<\_ACEOF
46912 #define wxUSE_OLE 1
46913 _ACEOF
46914
46915                 cat >>confdefs.h <<\_ACEOF
46916 #define wxUSE_OLE_AUTOMATION 1
46917 _ACEOF
46918
46919                 cat >>confdefs.h <<\_ACEOF
46920 #define wxUSE_ACTIVEX 1
46921 _ACEOF
46922
46923                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
46924             fi
46925         fi
46926
46927                 if test "$wxUSE_DATAOBJ" = "yes" ; then
46928             cat >>confdefs.h <<\_ACEOF
46929 #define wxUSE_DATAOBJ 1
46930 _ACEOF
46931
46932         fi
46933     else
46934         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
46935 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
46936
46937         wxUSE_CLIPBOARD=no
46938         wxUSE_DRAG_AND_DROP=no
46939         wxUSE_DATAOBJ=no
46940         wxUSE_OLE=no
46941     fi
46942
46943     if test "$wxUSE_METAFILE" = "yes"; then
46944         cat >>confdefs.h <<\_ACEOF
46945 #define wxUSE_METAFILE 1
46946 _ACEOF
46947
46948
46949                 cat >>confdefs.h <<\_ACEOF
46950 #define wxUSE_ENH_METAFILE 1
46951 _ACEOF
46952
46953     fi
46954 fi
46955
46956 if test "$wxUSE_IPC" = "yes"; then
46957     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
46958         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46959 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
46960         wxUSE_IPC=no
46961     fi
46962
46963     if test "$wxUSE_IPC" = "yes"; then
46964         cat >>confdefs.h <<\_ACEOF
46965 #define wxUSE_IPC 1
46966 _ACEOF
46967
46968         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46969     fi
46970 fi
46971
46972 if test "$wxUSE_DATAOBJ" = "yes"; then
46973     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46974         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
46975 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
46976         wxUSE_DATAOBJ=no
46977     else
46978         cat >>confdefs.h <<\_ACEOF
46979 #define wxUSE_DATAOBJ 1
46980 _ACEOF
46981
46982     fi
46983 else
46984     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46985 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46986     wxUSE_CLIPBOARD=no
46987     wxUSE_DRAG_AND_DROP=no
46988 fi
46989
46990 if test "$wxUSE_CLIPBOARD" = "yes"; then
46991     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46992         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
46993 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
46994         wxUSE_CLIPBOARD=no
46995     fi
46996
46997     if test "$wxUSE_CLIPBOARD" = "yes"; then
46998         cat >>confdefs.h <<\_ACEOF
46999 #define wxUSE_CLIPBOARD 1
47000 _ACEOF
47001
47002     fi
47003 fi
47004
47005 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47006     if test "$wxUSE_GTK" = 1; then
47007         if test "$WXGTK12" != 1; then
47008             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47009 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47010             wxUSE_DRAG_AND_DROP=no
47011         fi
47012     fi
47013
47014     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47015             "$wxUSE_DFB" = 1; then
47016         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47017 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47018         wxUSE_DRAG_AND_DROP=no
47019     fi
47020
47021     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47022         cat >>confdefs.h <<\_ACEOF
47023 #define wxUSE_DRAG_AND_DROP 1
47024 _ACEOF
47025
47026     fi
47027
47028 fi
47029
47030 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47031     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47032 fi
47033
47034 if test "$wxUSE_CLIPBOARD" = "yes"; then
47035     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47036 fi
47037
47038 if test "$wxUSE_SPLINES" = "yes" ; then
47039   cat >>confdefs.h <<\_ACEOF
47040 #define wxUSE_SPLINES 1
47041 _ACEOF
47042
47043 fi
47044
47045 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47046   cat >>confdefs.h <<\_ACEOF
47047 #define wxUSE_MOUSEWHEEL 1
47048 _ACEOF
47049
47050 fi
47051
47052 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47053     cat >>confdefs.h <<\_ACEOF
47054 #define wxUSE_UIACTIONSIMULATOR 1
47055 _ACEOF
47056
47057     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47058 fi
47059
47060
47061 USES_CONTROLS=0
47062 if test "$wxUSE_CONTROLS" = "yes"; then
47063   USES_CONTROLS=1
47064 fi
47065
47066 if test "$wxUSE_MARKUP" = "yes"; then
47067   cat >>confdefs.h <<\_ACEOF
47068 #define wxUSE_MARKUP 1
47069 _ACEOF
47070
47071 fi
47072
47073 if test "$wxUSE_ACCEL" = "yes"; then
47074   cat >>confdefs.h <<\_ACEOF
47075 #define wxUSE_ACCEL 1
47076 _ACEOF
47077
47078   USES_CONTROLS=1
47079 fi
47080
47081 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47082   cat >>confdefs.h <<\_ACEOF
47083 #define wxUSE_ANIMATIONCTRL 1
47084 _ACEOF
47085
47086   USES_CONTROLS=1
47087   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47088 fi
47089
47090 if test "$wxUSE_BUTTON" = "yes"; then
47091   cat >>confdefs.h <<\_ACEOF
47092 #define wxUSE_BUTTON 1
47093 _ACEOF
47094
47095   USES_CONTROLS=1
47096 fi
47097
47098 if test "$wxUSE_BMPBUTTON" = "yes"; then
47099   cat >>confdefs.h <<\_ACEOF
47100 #define wxUSE_BMPBUTTON 1
47101 _ACEOF
47102
47103   USES_CONTROLS=1
47104 fi
47105
47106 if test "$wxUSE_CALCTRL" = "yes"; then
47107   cat >>confdefs.h <<\_ACEOF
47108 #define wxUSE_CALENDARCTRL 1
47109 _ACEOF
47110
47111   USES_CONTROLS=1
47112   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47113 fi
47114
47115 if test "$wxUSE_CARET" = "yes"; then
47116   cat >>confdefs.h <<\_ACEOF
47117 #define wxUSE_CARET 1
47118 _ACEOF
47119
47120   USES_CONTROLS=1
47121   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47122 fi
47123
47124 if test "$wxUSE_COLLPANE" = "yes"; then
47125     cat >>confdefs.h <<\_ACEOF
47126 #define wxUSE_COLLPANE 1
47127 _ACEOF
47128
47129     USES_CONTROLS=1
47130     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47131 fi
47132
47133 if test "$wxUSE_COMBOBOX" = "yes"; then
47134   cat >>confdefs.h <<\_ACEOF
47135 #define wxUSE_COMBOBOX 1
47136 _ACEOF
47137
47138   USES_CONTROLS=1
47139 fi
47140
47141 if test "$wxUSE_COMBOCTRL" = "yes"; then
47142   cat >>confdefs.h <<\_ACEOF
47143 #define wxUSE_COMBOCTRL 1
47144 _ACEOF
47145
47146   USES_CONTROLS=1
47147 fi
47148
47149 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47150   cat >>confdefs.h <<\_ACEOF
47151 #define wxUSE_COMMANDLINKBUTTON 1
47152 _ACEOF
47153
47154   USES_CONTROLS=1
47155 fi
47156
47157 if test "$wxUSE_CHOICE" = "yes"; then
47158   cat >>confdefs.h <<\_ACEOF
47159 #define wxUSE_CHOICE 1
47160 _ACEOF
47161
47162   USES_CONTROLS=1
47163 fi
47164
47165 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47166     cat >>confdefs.h <<\_ACEOF
47167 #define wxUSE_CHOICEBOOK 1
47168 _ACEOF
47169
47170     USES_CONTROLS=1
47171 fi
47172
47173 if test "$wxUSE_CHECKBOX" = "yes"; then
47174   cat >>confdefs.h <<\_ACEOF
47175 #define wxUSE_CHECKBOX 1
47176 _ACEOF
47177
47178   USES_CONTROLS=1
47179 fi
47180
47181 if test "$wxUSE_CHECKLST" = "yes"; then
47182   cat >>confdefs.h <<\_ACEOF
47183 #define wxUSE_CHECKLISTBOX 1
47184 _ACEOF
47185
47186   USES_CONTROLS=1
47187 fi
47188
47189 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47190   cat >>confdefs.h <<\_ACEOF
47191 #define wxUSE_COLOURPICKERCTRL 1
47192 _ACEOF
47193
47194   USES_CONTROLS=1
47195 fi
47196
47197 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47198   cat >>confdefs.h <<\_ACEOF
47199 #define wxUSE_DATEPICKCTRL 1
47200 _ACEOF
47201
47202   USES_CONTROLS=1
47203 fi
47204
47205 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47206   cat >>confdefs.h <<\_ACEOF
47207 #define wxUSE_DIRPICKERCTRL 1
47208 _ACEOF
47209
47210   USES_CONTROLS=1
47211 fi
47212
47213 if test "$wxUSE_FILECTRL" = "yes"; then
47214   cat >>confdefs.h <<\_ACEOF
47215 #define wxUSE_FILECTRL 1
47216 _ACEOF
47217
47218   USES_CONTROLS=1
47219 fi
47220
47221 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47222   cat >>confdefs.h <<\_ACEOF
47223 #define wxUSE_FILEPICKERCTRL 1
47224 _ACEOF
47225
47226   USES_CONTROLS=1
47227 fi
47228
47229 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47230   cat >>confdefs.h <<\_ACEOF
47231 #define wxUSE_FONTPICKERCTRL 1
47232 _ACEOF
47233
47234   USES_CONTROLS=1
47235 fi
47236
47237 if test "$wxUSE_DISPLAY" = "yes"; then
47238     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47239         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47240 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47241         wxUSE_DISPLAY=no
47242     else
47243         cat >>confdefs.h <<\_ACEOF
47244 #define wxUSE_DISPLAY 1
47245 _ACEOF
47246
47247         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47248     fi
47249 fi
47250
47251 if test "$wxUSE_DETECT_SM" = "yes"; then
47252     cat >>confdefs.h <<\_ACEOF
47253 #define wxUSE_DETECT_SM 1
47254 _ACEOF
47255
47256 fi
47257
47258 if test "$wxUSE_GAUGE" = "yes"; then
47259   cat >>confdefs.h <<\_ACEOF
47260 #define wxUSE_GAUGE 1
47261 _ACEOF
47262
47263   USES_CONTROLS=1
47264 fi
47265
47266 if test "$wxUSE_GRID" = "yes"; then
47267   cat >>confdefs.h <<\_ACEOF
47268 #define wxUSE_GRID 1
47269 _ACEOF
47270
47271   USES_CONTROLS=1
47272   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47273 fi
47274
47275 if test "$wxUSE_HEADERCTRL" = "yes"; then
47276   cat >>confdefs.h <<\_ACEOF
47277 #define wxUSE_HEADERCTRL 1
47278 _ACEOF
47279
47280   USES_CONTROLS=1
47281 fi
47282
47283 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47284   cat >>confdefs.h <<\_ACEOF
47285 #define wxUSE_HYPERLINKCTRL 1
47286 _ACEOF
47287
47288   USES_CONTROLS=1
47289 fi
47290
47291 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47292   cat >>confdefs.h <<\_ACEOF
47293 #define wxUSE_BITMAPCOMBOBOX 1
47294 _ACEOF
47295
47296   USES_CONTROLS=1
47297 fi
47298
47299 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47300   cat >>confdefs.h <<\_ACEOF
47301 #define wxUSE_DATAVIEWCTRL 1
47302 _ACEOF
47303
47304   USES_CONTROLS=1
47305   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47306 fi
47307
47308 if test "$wxUSE_IMAGLIST" = "yes"; then
47309     cat >>confdefs.h <<\_ACEOF
47310 #define wxUSE_IMAGLIST 1
47311 _ACEOF
47312
47313 fi
47314
47315 if test "$wxUSE_INFOBAR" = "yes"; then
47316     cat >>confdefs.h <<\_ACEOF
47317 #define wxUSE_INFOBAR 1
47318 _ACEOF
47319
47320 fi
47321
47322 if test "$wxUSE_LISTBOOK" = "yes"; then
47323     cat >>confdefs.h <<\_ACEOF
47324 #define wxUSE_LISTBOOK 1
47325 _ACEOF
47326
47327     USES_CONTROLS=1
47328 fi
47329
47330 if test "$wxUSE_LISTBOX" = "yes"; then
47331     cat >>confdefs.h <<\_ACEOF
47332 #define wxUSE_LISTBOX 1
47333 _ACEOF
47334
47335     USES_CONTROLS=1
47336 fi
47337
47338 if test "$wxUSE_LISTCTRL" = "yes"; then
47339     if test "$wxUSE_IMAGLIST" = "yes"; then
47340         cat >>confdefs.h <<\_ACEOF
47341 #define wxUSE_LISTCTRL 1
47342 _ACEOF
47343
47344         USES_CONTROLS=1
47345         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47346     else
47347         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47348 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47349     fi
47350 fi
47351
47352 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47353     cat >>confdefs.h <<\_ACEOF
47354 #define wxUSE_EDITABLELISTBOX 1
47355 _ACEOF
47356
47357     USES_CONTROLS=1
47358 fi
47359
47360 if test "$wxUSE_NOTEBOOK" = "yes"; then
47361     cat >>confdefs.h <<\_ACEOF
47362 #define wxUSE_NOTEBOOK 1
47363 _ACEOF
47364
47365     USES_CONTROLS=1
47366     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47367 fi
47368
47369 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47370     cat >>confdefs.h <<\_ACEOF
47371 #define wxUSE_NOTIFICATION_MESSAGE 1
47372 _ACEOF
47373
47374 fi
47375
47376 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47377   cat >>confdefs.h <<\_ACEOF
47378 #define wxUSE_ODCOMBOBOX 1
47379 _ACEOF
47380
47381   USES_CONTROLS=1
47382   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47383 fi
47384
47385 if test "$wxUSE_RADIOBOX" = "yes"; then
47386     cat >>confdefs.h <<\_ACEOF
47387 #define wxUSE_RADIOBOX 1
47388 _ACEOF
47389
47390     USES_CONTROLS=1
47391 fi
47392
47393 if test "$wxUSE_RADIOBTN" = "yes"; then
47394     cat >>confdefs.h <<\_ACEOF
47395 #define wxUSE_RADIOBTN 1
47396 _ACEOF
47397
47398     USES_CONTROLS=1
47399 fi
47400
47401 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47402     cat >>confdefs.h <<\_ACEOF
47403 #define wxUSE_REARRANGECTRL 1
47404 _ACEOF
47405
47406 fi
47407
47408 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47409     cat >>confdefs.h <<\_ACEOF
47410 #define wxUSE_RICHMSGDLG 1
47411 _ACEOF
47412
47413 fi
47414
47415 if test "$wxUSE_SASH" = "yes"; then
47416     cat >>confdefs.h <<\_ACEOF
47417 #define wxUSE_SASH 1
47418 _ACEOF
47419
47420     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47421 fi
47422
47423 if test "$wxUSE_SCROLLBAR" = "yes"; then
47424     cat >>confdefs.h <<\_ACEOF
47425 #define wxUSE_SCROLLBAR 1
47426 _ACEOF
47427
47428     USES_CONTROLS=1
47429     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47430 fi
47431
47432 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47433     cat >>confdefs.h <<\_ACEOF
47434 #define wxUSE_SEARCHCTRL 1
47435 _ACEOF
47436
47437     USES_CONTROLS=1
47438 fi
47439
47440 if test "$wxUSE_SLIDER" = "yes"; then
47441     cat >>confdefs.h <<\_ACEOF
47442 #define wxUSE_SLIDER 1
47443 _ACEOF
47444
47445     USES_CONTROLS=1
47446 fi
47447
47448 if test "$wxUSE_SPINBTN" = "yes"; then
47449     cat >>confdefs.h <<\_ACEOF
47450 #define wxUSE_SPINBTN 1
47451 _ACEOF
47452
47453     USES_CONTROLS=1
47454 fi
47455
47456 if test "$wxUSE_SPINCTRL" = "yes"; then
47457     cat >>confdefs.h <<\_ACEOF
47458 #define wxUSE_SPINCTRL 1
47459 _ACEOF
47460
47461     USES_CONTROLS=1
47462 fi
47463
47464 if test "$wxUSE_SPLITTER" = "yes"; then
47465     cat >>confdefs.h <<\_ACEOF
47466 #define wxUSE_SPLITTER 1
47467 _ACEOF
47468
47469     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47470 fi
47471
47472 if test "$wxUSE_STATBMP" = "yes"; then
47473     cat >>confdefs.h <<\_ACEOF
47474 #define wxUSE_STATBMP 1
47475 _ACEOF
47476
47477     USES_CONTROLS=1
47478 fi
47479
47480 if test "$wxUSE_STATBOX" = "yes"; then
47481     cat >>confdefs.h <<\_ACEOF
47482 #define wxUSE_STATBOX 1
47483 _ACEOF
47484
47485     USES_CONTROLS=1
47486 fi
47487
47488 if test "$wxUSE_STATTEXT" = "yes"; then
47489     cat >>confdefs.h <<\_ACEOF
47490 #define wxUSE_STATTEXT 1
47491 _ACEOF
47492
47493     USES_CONTROLS=1
47494 fi
47495
47496 if test "$wxUSE_STATLINE" = "yes"; then
47497     cat >>confdefs.h <<\_ACEOF
47498 #define wxUSE_STATLINE 1
47499 _ACEOF
47500
47501     USES_CONTROLS=1
47502 fi
47503
47504 if test "$wxUSE_STATUSBAR" = "yes"; then
47505         cat >>confdefs.h <<\_ACEOF
47506 #define wxUSE_NATIVE_STATUSBAR 1
47507 _ACEOF
47508
47509     cat >>confdefs.h <<\_ACEOF
47510 #define wxUSE_STATUSBAR 1
47511 _ACEOF
47512
47513     USES_CONTROLS=1
47514
47515     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
47516 fi
47517
47518 if test "$wxUSE_TEXTCTRL" = "yes"; then
47519     cat >>confdefs.h <<\_ACEOF
47520 #define wxUSE_TEXTCTRL 1
47521 _ACEOF
47522
47523     USES_CONTROLS=1
47524     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
47525
47526             cat >>confdefs.h <<\_ACEOF
47527 #define wxUSE_RICHEDIT 1
47528 _ACEOF
47529
47530     cat >>confdefs.h <<\_ACEOF
47531 #define wxUSE_RICHEDIT2 1
47532 _ACEOF
47533
47534 fi
47535
47536 if test "$wxUSE_TOGGLEBTN" = "yes"; then
47537     if test "$wxUSE_OLD_COCOA" = 1 ; then
47538         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
47539 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
47540         wxUSE_TOGGLEBTN=no
47541     fi
47542
47543     if test "$wxUSE_TOGGLEBTN" = "yes"; then
47544         cat >>confdefs.h <<\_ACEOF
47545 #define wxUSE_TOGGLEBTN 1
47546 _ACEOF
47547
47548         USES_CONTROLS=1
47549     fi
47550 fi
47551
47552 if test "$wxUSE_TOOLBAR" = "yes"; then
47553     cat >>confdefs.h <<\_ACEOF
47554 #define wxUSE_TOOLBAR 1
47555 _ACEOF
47556
47557     USES_CONTROLS=1
47558
47559     if test "$wxUSE_UNIVERSAL" = "yes"; then
47560         wxUSE_TOOLBAR_NATIVE="no"
47561     else
47562         wxUSE_TOOLBAR_NATIVE="yes"
47563         cat >>confdefs.h <<\_ACEOF
47564 #define wxUSE_TOOLBAR_NATIVE 1
47565 _ACEOF
47566
47567     fi
47568
47569     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
47570 fi
47571
47572 if test "$wxUSE_TOOLTIPS" = "yes"; then
47573     if test "$wxUSE_MOTIF" = 1; then
47574         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
47575 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
47576     else
47577         if test "$wxUSE_UNIVERSAL" = "yes"; then
47578             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
47579 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
47580         else
47581             cat >>confdefs.h <<\_ACEOF
47582 #define wxUSE_TOOLTIPS 1
47583 _ACEOF
47584
47585         fi
47586     fi
47587 fi
47588
47589 if test "$wxUSE_TREEBOOK" = "yes"; then
47590     cat >>confdefs.h <<\_ACEOF
47591 #define wxUSE_TREEBOOK 1
47592 _ACEOF
47593
47594     USES_CONTROLS=1
47595 fi
47596
47597 if test "$wxUSE_TOOLBOOK" = "yes"; then
47598     cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_TOOLBOOK 1
47600 _ACEOF
47601
47602     USES_CONTROLS=1
47603 fi
47604
47605 if test "$wxUSE_TREECTRL" = "yes"; then
47606     if test "$wxUSE_IMAGLIST" = "yes"; then
47607         cat >>confdefs.h <<\_ACEOF
47608 #define wxUSE_TREECTRL 1
47609 _ACEOF
47610
47611         USES_CONTROLS=1
47612         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
47613     else
47614         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
47615 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
47616     fi
47617 fi
47618
47619 if test "$wxUSE_POPUPWIN" = "yes"; then
47620     if test "$wxUSE_OLD_COCOA" = 1 ; then
47621         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
47622 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
47623     else
47624         if test "$wxUSE_PM" = 1; then
47625             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
47626 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
47627         else
47628             cat >>confdefs.h <<\_ACEOF
47629 #define wxUSE_POPUPWIN 1
47630 _ACEOF
47631
47632             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
47633
47634             USES_CONTROLS=1
47635         fi
47636     fi
47637 fi
47638
47639 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
47640     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
47641         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
47642 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
47643     else
47644         cat >>confdefs.h <<\_ACEOF
47645 #define wxUSE_DIALUP_MANAGER 1
47646 _ACEOF
47647
47648         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
47649     fi
47650 fi
47651
47652 if test "$wxUSE_TIPWINDOW" = "yes"; then
47653     if test "$wxUSE_PM" = 1; then
47654         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
47655 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
47656     else
47657         cat >>confdefs.h <<\_ACEOF
47658 #define wxUSE_TIPWINDOW 1
47659 _ACEOF
47660
47661     fi
47662 fi
47663
47664 if test "$USES_CONTROLS" = 1; then
47665     cat >>confdefs.h <<\_ACEOF
47666 #define wxUSE_CONTROLS 1
47667 _ACEOF
47668
47669 fi
47670
47671
47672 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47673     cat >>confdefs.h <<\_ACEOF
47674 #define wxUSE_ACCESSIBILITY 1
47675 _ACEOF
47676
47677     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47678 fi
47679
47680 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
47681     cat >>confdefs.h <<\_ACEOF
47682 #define wxUSE_ARTPROVIDER_STD 1
47683 _ACEOF
47684
47685 fi
47686
47687 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
47688             if test "$wxUSE_GTK" != 1; then
47689                 if test "$wxUSE_LIBPNG" != no -a \
47690                 "$wxUSE_IMAGE" = yes -a \
47691                 "$wxUSE_STREAMS" = yes; then
47692             wxUSE_ARTPROVIDER_TANGO="yes"
47693         fi
47694     fi
47695 fi
47696
47697 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
47698     cat >>confdefs.h <<\_ACEOF
47699 #define wxUSE_ARTPROVIDER_TANGO 1
47700 _ACEOF
47701
47702 fi
47703
47704 if test "$wxUSE_DRAGIMAGE" = "yes"; then
47705     cat >>confdefs.h <<\_ACEOF
47706 #define wxUSE_DRAGIMAGE 1
47707 _ACEOF
47708
47709     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
47710 fi
47711
47712 if test "$wxUSE_EXCEPTIONS" = "yes"; then
47713     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47714         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
47715 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
47716     else
47717         cat >>confdefs.h <<\_ACEOF
47718 #define wxUSE_EXCEPTIONS 1
47719 _ACEOF
47720
47721         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
47722     fi
47723 fi
47724
47725 USE_HTML=0
47726 if test "$wxUSE_HTML" = "yes"; then
47727     cat >>confdefs.h <<\_ACEOF
47728 #define wxUSE_HTML 1
47729 _ACEOF
47730
47731     USE_HTML=1
47732     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
47733 fi
47734 if test "$wxUSE_WEBKIT" = "yes"; then
47735     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
47736         old_CPPFLAGS="$CPPFLAGS"
47737         CPPFLAGS="-x objective-c++ $CPPFLAGS"
47738         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
47739 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
47740 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
47741   echo $ECHO_N "(cached) $ECHO_C" >&6
47742 else
47743   cat >conftest.$ac_ext <<_ACEOF
47744 /* confdefs.h.  */
47745 _ACEOF
47746 cat confdefs.h >>conftest.$ac_ext
47747 cat >>conftest.$ac_ext <<_ACEOF
47748 /* end confdefs.h.  */
47749
47750                            #include <Carbon/Carbon.h>
47751                            #include <WebKit/WebKit.h>
47752
47753
47754 #include <WebKit/HIWebView.h>
47755 _ACEOF
47756 rm -f conftest.$ac_objext
47757 if { (ac_try="$ac_compile"
47758 case "(($ac_try" in
47759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47760   *) ac_try_echo=$ac_try;;
47761 esac
47762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47763   (eval "$ac_compile") 2>conftest.er1
47764   ac_status=$?
47765   grep -v '^ *+' conftest.er1 >conftest.err
47766   rm -f conftest.er1
47767   cat conftest.err >&5
47768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47769   (exit $ac_status); } && {
47770          test -z "$ac_c_werror_flag" ||
47771          test ! -s conftest.err
47772        } && test -s conftest.$ac_objext; then
47773   ac_cv_header_WebKit_HIWebView_h=yes
47774 else
47775   echo "$as_me: failed program was:" >&5
47776 sed 's/^/| /' conftest.$ac_ext >&5
47777
47778         ac_cv_header_WebKit_HIWebView_h=no
47779 fi
47780
47781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47782 fi
47783 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
47784 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
47785 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
47786
47787                            cat >>confdefs.h <<\_ACEOF
47788 #define wxUSE_WEBKIT 1
47789 _ACEOF
47790
47791                            WEBKIT_LINK="-framework WebKit"
47792
47793 else
47794
47795                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
47796 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
47797                            wxUSE_WEBKIT=no
47798
47799 fi
47800
47801
47802         CPPFLAGS="$old_CPPFLAGS"
47803     elif test "$wxUSE_OLD_COCOA" = 1; then
47804         cat >>confdefs.h <<\_ACEOF
47805 #define wxUSE_WEBKIT 1
47806 _ACEOF
47807
47808     else
47809         wxUSE_WEBKIT=no
47810     fi
47811     if test "$wxUSE_WEBKIT" = "yes"; then
47812         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
47813     fi
47814 fi
47815
47816 USE_XRC=0
47817 if test "$wxUSE_XRC" = "yes"; then
47818     if test "$wxUSE_XML" != "yes"; then
47819         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
47820 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
47821         wxUSE_XRC=no
47822     else
47823         cat >>confdefs.h <<\_ACEOF
47824 #define wxUSE_XRC 1
47825 _ACEOF
47826
47827         USE_XRC=1
47828         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
47829     fi
47830 fi
47831
47832 USE_AUI=0
47833 if test "$wxUSE_AUI" = "yes"; then
47834    cat >>confdefs.h <<\_ACEOF
47835 #define wxUSE_AUI 1
47836 _ACEOF
47837
47838    USE_AUI=1
47839    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
47840 fi
47841
47842 USE_PROPGRID=0
47843 if test "$wxUSE_PROPGRID" = "yes"; then
47844    cat >>confdefs.h <<\_ACEOF
47845 #define wxUSE_PROPGRID 1
47846 _ACEOF
47847
47848    USE_PROPGRID=1
47849    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
47850 fi
47851
47852 USE_RIBBON=0
47853 if test "$wxUSE_RIBBON" = "yes"; then
47854    cat >>confdefs.h <<\_ACEOF
47855 #define wxUSE_RIBBON 1
47856 _ACEOF
47857
47858    USE_RIBBON=1
47859    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
47860 fi
47861
47862 USE_STC=0
47863 if test "$wxUSE_STC" = "yes"; then
47864    cat >>confdefs.h <<\_ACEOF
47865 #define wxUSE_STC 1
47866 _ACEOF
47867
47868    USE_STC=1
47869    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
47870
47871       # Extract the first word of "python", so it can be a program name with args.
47872 set dummy python; ac_word=$2
47873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47875 if test "${ac_cv_path_PYTHON+set}" = set; then
47876   echo $ECHO_N "(cached) $ECHO_C" >&6
47877 else
47878   case $PYTHON in
47879   [\\/]* | ?:[\\/]*)
47880   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
47881   ;;
47882   *)
47883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47884 for as_dir in $PATH
47885 do
47886   IFS=$as_save_IFS
47887   test -z "$as_dir" && as_dir=.
47888   for ac_exec_ext in '' $ac_executable_extensions; do
47889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47890     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
47891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47892     break 2
47893   fi
47894 done
47895 done
47896 IFS=$as_save_IFS
47897
47898   ;;
47899 esac
47900 fi
47901 PYTHON=$ac_cv_path_PYTHON
47902 if test -n "$PYTHON"; then
47903   { echo "$as_me:$LINENO: result: $PYTHON" >&5
47904 echo "${ECHO_T}$PYTHON" >&6; }
47905 else
47906   { echo "$as_me:$LINENO: result: no" >&5
47907 echo "${ECHO_T}no" >&6; }
47908 fi
47909
47910
47911    if test "x$PYTHON" = "x"; then
47912      COND_PYTHON="#"
47913    fi
47914
47915 fi
47916
47917 if test "$wxUSE_MENUS" = "yes"; then
47918     cat >>confdefs.h <<\_ACEOF
47919 #define wxUSE_MENUS 1
47920 _ACEOF
47921
47922     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
47923 fi
47924
47925 if test "$wxUSE_METAFILE" = "yes"; then
47926     cat >>confdefs.h <<\_ACEOF
47927 #define wxUSE_METAFILE 1
47928 _ACEOF
47929
47930 fi
47931
47932 if test "$wxUSE_MIMETYPE" = "yes"; then
47933     cat >>confdefs.h <<\_ACEOF
47934 #define wxUSE_MIMETYPE 1
47935 _ACEOF
47936
47937 fi
47938
47939 if test "$wxUSE_MINIFRAME" = "yes"; then
47940     cat >>confdefs.h <<\_ACEOF
47941 #define wxUSE_MINIFRAME 1
47942 _ACEOF
47943
47944 fi
47945
47946 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
47947     cat >>confdefs.h <<\_ACEOF
47948 #define wxUSE_SYSTEM_OPTIONS 1
47949 _ACEOF
47950
47951 fi
47952
47953 if test "$wxUSE_TASKBARICON" = "yes"; then
47954     cat >>confdefs.h <<\_ACEOF
47955 #define wxUSE_TASKBARICON 1
47956 _ACEOF
47957
47958     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
47959 fi
47960
47961
47962 if test "$wxUSE_VALIDATORS" = "yes"; then
47963     cat >>confdefs.h <<\_ACEOF
47964 #define wxUSE_VALIDATORS 1
47965 _ACEOF
47966
47967     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
47968 fi
47969
47970 if test "$wxUSE_PALETTE" = "yes" ; then
47971     if test "$wxUSE_DFB" = 1; then
47972         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
47973 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
47974         wxUSE_PALETTE=no
47975     else
47976         cat >>confdefs.h <<\_ACEOF
47977 #define wxUSE_PALETTE 1
47978 _ACEOF
47979
47980     fi
47981 fi
47982
47983 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
47984     LIBS=" -lunicows $LIBS"
47985 fi
47986
47987 USE_RICHTEXT=0
47988 if test "$wxUSE_RICHTEXT" = "yes"; then
47989     cat >>confdefs.h <<\_ACEOF
47990 #define wxUSE_RICHTEXT 1
47991 _ACEOF
47992
47993     USE_RICHTEXT=1
47994     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
47995 fi
47996
47997
47998 if test "$wxUSE_IMAGE" = "yes" ; then
47999     cat >>confdefs.h <<\_ACEOF
48000 #define wxUSE_IMAGE 1
48001 _ACEOF
48002
48003
48004     if test "$wxUSE_GIF" = "yes" ; then
48005       cat >>confdefs.h <<\_ACEOF
48006 #define wxUSE_GIF 1
48007 _ACEOF
48008
48009     fi
48010
48011     if test "$wxUSE_PCX" = "yes" ; then
48012       cat >>confdefs.h <<\_ACEOF
48013 #define wxUSE_PCX 1
48014 _ACEOF
48015
48016     fi
48017
48018     if test "$wxUSE_TGA" = "yes" ; then
48019       cat >>confdefs.h <<\_ACEOF
48020 #define wxUSE_TGA 1
48021 _ACEOF
48022
48023     fi
48024
48025     if test "$wxUSE_IFF" = "yes" ; then
48026       cat >>confdefs.h <<\_ACEOF
48027 #define wxUSE_IFF 1
48028 _ACEOF
48029
48030     fi
48031
48032     if test "$wxUSE_PNM" = "yes" ; then
48033       cat >>confdefs.h <<\_ACEOF
48034 #define wxUSE_PNM 1
48035 _ACEOF
48036
48037     fi
48038
48039     if test "$wxUSE_XPM" = "yes" ; then
48040       cat >>confdefs.h <<\_ACEOF
48041 #define wxUSE_XPM 1
48042 _ACEOF
48043
48044     fi
48045
48046     if test "$wxUSE_ICO_CUR" = "yes" ; then
48047       cat >>confdefs.h <<\_ACEOF
48048 #define wxUSE_ICO_CUR 1
48049 _ACEOF
48050
48051     fi
48052 fi
48053
48054
48055 if test "$wxUSE_ABOUTDLG" = "yes"; then
48056     cat >>confdefs.h <<\_ACEOF
48057 #define wxUSE_ABOUTDLG 1
48058 _ACEOF
48059
48060 fi
48061
48062 if test "$wxUSE_CHOICEDLG" = "yes"; then
48063     cat >>confdefs.h <<\_ACEOF
48064 #define wxUSE_CHOICEDLG 1
48065 _ACEOF
48066
48067 fi
48068
48069 if test "$wxUSE_COLOURDLG" = "yes"; then
48070     cat >>confdefs.h <<\_ACEOF
48071 #define wxUSE_COLOURDLG 1
48072 _ACEOF
48073
48074 fi
48075
48076 if test "$wxUSE_FILEDLG" = "yes"; then
48077     cat >>confdefs.h <<\_ACEOF
48078 #define wxUSE_FILEDLG 1
48079 _ACEOF
48080
48081 fi
48082
48083 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48084     cat >>confdefs.h <<\_ACEOF
48085 #define wxUSE_FINDREPLDLG 1
48086 _ACEOF
48087
48088 fi
48089
48090 if test "$wxUSE_FONTDLG" = "yes"; then
48091     cat >>confdefs.h <<\_ACEOF
48092 #define wxUSE_FONTDLG 1
48093 _ACEOF
48094
48095 fi
48096
48097 if test "$wxUSE_DIRDLG" = "yes"; then
48098     if test "$wxUSE_TREECTRL" != "yes"; then
48099         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48100 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48101     else
48102         cat >>confdefs.h <<\_ACEOF
48103 #define wxUSE_DIRDLG 1
48104 _ACEOF
48105
48106     fi
48107 fi
48108
48109 if test "$wxUSE_MSGDLG" = "yes"; then
48110     cat >>confdefs.h <<\_ACEOF
48111 #define wxUSE_MSGDLG 1
48112 _ACEOF
48113
48114 fi
48115
48116 if test "$wxUSE_NUMBERDLG" = "yes"; then
48117     cat >>confdefs.h <<\_ACEOF
48118 #define wxUSE_NUMBERDLG 1
48119 _ACEOF
48120
48121 fi
48122
48123 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48124     cat >>confdefs.h <<\_ACEOF
48125 #define wxUSE_PROGRESSDLG 1
48126 _ACEOF
48127
48128 fi
48129
48130 if test "$wxUSE_SPLASH" = "yes"; then
48131     cat >>confdefs.h <<\_ACEOF
48132 #define wxUSE_SPLASH 1
48133 _ACEOF
48134
48135     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48136 fi
48137
48138 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48139     cat >>confdefs.h <<\_ACEOF
48140 #define wxUSE_STARTUP_TIPS 1
48141 _ACEOF
48142
48143 fi
48144
48145 if test "$wxUSE_TEXTDLG" = "yes"; then
48146     cat >>confdefs.h <<\_ACEOF
48147 #define wxUSE_TEXTDLG 1
48148 _ACEOF
48149
48150 fi
48151
48152 if test "$wxUSE_WIZARDDLG" = "yes"; then
48153     cat >>confdefs.h <<\_ACEOF
48154 #define wxUSE_WIZARDDLG 1
48155 _ACEOF
48156
48157     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48158 fi
48159
48160
48161 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48162     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48163         cat >>confdefs.h <<\_ACEOF
48164 #define wxUSE_OWNER_DRAWN 1
48165 _ACEOF
48166
48167     fi
48168 fi
48169
48170
48171 if test "$wxUSE_MSW" = 1 ; then
48172
48173     if test "$wxUSE_DC_CACHEING" = "yes"; then
48174         cat >>confdefs.h <<\_ACEOF
48175 #define wxUSE_DC_CACHEING 1
48176 _ACEOF
48177
48178     fi
48179
48180     if test "$wxUSE_DIB" = "yes"; then
48181         cat >>confdefs.h <<\_ACEOF
48182 #define wxUSE_WXDIB 1
48183 _ACEOF
48184
48185     fi
48186
48187     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48188         cat >>confdefs.h <<\_ACEOF
48189 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48190 _ACEOF
48191
48192     fi
48193
48194     if test "$wxUSE_UXTHEME" = "yes"; then
48195         cat >>confdefs.h <<\_ACEOF
48196 #define wxUSE_UXTHEME 1
48197 _ACEOF
48198
48199     fi
48200
48201 fi
48202
48203 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48204     cat >>confdefs.h <<\_ACEOF
48205 #define wxUSE_AUTOID_MANAGEMENT 1
48206 _ACEOF
48207
48208 fi
48209
48210 if test "$USE_WIN32" = 1 ; then
48211     if test "$wxUSE_INICONF" = "yes"; then
48212         cat >>confdefs.h <<\_ACEOF
48213 #define wxUSE_INICONF 1
48214 _ACEOF
48215
48216     fi
48217
48218     if test "$wxUSE_REGKEY" = "yes"; then
48219         cat >>confdefs.h <<\_ACEOF
48220 #define wxUSE_REGKEY 1
48221 _ACEOF
48222
48223     fi
48224 fi
48225
48226
48227 if test "$wxUSE_MAC" = 1; then
48228     wxUSE_GRAPHICS_CONTEXT="yes"
48229 fi
48230
48231 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48232     wx_has_graphics=0
48233     if test "$wxUSE_MSW" = 1; then
48234         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
48235 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
48236 if test "${wx_cv_lib_gdiplus+set}" = set; then
48237   echo $ECHO_N "(cached) $ECHO_C" >&6
48238 else
48239
48240                                                 ac_ext=cpp
48241 ac_cpp='$CXXCPP $CPPFLAGS'
48242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48245
48246                 cat >conftest.$ac_ext <<_ACEOF
48247 /* confdefs.h.  */
48248 _ACEOF
48249 cat confdefs.h >>conftest.$ac_ext
48250 cat >>conftest.$ac_ext <<_ACEOF
48251 /* end confdefs.h.  */
48252 #include <windows.h>
48253                      #include <gdiplus.h>
48254 int
48255 main ()
48256 {
48257
48258                         using namespace Gdiplus;
48259
48260   ;
48261   return 0;
48262 }
48263 _ACEOF
48264 rm -f conftest.$ac_objext
48265 if { (ac_try="$ac_compile"
48266 case "(($ac_try" in
48267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48268   *) ac_try_echo=$ac_try;;
48269 esac
48270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48271   (eval "$ac_compile") 2>conftest.er1
48272   ac_status=$?
48273   grep -v '^ *+' conftest.er1 >conftest.err
48274   rm -f conftest.er1
48275   cat conftest.err >&5
48276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48277   (exit $ac_status); } && {
48278          test -z "$ac_cxx_werror_flag" ||
48279          test ! -s conftest.err
48280        } && test -s conftest.$ac_objext; then
48281   wx_cv_lib_gdiplus=yes
48282 else
48283   echo "$as_me: failed program was:" >&5
48284 sed 's/^/| /' conftest.$ac_ext >&5
48285
48286         wx_cv_lib_gdiplus=no
48287
48288 fi
48289
48290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48291                 ac_ext=c
48292 ac_cpp='$CPP $CPPFLAGS'
48293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48296
48297
48298
48299 fi
48300 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
48301 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
48302         if test "$wx_cv_lib_gdiplus" = "yes"; then
48303             wx_has_graphics=1
48304         fi
48305     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
48306
48307 pkg_failed=no
48308 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48309 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48310
48311 if test -n "$PKG_CONFIG"; then
48312     if test -n "$CAIRO_CFLAGS"; then
48313         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48314     else
48315         if test -n "$PKG_CONFIG" && \
48316     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48317   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48318   ac_status=$?
48319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48320   (exit $ac_status); }; then
48321   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48322 else
48323   pkg_failed=yes
48324 fi
48325     fi
48326 else
48327         pkg_failed=untried
48328 fi
48329 if test -n "$PKG_CONFIG"; then
48330     if test -n "$CAIRO_LIBS"; then
48331         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48332     else
48333         if test -n "$PKG_CONFIG" && \
48334     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48335   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48336   ac_status=$?
48337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48338   (exit $ac_status); }; then
48339   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48340 else
48341   pkg_failed=yes
48342 fi
48343     fi
48344 else
48345         pkg_failed=untried
48346 fi
48347
48348
48349
48350 if test $pkg_failed = yes; then
48351
48352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48353         _pkg_short_errors_supported=yes
48354 else
48355         _pkg_short_errors_supported=no
48356 fi
48357         if test $_pkg_short_errors_supported = yes; then
48358                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48359         else
48360                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48361         fi
48362         # Put the nasty error message in config.log where it belongs
48363         echo "$CAIRO_PKG_ERRORS" >&5
48364
48365         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48366 echo "$as_me: WARNING: Cairo library not found" >&2;}
48367
48368 elif test $pkg_failed = untried; then
48369         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48370 echo "$as_me: WARNING: Cairo library not found" >&2;}
48371
48372 else
48373         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48374         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48375         { echo "$as_me:$LINENO: result: yes" >&5
48376 echo "${ECHO_T}yes" >&6; }
48377         wx_has_graphics=1
48378 fi
48379         if test "$wx_has_graphics" = 1; then
48380                                                 save_LIBS="$LIBS"
48381             LIBS="$LIBS $CAIRO_LIBS"
48382
48383 for ac_func in cairo_push_group
48384 do
48385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48389   echo $ECHO_N "(cached) $ECHO_C" >&6
48390 else
48391   cat >conftest.$ac_ext <<_ACEOF
48392 /* confdefs.h.  */
48393 _ACEOF
48394 cat confdefs.h >>conftest.$ac_ext
48395 cat >>conftest.$ac_ext <<_ACEOF
48396 /* end confdefs.h.  */
48397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48399 #define $ac_func innocuous_$ac_func
48400
48401 /* System header to define __stub macros and hopefully few prototypes,
48402     which can conflict with char $ac_func (); below.
48403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48404     <limits.h> exists even on freestanding compilers.  */
48405
48406 #ifdef __STDC__
48407 # include <limits.h>
48408 #else
48409 # include <assert.h>
48410 #endif
48411
48412 #undef $ac_func
48413
48414 /* Override any GCC internal prototype to avoid an error.
48415    Use char because int might match the return type of a GCC
48416    builtin and then its argument prototype would still apply.  */
48417 #ifdef __cplusplus
48418 extern "C"
48419 #endif
48420 char $ac_func ();
48421 /* The GNU C library defines this for functions which it implements
48422     to always fail with ENOSYS.  Some functions are actually named
48423     something starting with __ and the normal name is an alias.  */
48424 #if defined __stub_$ac_func || defined __stub___$ac_func
48425 choke me
48426 #endif
48427
48428 int
48429 main ()
48430 {
48431 return $ac_func ();
48432   ;
48433   return 0;
48434 }
48435 _ACEOF
48436 rm -f conftest.$ac_objext conftest$ac_exeext
48437 if { (ac_try="$ac_link"
48438 case "(($ac_try" in
48439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48440   *) ac_try_echo=$ac_try;;
48441 esac
48442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48443   (eval "$ac_link") 2>conftest.er1
48444   ac_status=$?
48445   grep -v '^ *+' conftest.er1 >conftest.err
48446   rm -f conftest.er1
48447   cat conftest.err >&5
48448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48449   (exit $ac_status); } && {
48450          test -z "$ac_c_werror_flag" ||
48451          test ! -s conftest.err
48452        } && test -s conftest$ac_exeext &&
48453        $as_test_x conftest$ac_exeext; then
48454   eval "$as_ac_var=yes"
48455 else
48456   echo "$as_me: failed program was:" >&5
48457 sed 's/^/| /' conftest.$ac_ext >&5
48458
48459         eval "$as_ac_var=no"
48460 fi
48461
48462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48463       conftest$ac_exeext conftest.$ac_ext
48464 fi
48465 ac_res=`eval echo '${'$as_ac_var'}'`
48466                { echo "$as_me:$LINENO: result: $ac_res" >&5
48467 echo "${ECHO_T}$ac_res" >&6; }
48468 if test `eval echo '${'$as_ac_var'}'` = yes; then
48469   cat >>confdefs.h <<_ACEOF
48470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48471 _ACEOF
48472
48473 fi
48474 done
48475
48476             LIBS="$save_LIBS"
48477             if test "$ac_cv_func_cairo_push_group" = "no"; then
48478                 wx_has_graphics=0
48479                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
48480 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
48481             else
48482                 cat >>confdefs.h <<\_ACEOF
48483 #define wxUSE_CAIRO 1
48484 _ACEOF
48485
48486
48487                                                 if test "$wxUSE_GTK" != 1; then
48488                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
48489                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
48490                 fi
48491             fi
48492         fi
48493     else
48494                 wx_has_graphics=1
48495     fi
48496
48497     if test "$wx_has_graphics" = 1; then
48498         cat >>confdefs.h <<\_ACEOF
48499 #define wxUSE_GRAPHICS_CONTEXT 1
48500 _ACEOF
48501
48502     else
48503         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
48504 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
48505     fi
48506 fi
48507
48508
48509 USE_MEDIA=0
48510
48511 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
48512     USE_MEDIA=1
48513
48514                 if test "$wxUSE_GTK" = 1; then
48515         wxUSE_GSTREAMER="no"
48516
48517                                                                 GST_VERSION_MAJOR=0
48518         GST_VERSION_MINOR=10
48519         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48520
48521         if test "$wxUSE_GSTREAMER8" = "no"; then
48522
48523 pkg_failed=no
48524 { echo "$as_me:$LINENO: checking for GST" >&5
48525 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48526
48527 if test -n "$PKG_CONFIG"; then
48528     if test -n "$GST_CFLAGS"; then
48529         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48530     else
48531         if test -n "$PKG_CONFIG" && \
48532     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48533   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48534   ac_status=$?
48535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48536   (exit $ac_status); }; then
48537   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48538 else
48539   pkg_failed=yes
48540 fi
48541     fi
48542 else
48543         pkg_failed=untried
48544 fi
48545 if test -n "$PKG_CONFIG"; then
48546     if test -n "$GST_LIBS"; then
48547         pkg_cv_GST_LIBS="$GST_LIBS"
48548     else
48549         if test -n "$PKG_CONFIG" && \
48550     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48551   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48552   ac_status=$?
48553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48554   (exit $ac_status); }; then
48555   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48556 else
48557   pkg_failed=yes
48558 fi
48559     fi
48560 else
48561         pkg_failed=untried
48562 fi
48563
48564
48565
48566 if test $pkg_failed = yes; then
48567
48568 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48569         _pkg_short_errors_supported=yes
48570 else
48571         _pkg_short_errors_supported=no
48572 fi
48573         if test $_pkg_short_errors_supported = yes; then
48574                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48575         else
48576                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48577         fi
48578         # Put the nasty error message in config.log where it belongs
48579         echo "$GST_PKG_ERRORS" >&5
48580
48581
48582                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48583 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48584                     GST_VERSION_MINOR=8
48585
48586
48587 elif test $pkg_failed = untried; then
48588
48589                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48590 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48591                     GST_VERSION_MINOR=8
48592
48593
48594 else
48595         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48596         GST_LIBS=$pkg_cv_GST_LIBS
48597         { echo "$as_me:$LINENO: result: yes" >&5
48598 echo "${ECHO_T}yes" >&6; }
48599
48600                     wxUSE_GSTREAMER="yes"
48601                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48602
48603 fi
48604         else
48605                         GST_VERSION_MINOR=8
48606         fi
48607
48608         if test $GST_VERSION_MINOR = "8"; then
48609             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48610
48611 pkg_failed=no
48612 { echo "$as_me:$LINENO: checking for GST" >&5
48613 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48614
48615 if test -n "$PKG_CONFIG"; then
48616     if test -n "$GST_CFLAGS"; then
48617         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48618     else
48619         if test -n "$PKG_CONFIG" && \
48620     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48621   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48622   ac_status=$?
48623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48624   (exit $ac_status); }; then
48625   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48626 else
48627   pkg_failed=yes
48628 fi
48629     fi
48630 else
48631         pkg_failed=untried
48632 fi
48633 if test -n "$PKG_CONFIG"; then
48634     if test -n "$GST_LIBS"; then
48635         pkg_cv_GST_LIBS="$GST_LIBS"
48636     else
48637         if test -n "$PKG_CONFIG" && \
48638     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48639   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48640   ac_status=$?
48641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48642   (exit $ac_status); }; then
48643   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48644 else
48645   pkg_failed=yes
48646 fi
48647     fi
48648 else
48649         pkg_failed=untried
48650 fi
48651
48652
48653
48654 if test $pkg_failed = yes; then
48655
48656 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48657         _pkg_short_errors_supported=yes
48658 else
48659         _pkg_short_errors_supported=no
48660 fi
48661         if test $_pkg_short_errors_supported = yes; then
48662                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48663         else
48664                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48665         fi
48666         # Put the nasty error message in config.log where it belongs
48667         echo "$GST_PKG_ERRORS" >&5
48668
48669
48670                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48671 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48672
48673 elif test $pkg_failed = untried; then
48674
48675                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48676 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48677
48678 else
48679         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48680         GST_LIBS=$pkg_cv_GST_LIBS
48681         { echo "$as_me:$LINENO: result: yes" >&5
48682 echo "${ECHO_T}yes" >&6; }
48683         wxUSE_GSTREAMER="yes"
48684 fi
48685         fi
48686
48687
48688         if test "$wxUSE_GSTREAMER" = "yes"; then
48689             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
48690             EXTRALIBS_MEDIA="$GST_LIBS"
48691
48692             cat >>confdefs.h <<\_ACEOF
48693 #define wxUSE_GSTREAMER 1
48694 _ACEOF
48695
48696         else
48697             USE_MEDIA=0
48698         fi
48699     fi
48700
48701     if test $USE_MEDIA = 1; then
48702         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
48703         cat >>confdefs.h <<\_ACEOF
48704 #define wxUSE_MEDIACTRL 1
48705 _ACEOF
48706
48707     else
48708         if test "$wxUSE_MEDIACTRL" = "yes"; then
48709             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
48710 echo "$as_me: error: GStreamer not available" >&2;}
48711    { (exit 1); exit 1; }; }
48712         else
48713                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
48714 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
48715         fi
48716     fi
48717 fi
48718
48719
48720 if test "$cross_compiling" != "no"; then
48721         OSINFO="\"$host\""
48722 else
48723         OSINFO=`uname -s -r -m`
48724     OSINFO="\"$OSINFO\""
48725 fi
48726
48727 cat >>confdefs.h <<_ACEOF
48728 #define WXWIN_OS_DESCRIPTION $OSINFO
48729 _ACEOF
48730
48731
48732
48733 if test "x$prefix" != "xNONE"; then
48734     wxPREFIX=$prefix
48735 else
48736     wxPREFIX=$ac_default_prefix
48737 fi
48738
48739 cat >>confdefs.h <<_ACEOF
48740 #define wxINSTALL_PREFIX "$wxPREFIX"
48741 _ACEOF
48742
48743
48744
48745
48746 STD_BASE_LIBS="base"
48747 STD_GUI_LIBS=""
48748 BUILT_WX_LIBS="base"
48749 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
48750
48751 if test "$wxUSE_SOCKETS" = "yes" ; then
48752     STD_BASE_LIBS="net $STD_BASE_LIBS"
48753     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
48754 fi
48755 if test "$wxUSE_XML" = "yes" ; then
48756     STD_BASE_LIBS="xml $STD_BASE_LIBS"
48757     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
48758 fi
48759
48760 if test "$wxUSE_GUI" = "yes"; then
48761     STD_GUI_LIBS="adv core"
48762     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
48763
48764     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48765         STD_GUI_LIBS="qa $STD_GUI_LIBS"
48766         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
48767     fi
48768     if test "$wxUSE_HTML" = "yes" ; then
48769         STD_GUI_LIBS="html $STD_GUI_LIBS"
48770         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
48771     fi
48772     if test "$wxUSE_MEDIACTRL" = "yes" ; then
48773         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
48774     fi
48775     if test "$wxUSE_OPENGL" = "yes" ; then
48776         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
48777     fi
48778     if test "$wxUSE_AUI" = "yes" ; then
48779         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
48780     fi
48781     if test "$wxUSE_PROPGRID" = "yes" ; then
48782         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
48783     fi
48784     if test "$wxUSE_RIBBON" = "yes" ; then
48785         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
48786     fi
48787     if test "$wxUSE_RICHTEXT" = "yes" ; then
48788         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
48789     fi
48790     if test "$wxUSE_STC" = "yes" ; then
48791         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
48792     fi
48793     if test "$wxUSE_XRC" = "yes" ; then
48794         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
48795         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
48796     fi
48797 fi
48798
48799
48800
48801
48802
48803
48804
48805 EXTRA_FRAMEWORKS=
48806 if test "$wxUSE_MAC" = 1 ; then
48807     if test "$USE_DARWIN" = 1; then
48808         if test "$wxUSE_OSX_IPHONE" = 1; then
48809             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
48810         else
48811             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
48812         fi
48813     fi
48814 fi
48815 if test "$wxUSE_OLD_COCOA" = 1 ; then
48816     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
48817     if test "$wxUSE_MEDIACTRL" = "yes"; then
48818         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
48819     fi
48820 fi
48821 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
48822     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
48823 fi
48824
48825 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
48826 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
48827
48828 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
48829
48830 if test "$wxUSE_GUI" = "yes"; then
48831
48832
48833         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
48834                      erase event exec font image minimal render \
48835                      shaped svg taborder vscroll widgets wrapsizer"
48836
48837     if test "$wxUSE_MONOLITHIC" != "yes"; then
48838         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
48839     fi
48840     if test "$TOOLKIT" = "MSW"; then
48841         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
48842         if test "$wxUSE_UNIVERSAL" != "yes"; then
48843             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
48844         fi
48845     fi
48846     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
48847         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
48848     fi
48849 else
48850     SAMPLES_SUBDIRS="console"
48851     if test "$wxUSE_SOCKETS" = "yes" ; then
48852         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
48853     fi
48854     if test "$wxUSE_IPC" = "yes" ; then
48855         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48856     fi
48857 fi
48858
48859
48860 if test "x$INTELCC" = "xyes" ; then
48861                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
48862 elif test "$GCC" = yes ; then
48863     CWARNINGS="-Wall -Wundef"
48864 fi
48865
48866 if test "x$INTELCXX" = "xyes" ; then
48867                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
48868 elif test "$GXX" = yes ; then
48869     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
48870     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
48871 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
48872 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
48873   echo $ECHO_N "(cached) $ECHO_C" >&6
48874 else
48875   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
48876
48877  ac_ext=cpp
48878 ac_cpp='$CXXCPP $CPPFLAGS'
48879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48882
48883  ac_save_CXXFLAGS="$CXXFLAGS"
48884 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
48885 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
48886    cat >conftest.$ac_ext <<_ACEOF
48887 /* confdefs.h.  */
48888 _ACEOF
48889 cat confdefs.h >>conftest.$ac_ext
48890 cat >>conftest.$ac_ext <<_ACEOF
48891 /* end confdefs.h.  */
48892
48893 int
48894 main ()
48895 {
48896 return 0;
48897   ;
48898   return 0;
48899 }
48900 _ACEOF
48901 rm -f conftest.$ac_objext
48902 if { (ac_try="$ac_compile"
48903 case "(($ac_try" in
48904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48905   *) ac_try_echo=$ac_try;;
48906 esac
48907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48908   (eval "$ac_compile") 2>conftest.er1
48909   ac_status=$?
48910   grep -v '^ *+' conftest.er1 >conftest.err
48911   rm -f conftest.er1
48912   cat conftest.err >&5
48913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48914   (exit $ac_status); } && {
48915          test -z "$ac_cxx_werror_flag" ||
48916          test ! -s conftest.err
48917        } && test -s conftest.$ac_objext; then
48918   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
48919 else
48920   echo "$as_me: failed program was:" >&5
48921 sed 's/^/| /' conftest.$ac_ext >&5
48922
48923
48924 fi
48925
48926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48927 done
48928  CXXFLAGS="$ac_save_CXXFLAGS"
48929  ac_ext=c
48930 ac_cpp='$CPP $CPPFLAGS'
48931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48934
48935
48936 fi
48937 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
48938 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
48939 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
48940      .ok|.ok,*)  ;;
48941    .|.no|.no,*)  ;;
48942    *)
48943    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
48944    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
48945   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
48946   ac_status=$?
48947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48948   (exit $ac_status); }
48949    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
48950   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
48951   ac_status=$?
48952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48953   (exit $ac_status); }
48954                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
48955    fi
48956  ;;
48957 esac
48958
48959
48960                     if test "$wxUSE_MAC" = 1 ; then
48961         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
48962     fi
48963 fi
48964
48965
48966 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
48967 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
48968
48969
48970 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
48971  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
48972  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
48973  $CPPFLAGS `
48974
48975 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
48976 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
48977 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
48978 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
48979 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
48980
48981 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
48982
48983
48984 if test "x$MWCC" = "xyes"; then
48985
48986             CC="$CC -cwd source -I-"
48987     CXX="$CXX -cwd source -I-"
48988 fi
48989
48990
48991 LIBS=`echo $LIBS`
48992 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
48993 EXTRALIBS_XML="$EXPAT_LINK"
48994 EXTRALIBS_HTML="$MSPACK_LINK"
48995 EXTRALIBS_MEDIA="$GST_LIBS"
48996 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
48997 if test "$wxUSE_GUI" = "yes"; then
48998     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
48999 fi
49000 if test "$wxUSE_OPENGL" = "yes"; then
49001     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49002 fi
49003
49004 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49005
49006 WXCONFIG_LIBS="$LIBS"
49007
49008 if test "$wxUSE_REGEX" = "builtin" ; then
49009     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49010 fi
49011 if test "$wxUSE_EXPAT" = "builtin" ; then
49012     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49013 fi
49014 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49015     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49016 fi
49017 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49018     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49019 fi
49020 if test "$wxUSE_LIBPNG" = "builtin" ; then
49021     wxconfig_3rdparty="png $wxconfig_3rdparty"
49022 fi
49023 if test "$wxUSE_ZLIB" = "builtin" ; then
49024     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49025 fi
49026
49027 for i in $wxconfig_3rdparty ; do
49028     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49029 done
49030
49031
49032 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49033     WXUNIV=1
49034
49035     case "$wxUNIV_THEMES" in
49036         ''|all)
49037             cat >>confdefs.h <<\_ACEOF
49038 #define wxUSE_ALL_THEMES 1
49039 _ACEOF
49040
49041             ;;
49042
49043         *)
49044             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49045                 cat >>confdefs.h <<_ACEOF
49046 #define wxUSE_THEME_$t 1
49047 _ACEOF
49048
49049             done
49050     esac
49051 else
49052     WXUNIV=0
49053 fi
49054
49055
49056
49057
49058
49059
49060
49061
49062 if test $wxUSE_MONOLITHIC = "yes" ; then
49063     MONOLITHIC=1
49064 else
49065     MONOLITHIC=0
49066 fi
49067
49068 if test $wxUSE_PLUGINS = "yes" ; then
49069     USE_PLUGINS=1
49070 else
49071     USE_PLUGINS=0
49072 fi
49073
49074 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49075     USE_QA=1
49076 else
49077     USE_QA=0
49078 fi
49079
49080 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49081     OFFICIAL_BUILD=1
49082 else
49083     OFFICIAL_BUILD=0
49084 fi
49085
49086
49087
49088
49089
49090
49091
49092
49093
49094
49095
49096
49097
49098
49099
49100
49101
49102
49103
49104
49105
49106
49107
49108
49109
49110
49111
49112 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49113
49114
49115
49116
49117
49118
49119
49120
49121
49122
49123 case "$TOOLKIT" in
49124     GTK)
49125         TOOLKIT_DESC="GTK+"
49126         if test "$WXGTK2" = 1; then
49127             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49128             if test "$wxUSE_GTKPRINT" = "yes" ; then
49129                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49130             fi
49131             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49132                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49133             fi
49134             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49135                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49136             fi
49137             if test "$wxUSE_LIBHILDON" = "yes"; then
49138                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49139             fi
49140             if test "$wxUSE_LIBHILDON2" = "yes"; then
49141                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49142             fi
49143
49144             if test "$TOOLKIT_EXTRA" != ""; then
49145                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49146             fi
49147         fi
49148         ;;
49149
49150     ?*)
49151         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49152         ;;
49153
49154     *)
49155         TOOLKIT_DESC="base only"
49156         ;;
49157 esac
49158
49159 if test "$wxUSE_WINE" = "yes"; then
49160     BAKEFILE_FORCE_PLATFORM=win32
49161 fi
49162
49163 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49164 then
49165     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49166 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49167 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49168   echo $ECHO_N "(cached) $ECHO_C" >&6
49169 else
49170
49171             echo '#include <stdio.h>
49172                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49173
49174             echo '#include "conftest.h"
49175                   int main()
49176                   {
49177                      printf("%ls", test_var);
49178                      return 0;
49179                   }' > conftest.cpp
49180
49181             wx_cv_gcc_pch_bug="pch not supported"
49182
49183             if $CXX conftest.h >/dev/null 2>&1
49184             then
49185                 wx_cv_gcc_pch_bug=
49186
49187                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49188                 then
49189                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49190                         grep awidetest >/dev/null
49191                     then
49192                         wx_cv_gcc_pch_bug=no
49193                     else
49194                         wx_cv_gcc_pch_bug=yes
49195                     fi
49196                 fi
49197             fi
49198
49199             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49200
49201 fi
49202 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49203 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49204
49205     if test "$wx_cv_gcc_pch_bug" = yes; then
49206                         bk_use_pch=no
49207     fi
49208 fi
49209
49210
49211
49212
49213
49214
49215
49216     if test "x$BAKEFILE_HOST" = "x"; then
49217                if test "x${host}" = "x" ; then
49218                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49219 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49220    { (exit 1); exit 1; }; }
49221                fi
49222
49223         BAKEFILE_HOST="${host}"
49224     fi
49225
49226     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49227
49228     if test -n "$ac_tool_prefix"; then
49229   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49233 if test "${ac_cv_prog_RANLIB+set}" = set; then
49234   echo $ECHO_N "(cached) $ECHO_C" >&6
49235 else
49236   if test -n "$RANLIB"; then
49237   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49238 else
49239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49240 for as_dir in $PATH
49241 do
49242   IFS=$as_save_IFS
49243   test -z "$as_dir" && as_dir=.
49244   for ac_exec_ext in '' $ac_executable_extensions; do
49245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49246     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49248     break 2
49249   fi
49250 done
49251 done
49252 IFS=$as_save_IFS
49253
49254 fi
49255 fi
49256 RANLIB=$ac_cv_prog_RANLIB
49257 if test -n "$RANLIB"; then
49258   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49259 echo "${ECHO_T}$RANLIB" >&6; }
49260 else
49261   { echo "$as_me:$LINENO: result: no" >&5
49262 echo "${ECHO_T}no" >&6; }
49263 fi
49264
49265
49266 fi
49267 if test -z "$ac_cv_prog_RANLIB"; then
49268   ac_ct_RANLIB=$RANLIB
49269   # Extract the first word of "ranlib", so it can be a program name with args.
49270 set dummy ranlib; ac_word=$2
49271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49273 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49274   echo $ECHO_N "(cached) $ECHO_C" >&6
49275 else
49276   if test -n "$ac_ct_RANLIB"; then
49277   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49278 else
49279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49280 for as_dir in $PATH
49281 do
49282   IFS=$as_save_IFS
49283   test -z "$as_dir" && as_dir=.
49284   for ac_exec_ext in '' $ac_executable_extensions; do
49285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49286     ac_cv_prog_ac_ct_RANLIB="ranlib"
49287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49288     break 2
49289   fi
49290 done
49291 done
49292 IFS=$as_save_IFS
49293
49294 fi
49295 fi
49296 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49297 if test -n "$ac_ct_RANLIB"; then
49298   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49299 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49300 else
49301   { echo "$as_me:$LINENO: result: no" >&5
49302 echo "${ECHO_T}no" >&6; }
49303 fi
49304
49305   if test "x$ac_ct_RANLIB" = x; then
49306     RANLIB=":"
49307   else
49308     case $cross_compiling:$ac_tool_warned in
49309 yes:)
49310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49311 whose name does not start with the host triplet.  If you think this
49312 configuration is useful to you, please write to autoconf@gnu.org." >&5
49313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49314 whose name does not start with the host triplet.  If you think this
49315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49316 ac_tool_warned=yes ;;
49317 esac
49318     RANLIB=$ac_ct_RANLIB
49319   fi
49320 else
49321   RANLIB="$ac_cv_prog_RANLIB"
49322 fi
49323
49324     # Find a good install program.  We prefer a C program (faster),
49325 # so one script is as good as another.  But avoid the broken or
49326 # incompatible versions:
49327 # SysV /etc/install, /usr/sbin/install
49328 # SunOS /usr/etc/install
49329 # IRIX /sbin/install
49330 # AIX /bin/install
49331 # AmigaOS /C/install, which installs bootblocks on floppy discs
49332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49335 # OS/2's system install, which has a completely different semantic
49336 # ./install, which can be erroneously created by make from ./install.sh.
49337 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49338 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49339 if test -z "$INSTALL"; then
49340 if test "${ac_cv_path_install+set}" = set; then
49341   echo $ECHO_N "(cached) $ECHO_C" >&6
49342 else
49343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49344 for as_dir in $PATH
49345 do
49346   IFS=$as_save_IFS
49347   test -z "$as_dir" && as_dir=.
49348   # Account for people who put trailing slashes in PATH elements.
49349 case $as_dir/ in
49350   ./ | .// | /cC/* | \
49351   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49352   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49353   /usr/ucb/* ) ;;
49354   *)
49355     # OSF1 and SCO ODT 3.0 have their own names for install.
49356     # Don't use installbsd from OSF since it installs stuff as root
49357     # by default.
49358     for ac_prog in ginstall scoinst install; do
49359       for ac_exec_ext in '' $ac_executable_extensions; do
49360         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49361           if test $ac_prog = install &&
49362             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49363             # AIX install.  It has an incompatible calling convention.
49364             :
49365           elif test $ac_prog = install &&
49366             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49367             # program-specific install script used by HP pwplus--don't use.
49368             :
49369           else
49370             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49371             break 3
49372           fi
49373         fi
49374       done
49375     done
49376     ;;
49377 esac
49378 done
49379 IFS=$as_save_IFS
49380
49381
49382 fi
49383   if test "${ac_cv_path_install+set}" = set; then
49384     INSTALL=$ac_cv_path_install
49385   else
49386     # As a last resort, use the slow shell script.  Don't cache a
49387     # value for INSTALL within a source directory, because that will
49388     # break other packages using the cache if that directory is
49389     # removed, or if the value is a relative name.
49390     INSTALL=$ac_install_sh
49391   fi
49392 fi
49393 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49394 echo "${ECHO_T}$INSTALL" >&6; }
49395
49396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49397 # It thinks the first close brace ends the variable substitution.
49398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49399
49400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49401
49402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49403
49404     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49405 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49406 LN_S=$as_ln_s
49407 if test "$LN_S" = "ln -s"; then
49408   { echo "$as_me:$LINENO: result: yes" >&5
49409 echo "${ECHO_T}yes" >&6; }
49410 else
49411   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49412 echo "${ECHO_T}no, using $LN_S" >&6; }
49413 fi
49414
49415
49416     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49417 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49418 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49419 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49420   echo $ECHO_N "(cached) $ECHO_C" >&6
49421 else
49422   cat >conftest.make <<\_ACEOF
49423 SHELL = /bin/sh
49424 all:
49425         @echo '@@@%%%=$(MAKE)=@@@%%%'
49426 _ACEOF
49427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49428 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49429   *@@@%%%=?*=@@@%%%*)
49430     eval ac_cv_prog_make_${ac_make}_set=yes;;
49431   *)
49432     eval ac_cv_prog_make_${ac_make}_set=no;;
49433 esac
49434 rm -f conftest.make
49435 fi
49436 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49437   { echo "$as_me:$LINENO: result: yes" >&5
49438 echo "${ECHO_T}yes" >&6; }
49439   SET_MAKE=
49440 else
49441   { echo "$as_me:$LINENO: result: no" >&5
49442 echo "${ECHO_T}no" >&6; }
49443   SET_MAKE="MAKE=${MAKE-make}"
49444 fi
49445
49446
49447
49448     if test "x$SUNCXX" = "xyes"; then
49449                                 AR=$CXX
49450         AROPTIONS="-xar -o"
49451
49452     elif test "x$SGICC" = "xyes"; then
49453                 AR=$CXX
49454         AROPTIONS="-ar -o"
49455
49456     else
49457         if test -n "$ac_tool_prefix"; then
49458   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49459 set dummy ${ac_tool_prefix}ar; ac_word=$2
49460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49462 if test "${ac_cv_prog_AR+set}" = set; then
49463   echo $ECHO_N "(cached) $ECHO_C" >&6
49464 else
49465   if test -n "$AR"; then
49466   ac_cv_prog_AR="$AR" # Let the user override the test.
49467 else
49468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49469 for as_dir in $PATH
49470 do
49471   IFS=$as_save_IFS
49472   test -z "$as_dir" && as_dir=.
49473   for ac_exec_ext in '' $ac_executable_extensions; do
49474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49475     ac_cv_prog_AR="${ac_tool_prefix}ar"
49476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49477     break 2
49478   fi
49479 done
49480 done
49481 IFS=$as_save_IFS
49482
49483 fi
49484 fi
49485 AR=$ac_cv_prog_AR
49486 if test -n "$AR"; then
49487   { echo "$as_me:$LINENO: result: $AR" >&5
49488 echo "${ECHO_T}$AR" >&6; }
49489 else
49490   { echo "$as_me:$LINENO: result: no" >&5
49491 echo "${ECHO_T}no" >&6; }
49492 fi
49493
49494
49495 fi
49496 if test -z "$ac_cv_prog_AR"; then
49497   ac_ct_AR=$AR
49498   # Extract the first word of "ar", so it can be a program name with args.
49499 set dummy ar; ac_word=$2
49500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49502 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49503   echo $ECHO_N "(cached) $ECHO_C" >&6
49504 else
49505   if test -n "$ac_ct_AR"; then
49506   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49507 else
49508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49509 for as_dir in $PATH
49510 do
49511   IFS=$as_save_IFS
49512   test -z "$as_dir" && as_dir=.
49513   for ac_exec_ext in '' $ac_executable_extensions; do
49514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49515     ac_cv_prog_ac_ct_AR="ar"
49516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49517     break 2
49518   fi
49519 done
49520 done
49521 IFS=$as_save_IFS
49522
49523 fi
49524 fi
49525 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49526 if test -n "$ac_ct_AR"; then
49527   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49528 echo "${ECHO_T}$ac_ct_AR" >&6; }
49529 else
49530   { echo "$as_me:$LINENO: result: no" >&5
49531 echo "${ECHO_T}no" >&6; }
49532 fi
49533
49534   if test "x$ac_ct_AR" = x; then
49535     AR="ar"
49536   else
49537     case $cross_compiling:$ac_tool_warned in
49538 yes:)
49539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49540 whose name does not start with the host triplet.  If you think this
49541 configuration is useful to you, please write to autoconf@gnu.org." >&5
49542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49543 whose name does not start with the host triplet.  If you think this
49544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49545 ac_tool_warned=yes ;;
49546 esac
49547     AR=$ac_ct_AR
49548   fi
49549 else
49550   AR="$ac_cv_prog_AR"
49551 fi
49552
49553         AROPTIONS=rcu
49554     fi
49555
49556
49557     if test -n "$ac_tool_prefix"; then
49558   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49559 set dummy ${ac_tool_prefix}strip; ac_word=$2
49560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49562 if test "${ac_cv_prog_STRIP+set}" = set; then
49563   echo $ECHO_N "(cached) $ECHO_C" >&6
49564 else
49565   if test -n "$STRIP"; then
49566   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49567 else
49568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49569 for as_dir in $PATH
49570 do
49571   IFS=$as_save_IFS
49572   test -z "$as_dir" && as_dir=.
49573   for ac_exec_ext in '' $ac_executable_extensions; do
49574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49575     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49577     break 2
49578   fi
49579 done
49580 done
49581 IFS=$as_save_IFS
49582
49583 fi
49584 fi
49585 STRIP=$ac_cv_prog_STRIP
49586 if test -n "$STRIP"; then
49587   { echo "$as_me:$LINENO: result: $STRIP" >&5
49588 echo "${ECHO_T}$STRIP" >&6; }
49589 else
49590   { echo "$as_me:$LINENO: result: no" >&5
49591 echo "${ECHO_T}no" >&6; }
49592 fi
49593
49594
49595 fi
49596 if test -z "$ac_cv_prog_STRIP"; then
49597   ac_ct_STRIP=$STRIP
49598   # Extract the first word of "strip", so it can be a program name with args.
49599 set dummy strip; ac_word=$2
49600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49602 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49603   echo $ECHO_N "(cached) $ECHO_C" >&6
49604 else
49605   if test -n "$ac_ct_STRIP"; then
49606   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49607 else
49608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49609 for as_dir in $PATH
49610 do
49611   IFS=$as_save_IFS
49612   test -z "$as_dir" && as_dir=.
49613   for ac_exec_ext in '' $ac_executable_extensions; do
49614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49615     ac_cv_prog_ac_ct_STRIP="strip"
49616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49617     break 2
49618   fi
49619 done
49620 done
49621 IFS=$as_save_IFS
49622
49623 fi
49624 fi
49625 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49626 if test -n "$ac_ct_STRIP"; then
49627   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49628 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49629 else
49630   { echo "$as_me:$LINENO: result: no" >&5
49631 echo "${ECHO_T}no" >&6; }
49632 fi
49633
49634   if test "x$ac_ct_STRIP" = x; then
49635     STRIP=":"
49636   else
49637     case $cross_compiling:$ac_tool_warned in
49638 yes:)
49639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49640 whose name does not start with the host triplet.  If you think this
49641 configuration is useful to you, please write to autoconf@gnu.org." >&5
49642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49643 whose name does not start with the host triplet.  If you think this
49644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49645 ac_tool_warned=yes ;;
49646 esac
49647     STRIP=$ac_ct_STRIP
49648   fi
49649 else
49650   STRIP="$ac_cv_prog_STRIP"
49651 fi
49652
49653     if test -n "$ac_tool_prefix"; then
49654   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49655 set dummy ${ac_tool_prefix}nm; ac_word=$2
49656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49658 if test "${ac_cv_prog_NM+set}" = set; then
49659   echo $ECHO_N "(cached) $ECHO_C" >&6
49660 else
49661   if test -n "$NM"; then
49662   ac_cv_prog_NM="$NM" # Let the user override the test.
49663 else
49664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49665 for as_dir in $PATH
49666 do
49667   IFS=$as_save_IFS
49668   test -z "$as_dir" && as_dir=.
49669   for ac_exec_ext in '' $ac_executable_extensions; do
49670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49671     ac_cv_prog_NM="${ac_tool_prefix}nm"
49672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49673     break 2
49674   fi
49675 done
49676 done
49677 IFS=$as_save_IFS
49678
49679 fi
49680 fi
49681 NM=$ac_cv_prog_NM
49682 if test -n "$NM"; then
49683   { echo "$as_me:$LINENO: result: $NM" >&5
49684 echo "${ECHO_T}$NM" >&6; }
49685 else
49686   { echo "$as_me:$LINENO: result: no" >&5
49687 echo "${ECHO_T}no" >&6; }
49688 fi
49689
49690
49691 fi
49692 if test -z "$ac_cv_prog_NM"; then
49693   ac_ct_NM=$NM
49694   # Extract the first word of "nm", so it can be a program name with args.
49695 set dummy nm; ac_word=$2
49696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49698 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49699   echo $ECHO_N "(cached) $ECHO_C" >&6
49700 else
49701   if test -n "$ac_ct_NM"; then
49702   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49703 else
49704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49705 for as_dir in $PATH
49706 do
49707   IFS=$as_save_IFS
49708   test -z "$as_dir" && as_dir=.
49709   for ac_exec_ext in '' $ac_executable_extensions; do
49710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49711     ac_cv_prog_ac_ct_NM="nm"
49712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49713     break 2
49714   fi
49715 done
49716 done
49717 IFS=$as_save_IFS
49718
49719 fi
49720 fi
49721 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49722 if test -n "$ac_ct_NM"; then
49723   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49724 echo "${ECHO_T}$ac_ct_NM" >&6; }
49725 else
49726   { echo "$as_me:$LINENO: result: no" >&5
49727 echo "${ECHO_T}no" >&6; }
49728 fi
49729
49730   if test "x$ac_ct_NM" = x; then
49731     NM=":"
49732   else
49733     case $cross_compiling:$ac_tool_warned in
49734 yes:)
49735 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49736 whose name does not start with the host triplet.  If you think this
49737 configuration is useful to you, please write to autoconf@gnu.org." >&5
49738 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49739 whose name does not start with the host triplet.  If you think this
49740 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49741 ac_tool_warned=yes ;;
49742 esac
49743     NM=$ac_ct_NM
49744   fi
49745 else
49746   NM="$ac_cv_prog_NM"
49747 fi
49748
49749
49750             { echo "$as_me:$LINENO: checking for command to install directories" >&5
49751 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
49752     INSTALL_TEST_DIR=acbftest$$
49753     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
49754     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
49755         rmdir $INSTALL_TEST_DIR
49756                         INSTALL_DIR='$(INSTALL) -d'
49757         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
49758 echo "${ECHO_T}$INSTALL -d" >&6; }
49759     else
49760         INSTALL_DIR="mkdir -p"
49761         { echo "$as_me:$LINENO: result: mkdir -p" >&5
49762 echo "${ECHO_T}mkdir -p" >&6; }
49763     fi
49764
49765
49766     LDFLAGS_GUI=
49767     case ${BAKEFILE_HOST} in
49768         *-*-cygwin* | *-*-mingw32* )
49769         LDFLAGS_GUI="-mwindows"
49770     esac
49771
49772
49773     fi
49774
49775         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
49776 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
49777 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
49778   echo $ECHO_N "(cached) $ECHO_C" >&6
49779 else
49780
49781         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
49782                 egrep -s GNU > /dev/null); then
49783             bakefile_cv_prog_makeisgnu="yes"
49784         else
49785             bakefile_cv_prog_makeisgnu="no"
49786         fi
49787
49788 fi
49789 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
49790 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
49791
49792     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
49793         IF_GNU_MAKE=""
49794     else
49795         IF_GNU_MAKE="#"
49796     fi
49797
49798
49799
49800     PLATFORM_UNIX=0
49801     PLATFORM_WIN32=0
49802     PLATFORM_MSDOS=0
49803     PLATFORM_MAC=0
49804     PLATFORM_MACOS=0
49805     PLATFORM_MACOSX=0
49806     PLATFORM_OS2=0
49807     PLATFORM_BEOS=0
49808
49809     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49810         case "${BAKEFILE_HOST}" in
49811             *-*-mingw32* )
49812                 PLATFORM_WIN32=1
49813             ;;
49814             *-pc-msdosdjgpp )
49815                 PLATFORM_MSDOS=1
49816             ;;
49817             *-pc-os2_emx | *-pc-os2-emx )
49818                 PLATFORM_OS2=1
49819             ;;
49820             *-*-darwin* )
49821                 PLATFORM_MAC=1
49822                 PLATFORM_MACOSX=1
49823             ;;
49824             *-*-beos* )
49825                 PLATFORM_BEOS=1
49826             ;;
49827             powerpc-apple-macos* )
49828                 PLATFORM_MAC=1
49829                 PLATFORM_MACOS=1
49830             ;;
49831             * )
49832                 PLATFORM_UNIX=1
49833             ;;
49834         esac
49835     else
49836         case "$BAKEFILE_FORCE_PLATFORM" in
49837             win32 )
49838                 PLATFORM_WIN32=1
49839             ;;
49840             msdos )
49841                 PLATFORM_MSDOS=1
49842             ;;
49843             os2 )
49844                 PLATFORM_OS2=1
49845             ;;
49846             darwin )
49847                 PLATFORM_MAC=1
49848                 PLATFORM_MACOSX=1
49849             ;;
49850             unix )
49851                 PLATFORM_UNIX=1
49852             ;;
49853             beos )
49854                 PLATFORM_BEOS=1
49855             ;;
49856             * )
49857                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
49858 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
49859    { (exit 1); exit 1; }; }
49860             ;;
49861         esac
49862     fi
49863
49864
49865
49866
49867
49868
49869
49870
49871
49872
49873
49874     # Check whether --enable-omf was given.
49875 if test "${enable_omf+set}" = set; then
49876   enableval=$enable_omf; bk_os2_use_omf="$enableval"
49877 fi
49878
49879
49880     case "${BAKEFILE_HOST}" in
49881       *-*-darwin* )
49882                         if test "x$GCC" = "xyes"; then
49883             CFLAGS="$CFLAGS -fno-common"
49884             CXXFLAGS="$CXXFLAGS -fno-common"
49885         fi
49886         if test "x$XLCC" = "xyes"; then
49887             CFLAGS="$CFLAGS -qnocommon"
49888             CXXFLAGS="$CXXFLAGS -qnocommon"
49889         fi
49890         ;;
49891
49892       *-pc-os2_emx | *-pc-os2-emx )
49893         if test "x$bk_os2_use_omf" = "xyes" ; then
49894             AR=emxomfar
49895             RANLIB=:
49896             LDFLAGS="-Zomf $LDFLAGS"
49897             CFLAGS="-Zomf $CFLAGS"
49898             CXXFLAGS="-Zomf $CXXFLAGS"
49899             OS2_LIBEXT="lib"
49900         else
49901             OS2_LIBEXT="a"
49902         fi
49903         ;;
49904
49905       i*86-*-beos* )
49906         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
49907         ;;
49908     esac
49909
49910
49911     SO_SUFFIX="so"
49912     SO_SUFFIX_MODULE="so"
49913     EXEEXT=""
49914     LIBPREFIX="lib"
49915     LIBEXT=".a"
49916     DLLPREFIX="lib"
49917     DLLPREFIX_MODULE=""
49918     DLLIMP_SUFFIX=""
49919     dlldir="$libdir"
49920
49921     case "${BAKEFILE_HOST}" in
49922                         ia64-hp-hpux* )
49923         ;;
49924         *-hp-hpux* )
49925             SO_SUFFIX="sl"
49926             SO_SUFFIX_MODULE="sl"
49927         ;;
49928         *-*-aix* )
49929                                                                         SO_SUFFIX="a"
49930             SO_SUFFIX_MODULE="a"
49931         ;;
49932         *-*-cygwin* )
49933             SO_SUFFIX="dll"
49934             SO_SUFFIX_MODULE="dll"
49935             DLLIMP_SUFFIX="dll.a"
49936             EXEEXT=".exe"
49937             DLLPREFIX="cyg"
49938             dlldir="$bindir"
49939         ;;
49940         *-*-mingw32* )
49941             SO_SUFFIX="dll"
49942             SO_SUFFIX_MODULE="dll"
49943             DLLIMP_SUFFIX="dll.a"
49944             EXEEXT=".exe"
49945             DLLPREFIX=""
49946             dlldir="$bindir"
49947         ;;
49948         *-pc-msdosdjgpp )
49949             EXEEXT=".exe"
49950             DLLPREFIX=""
49951             dlldir="$bindir"
49952         ;;
49953         *-pc-os2_emx | *-pc-os2-emx )
49954             SO_SUFFIX="dll"
49955             SO_SUFFIX_MODULE="dll"
49956             DLLIMP_SUFFIX=$OS2_LIBEXT
49957             EXEEXT=".exe"
49958             DLLPREFIX=""
49959             LIBPREFIX=""
49960             LIBEXT=".$OS2_LIBEXT"
49961             dlldir="$bindir"
49962         ;;
49963         *-*-darwin* )
49964             SO_SUFFIX="dylib"
49965             SO_SUFFIX_MODULE="bundle"
49966         ;;
49967     esac
49968
49969     if test "x$DLLIMP_SUFFIX" = "x" ; then
49970         DLLIMP_SUFFIX="$SO_SUFFIX"
49971     fi
49972
49973
49974
49975
49976
49977
49978
49979
49980
49981
49982
49983
49984         PIC_FLAG=""
49985     if test "x$GCC" = "xyes"; then
49986                 PIC_FLAG="-fPIC"
49987     fi
49988
49989         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
49990     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
49991     WINDOWS_IMPLIB=0
49992
49993     case "${BAKEFILE_HOST}" in
49994       *-hp-hpux* )
49995                 if test "x$GCC" != "xyes"; then
49996                         LDFLAGS="$LDFLAGS -L/usr/lib"
49997
49998             SHARED_LD_CC="${CC} -b -o"
49999             SHARED_LD_CXX="${CXX} -b -o"
50000             PIC_FLAG="+Z"
50001         fi
50002       ;;
50003
50004       *-*-linux* )
50005                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50006             PIC_FLAG="-KPIC"
50007         elif test "x$SUNCXX" = "xyes"; then
50008             SHARED_LD_CC="${CC} -G -o"
50009             SHARED_LD_CXX="${CXX} -G -o"
50010             PIC_FLAG="-KPIC"
50011         fi
50012       ;;
50013
50014       *-*-solaris2* )
50015         if test "x$SUNCXX" = xyes ; then
50016             SHARED_LD_CC="${CC} -G -o"
50017             SHARED_LD_CXX="${CXX} -G -o"
50018             PIC_FLAG="-KPIC"
50019         fi
50020       ;;
50021
50022       *-*-darwin* )
50023
50024 D='$'
50025 cat <<EOF >shared-ld-sh
50026 #!/bin/sh
50027 #-----------------------------------------------------------------------------
50028 #-- Name:        distrib/mac/shared-ld-sh
50029 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50030 #-- Author:      Gilles Depeyrot
50031 #-- Copyright:   (c) 2002 Gilles Depeyrot
50032 #-- Licence:     any use permitted
50033 #-----------------------------------------------------------------------------
50034
50035 verbose=0
50036 args=""
50037 objects=""
50038 linking_flag="-dynamiclib"
50039 ldargs="-r -keep_private_externs -nostdlib"
50040
50041 if test "x${D}CXX" = "x"; then
50042     CXX="c++"
50043 fi
50044
50045 while test ${D}# -gt 0; do
50046     case ${D}1 in
50047
50048        -v)
50049         verbose=1
50050         ;;
50051
50052        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50053         # collect these options and values
50054         args="${D}{args} ${D}1 ${D}2"
50055         shift
50056         ;;
50057
50058        -arch|-isysroot)
50059         # collect these options and values
50060         ldargs="${D}{ldargs} ${D}1 ${D}2"
50061         shift
50062         ;;
50063
50064        -s|-Wl,*)
50065         # collect these load args
50066         ldargs="${D}{ldargs} ${D}1"
50067         ;;
50068
50069        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50070         # collect these options
50071         args="${D}{args} ${D}1"
50072         ;;
50073
50074        -dynamiclib|-bundle)
50075         linking_flag="${D}1"
50076         ;;
50077
50078        -*)
50079         echo "shared-ld: unhandled option '${D}1'"
50080         exit 1
50081         ;;
50082
50083         *.o | *.a | *.dylib)
50084         # collect object files
50085         objects="${D}{objects} ${D}1"
50086         ;;
50087
50088         *)
50089         echo "shared-ld: unhandled argument '${D}1'"
50090         exit 1
50091         ;;
50092
50093     esac
50094     shift
50095 done
50096
50097 status=0
50098
50099 #
50100 # Link one module containing all the others
50101 #
50102 if test ${D}{verbose} = 1; then
50103     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50104 fi
50105 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50106 status=${D}?
50107
50108 #
50109 # Link the shared library from the single module created, but only if the
50110 # previous command didn't fail:
50111 #
50112 if test ${D}{status} = 0; then
50113     if test ${D}{verbose} = 1; then
50114         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50115     fi
50116     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50117     status=${D}?
50118 fi
50119
50120 #
50121 # Remove intermediate module
50122 #
50123 rm -f master.${D}${D}.o
50124
50125 exit ${D}status
50126 EOF
50127
50128         chmod +x shared-ld-sh
50129
50130         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50131         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50132
50133
50134                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50135 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50136 if test "${bakefile_cv_gcc31+set}" = set; then
50137   echo $ECHO_N "(cached) $ECHO_C" >&6
50138 else
50139
50140            cat >conftest.$ac_ext <<_ACEOF
50141 /* confdefs.h.  */
50142 _ACEOF
50143 cat confdefs.h >>conftest.$ac_ext
50144 cat >>conftest.$ac_ext <<_ACEOF
50145 /* end confdefs.h.  */
50146
50147 int
50148 main ()
50149 {
50150
50151                    #if (__GNUC__ < 3) || \
50152                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50153                        This is old gcc
50154                    #endif
50155
50156   ;
50157   return 0;
50158 }
50159 _ACEOF
50160 rm -f conftest.$ac_objext
50161 if { (ac_try="$ac_compile"
50162 case "(($ac_try" in
50163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50164   *) ac_try_echo=$ac_try;;
50165 esac
50166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50167   (eval "$ac_compile") 2>conftest.er1
50168   ac_status=$?
50169   grep -v '^ *+' conftest.er1 >conftest.err
50170   rm -f conftest.er1
50171   cat conftest.err >&5
50172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50173   (exit $ac_status); } && {
50174          test -z "$ac_c_werror_flag" ||
50175          test ! -s conftest.err
50176        } && test -s conftest.$ac_objext; then
50177
50178                    bakefile_cv_gcc31=yes
50179
50180 else
50181   echo "$as_me: failed program was:" >&5
50182 sed 's/^/| /' conftest.$ac_ext >&5
50183
50184
50185                    bakefile_cv_gcc31=no
50186
50187
50188 fi
50189
50190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50191
50192 fi
50193 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50194 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50195         if test "$bakefile_cv_gcc31" = "no"; then
50196                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50197             SHARED_LD_CXX="$SHARED_LD_CC"
50198         else
50199                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50200             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50201         fi
50202
50203         if test "x$GCC" == "xyes"; then
50204             PIC_FLAG="-dynamic -fPIC"
50205         fi
50206         if test "x$XLCC" = "xyes"; then
50207             PIC_FLAG="-dynamic -DPIC"
50208         fi
50209       ;;
50210
50211       *-*-aix* )
50212         if test "x$GCC" = "xyes"; then
50213                                                             PIC_FLAG=""
50214
50215                                                                                     case "${BAKEFILE_HOST}" in
50216                 *-*-aix5* )
50217                     LD_EXPFULL="-Wl,-bexpfull"
50218                     ;;
50219             esac
50220
50221             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50222             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50223         else
50224                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50225 set dummy makeC++SharedLib; ac_word=$2
50226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50228 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50229   echo $ECHO_N "(cached) $ECHO_C" >&6
50230 else
50231   if test -n "$AIX_CXX_LD"; then
50232   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50233 else
50234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50235 for as_dir in $PATH
50236 do
50237   IFS=$as_save_IFS
50238   test -z "$as_dir" && as_dir=.
50239   for ac_exec_ext in '' $ac_executable_extensions; do
50240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50241     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50243     break 2
50244   fi
50245 done
50246 done
50247 IFS=$as_save_IFS
50248
50249   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50250 fi
50251 fi
50252 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50253 if test -n "$AIX_CXX_LD"; then
50254   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50255 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50256 else
50257   { echo "$as_me:$LINENO: result: no" >&5
50258 echo "${ECHO_T}no" >&6; }
50259 fi
50260
50261
50262             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50263             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50264         fi
50265       ;;
50266
50267       *-*-beos* )
50268                         SHARED_LD_CC="${LD} -nostart -o"
50269         SHARED_LD_CXX="${LD} -nostart -o"
50270       ;;
50271
50272       *-*-irix* )
50273                 if test "x$GCC" != "xyes"; then
50274             PIC_FLAG="-KPIC"
50275         fi
50276       ;;
50277
50278       *-*-cygwin* | *-*-mingw32* )
50279         PIC_FLAG=""
50280         SHARED_LD_CC="\$(CC) -shared -o"
50281         SHARED_LD_CXX="\$(CXX) -shared -o"
50282         WINDOWS_IMPLIB=1
50283       ;;
50284
50285       *-pc-os2_emx | *-pc-os2-emx )
50286         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50287         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50288         PIC_FLAG=""
50289
50290 D='$'
50291 cat <<EOF >dllar.sh
50292 #!/bin/sh
50293 #
50294 # dllar - a tool to build both a .dll and an .a file
50295 # from a set of object (.o) files for EMX/OS2.
50296 #
50297 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50298 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50299 #
50300 #  This script will accept a set of files on the command line.
50301 #  All the public symbols from the .o files will be exported into
50302 #  a .DEF file, then linker will be run (through gcc) against them to
50303 #  build a shared library consisting of all given .o files. All libraries
50304 #  (.a) will be first decompressed into component .o files then act as
50305 #  described above. You can optionally give a description (-d "description")
50306 #  which will be put into .DLL. To see the list of accepted options (as well
50307 #  as command-line format) simply run this program without options. The .DLL
50308 #  is built to be imported by name (there is no guarantee that new versions
50309 #  of the library you build will have same ordinals for same symbols).
50310 #
50311 #  dllar is free software; you can redistribute it and/or modify
50312 #  it under the terms of the GNU General Public License as published by
50313 #  the Free Software Foundation; either version 2, or (at your option)
50314 #  any later version.
50315 #
50316 #  dllar is distributed in the hope that it will be useful,
50317 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50318 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50319 #  GNU General Public License for more details.
50320 #
50321 #  You should have received a copy of the GNU General Public License
50322 #  along with dllar; see the file COPYING.  If not, write to the Free
50323 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50324 #  02111-1307, USA.
50325
50326 # To successfuly run this program you will need:
50327 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50328 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50329 #  - gcc
50330 #    (used to build the .dll)
50331 #  - emxexp
50332 #    (used to create .def file from .o files)
50333 #  - emximp
50334 #    (used to create .a file from .def file)
50335 #  - GNU text utilites (cat, sort, uniq)
50336 #    used to process emxexp output
50337 #  - GNU file utilities (mv, rm)
50338 #  - GNU sed
50339 #  - lxlite (optional, see flag below)
50340 #    (used for general .dll cleanup)
50341 #
50342
50343 flag_USE_LXLITE=1;
50344
50345 #
50346 # helper functions
50347 # basnam, variant of basename, which does _not_ remove the path, _iff_
50348 #                              second argument (suffix to remove) is given
50349 basnam(){
50350     case ${D}# in
50351     1)
50352         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50353         ;;
50354     2)
50355         echo ${D}1 | sed 's/'${D}2'${D}//'
50356         ;;
50357     *)
50358         echo "error in basnam ${D}*"
50359         exit 8
50360         ;;
50361     esac
50362 }
50363
50364 # Cleanup temporary files and output
50365 CleanUp() {
50366     cd ${D}curDir
50367     for i in ${D}inputFiles ; do
50368         case ${D}i in
50369         *!)
50370             rm -rf \`basnam ${D}i !\`
50371             ;;
50372         *)
50373             ;;
50374         esac
50375     done
50376
50377     # Kill result in case of failure as there is just to many stupid make/nmake
50378     # things out there which doesn't do this.
50379     if [ ${D}# -eq 0 ]; then
50380         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50381     fi
50382 }
50383
50384 # Print usage and exit script with rc=1.
50385 PrintHelp() {
50386  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50387  echo '       [-name-mangler-script script.sh]'
50388  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50389  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50390  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50391  echo '       [*.o] [*.a]'
50392  echo '*> "output_file" should have no extension.'
50393  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50394  echo '   The import library name is derived from this and is set to "name".a,'
50395  echo '   unless overridden by -import'
50396  echo '*> "importlib_name" should have no extension.'
50397  echo '   If it has the .o, or .a extension, it is automatically removed.'
50398  echo '   This name is used as the import library name and may be longer and'
50399  echo '   more descriptive than the DLL name which has to follow the old '
50400  echo '   8.3 convention of FAT.'
50401  echo '*> "script.sh may be given to override the output_file name by a'
50402  echo '   different name. It is mainly useful if the regular make process'
50403  echo '   of some package does not take into account OS/2 restriction of'
50404  echo '   DLL name lengths. It takes the importlib name as input and is'
50405  echo '   supposed to procude a shorter name as output. The script should'
50406  echo '   expect to get importlib_name without extension and should produce'
50407  echo '   a (max.) 8 letter name without extension.'
50408  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50409  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50410  echo '   These flags will be put at the start of GCC command line.'
50411  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50412  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50413  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50414  echo '   If the last character of a symbol is "*", all symbols beginning'
50415  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50416  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50417  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50418  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50419  echo '   C runtime DLLs.'
50420  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50421  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50422  echo '   unchanged to GCC at the end of command line.'
50423  echo '*> If you create a DLL from a library and you do not specify -o,'
50424  echo '   the basename for DLL and import library will be set to library name,'
50425  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50426  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50427  echo '   library will be renamed into gcc_s.a.'
50428  echo '--------'
50429  echo 'Example:'
50430  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50431  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50432  CleanUp
50433  exit 1
50434 }
50435
50436 # Execute a command.
50437 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50438 # @Uses    Whatever CleanUp() uses.
50439 doCommand() {
50440     echo "${D}*"
50441     eval ${D}*
50442     rcCmd=${D}?
50443
50444     if [ ${D}rcCmd -ne 0 ]; then
50445         echo "command failed, exit code="${D}rcCmd
50446         CleanUp
50447         exit ${D}rcCmd
50448     fi
50449 }
50450
50451 # main routine
50452 # setup globals
50453 cmdLine=${D}*
50454 outFile=""
50455 outimpFile=""
50456 inputFiles=""
50457 renameScript=""
50458 description=""
50459 CC=gcc.exe
50460 CFLAGS="-s -Zcrtdll"
50461 EXTRA_CFLAGS=""
50462 EXPORT_BY_ORDINALS=0
50463 exclude_symbols=""
50464 library_flags=""
50465 curDir=\`pwd\`
50466 curDirS=curDir
50467 case ${D}curDirS in
50468 */)
50469   ;;
50470 *)
50471   curDirS=${D}{curDirS}"/"
50472   ;;
50473 esac
50474 # Parse commandline
50475 libsToLink=0
50476 omfLinking=0
50477 while [ ${D}1 ]; do
50478     case ${D}1 in
50479     -ord*)
50480         EXPORT_BY_ORDINALS=1;
50481         ;;
50482     -o*)
50483         shift
50484         outFile=${D}1
50485         ;;
50486     -i*)
50487         shift
50488         outimpFile=${D}1
50489         ;;
50490     -name-mangler-script)
50491         shift
50492         renameScript=${D}1
50493         ;;
50494     -d*)
50495         shift
50496         description=${D}1
50497         ;;
50498     -f*)
50499         shift
50500         CFLAGS=${D}1
50501         ;;
50502     -c*)
50503         shift
50504         CC=${D}1
50505         ;;
50506     -h*)
50507         PrintHelp
50508         ;;
50509     -ex*)
50510         shift
50511         exclude_symbols=${D}{exclude_symbols}${D}1" "
50512         ;;
50513     -libf*)
50514         shift
50515         library_flags=${D}{library_flags}${D}1" "
50516         ;;
50517     -nocrt*)
50518         CFLAGS="-s"
50519         ;;
50520     -nolxl*)
50521         flag_USE_LXLITE=0
50522         ;;
50523     -* | /*)
50524         case ${D}1 in
50525         -L* | -l*)
50526             libsToLink=1
50527             ;;
50528         -Zomf)
50529             omfLinking=1
50530             ;;
50531         *)
50532             ;;
50533         esac
50534         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50535         ;;
50536     *.dll)
50537         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50538         if [ ${D}omfLinking -eq 1 ]; then
50539             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50540         else
50541             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50542         fi
50543         ;;
50544     *)
50545         found=0;
50546         if [ ${D}libsToLink -ne 0 ]; then
50547             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50548         else
50549             for file in ${D}1 ; do
50550                 if [ -f ${D}file ]; then
50551                     inputFiles="${D}{inputFiles} ${D}file"
50552                     found=1
50553                 fi
50554             done
50555             if [ ${D}found -eq 0 ]; then
50556                 echo "ERROR: No file(s) found: "${D}1
50557                 exit 8
50558             fi
50559         fi
50560       ;;
50561     esac
50562     shift
50563 done # iterate cmdline words
50564
50565 #
50566 if [ -z "${D}inputFiles" ]; then
50567     echo "dllar: no input files"
50568     PrintHelp
50569 fi
50570
50571 # Now extract all .o files from .a files
50572 newInputFiles=""
50573 for file in ${D}inputFiles ; do
50574     case ${D}file in
50575     *.a | *.lib)
50576         case ${D}file in
50577         *.a)
50578             suffix=".a"
50579             AR="ar"
50580             ;;
50581         *.lib)
50582             suffix=".lib"
50583             AR="emxomfar"
50584             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50585             ;;
50586         *)
50587             ;;
50588         esac
50589         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50590         mkdir ${D}dirname
50591         if [ ${D}? -ne 0 ]; then
50592             echo "Failed to create subdirectory ./${D}dirname"
50593             CleanUp
50594             exit 8;
50595         fi
50596         # Append '!' to indicate archive
50597         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50598         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50599         cd ${D}curDir
50600         found=0;
50601         for subfile in ${D}dirname/*.o* ; do
50602             if [ -f ${D}subfile ]; then
50603                 found=1
50604                 if [ -s ${D}subfile ]; then
50605                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50606                     newInputFiles="${D}newInputFiles ${D}subfile"
50607                 fi
50608             fi
50609         done
50610         if [ ${D}found -eq 0 ]; then
50611             echo "WARNING: there are no files in archive \\'${D}file\\'"
50612         fi
50613         ;;
50614     *)
50615         newInputFiles="${D}{newInputFiles} ${D}file"
50616         ;;
50617     esac
50618 done
50619 inputFiles="${D}newInputFiles"
50620
50621 # Output filename(s).
50622 do_backup=0;
50623 if [ -z ${D}outFile ]; then
50624     do_backup=1;
50625     set outFile ${D}inputFiles; outFile=${D}2
50626 fi
50627
50628 # If it is an archive, remove the '!' and the '_%' suffixes
50629 case ${D}outFile in
50630 *_%!)
50631     outFile=\`basnam ${D}outFile _%!\`
50632     ;;
50633 *)
50634     ;;
50635 esac
50636 case ${D}outFile in
50637 *.dll)
50638     outFile=\`basnam ${D}outFile .dll\`
50639     ;;
50640 *.DLL)
50641     outFile=\`basnam ${D}outFile .DLL\`
50642     ;;
50643 *.o)
50644     outFile=\`basnam ${D}outFile .o\`
50645     ;;
50646 *.obj)
50647     outFile=\`basnam ${D}outFile .obj\`
50648     ;;
50649 *.a)
50650     outFile=\`basnam ${D}outFile .a\`
50651     ;;
50652 *.lib)
50653     outFile=\`basnam ${D}outFile .lib\`
50654     ;;
50655 *)
50656     ;;
50657 esac
50658 case ${D}outimpFile in
50659 *.a)
50660     outimpFile=\`basnam ${D}outimpFile .a\`
50661     ;;
50662 *.lib)
50663     outimpFile=\`basnam ${D}outimpFile .lib\`
50664     ;;
50665 *)
50666     ;;
50667 esac
50668 if [ -z ${D}outimpFile ]; then
50669     outimpFile=${D}outFile
50670 fi
50671 defFile="${D}{outFile}.def"
50672 arcFile="${D}{outimpFile}.a"
50673 arcFile2="${D}{outimpFile}.lib"
50674
50675 #create ${D}dllFile as something matching 8.3 restrictions,
50676 if [ -z ${D}renameScript ] ; then
50677     dllFile="${D}outFile"
50678 else
50679     dllFile=\`${D}renameScript ${D}outimpFile\`
50680 fi
50681
50682 if [ ${D}do_backup -ne 0 ] ; then
50683     if [ -f ${D}arcFile ] ; then
50684         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50685     fi
50686     if [ -f ${D}arcFile2 ] ; then
50687         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50688     fi
50689 fi
50690
50691 # Extract public symbols from all the object files.
50692 tmpdefFile=${D}{defFile}_%
50693 rm -f ${D}tmpdefFile
50694 for file in ${D}inputFiles ; do
50695     case ${D}file in
50696     *!)
50697         ;;
50698     *)
50699         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50700         ;;
50701     esac
50702 done
50703
50704 # Create the def file.
50705 rm -f ${D}defFile
50706 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50707 dllFile="${D}{dllFile}.dll"
50708 if [ ! -z ${D}description ]; then
50709     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50710 fi
50711 echo "EXPORTS" >> ${D}defFile
50712
50713 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50714 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50715
50716 # Checks if the export is ok or not.
50717 for word in ${D}exclude_symbols; do
50718     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50719     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50720 done
50721
50722
50723 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50724     sed "=" < ${D}tmpdefFile | \\
50725     sed '
50726       N
50727       : loop
50728       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
50729       t loop
50730     ' > ${D}{tmpdefFile}%
50731     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
50732 else
50733     rm -f ${D}{tmpdefFile}%
50734 fi
50735 cat ${D}tmpdefFile >> ${D}defFile
50736 rm -f ${D}tmpdefFile
50737
50738 # Do linking, create implib, and apply lxlite.
50739 gccCmdl="";
50740 for file in ${D}inputFiles ; do
50741     case ${D}file in
50742     *!)
50743         ;;
50744     *)
50745         gccCmdl="${D}gccCmdl ${D}file"
50746         ;;
50747     esac
50748 done
50749 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
50750 touch "${D}{outFile}.dll"
50751
50752 doCommand "emximp -o ${D}arcFile ${D}defFile"
50753 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
50754     add_flags="";
50755     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50756         add_flags="-ynd"
50757     fi
50758     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50759 fi
50760 doCommand "emxomf -s -l ${D}arcFile"
50761
50762 # Successful exit.
50763 CleanUp 1
50764 exit 0
50765 EOF
50766
50767         chmod +x dllar.sh
50768       ;;
50769
50770       powerpc-apple-macos* | \
50771       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50772       *-*-mirbsd* | \
50773       *-*-sunos4* | \
50774       *-*-osf* | \
50775       *-*-dgux5* | \
50776       *-*-sysv5* | \
50777       *-pc-msdosdjgpp )
50778               ;;
50779
50780       *)
50781         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
50782 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
50783    { (exit 1); exit 1; }; }
50784     esac
50785
50786     if test "x$PIC_FLAG" != "x" ; then
50787         PIC_FLAG="$PIC_FLAG -DPIC"
50788     fi
50789
50790     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
50791         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
50792     fi
50793     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
50794         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
50795     fi
50796
50797
50798
50799
50800
50801
50802
50803
50804
50805     USE_SOVERSION=0
50806     USE_SOVERLINUX=0
50807     USE_SOVERSOLARIS=0
50808     USE_SOVERCYGWIN=0
50809     USE_SOTWOSYMLINKS=0
50810     USE_MACVERSION=0
50811     SONAME_FLAG=
50812
50813     case "${BAKEFILE_HOST}" in
50814       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
50815       *-*-k*bsd*-gnu | *-*-mirbsd* )
50816         if test "x$SUNCXX" = "xyes"; then
50817             SONAME_FLAG="-h "
50818         else
50819             SONAME_FLAG="-Wl,-soname,"
50820         fi
50821         USE_SOVERSION=1
50822         USE_SOVERLINUX=1
50823         USE_SOTWOSYMLINKS=1
50824       ;;
50825
50826       *-*-solaris2* )
50827         SONAME_FLAG="-h "
50828         USE_SOVERSION=1
50829         USE_SOVERSOLARIS=1
50830       ;;
50831
50832       *-*-darwin* )
50833         USE_MACVERSION=1
50834         USE_SOVERSION=1
50835         USE_SOTWOSYMLINKS=1
50836       ;;
50837
50838       *-*-cygwin* )
50839         USE_SOVERSION=1
50840         USE_SOVERCYGWIN=1
50841       ;;
50842     esac
50843
50844
50845
50846
50847
50848
50849
50850
50851
50852
50853     # Check whether --enable-dependency-tracking was given.
50854 if test "${enable_dependency_tracking+set}" = set; then
50855   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
50856 fi
50857
50858
50859     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
50860 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
50861
50862     BK_DEPS=""
50863     if test "x$bk_use_trackdeps" = "xno" ; then
50864         DEPS_TRACKING=0
50865         { echo "$as_me:$LINENO: result: disabled" >&5
50866 echo "${ECHO_T}disabled" >&6; }
50867     else
50868         DEPS_TRACKING=1
50869
50870         if test "x$GCC" = "xyes"; then
50871             DEPSMODE=gcc
50872             case "${BAKEFILE_HOST}" in
50873                 *-*-darwin* )
50874                                                             DEPSFLAG="-no-cpp-precomp -MMD"
50875                 ;;
50876                 * )
50877                     DEPSFLAG="-MMD"
50878                 ;;
50879             esac
50880             { echo "$as_me:$LINENO: result: gcc" >&5
50881 echo "${ECHO_T}gcc" >&6; }
50882         elif test "x$MWCC" = "xyes"; then
50883             DEPSMODE=mwcc
50884             DEPSFLAG="-MM"
50885             { echo "$as_me:$LINENO: result: mwcc" >&5
50886 echo "${ECHO_T}mwcc" >&6; }
50887         elif test "x$SUNCC" = "xyes"; then
50888             DEPSMODE=unixcc
50889             DEPSFLAG="-xM1"
50890             { echo "$as_me:$LINENO: result: Sun cc" >&5
50891 echo "${ECHO_T}Sun cc" >&6; }
50892         elif test "x$SGICC" = "xyes"; then
50893             DEPSMODE=unixcc
50894             DEPSFLAG="-M"
50895             { echo "$as_me:$LINENO: result: SGI cc" >&5
50896 echo "${ECHO_T}SGI cc" >&6; }
50897         elif test "x$HPCC" = "xyes"; then
50898             DEPSMODE=unixcc
50899             DEPSFLAG="+make"
50900             { echo "$as_me:$LINENO: result: HP cc" >&5
50901 echo "${ECHO_T}HP cc" >&6; }
50902         elif test "x$COMPAQCC" = "xyes"; then
50903             DEPSMODE=gcc
50904             DEPSFLAG="-MD"
50905             { echo "$as_me:$LINENO: result: Compaq cc" >&5
50906 echo "${ECHO_T}Compaq cc" >&6; }
50907         else
50908             DEPS_TRACKING=0
50909             { echo "$as_me:$LINENO: result: none" >&5
50910 echo "${ECHO_T}none" >&6; }
50911         fi
50912
50913         if test $DEPS_TRACKING = 1 ; then
50914
50915 D='$'
50916 cat <<EOF >bk-deps
50917 #!/bin/sh
50918
50919 # This script is part of Bakefile (http://www.bakefile.org) autoconf
50920 # script. It is used to track C/C++ files dependencies in portable way.
50921 #
50922 # Permission is given to use this file in any way.
50923
50924 DEPSMODE=${DEPSMODE}
50925 DEPSFLAG="${DEPSFLAG}"
50926 DEPSDIRBASE=.deps
50927
50928 if test ${D}DEPSMODE = gcc ; then
50929     ${D}* ${D}{DEPSFLAG}
50930     status=${D}?
50931
50932     # determine location of created files:
50933     while test ${D}# -gt 0; do
50934         case "${D}1" in
50935             -o )
50936                 shift
50937                 objfile=${D}1
50938             ;;
50939             -* )
50940             ;;
50941             * )
50942                 srcfile=${D}1
50943             ;;
50944         esac
50945         shift
50946     done
50947     objfilebase=\`basename ${D}objfile\`
50948     builddir=\`dirname ${D}objfile\`
50949     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
50950     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
50951     depsdir=${D}builddir/${D}DEPSDIRBASE
50952     mkdir -p ${D}depsdir
50953
50954     # if the compiler failed, we're done:
50955     if test ${D}{status} != 0 ; then
50956         rm -f ${D}depfile
50957         exit ${D}{status}
50958     fi
50959
50960     # move created file to the location we want it in:
50961     if test -f ${D}depfile ; then
50962         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
50963         rm -f ${D}depfile
50964     else
50965         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
50966         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
50967         if test ! -f ${D}depfile ; then
50968             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
50969             depfile="${D}objfile.d"
50970         fi
50971         if test -f ${D}depfile ; then
50972             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
50973             rm -f ${D}depfile
50974         fi
50975     fi
50976     exit 0
50977
50978 elif test ${D}DEPSMODE = mwcc ; then
50979     ${D}* || exit ${D}?
50980     # Run mwcc again with -MM and redirect into the dep file we want
50981     # NOTE: We can't use shift here because we need ${D}* to be valid
50982     prevarg=
50983     for arg in ${D}* ; do
50984         if test "${D}prevarg" = "-o"; then
50985             objfile=${D}arg
50986         else
50987             case "${D}arg" in
50988                 -* )
50989                 ;;
50990                 * )
50991                     srcfile=${D}arg
50992                 ;;
50993             esac
50994         fi
50995         prevarg="${D}arg"
50996     done
50997
50998     objfilebase=\`basename ${D}objfile\`
50999     builddir=\`dirname ${D}objfile\`
51000     depsdir=${D}builddir/${D}DEPSDIRBASE
51001     mkdir -p ${D}depsdir
51002
51003     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51004     exit 0
51005
51006 elif test ${D}DEPSMODE = unixcc; then
51007     ${D}* || exit ${D}?
51008     # Run compiler again with deps flag and redirect into the dep file.
51009     # It doesn't work if the '-o FILE' option is used, but without it the
51010     # dependency file will contain the wrong name for the object. So it is
51011     # removed from the command line, and the dep file is fixed with sed.
51012     cmd=""
51013     while test ${D}# -gt 0; do
51014         case "${D}1" in
51015             -o )
51016                 shift
51017                 objfile=${D}1
51018             ;;
51019             * )
51020                 eval arg${D}#=\\${D}1
51021                 cmd="${D}cmd \\${D}arg${D}#"
51022             ;;
51023         esac
51024         shift
51025     done
51026
51027     objfilebase=\`basename ${D}objfile\`
51028     builddir=\`dirname ${D}objfile\`
51029     depsdir=${D}builddir/${D}DEPSDIRBASE
51030     mkdir -p ${D}depsdir
51031
51032     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51033     exit 0
51034
51035 else
51036     ${D}*
51037     exit ${D}?
51038 fi
51039 EOF
51040
51041             chmod +x bk-deps
51042                                     BK_DEPS="`pwd`/bk-deps"
51043         fi
51044     fi
51045
51046
51047
51048
51049
51050     case ${BAKEFILE_HOST} in
51051         *-*-cygwin* | *-*-mingw32* )
51052                         if test -n "$ac_tool_prefix"; then
51053   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51054 set dummy ${ac_tool_prefix}windres; ac_word=$2
51055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51057 if test "${ac_cv_prog_WINDRES+set}" = set; then
51058   echo $ECHO_N "(cached) $ECHO_C" >&6
51059 else
51060   if test -n "$WINDRES"; then
51061   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51062 else
51063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51064 for as_dir in $PATH
51065 do
51066   IFS=$as_save_IFS
51067   test -z "$as_dir" && as_dir=.
51068   for ac_exec_ext in '' $ac_executable_extensions; do
51069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51070     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51072     break 2
51073   fi
51074 done
51075 done
51076 IFS=$as_save_IFS
51077
51078 fi
51079 fi
51080 WINDRES=$ac_cv_prog_WINDRES
51081 if test -n "$WINDRES"; then
51082   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51083 echo "${ECHO_T}$WINDRES" >&6; }
51084 else
51085   { echo "$as_me:$LINENO: result: no" >&5
51086 echo "${ECHO_T}no" >&6; }
51087 fi
51088
51089
51090 fi
51091 if test -z "$ac_cv_prog_WINDRES"; then
51092   ac_ct_WINDRES=$WINDRES
51093   # Extract the first word of "windres", so it can be a program name with args.
51094 set dummy windres; ac_word=$2
51095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51097 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51098   echo $ECHO_N "(cached) $ECHO_C" >&6
51099 else
51100   if test -n "$ac_ct_WINDRES"; then
51101   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51102 else
51103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51104 for as_dir in $PATH
51105 do
51106   IFS=$as_save_IFS
51107   test -z "$as_dir" && as_dir=.
51108   for ac_exec_ext in '' $ac_executable_extensions; do
51109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51110     ac_cv_prog_ac_ct_WINDRES="windres"
51111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51112     break 2
51113   fi
51114 done
51115 done
51116 IFS=$as_save_IFS
51117
51118 fi
51119 fi
51120 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51121 if test -n "$ac_ct_WINDRES"; then
51122   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51123 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51124 else
51125   { echo "$as_me:$LINENO: result: no" >&5
51126 echo "${ECHO_T}no" >&6; }
51127 fi
51128
51129   if test "x$ac_ct_WINDRES" = x; then
51130     WINDRES=""
51131   else
51132     case $cross_compiling:$ac_tool_warned in
51133 yes:)
51134 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51135 whose name does not start with the host triplet.  If you think this
51136 configuration is useful to you, please write to autoconf@gnu.org." >&5
51137 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51138 whose name does not start with the host triplet.  If you think this
51139 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51140 ac_tool_warned=yes ;;
51141 esac
51142     WINDRES=$ac_ct_WINDRES
51143   fi
51144 else
51145   WINDRES="$ac_cv_prog_WINDRES"
51146 fi
51147
51148          ;;
51149
51150       *-*-darwin* | powerpc-apple-macos* )
51151             # Extract the first word of "Rez", so it can be a program name with args.
51152 set dummy Rez; ac_word=$2
51153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51155 if test "${ac_cv_prog_REZ+set}" = set; then
51156   echo $ECHO_N "(cached) $ECHO_C" >&6
51157 else
51158   if test -n "$REZ"; then
51159   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51160 else
51161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51162 for as_dir in $PATH
51163 do
51164   IFS=$as_save_IFS
51165   test -z "$as_dir" && as_dir=.
51166   for ac_exec_ext in '' $ac_executable_extensions; do
51167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51168     ac_cv_prog_REZ="Rez"
51169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51170     break 2
51171   fi
51172 done
51173 done
51174 IFS=$as_save_IFS
51175
51176   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51177 fi
51178 fi
51179 REZ=$ac_cv_prog_REZ
51180 if test -n "$REZ"; then
51181   { echo "$as_me:$LINENO: result: $REZ" >&5
51182 echo "${ECHO_T}$REZ" >&6; }
51183 else
51184   { echo "$as_me:$LINENO: result: no" >&5
51185 echo "${ECHO_T}no" >&6; }
51186 fi
51187
51188
51189             # Extract the first word of "SetFile", so it can be a program name with args.
51190 set dummy SetFile; ac_word=$2
51191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51193 if test "${ac_cv_prog_SETFILE+set}" = set; then
51194   echo $ECHO_N "(cached) $ECHO_C" >&6
51195 else
51196   if test -n "$SETFILE"; then
51197   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51198 else
51199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51200 for as_dir in $PATH
51201 do
51202   IFS=$as_save_IFS
51203   test -z "$as_dir" && as_dir=.
51204   for ac_exec_ext in '' $ac_executable_extensions; do
51205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51206     ac_cv_prog_SETFILE="SetFile"
51207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51208     break 2
51209   fi
51210 done
51211 done
51212 IFS=$as_save_IFS
51213
51214   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51215 fi
51216 fi
51217 SETFILE=$ac_cv_prog_SETFILE
51218 if test -n "$SETFILE"; then
51219   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51220 echo "${ECHO_T}$SETFILE" >&6; }
51221 else
51222   { echo "$as_me:$LINENO: result: no" >&5
51223 echo "${ECHO_T}no" >&6; }
51224 fi
51225
51226
51227         ;;
51228     esac
51229
51230
51231
51232
51233
51234
51235
51236
51237
51238     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
51239
51240
51241 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
51242
51243
51244
51245     # Check whether --enable-precomp-headers was given.
51246 if test "${enable_precomp_headers+set}" = set; then
51247   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51248 fi
51249
51250
51251     GCC_PCH=0
51252     ICC_PCH=0
51253     USE_PCH=0
51254     BK_MAKE_PCH=""
51255
51256     case ${BAKEFILE_HOST} in
51257         *-*-cygwin* )
51258                                                 bk_use_pch="no"
51259             ;;
51260     esac
51261
51262     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51263         if test "x$GCC" = "xyes"; then
51264                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51265 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51266             cat >conftest.$ac_ext <<_ACEOF
51267 /* confdefs.h.  */
51268 _ACEOF
51269 cat confdefs.h >>conftest.$ac_ext
51270 cat >>conftest.$ac_ext <<_ACEOF
51271 /* end confdefs.h.  */
51272
51273 int
51274 main ()
51275 {
51276
51277                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51278                         There is no PCH support
51279                     #endif
51280                     #if (__GNUC__ < 3)
51281                         There is no PCH support
51282                     #endif
51283                     #if (__GNUC__ == 3) && \
51284                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51285                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51286                        ( defined(__INTEL_COMPILER) )
51287                         There is no PCH support
51288                     #endif
51289
51290   ;
51291   return 0;
51292 }
51293 _ACEOF
51294 rm -f conftest.$ac_objext
51295 if { (ac_try="$ac_compile"
51296 case "(($ac_try" in
51297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51298   *) ac_try_echo=$ac_try;;
51299 esac
51300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51301   (eval "$ac_compile") 2>conftest.er1
51302   ac_status=$?
51303   grep -v '^ *+' conftest.er1 >conftest.err
51304   rm -f conftest.er1
51305   cat conftest.err >&5
51306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51307   (exit $ac_status); } && {
51308          test -z "$ac_c_werror_flag" ||
51309          test ! -s conftest.err
51310        } && test -s conftest.$ac_objext; then
51311
51312                     { echo "$as_me:$LINENO: result: yes" >&5
51313 echo "${ECHO_T}yes" >&6; }
51314                     GCC_PCH=1
51315
51316 else
51317   echo "$as_me: failed program was:" >&5
51318 sed 's/^/| /' conftest.$ac_ext >&5
51319
51320
51321                     if test "$INTELCXX8" = "yes"; then
51322                         { echo "$as_me:$LINENO: result: yes" >&5
51323 echo "${ECHO_T}yes" >&6; }
51324                         ICC_PCH=1
51325                         if test "$INTELCXX10" = "yes"; then
51326                             ICC_PCH_CREATE_SWITCH="-pch-create"
51327                             ICC_PCH_USE_SWITCH="-pch-use"
51328                         else
51329                             ICC_PCH_CREATE_SWITCH="-create-pch"
51330                             ICC_PCH_USE_SWITCH="-use-pch"
51331                         fi
51332                     else
51333                         { echo "$as_me:$LINENO: result: no" >&5
51334 echo "${ECHO_T}no" >&6; }
51335                     fi
51336
51337 fi
51338
51339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51340             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51341                 USE_PCH=1
51342
51343 D='$'
51344 cat <<EOF >bk-make-pch
51345 #!/bin/sh
51346
51347 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51348 # script. It is used to generated precompiled headers.
51349 #
51350 # Permission is given to use this file in any way.
51351
51352 outfile="${D}{1}"
51353 header="${D}{2}"
51354 shift
51355 shift
51356
51357 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
51358
51359 compiler=""
51360 headerfile=""
51361
51362 while test ${D}{#} -gt 0; do
51363     add_to_cmdline=1
51364     case "${D}{1}" in
51365         -I* )
51366             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51367             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51368                 headerfile="${D}{incdir}/${D}{header}"
51369             fi
51370         ;;
51371         -use-pch|-use_pch|-pch-use )
51372             shift
51373             add_to_cmdline=0
51374         ;;
51375     esac
51376     if test ${D}add_to_cmdline = 1 ; then
51377         compiler="${D}{compiler} ${D}{1}"
51378     fi
51379     shift
51380 done
51381
51382 if test "x${D}{headerfile}" = "x" ; then
51383     echo "error: can't find header ${D}{header} in include paths" >&2
51384 else
51385     if test -f ${D}{outfile} ; then
51386         rm -f ${D}{outfile}
51387     else
51388         mkdir -p \`dirname ${D}{outfile}\`
51389     fi
51390     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51391     mkdir -p ${D}{builddir}/.deps
51392     if test "x${GCC_PCH}" = "x1" ; then
51393         # can do this because gcc is >= 3.4:
51394         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51395     elif test "x${ICC_PCH}" = "x1" ; then
51396         filename=pch_gen-${D}${D}
51397         file=${D}{filename}.c
51398         dfile=${D}{filename}.d
51399         cat > ${D}file <<EOT
51400 #include "${D}header"
51401 EOT
51402         # using -MF icc complains about differing command lines in creation/use
51403         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
51404           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51405           rm -f ${D}file ${D}dfile ${D}{filename}.o
51406     fi
51407     exit ${D}{?}
51408 fi
51409 EOF
51410
51411                 chmod +x bk-make-pch
51412                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51413             fi
51414         fi
51415     fi
51416
51417
51418
51419
51420
51421
51422
51423     COND_BUILD_DEBUG="#"
51424     if test "x$BUILD" = "xdebug" ; then
51425         COND_BUILD_DEBUG=""
51426     fi
51427
51428     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51429     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51430         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51431     fi
51432
51433     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51434     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51435         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51436     fi
51437
51438     COND_BUILD_DEBUG_UNICODE_0="#"
51439     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51440         COND_BUILD_DEBUG_UNICODE_0=""
51441     fi
51442
51443     COND_BUILD_DEBUG_UNICODE_1="#"
51444     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51445         COND_BUILD_DEBUG_UNICODE_1=""
51446     fi
51447
51448     COND_BUILD_RELEASE="#"
51449     if test "x$BUILD" = "xrelease" ; then
51450         COND_BUILD_RELEASE=""
51451     fi
51452
51453     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51454     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51455         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51456     fi
51457
51458     COND_BUILD_RELEASE_UNICODE_0="#"
51459     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51460         COND_BUILD_RELEASE_UNICODE_0=""
51461     fi
51462
51463     COND_BUILD_RELEASE_UNICODE_1="#"
51464     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51465         COND_BUILD_RELEASE_UNICODE_1=""
51466     fi
51467
51468     COND_BUILD_debug="#"
51469     if test "x$BUILD" = "xdebug" ; then
51470         COND_BUILD_debug=""
51471     fi
51472
51473     COND_BUILD_debug_DEBUG_FLAG_default="#"
51474     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51475         COND_BUILD_debug_DEBUG_FLAG_default=""
51476     fi
51477
51478     COND_BUILD_debug_DEBUG_INFO_default="#"
51479     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51480         COND_BUILD_debug_DEBUG_INFO_default=""
51481     fi
51482
51483     COND_BUILD_debug_UNICODE_0="#"
51484     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51485         COND_BUILD_debug_UNICODE_0=""
51486     fi
51487
51488     COND_BUILD_debug_UNICODE_1="#"
51489     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51490         COND_BUILD_debug_UNICODE_1=""
51491     fi
51492
51493     COND_BUILD_release="#"
51494     if test "x$BUILD" = "xrelease" ; then
51495         COND_BUILD_release=""
51496     fi
51497
51498     COND_BUILD_release_DEBUG_INFO_default="#"
51499     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51500         COND_BUILD_release_DEBUG_INFO_default=""
51501     fi
51502
51503     COND_BUILD_release_UNICODE_0="#"
51504     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51505         COND_BUILD_release_UNICODE_0=""
51506     fi
51507
51508     COND_BUILD_release_UNICODE_1="#"
51509     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51510         COND_BUILD_release_UNICODE_1=""
51511     fi
51512
51513     COND_DEBUG_FLAG_0="#"
51514     if test "x$DEBUG_FLAG" = "x0" ; then
51515         COND_DEBUG_FLAG_0=""
51516     fi
51517
51518     COND_DEBUG_FLAG_1="#"
51519     if test "x$DEBUG_FLAG" = "x1" ; then
51520         COND_DEBUG_FLAG_1=""
51521     fi
51522
51523     COND_DEBUG_INFO_0="#"
51524     if test "x$DEBUG_INFO" = "x0" ; then
51525         COND_DEBUG_INFO_0=""
51526     fi
51527
51528     COND_DEBUG_INFO_1="#"
51529     if test "x$DEBUG_INFO" = "x1" ; then
51530         COND_DEBUG_INFO_1=""
51531     fi
51532
51533     COND_DEPS_TRACKING_0="#"
51534     if test "x$DEPS_TRACKING" = "x0" ; then
51535         COND_DEPS_TRACKING_0=""
51536     fi
51537
51538     COND_DEPS_TRACKING_1="#"
51539     if test "x$DEPS_TRACKING" = "x1" ; then
51540         COND_DEPS_TRACKING_1=""
51541     fi
51542
51543     COND_GCC_PCH_1="#"
51544     if test "x$GCC_PCH" = "x1" ; then
51545         COND_GCC_PCH_1=""
51546     fi
51547
51548     COND_ICC_PCH_1="#"
51549     if test "x$ICC_PCH" = "x1" ; then
51550         COND_ICC_PCH_1=""
51551     fi
51552
51553     COND_MONOLITHIC_0="#"
51554     if test "x$MONOLITHIC" = "x0" ; then
51555         COND_MONOLITHIC_0=""
51556     fi
51557
51558     COND_MONOLITHIC_0_SHARED_0="#"
51559     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51560         COND_MONOLITHIC_0_SHARED_0=""
51561     fi
51562
51563     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51564     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51565         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51566     fi
51567
51568     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51569     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51570         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51571     fi
51572
51573     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51574     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51575         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51576     fi
51577
51578     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51579     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51580         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51581     fi
51582
51583     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51584     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51585         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51586     fi
51587
51588     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
51589     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
51590         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
51591     fi
51592
51593     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
51594     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
51595         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
51596     fi
51597
51598     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51599     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51600         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51601     fi
51602
51603     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51604     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51605         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51606     fi
51607
51608     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51609     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51610         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51611     fi
51612
51613     COND_MONOLITHIC_0_SHARED_1="#"
51614     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51615         COND_MONOLITHIC_0_SHARED_1=""
51616     fi
51617
51618     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51619     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51620         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51621     fi
51622
51623     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51624     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51625         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51626     fi
51627
51628     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51629     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51630         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51631     fi
51632
51633     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51634     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51635         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51636     fi
51637
51638     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51639     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51640         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51641     fi
51642
51643     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
51644     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
51645         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
51646     fi
51647
51648     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
51649     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
51650         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
51651     fi
51652
51653     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51654     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51655         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51656     fi
51657
51658     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51659     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51660         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51661     fi
51662
51663     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51664     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51665         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51666     fi
51667
51668     COND_MONOLITHIC_0_USE_AUI_1="#"
51669     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51670         COND_MONOLITHIC_0_USE_AUI_1=""
51671     fi
51672
51673     COND_MONOLITHIC_0_USE_GUI_1="#"
51674     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51675         COND_MONOLITHIC_0_USE_GUI_1=""
51676     fi
51677
51678     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51679     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51680         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51681     fi
51682
51683     COND_MONOLITHIC_0_USE_HTML_1="#"
51684     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51685         COND_MONOLITHIC_0_USE_HTML_1=""
51686     fi
51687
51688     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51689     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51690         COND_MONOLITHIC_0_USE_MEDIA_1=""
51691     fi
51692
51693     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
51694     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
51695         COND_MONOLITHIC_0_USE_PROPGRID_1=""
51696     fi
51697
51698     COND_MONOLITHIC_0_USE_QA_1="#"
51699     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51700         COND_MONOLITHIC_0_USE_QA_1=""
51701     fi
51702
51703     COND_MONOLITHIC_0_USE_RIBBON_1="#"
51704     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
51705         COND_MONOLITHIC_0_USE_RIBBON_1=""
51706     fi
51707
51708     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51709     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51710         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51711     fi
51712
51713     COND_MONOLITHIC_0_USE_STC_1="#"
51714     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51715         COND_MONOLITHIC_0_USE_STC_1=""
51716     fi
51717
51718     COND_MONOLITHIC_0_USE_XRC_1="#"
51719     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51720         COND_MONOLITHIC_0_USE_XRC_1=""
51721     fi
51722
51723     COND_MONOLITHIC_1="#"
51724     if test "x$MONOLITHIC" = "x1" ; then
51725         COND_MONOLITHIC_1=""
51726     fi
51727
51728     COND_MONOLITHIC_1_SHARED_0="#"
51729     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
51730         COND_MONOLITHIC_1_SHARED_0=""
51731     fi
51732
51733     COND_MONOLITHIC_1_SHARED_1="#"
51734     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
51735         COND_MONOLITHIC_1_SHARED_1=""
51736     fi
51737
51738     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
51739     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
51740         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
51741     fi
51742
51743     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
51744     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
51745         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
51746     fi
51747
51748     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
51749     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51750         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
51751     fi
51752
51753     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
51754     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51755         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
51756     fi
51757
51758     COND_PLATFORM_MACOSX_1="#"
51759     if test "x$PLATFORM_MACOSX" = "x1" ; then
51760         COND_PLATFORM_MACOSX_1=""
51761     fi
51762
51763     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
51764     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
51765         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
51766     fi
51767
51768     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
51769     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
51770         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
51771     fi
51772
51773     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
51774     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
51775         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
51776     fi
51777
51778     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
51779     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51780         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
51781     fi
51782
51783     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
51784     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
51785         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
51786     fi
51787
51788     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
51789     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51790         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
51791     fi
51792
51793     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
51794     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
51795         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
51796     fi
51797
51798     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
51799     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51800         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
51801     fi
51802
51803     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51804     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51805         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51806     fi
51807
51808     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
51809     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51810         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
51811     fi
51812
51813     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51814     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51815         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51816     fi
51817
51818     COND_PLATFORM_MACOS_1="#"
51819     if test "x$PLATFORM_MACOS" = "x1" ; then
51820         COND_PLATFORM_MACOS_1=""
51821     fi
51822
51823     COND_PLATFORM_MAC_0="#"
51824     if test "x$PLATFORM_MAC" = "x0" ; then
51825         COND_PLATFORM_MAC_0=""
51826     fi
51827
51828     COND_PLATFORM_MAC_1="#"
51829     if test "x$PLATFORM_MAC" = "x1" ; then
51830         COND_PLATFORM_MAC_1=""
51831     fi
51832
51833     COND_PLATFORM_MSDOS_0="#"
51834     if test "x$PLATFORM_MSDOS" = "x0" ; then
51835         COND_PLATFORM_MSDOS_0=""
51836     fi
51837
51838     COND_PLATFORM_MSDOS_1="#"
51839     if test "x$PLATFORM_MSDOS" = "x1" ; then
51840         COND_PLATFORM_MSDOS_1=""
51841     fi
51842
51843     COND_PLATFORM_OS2_1="#"
51844     if test "x$PLATFORM_OS2" = "x1" ; then
51845         COND_PLATFORM_OS2_1=""
51846     fi
51847
51848     COND_PLATFORM_UNIX_0="#"
51849     if test "x$PLATFORM_UNIX" = "x0" ; then
51850         COND_PLATFORM_UNIX_0=""
51851     fi
51852
51853     COND_PLATFORM_UNIX_1="#"
51854     if test "x$PLATFORM_UNIX" = "x1" ; then
51855         COND_PLATFORM_UNIX_1=""
51856     fi
51857
51858     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
51859     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
51860         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
51861     fi
51862
51863     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51864     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51865         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51866     fi
51867
51868     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51869     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51870         COND_PLATFORM_UNIX_1_USE_GUI_1=""
51871     fi
51872
51873     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51874     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51875         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51876     fi
51877
51878     COND_PLATFORM_WIN32_0="#"
51879     if test "x$PLATFORM_WIN32" = "x0" ; then
51880         COND_PLATFORM_WIN32_0=""
51881     fi
51882
51883     COND_PLATFORM_WIN32_1="#"
51884     if test "x$PLATFORM_WIN32" = "x1" ; then
51885         COND_PLATFORM_WIN32_1=""
51886     fi
51887
51888     COND_PLATFORM_WIN32_1_SHARED_0="#"
51889     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
51890         COND_PLATFORM_WIN32_1_SHARED_0=""
51891     fi
51892
51893     COND_SHARED_0="#"
51894     if test "x$SHARED" = "x0" ; then
51895         COND_SHARED_0=""
51896     fi
51897
51898     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
51899     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
51900         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
51901     fi
51902
51903     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
51904     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51905         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
51906     fi
51907
51908     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
51909     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
51910         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
51911     fi
51912
51913     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51914     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51915         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51916     fi
51917
51918     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
51919     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51920         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
51921     fi
51922
51923     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
51924     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51925         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
51926     fi
51927
51928     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
51929     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51930         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
51931     fi
51932
51933     COND_SHARED_0_USE_STC_1="#"
51934     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51935         COND_SHARED_0_USE_STC_1=""
51936     fi
51937
51938     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
51939     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
51940         COND_SHARED_0_wxUSE_EXPAT_builtin=""
51941     fi
51942
51943     COND_SHARED_0_wxUSE_REGEX_builtin="#"
51944     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
51945         COND_SHARED_0_wxUSE_REGEX_builtin=""
51946     fi
51947
51948     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
51949     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
51950         COND_SHARED_0_wxUSE_ZLIB_builtin=""
51951     fi
51952
51953     COND_SHARED_1="#"
51954     if test "x$SHARED" = "x1" ; then
51955         COND_SHARED_1=""
51956     fi
51957
51958     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
51959     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51960         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
51961     fi
51962
51963     COND_TOOLKIT_="#"
51964     if test "x$TOOLKIT" = "x" ; then
51965         COND_TOOLKIT_=""
51966     fi
51967
51968     COND_TOOLKIT_COCOA="#"
51969     if test "x$TOOLKIT" = "xCOCOA" ; then
51970         COND_TOOLKIT_COCOA=""
51971     fi
51972
51973     COND_TOOLKIT_COCOA_USE_GUI_1="#"
51974     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
51975         COND_TOOLKIT_COCOA_USE_GUI_1=""
51976     fi
51977
51978     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
51979     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51980         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
51981     fi
51982
51983     COND_TOOLKIT_DFB="#"
51984     if test "x$TOOLKIT" = "xDFB" ; then
51985         COND_TOOLKIT_DFB=""
51986     fi
51987
51988     COND_TOOLKIT_DFB_USE_GUI_1="#"
51989     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
51990         COND_TOOLKIT_DFB_USE_GUI_1=""
51991     fi
51992
51993     COND_TOOLKIT_GTK="#"
51994     if test "x$TOOLKIT" = "xGTK" ; then
51995         COND_TOOLKIT_GTK=""
51996     fi
51997
51998     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
51999     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52000         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52001     fi
52002
52003     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52004     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52005         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52006     fi
52007
52008     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52009     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52010         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52011     fi
52012
52013     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52014     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52015         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52016     fi
52017
52018     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52019     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52020         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52021     fi
52022
52023     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52024     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52025         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52026     fi
52027
52028     COND_TOOLKIT_GTK_USE_GUI_1="#"
52029     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52030         COND_TOOLKIT_GTK_USE_GUI_1=""
52031     fi
52032
52033     COND_TOOLKIT_MAC="#"
52034     if test "x$TOOLKIT" = "xMAC" ; then
52035         COND_TOOLKIT_MAC=""
52036     fi
52037
52038     COND_TOOLKIT_MGL="#"
52039     if test "x$TOOLKIT" = "xMGL" ; then
52040         COND_TOOLKIT_MGL=""
52041     fi
52042
52043     COND_TOOLKIT_MGL_USE_GUI_1="#"
52044     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52045         COND_TOOLKIT_MGL_USE_GUI_1=""
52046     fi
52047
52048     COND_TOOLKIT_MOTIF="#"
52049     if test "x$TOOLKIT" = "xMOTIF" ; then
52050         COND_TOOLKIT_MOTIF=""
52051     fi
52052
52053     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52054     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52055         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52056     fi
52057
52058     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52059     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52060         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52061     fi
52062
52063     COND_TOOLKIT_MSW="#"
52064     if test "x$TOOLKIT" = "xMSW" ; then
52065         COND_TOOLKIT_MSW=""
52066     fi
52067
52068     COND_TOOLKIT_MSW_USE_GUI_1="#"
52069     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52070         COND_TOOLKIT_MSW_USE_GUI_1=""
52071     fi
52072
52073     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52074     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52075         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52076     fi
52077
52078     COND_TOOLKIT_MSW_WXUNIV_0="#"
52079     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52080         COND_TOOLKIT_MSW_WXUNIV_0=""
52081     fi
52082
52083     COND_TOOLKIT_OSX_CARBON="#"
52084     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52085         COND_TOOLKIT_OSX_CARBON=""
52086     fi
52087
52088     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52089     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52090         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52091     fi
52092
52093     COND_TOOLKIT_OSX_COCOA="#"
52094     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52095         COND_TOOLKIT_OSX_COCOA=""
52096     fi
52097
52098     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52099     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52100         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52101     fi
52102
52103     COND_TOOLKIT_OSX_IPHONE="#"
52104     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52105         COND_TOOLKIT_OSX_IPHONE=""
52106     fi
52107
52108     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52109     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52110         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52111     fi
52112
52113     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52114     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52115         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52116     fi
52117
52118     COND_TOOLKIT_PM="#"
52119     if test "x$TOOLKIT" = "xPM" ; then
52120         COND_TOOLKIT_PM=""
52121     fi
52122
52123     COND_TOOLKIT_PM_USE_GUI_1="#"
52124     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52125         COND_TOOLKIT_PM_USE_GUI_1=""
52126     fi
52127
52128     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52129     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52130         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52131     fi
52132
52133     COND_TOOLKIT_WINCE="#"
52134     if test "x$TOOLKIT" = "xWINCE" ; then
52135         COND_TOOLKIT_WINCE=""
52136     fi
52137
52138     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52139     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52140         COND_TOOLKIT_WINCE_USE_GUI_1=""
52141     fi
52142
52143     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52144     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52145         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52146     fi
52147
52148     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52149     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52150         COND_TOOLKIT_WINCE_WXUNIV_0=""
52151     fi
52152
52153     COND_TOOLKIT_X11="#"
52154     if test "x$TOOLKIT" = "xX11" ; then
52155         COND_TOOLKIT_X11=""
52156     fi
52157
52158     COND_TOOLKIT_X11_USE_GUI_1="#"
52159     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52160         COND_TOOLKIT_X11_USE_GUI_1=""
52161     fi
52162
52163     COND_UNICODE_1="#"
52164     if test "x$UNICODE" = "x1" ; then
52165         COND_UNICODE_1=""
52166     fi
52167
52168     COND_USE_CAIRO_1="#"
52169     if test "x$USE_CAIRO" = "x1" ; then
52170         COND_USE_CAIRO_1=""
52171     fi
52172
52173     COND_USE_EXCEPTIONS_0="#"
52174     if test "x$USE_EXCEPTIONS" = "x0" ; then
52175         COND_USE_EXCEPTIONS_0=""
52176     fi
52177
52178     COND_USE_EXCEPTIONS_1="#"
52179     if test "x$USE_EXCEPTIONS" = "x1" ; then
52180         COND_USE_EXCEPTIONS_1=""
52181     fi
52182
52183     COND_USE_GUI_0="#"
52184     if test "x$USE_GUI" = "x0" ; then
52185         COND_USE_GUI_0=""
52186     fi
52187
52188     COND_USE_GUI_1="#"
52189     if test "x$USE_GUI" = "x1" ; then
52190         COND_USE_GUI_1=""
52191     fi
52192
52193     COND_USE_GUI_1_USE_OPENGL_1="#"
52194     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52195         COND_USE_GUI_1_USE_OPENGL_1=""
52196     fi
52197
52198     COND_USE_GUI_1_WXUNIV_0="#"
52199     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52200         COND_USE_GUI_1_WXUNIV_0=""
52201     fi
52202
52203     COND_USE_GUI_1_WXUNIV_1="#"
52204     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52205         COND_USE_GUI_1_WXUNIV_1=""
52206     fi
52207
52208     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52209     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52210         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52211     fi
52212
52213     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52214     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52215         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52216     fi
52217
52218     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52219     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52220         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52221     fi
52222
52223     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52224     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52225         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52226     fi
52227
52228     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52229     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52230         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52231     fi
52232
52233     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52234     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52235         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52236     fi
52237
52238     COND_USE_OPENGL_1="#"
52239     if test "x$USE_OPENGL" = "x1" ; then
52240         COND_USE_OPENGL_1=""
52241     fi
52242
52243     COND_USE_PCH_1="#"
52244     if test "x$USE_PCH" = "x1" ; then
52245         COND_USE_PCH_1=""
52246     fi
52247
52248     COND_USE_PLUGINS_0="#"
52249     if test "x$USE_PLUGINS" = "x0" ; then
52250         COND_USE_PLUGINS_0=""
52251     fi
52252
52253     COND_USE_RTTI_0="#"
52254     if test "x$USE_RTTI" = "x0" ; then
52255         COND_USE_RTTI_0=""
52256     fi
52257
52258     COND_USE_RTTI_1="#"
52259     if test "x$USE_RTTI" = "x1" ; then
52260         COND_USE_RTTI_1=""
52261     fi
52262
52263     COND_USE_SOTWOSYMLINKS_1="#"
52264     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
52265         COND_USE_SOTWOSYMLINKS_1=""
52266     fi
52267
52268     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52269     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52270         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52271     fi
52272
52273     COND_USE_SOVERLINUX_1="#"
52274     if test "x$USE_SOVERLINUX" = "x1" ; then
52275         COND_USE_SOVERLINUX_1=""
52276     fi
52277
52278     COND_USE_SOVERSION_0="#"
52279     if test "x$USE_SOVERSION" = "x0" ; then
52280         COND_USE_SOVERSION_0=""
52281     fi
52282
52283     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
52284     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
52285         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
52286     fi
52287
52288     COND_USE_SOVERSOLARIS_1="#"
52289     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52290         COND_USE_SOVERSOLARIS_1=""
52291     fi
52292
52293     COND_USE_STC_1="#"
52294     if test "x$USE_STC" = "x1" ; then
52295         COND_USE_STC_1=""
52296     fi
52297
52298     COND_USE_THREADS_0="#"
52299     if test "x$USE_THREADS" = "x0" ; then
52300         COND_USE_THREADS_0=""
52301     fi
52302
52303     COND_USE_THREADS_1="#"
52304     if test "x$USE_THREADS" = "x1" ; then
52305         COND_USE_THREADS_1=""
52306     fi
52307
52308     COND_USE_XRC_1="#"
52309     if test "x$USE_XRC" = "x1" ; then
52310         COND_USE_XRC_1=""
52311     fi
52312
52313     COND_WINDOWS_IMPLIB_1="#"
52314     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52315         COND_WINDOWS_IMPLIB_1=""
52316     fi
52317
52318     COND_WITH_PLUGIN_SDL_1="#"
52319     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52320         COND_WITH_PLUGIN_SDL_1=""
52321     fi
52322
52323     COND_WXUNIV_0="#"
52324     if test "x$WXUNIV" = "x0" ; then
52325         COND_WXUNIV_0=""
52326     fi
52327
52328     COND_WXUNIV_1="#"
52329     if test "x$WXUNIV" = "x1" ; then
52330         COND_WXUNIV_1=""
52331     fi
52332
52333     COND_WXUSE_EXPAT_BUILTIN="#"
52334     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52335         COND_WXUSE_EXPAT_BUILTIN=""
52336     fi
52337
52338     COND_WXUSE_LIBJPEG_BUILTIN="#"
52339     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52340         COND_WXUSE_LIBJPEG_BUILTIN=""
52341     fi
52342
52343     COND_WXUSE_LIBPNG_BUILTIN="#"
52344     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52345         COND_WXUSE_LIBPNG_BUILTIN=""
52346     fi
52347
52348     COND_WXUSE_LIBTIFF_BUILTIN="#"
52349     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52350         COND_WXUSE_LIBTIFF_BUILTIN=""
52351     fi
52352
52353     COND_WXUSE_REGEX_BUILTIN="#"
52354     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52355         COND_WXUSE_REGEX_BUILTIN=""
52356     fi
52357
52358     COND_WXUSE_ZLIB_BUILTIN="#"
52359     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52360         COND_WXUSE_ZLIB_BUILTIN=""
52361     fi
52362
52363     COND_wxUSE_EXPAT_builtin="#"
52364     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52365         COND_wxUSE_EXPAT_builtin=""
52366     fi
52367
52368     COND_wxUSE_LIBJPEG_builtin="#"
52369     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52370         COND_wxUSE_LIBJPEG_builtin=""
52371     fi
52372
52373     COND_wxUSE_LIBPNG_builtin="#"
52374     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52375         COND_wxUSE_LIBPNG_builtin=""
52376     fi
52377
52378     COND_wxUSE_LIBTIFF_builtin="#"
52379     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52380         COND_wxUSE_LIBTIFF_builtin=""
52381     fi
52382
52383     COND_wxUSE_REGEX_builtin="#"
52384     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52385         COND_wxUSE_REGEX_builtin=""
52386     fi
52387
52388     COND_wxUSE_ZLIB_builtin="#"
52389     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52390         COND_wxUSE_ZLIB_builtin=""
52391     fi
52392
52393
52394
52395     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52396         { { 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
52397 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;}
52398    { (exit 1); exit 1; }; }
52399     fi
52400
52401     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52402         { { 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
52403 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;}
52404    { (exit 1); exit 1; }; }
52405     fi
52406
52407
52408 case ${INSTALL} in
52409   /* ) # Absolute
52410      ;;
52411   ?:* ) # Drive letter, considered as absolute.
52412      ;;
52413   *)
52414      INSTALL=`pwd`/${INSTALL} ;;
52415 esac
52416
52417 if test "$wxUSE_GUI" = "yes"; then
52418
52419 if test "$wxUSE_MSW" = 1 ; then
52420     if test "x$WINDRES" = "x"; then
52421         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52422 echo "$as_me: error: Required windres program not found" >&2;}
52423    { (exit 1); exit 1; }; }
52424     fi
52425
52426     RESCOMP="$WINDRES"
52427 fi
52428
52429 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
52430             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52431     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52432
52433         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52434
52435     # Extract the first word of "DeRez", so it can be a program name with args.
52436 set dummy DeRez; ac_word=$2
52437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52439 if test "${ac_cv_prog_DEREZ+set}" = set; then
52440   echo $ECHO_N "(cached) $ECHO_C" >&6
52441 else
52442   if test -n "$DEREZ"; then
52443   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52444 else
52445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52446 for as_dir in $PATH
52447 do
52448   IFS=$as_save_IFS
52449   test -z "$as_dir" && as_dir=.
52450   for ac_exec_ext in '' $ac_executable_extensions; do
52451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52452     ac_cv_prog_DEREZ="DeRez"
52453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52454     break 2
52455   fi
52456 done
52457 done
52458 IFS=$as_save_IFS
52459
52460   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52461 fi
52462 fi
52463 DEREZ=$ac_cv_prog_DEREZ
52464 if test -n "$DEREZ"; then
52465   { echo "$as_me:$LINENO: result: $DEREZ" >&5
52466 echo "${ECHO_T}$DEREZ" >&6; }
52467 else
52468   { echo "$as_me:$LINENO: result: no" >&5
52469 echo "${ECHO_T}no" >&6; }
52470 fi
52471
52472
52473
52474     MACSETFILE="\$(SETFILE)"
52475
52476             if test "$wxUSE_OSX_CARBON" = 1; then
52477         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
52478         RESCOMP="$REZ"
52479         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
52480     else
52481         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
52482         RESCOMP="cat /dev/null \| $REZ"
52483         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
52484     fi
52485
52486 else
52487         MACSETFILE="@true"
52488
52489     if test "$wxUSE_PM" = 1; then
52490         RESCOMP="emxbind"
52491         WXCONFIG_RESFLAGS="-ep"
52492
52493                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
52494     else
52495         POSTLINK_COMMAND="@true"
52496     fi
52497 fi
52498
52499 fi
52500
52501
52502 if test $GCC_PCH = 1
52503 then
52504     if test "$wx_cv_gcc_pch_bug" = yes; then
52505         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52506 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52507         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52508 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52509         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52510 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52511     fi
52512
52513     # Our WX_PRECOMP flag does not make sense for any language except C++ because
52514     # the headers that benefit from precompilation are mostly C++ headers.
52515     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
52516     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
52517     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
52518 fi
52519
52520
52521 if test "$wxUSE_MAC" = 1 ; then
52522     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52523         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52524         mv temp bk-deps
52525         chmod +x bk-deps
52526     fi
52527 fi
52528
52529 if test "$wxUSE_SHARED" = "yes"; then
52530                 case "${host}" in
52531       *-pc-os2_emx | *-pc-os2-emx )
52532         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52533         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52534         cp -p ${srcdir}/src/os2/dllnames.sh .
52535         cp -p ${srcdir}/src/os2/dllar.sh .
52536       ;;
52537     esac
52538 fi
52539 if test "$wxUSE_OMF" = "yes"; then
52540     case "${host}" in
52541       *-pc-os2_emx | *-pc-os2-emx )
52542         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52543         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52544         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52545       ;;
52546     esac
52547 fi
52548
52549 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52550
52551
52552 case "${host}" in
52553     *-*-solaris2* )
52554                         if test "$GCC" = yes; then
52555             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52556             LIBS=`echo $LIBS | sed 's/-mt//'`
52557             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52558         fi
52559         ;;
52560
52561     *-*-linux* )
52562                         if test "x$SUNCXX" = xyes; then
52563             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52564             LIBS=`echo $LIBS | sed 's/-pthread//'`
52565             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52566         fi
52567         ;;
52568 esac
52569
52570 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52571 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52572 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
52573 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
52574
52575 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591
52592
52593
52594
52595
52596
52597
52598
52599
52600
52601
52602
52603
52604
52605
52606
52607
52608
52609
52610
52611
52612
52613
52614
52615
52616
52617
52618
52619
52620
52621
52622
52623
52624
52625
52626
52627
52628
52629
52630
52631
52632
52633
52634
52635
52636 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52637 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52638 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52639 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52640   echo $ECHO_N "(cached) $ECHO_C" >&6
52641 else
52642   cat >conftest.make <<\_ACEOF
52643 SHELL = /bin/sh
52644 all:
52645         @echo '@@@%%%=$(MAKE)=@@@%%%'
52646 _ACEOF
52647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52649   *@@@%%%=?*=@@@%%%*)
52650     eval ac_cv_prog_make_${ac_make}_set=yes;;
52651   *)
52652     eval ac_cv_prog_make_${ac_make}_set=no;;
52653 esac
52654 rm -f conftest.make
52655 fi
52656 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52657   { echo "$as_me:$LINENO: result: yes" >&5
52658 echo "${ECHO_T}yes" >&6; }
52659   SET_MAKE=
52660 else
52661   { echo "$as_me:$LINENO: result: no" >&5
52662 echo "${ECHO_T}no" >&6; }
52663   SET_MAKE="MAKE=${MAKE-make}"
52664 fi
52665
52666
52667
52668 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52669
52670
52671 if test "$USE_WIN32" = 1; then
52672     ac_config_commands="$ac_config_commands rcdefs.h"
52673
52674 fi
52675
52676 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52677
52678
52679 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52680
52681
52682 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
52683
52684
52685 if test "$wx_cv_version_script" = "yes"; then
52686     ac_config_files="$ac_config_files version-script"
52687
52688 fi
52689 ac_config_files="$ac_config_files Makefile"
52690
52691
52692 ac_config_commands="$ac_config_commands wx-config"
52693
52694
52695
52696 if test "$wxWITH_SUBDIRS" != "no"; then
52697 if test "$wxUSE_GUI" = "yes"; then
52698     SUBDIRS="samples demos utils"
52699 else
52700             SUBDIRS="samples utils"
52701 fi
52702
52703
52704
52705 # Check whether --with-cppunit-prefix was given.
52706 if test "${with_cppunit_prefix+set}" = set; then
52707   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52708 else
52709   cppunit_config_prefix=""
52710 fi
52711
52712
52713 # Check whether --with-cppunit-exec-prefix was given.
52714 if test "${with_cppunit_exec_prefix+set}" = set; then
52715   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52716 else
52717   cppunit_config_exec_prefix=""
52718 fi
52719
52720
52721   if test x$cppunit_config_exec_prefix != x ; then
52722      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52723      if test x${CPPUNIT_CONFIG+set} != xset ; then
52724         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52725      fi
52726   fi
52727   if test x$cppunit_config_prefix != x ; then
52728      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52729      if test x${CPPUNIT_CONFIG+set} != xset ; then
52730         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52731      fi
52732   fi
52733
52734   # Extract the first word of "cppunit-config", so it can be a program name with args.
52735 set dummy cppunit-config; ac_word=$2
52736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52738 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52739   echo $ECHO_N "(cached) $ECHO_C" >&6
52740 else
52741   case $CPPUNIT_CONFIG in
52742   [\\/]* | ?:[\\/]*)
52743   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52744   ;;
52745   *)
52746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52747 for as_dir in $PATH
52748 do
52749   IFS=$as_save_IFS
52750   test -z "$as_dir" && as_dir=.
52751   for ac_exec_ext in '' $ac_executable_extensions; do
52752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52753     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52755     break 2
52756   fi
52757 done
52758 done
52759 IFS=$as_save_IFS
52760
52761   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52762   ;;
52763 esac
52764 fi
52765 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52766 if test -n "$CPPUNIT_CONFIG"; then
52767   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52768 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52769 else
52770   { echo "$as_me:$LINENO: result: no" >&5
52771 echo "${ECHO_T}no" >&6; }
52772 fi
52773
52774
52775   cppunit_version_min=1.8.0
52776
52777   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52778 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52779   no_cppunit=""
52780   if test "$CPPUNIT_CONFIG" = "no" ; then
52781     { echo "$as_me:$LINENO: result: no" >&5
52782 echo "${ECHO_T}no" >&6; }
52783     no_cppunit=yes
52784   else
52785     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52786     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52787     cppunit_version=`$CPPUNIT_CONFIG --version`
52788
52789     cppunit_major_version=`echo $cppunit_version | \
52790            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52791     cppunit_minor_version=`echo $cppunit_version | \
52792            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52793     cppunit_micro_version=`echo $cppunit_version | \
52794            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52795
52796     cppunit_major_min=`echo $cppunit_version_min | \
52797            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52798     cppunit_minor_min=`echo $cppunit_version_min | \
52799            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52800     cppunit_micro_min=`echo $cppunit_version_min | \
52801            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52802
52803     cppunit_version_proper=`expr \
52804         $cppunit_major_version \> $cppunit_major_min \| \
52805         $cppunit_major_version \= $cppunit_major_min \& \
52806         $cppunit_minor_version \> $cppunit_minor_min \| \
52807         $cppunit_major_version \= $cppunit_major_min \& \
52808         $cppunit_minor_version \= $cppunit_minor_min \& \
52809         $cppunit_micro_version \>= $cppunit_micro_min `
52810
52811     if test "$cppunit_version_proper" = "1" ; then
52812       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52813 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52814     else
52815       { echo "$as_me:$LINENO: result: no" >&5
52816 echo "${ECHO_T}no" >&6; }
52817       no_cppunit=yes
52818     fi
52819   fi
52820
52821   if test "x$no_cppunit" = x ; then
52822      SUBDIRS="$SUBDIRS tests"
52823   else
52824      CPPUNIT_CFLAGS=""
52825      CPPUNIT_LIBS=""
52826      :
52827   fi
52828
52829
52830
52831
52832
52833 for subdir in $SUBDIRS; do
52834     if test -d ${srcdir}/${subdir} ; then
52835         if test "$wxUSE_GUI" = "yes"; then
52836             if test ${subdir} = "samples"; then
52837                                                 makefiles="samples/Makefile.in $makefiles"
52838                 for sample in $SAMPLES_SUBDIRS; do
52839                     if test -d $srcdir/samples/$sample; then
52840                         makefiles="samples/$sample/Makefile.in $makefiles"
52841                     fi
52842                 done
52843             else
52844                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
52845                 eval "disabled=\$$disabled_var"
52846                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52847                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52848             fi
52849         else
52850                                     if test ${subdir} = "samples"; then
52851                                                 makefiles="samples/Makefile.in $makefiles"
52852                 for sample in `echo $SAMPLES_SUBDIRS`; do
52853                     if test -d $srcdir/samples/$sample; then
52854                         makefiles="samples/$sample/Makefile.in $makefiles"
52855                     fi
52856                 done
52857             elif test ${subdir} = "utils"; then
52858                 makefiles=""
52859                 for util in ifacecheck ; do
52860                     if test -d $srcdir/utils/$util ; then
52861                         makefiles="utils/$util/src/Makefile.in \
52862                                    $makefiles"
52863                     fi
52864                 done
52865             else
52866                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
52867             fi
52868         fi
52869
52870         for mkin in $makefiles ; do
52871             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
52872             ac_config_files="$ac_config_files $mk"
52873
52874         done
52875     fi
52876 done
52877 fi
52878 cat >confcache <<\_ACEOF
52879 # This file is a shell script that caches the results of configure
52880 # tests run on this system so they can be shared between configure
52881 # scripts and configure runs, see configure's option --config-cache.
52882 # It is not useful on other systems.  If it contains results you don't
52883 # want to keep, you may remove or edit it.
52884 #
52885 # config.status only pays attention to the cache file if you give it
52886 # the --recheck option to rerun configure.
52887 #
52888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52890 # following values.
52891
52892 _ACEOF
52893
52894 # The following way of writing the cache mishandles newlines in values,
52895 # but we know of no workaround that is simple, portable, and efficient.
52896 # So, we kill variables containing newlines.
52897 # Ultrix sh set writes to stderr and can't be redirected directly,
52898 # and sets the high bit in the cache file unless we assign to the vars.
52899 (
52900   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52901     eval ac_val=\$$ac_var
52902     case $ac_val in #(
52903     *${as_nl}*)
52904       case $ac_var in #(
52905       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52906 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52907       esac
52908       case $ac_var in #(
52909       _ | IFS | as_nl) ;; #(
52910       *) $as_unset $ac_var ;;
52911       esac ;;
52912     esac
52913   done
52914
52915   (set) 2>&1 |
52916     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52917     *${as_nl}ac_space=\ *)
52918       # `set' does not quote correctly, so add quotes (double-quote
52919       # substitution turns \\\\ into \\, and sed turns \\ into \).
52920       sed -n \
52921         "s/'/'\\\\''/g;
52922           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52923       ;; #(
52924     *)
52925       # `set' quotes correctly as required by POSIX, so do not add quotes.
52926       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52927       ;;
52928     esac |
52929     sort
52930 ) |
52931   sed '
52932      /^ac_cv_env_/b end
52933      t clear
52934      :clear
52935      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52936      t end
52937      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52938      :end' >>confcache
52939 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52940   if test -w "$cache_file"; then
52941     test "x$cache_file" != "x/dev/null" &&
52942       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52943 echo "$as_me: updating cache $cache_file" >&6;}
52944     cat confcache >$cache_file
52945   else
52946     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52947 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52948   fi
52949 fi
52950 rm -f confcache
52951
52952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52953 # Let make expand exec_prefix.
52954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52955
52956 DEFS=-DHAVE_CONFIG_H
52957
52958 ac_libobjs=
52959 ac_ltlibobjs=
52960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52961   # 1. Remove the extension, and $U if already installed.
52962   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52963   ac_i=`echo "$ac_i" | sed "$ac_script"`
52964   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52965   #    will be set to the directory where LIBOBJS objects are built.
52966   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52967   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52968 done
52969 LIBOBJS=$ac_libobjs
52970
52971 LTLIBOBJS=$ac_ltlibobjs
52972
52973
52974
52975 : ${CONFIG_STATUS=./config.status}
52976 ac_clean_files_save=$ac_clean_files
52977 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52978 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52979 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52980 cat >$CONFIG_STATUS <<_ACEOF
52981 #! $SHELL
52982 # Generated by $as_me.
52983 # Run this file to recreate the current configuration.
52984 # Compiler output produced by configure, useful for debugging
52985 # configure, is in config.log if it exists.
52986
52987 debug=false
52988 ac_cs_recheck=false
52989 ac_cs_silent=false
52990 SHELL=\${CONFIG_SHELL-$SHELL}
52991 _ACEOF
52992
52993 cat >>$CONFIG_STATUS <<\_ACEOF
52994 ## --------------------- ##
52995 ## M4sh Initialization.  ##
52996 ## --------------------- ##
52997
52998 # Be more Bourne compatible
52999 DUALCASE=1; export DUALCASE # for MKS sh
53000 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53001   emulate sh
53002   NULLCMD=:
53003   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53004   # is contrary to our usage.  Disable this feature.
53005   alias -g '${1+"$@"}'='"$@"'
53006   setopt NO_GLOB_SUBST
53007 else
53008   case `(set -o) 2>/dev/null` in
53009   *posix*) set -o posix ;;
53010 esac
53011
53012 fi
53013
53014
53015
53016
53017 # PATH needs CR
53018 # Avoid depending upon Character Ranges.
53019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53022 as_cr_digits='0123456789'
53023 as_cr_alnum=$as_cr_Letters$as_cr_digits
53024
53025 # The user is always right.
53026 if test "${PATH_SEPARATOR+set}" != set; then
53027   echo "#! /bin/sh" >conf$$.sh
53028   echo  "exit 0"   >>conf$$.sh
53029   chmod +x conf$$.sh
53030   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53031     PATH_SEPARATOR=';'
53032   else
53033     PATH_SEPARATOR=:
53034   fi
53035   rm -f conf$$.sh
53036 fi
53037
53038 # Support unset when possible.
53039 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53040   as_unset=unset
53041 else
53042   as_unset=false
53043 fi
53044
53045
53046 # IFS
53047 # We need space, tab and new line, in precisely that order.  Quoting is
53048 # there to prevent editors from complaining about space-tab.
53049 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53050 # splitting by setting IFS to empty value.)
53051 as_nl='
53052 '
53053 IFS=" ""        $as_nl"
53054
53055 # Find who we are.  Look in the path if we contain no directory separator.
53056 case $0 in
53057   *[\\/]* ) as_myself=$0 ;;
53058   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53059 for as_dir in $PATH
53060 do
53061   IFS=$as_save_IFS
53062   test -z "$as_dir" && as_dir=.
53063   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53064 done
53065 IFS=$as_save_IFS
53066
53067      ;;
53068 esac
53069 # We did not find ourselves, most probably we were run as `sh COMMAND'
53070 # in which case we are not to be found in the path.
53071 if test "x$as_myself" = x; then
53072   as_myself=$0
53073 fi
53074 if test ! -f "$as_myself"; then
53075   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53076   { (exit 1); exit 1; }
53077 fi
53078
53079 # Work around bugs in pre-3.0 UWIN ksh.
53080 for as_var in ENV MAIL MAILPATH
53081 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53082 done
53083 PS1='$ '
53084 PS2='> '
53085 PS4='+ '
53086
53087 # NLS nuisances.
53088 for as_var in \
53089   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53090   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53091   LC_TELEPHONE LC_TIME
53092 do
53093   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53094     eval $as_var=C; export $as_var
53095   else
53096     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53097   fi
53098 done
53099
53100 # Required to use basename.
53101 if expr a : '\(a\)' >/dev/null 2>&1 &&
53102    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53103   as_expr=expr
53104 else
53105   as_expr=false
53106 fi
53107
53108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53109   as_basename=basename
53110 else
53111   as_basename=false
53112 fi
53113
53114
53115 # Name of the executable.
53116 as_me=`$as_basename -- "$0" ||
53117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53118          X"$0" : 'X\(//\)$' \| \
53119          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53120 echo X/"$0" |
53121     sed '/^.*\/\([^/][^/]*\)\/*$/{
53122             s//\1/
53123             q
53124           }
53125           /^X\/\(\/\/\)$/{
53126             s//\1/
53127             q
53128           }
53129           /^X\/\(\/\).*/{
53130             s//\1/
53131             q
53132           }
53133           s/.*/./; q'`
53134
53135 # CDPATH.
53136 $as_unset CDPATH
53137
53138
53139
53140   as_lineno_1=$LINENO
53141   as_lineno_2=$LINENO
53142   test "x$as_lineno_1" != "x$as_lineno_2" &&
53143   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53144
53145   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53146   # uniformly replaced by the line number.  The first 'sed' inserts a
53147   # line-number line after each line using $LINENO; the second 'sed'
53148   # does the real work.  The second script uses 'N' to pair each
53149   # line-number line with the line containing $LINENO, and appends
53150   # trailing '-' during substitution so that $LINENO is not a special
53151   # case at line end.
53152   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53153   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53154   # E. McMahon (1931-1989) for sed's syntax.  :-)
53155   sed -n '
53156     p
53157     /[$]LINENO/=
53158   ' <$as_myself |
53159     sed '
53160       s/[$]LINENO.*/&-/
53161       t lineno
53162       b
53163       :lineno
53164       N
53165       :loop
53166       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53167       t loop
53168       s/-\n.*//
53169     ' >$as_me.lineno &&
53170   chmod +x "$as_me.lineno" ||
53171     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53172    { (exit 1); exit 1; }; }
53173
53174   # Don't try to exec as it changes $[0], causing all sort of problems
53175   # (the dirname of $[0] is not the place where we might find the
53176   # original and so on.  Autoconf is especially sensitive to this).
53177   . "./$as_me.lineno"
53178   # Exit status is that of the last command.
53179   exit
53180 }
53181
53182
53183 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53184   as_dirname=dirname
53185 else
53186   as_dirname=false
53187 fi
53188
53189 ECHO_C= ECHO_N= ECHO_T=
53190 case `echo -n x` in
53191 -n*)
53192   case `echo 'x\c'` in
53193   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53194   *)   ECHO_C='\c';;
53195   esac;;
53196 *)
53197   ECHO_N='-n';;
53198 esac
53199
53200 if expr a : '\(a\)' >/dev/null 2>&1 &&
53201    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53202   as_expr=expr
53203 else
53204   as_expr=false
53205 fi
53206
53207 rm -f conf$$ conf$$.exe conf$$.file
53208 if test -d conf$$.dir; then
53209   rm -f conf$$.dir/conf$$.file
53210 else
53211   rm -f conf$$.dir
53212   mkdir conf$$.dir
53213 fi
53214 echo >conf$$.file
53215 if ln -s conf$$.file conf$$ 2>/dev/null; then
53216   as_ln_s='ln -s'
53217   # ... but there are two gotchas:
53218   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53219   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53220   # In both cases, we have to default to `cp -p'.
53221   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53222     as_ln_s='cp -p'
53223 elif ln conf$$.file conf$$ 2>/dev/null; then
53224   as_ln_s=ln
53225 else
53226   as_ln_s='cp -p'
53227 fi
53228 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53229 rmdir conf$$.dir 2>/dev/null
53230
53231 if mkdir -p . 2>/dev/null; then
53232   as_mkdir_p=:
53233 else
53234   test -d ./-p && rmdir ./-p
53235   as_mkdir_p=false
53236 fi
53237
53238 if test -x / >/dev/null 2>&1; then
53239   as_test_x='test -x'
53240 else
53241   if ls -dL / >/dev/null 2>&1; then
53242     as_ls_L_option=L
53243   else
53244     as_ls_L_option=
53245   fi
53246   as_test_x='
53247     eval sh -c '\''
53248       if test -d "$1"; then
53249         test -d "$1/.";
53250       else
53251         case $1 in
53252         -*)set "./$1";;
53253         esac;
53254         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53255         ???[sx]*):;;*)false;;esac;fi
53256     '\'' sh
53257   '
53258 fi
53259 as_executable_p=$as_test_x
53260
53261 # Sed expression to map a string onto a valid CPP name.
53262 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53263
53264 # Sed expression to map a string onto a valid variable name.
53265 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53266
53267
53268 exec 6>&1
53269
53270 # Save the log message, to keep $[0] and so on meaningful, and to
53271 # report actual input values of CONFIG_FILES etc. instead of their
53272 # values after options handling.
53273 ac_log="
53274 This file was extended by wxWidgets $as_me 2.9.2, which was
53275 generated by GNU Autoconf 2.61.  Invocation command line was
53276
53277   CONFIG_FILES    = $CONFIG_FILES
53278   CONFIG_HEADERS  = $CONFIG_HEADERS
53279   CONFIG_LINKS    = $CONFIG_LINKS
53280   CONFIG_COMMANDS = $CONFIG_COMMANDS
53281   $ $0 $@
53282
53283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53284 "
53285
53286 _ACEOF
53287
53288 cat >>$CONFIG_STATUS <<_ACEOF
53289 # Files that config.status was made for.
53290 config_files="$ac_config_files"
53291 config_headers="$ac_config_headers"
53292 config_commands="$ac_config_commands"
53293
53294 _ACEOF
53295
53296 cat >>$CONFIG_STATUS <<\_ACEOF
53297 ac_cs_usage="\
53298 \`$as_me' instantiates files from templates according to the
53299 current configuration.
53300
53301 Usage: $0 [OPTIONS] [FILE]...
53302
53303   -h, --help       print this help, then exit
53304   -V, --version    print version number and configuration settings, then exit
53305   -q, --quiet      do not print progress messages
53306   -d, --debug      don't remove temporary files
53307       --recheck    update $as_me by reconfiguring in the same conditions
53308   --file=FILE[:TEMPLATE]
53309                    instantiate the configuration file FILE
53310   --header=FILE[:TEMPLATE]
53311                    instantiate the configuration header FILE
53312
53313 Configuration files:
53314 $config_files
53315
53316 Configuration headers:
53317 $config_headers
53318
53319 Configuration commands:
53320 $config_commands
53321
53322 Report bugs to <bug-autoconf@gnu.org>."
53323
53324 _ACEOF
53325 cat >>$CONFIG_STATUS <<_ACEOF
53326 ac_cs_version="\\
53327 wxWidgets config.status 2.9.2
53328 configured by $0, generated by GNU Autoconf 2.61,
53329   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53330
53331 Copyright (C) 2006 Free Software Foundation, Inc.
53332 This config.status script is free software; the Free Software Foundation
53333 gives unlimited permission to copy, distribute and modify it."
53334
53335 ac_pwd='$ac_pwd'
53336 srcdir='$srcdir'
53337 INSTALL='$INSTALL'
53338 _ACEOF
53339
53340 cat >>$CONFIG_STATUS <<\_ACEOF
53341 # If no file are specified by the user, then we need to provide default
53342 # value.  By we need to know if files were specified by the user.
53343 ac_need_defaults=:
53344 while test $# != 0
53345 do
53346   case $1 in
53347   --*=*)
53348     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53349     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53350     ac_shift=:
53351     ;;
53352   *)
53353     ac_option=$1
53354     ac_optarg=$2
53355     ac_shift=shift
53356     ;;
53357   esac
53358
53359   case $ac_option in
53360   # Handling of the options.
53361   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53362     ac_cs_recheck=: ;;
53363   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53364     echo "$ac_cs_version"; exit ;;
53365   --debug | --debu | --deb | --de | --d | -d )
53366     debug=: ;;
53367   --file | --fil | --fi | --f )
53368     $ac_shift
53369     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53370     ac_need_defaults=false;;
53371   --header | --heade | --head | --hea )
53372     $ac_shift
53373     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53374     ac_need_defaults=false;;
53375   --he | --h)
53376     # Conflict between --help and --header
53377     { echo "$as_me: error: ambiguous option: $1
53378 Try \`$0 --help' for more information." >&2
53379    { (exit 1); exit 1; }; };;
53380   --help | --hel | -h )
53381     echo "$ac_cs_usage"; exit ;;
53382   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53383   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53384     ac_cs_silent=: ;;
53385
53386   # This is an error.
53387   -*) { echo "$as_me: error: unrecognized option: $1
53388 Try \`$0 --help' for more information." >&2
53389    { (exit 1); exit 1; }; } ;;
53390
53391   *) ac_config_targets="$ac_config_targets $1"
53392      ac_need_defaults=false ;;
53393
53394   esac
53395   shift
53396 done
53397
53398 ac_configure_extra_args=
53399
53400 if $ac_cs_silent; then
53401   exec 6>/dev/null
53402   ac_configure_extra_args="$ac_configure_extra_args --silent"
53403 fi
53404
53405 _ACEOF
53406 cat >>$CONFIG_STATUS <<_ACEOF
53407 if \$ac_cs_recheck; then
53408   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53409   CONFIG_SHELL=$SHELL
53410   export CONFIG_SHELL
53411   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53412 fi
53413
53414 _ACEOF
53415 cat >>$CONFIG_STATUS <<\_ACEOF
53416 exec 5>>config.log
53417 {
53418   echo
53419   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53420 ## Running $as_me. ##
53421 _ASBOX
53422   echo "$ac_log"
53423 } >&5
53424
53425 _ACEOF
53426 cat >>$CONFIG_STATUS <<_ACEOF
53427 #
53428 # INIT-COMMANDS
53429 #
53430
53431             CPP="$CPP"
53432             infile="$srcdir/include/wx/msw/genrcdefs.h"
53433             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53434
53435
53436  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53437  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53438  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53439                      LN_S="${LN_S}"
53440
53441
53442 _ACEOF
53443
53444 cat >>$CONFIG_STATUS <<\_ACEOF
53445
53446 # Handling of arguments.
53447 for ac_config_target in $ac_config_targets
53448 do
53449   case $ac_config_target in
53450     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53451     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53452     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53453     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53454     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
53455     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53456     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53457     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53458     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53459
53460   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53461 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53462    { (exit 1); exit 1; }; };;
53463   esac
53464 done
53465
53466
53467 # If the user did not use the arguments to specify the items to instantiate,
53468 # then the envvar interface is used.  Set only those that are not.
53469 # We use the long form for the default assignment because of an extremely
53470 # bizarre bug on SunOS 4.1.3.
53471 if $ac_need_defaults; then
53472   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53473   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53474   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53475 fi
53476
53477 # Have a temporary directory for convenience.  Make it in the build tree
53478 # simply because there is no reason against having it here, and in addition,
53479 # creating and moving files from /tmp can sometimes cause problems.
53480 # Hook for its removal unless debugging.
53481 # Note that there is a small window in which the directory will not be cleaned:
53482 # after its creation but before its name has been assigned to `$tmp'.
53483 $debug ||
53484 {
53485   tmp=
53486   trap 'exit_status=$?
53487   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53488 ' 0
53489   trap '{ (exit 1); exit 1; }' 1 2 13 15
53490 }
53491 # Create a (secure) tmp directory for tmp files.
53492
53493 {
53494   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53495   test -n "$tmp" && test -d "$tmp"
53496 }  ||
53497 {
53498   tmp=./conf$$-$RANDOM
53499   (umask 077 && mkdir "$tmp")
53500 } ||
53501 {
53502    echo "$me: cannot create a temporary directory in ." >&2
53503    { (exit 1); exit 1; }
53504 }
53505
53506 #
53507 # Set up the sed scripts for CONFIG_FILES section.
53508 #
53509
53510 # No need to generate the scripts if there are no CONFIG_FILES.
53511 # This happens for instance when ./config.status config.h
53512 if test -n "$CONFIG_FILES"; then
53513
53514 _ACEOF
53515
53516
53517
53518 ac_delim='%!_!# '
53519 for ac_last_try in false false false false false :; do
53520   cat >conf$$subs.sed <<_ACEOF
53521 SHELL!$SHELL$ac_delim
53522 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53523 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53524 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53525 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53526 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53527 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53528 exec_prefix!$exec_prefix$ac_delim
53529 prefix!$prefix$ac_delim
53530 program_transform_name!$program_transform_name$ac_delim
53531 bindir!$bindir$ac_delim
53532 sbindir!$sbindir$ac_delim
53533 libexecdir!$libexecdir$ac_delim
53534 datarootdir!$datarootdir$ac_delim
53535 datadir!$datadir$ac_delim
53536 sysconfdir!$sysconfdir$ac_delim
53537 sharedstatedir!$sharedstatedir$ac_delim
53538 localstatedir!$localstatedir$ac_delim
53539 includedir!$includedir$ac_delim
53540 oldincludedir!$oldincludedir$ac_delim
53541 docdir!$docdir$ac_delim
53542 infodir!$infodir$ac_delim
53543 htmldir!$htmldir$ac_delim
53544 dvidir!$dvidir$ac_delim
53545 pdfdir!$pdfdir$ac_delim
53546 psdir!$psdir$ac_delim
53547 libdir!$libdir$ac_delim
53548 localedir!$localedir$ac_delim
53549 mandir!$mandir$ac_delim
53550 DEFS!$DEFS$ac_delim
53551 ECHO_C!$ECHO_C$ac_delim
53552 ECHO_N!$ECHO_N$ac_delim
53553 ECHO_T!$ECHO_T$ac_delim
53554 LIBS!$LIBS$ac_delim
53555 build_alias!$build_alias$ac_delim
53556 host_alias!$host_alias$ac_delim
53557 target_alias!$target_alias$ac_delim
53558 build!$build$ac_delim
53559 build_cpu!$build_cpu$ac_delim
53560 build_vendor!$build_vendor$ac_delim
53561 build_os!$build_os$ac_delim
53562 host!$host$ac_delim
53563 host_cpu!$host_cpu$ac_delim
53564 host_vendor!$host_vendor$ac_delim
53565 host_os!$host_os$ac_delim
53566 wx_top_builddir!$wx_top_builddir$ac_delim
53567 CC!$CC$ac_delim
53568 CFLAGS!$CFLAGS$ac_delim
53569 LDFLAGS!$LDFLAGS$ac_delim
53570 CPPFLAGS!$CPPFLAGS$ac_delim
53571 ac_ct_CC!$ac_ct_CC$ac_delim
53572 EXEEXT!$EXEEXT$ac_delim
53573 OBJEXT!$OBJEXT$ac_delim
53574 CPP!$CPP$ac_delim
53575 GREP!$GREP$ac_delim
53576 EGREP!$EGREP$ac_delim
53577 CXX!$CXX$ac_delim
53578 CXXFLAGS!$CXXFLAGS$ac_delim
53579 ac_ct_CXX!$ac_ct_CXX$ac_delim
53580 AR!$AR$ac_delim
53581 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
53582 CXXCPP!$CXXCPP$ac_delim
53583 subdirs!$subdirs$ac_delim
53584 PKG_CONFIG!$PKG_CONFIG$ac_delim
53585 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53586 GTK_LIBS!$GTK_LIBS$ac_delim
53587 GTK_CONFIG!$GTK_CONFIG$ac_delim
53588 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53589 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53590 XMKMF!$XMKMF$ac_delim
53591 X_CFLAGS!$X_CFLAGS$ac_delim
53592 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53593 X_LIBS!$X_LIBS$ac_delim
53594 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53595 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53596 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53597 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53598 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53599 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53600 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53601 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53602 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53603 LIBICONV!$LIBICONV$ac_delim
53604 GXX_VERSION!$GXX_VERSION$ac_delim
53605 SDL_CONFIG!$SDL_CONFIG$ac_delim
53606 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53607 SDL_LIBS!$SDL_LIBS$ac_delim
53608 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
53609 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
53610 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53611 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53612 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53613 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53614 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53615 HILDON_LIBS!$HILDON_LIBS$ac_delim
53616 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
53617 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
53618 _ACEOF
53619
53620   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53621     break
53622   elif $ac_last_try; then
53623     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53624 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53625    { (exit 1); exit 1; }; }
53626   else
53627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53628   fi
53629 done
53630
53631 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53632 if test -n "$ac_eof"; then
53633   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53634   ac_eof=`expr $ac_eof + 1`
53635 fi
53636
53637 cat >>$CONFIG_STATUS <<_ACEOF
53638 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53640 _ACEOF
53641 sed '
53642 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53643 s/^/s,@/; s/!/@,|#_!!_#|/
53644 :n
53645 t n
53646 s/'"$ac_delim"'$/,g/; t
53647 s/$/\\/; p
53648 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53649 ' >>$CONFIG_STATUS <conf$$subs.sed
53650 rm -f conf$$subs.sed
53651 cat >>$CONFIG_STATUS <<_ACEOF
53652 CEOF$ac_eof
53653 _ACEOF
53654
53655
53656 ac_delim='%!_!# '
53657 for ac_last_try in false false false false false :; do
53658   cat >conf$$subs.sed <<_ACEOF
53659 PYTHON!$PYTHON$ac_delim
53660 COND_PYTHON!$COND_PYTHON$ac_delim
53661 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53662 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53663 GST_CFLAGS!$GST_CFLAGS$ac_delim
53664 GST_LIBS!$GST_LIBS$ac_delim
53665 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53666 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53667 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53668 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53669 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53670 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53671 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53672 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53673 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53674 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53675 VENDOR!$VENDOR$ac_delim
53676 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53677 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53678 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53679 WXUNIV!$WXUNIV$ac_delim
53680 MONOLITHIC!$MONOLITHIC$ac_delim
53681 USE_PLUGINS!$USE_PLUGINS$ac_delim
53682 CXXWARNINGS!$CXXWARNINGS$ac_delim
53683 EXTRALIBS!$EXTRALIBS$ac_delim
53684 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53685 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53686 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
53687 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53688 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53689 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53690 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
53691 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53692 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
53693 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53694 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53695 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53696 UNICODE!$UNICODE$ac_delim
53697 DEBUG_INFO!$DEBUG_INFO$ac_delim
53698 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53699 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53700 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53701 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
53702 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
53703 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53704 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
53705 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53706 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53707 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53708 RANLIB!$RANLIB$ac_delim
53709 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53710 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53711 INSTALL_DATA!$INSTALL_DATA$ac_delim
53712 LN_S!$LN_S$ac_delim
53713 SET_MAKE!$SET_MAKE$ac_delim
53714 MAKE_SET!$MAKE_SET$ac_delim
53715 AROPTIONS!$AROPTIONS$ac_delim
53716 STRIP!$STRIP$ac_delim
53717 NM!$NM$ac_delim
53718 INSTALL_DIR!$INSTALL_DIR$ac_delim
53719 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53720 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53721 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53722 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53723 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53724 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53725 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53726 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53727 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53728 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53729 SO_SUFFIX!$SO_SUFFIX$ac_delim
53730 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53731 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53732 LIBPREFIX!$LIBPREFIX$ac_delim
53733 LIBEXT!$LIBEXT$ac_delim
53734 DLLPREFIX!$DLLPREFIX$ac_delim
53735 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53736 dlldir!$dlldir$ac_delim
53737 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53738 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53739 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53740 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53741 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53742 PIC_FLAG!$PIC_FLAG$ac_delim
53743 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53744 USE_SOVERSION!$USE_SOVERSION$ac_delim
53745 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53746 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53747 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53748 USE_MACVERSION!$USE_MACVERSION$ac_delim
53749 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
53750 SONAME_FLAG!$SONAME_FLAG$ac_delim
53751 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53752 BK_DEPS!$BK_DEPS$ac_delim
53753 WINDRES!$WINDRES$ac_delim
53754 REZ!$REZ$ac_delim
53755 SETFILE!$SETFILE$ac_delim
53756 _ACEOF
53757
53758   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53759     break
53760   elif $ac_last_try; then
53761     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53762 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53763    { (exit 1); exit 1; }; }
53764   else
53765     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53766   fi
53767 done
53768
53769 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53770 if test -n "$ac_eof"; then
53771   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53772   ac_eof=`expr $ac_eof + 1`
53773 fi
53774
53775 cat >>$CONFIG_STATUS <<_ACEOF
53776 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53778 _ACEOF
53779 sed '
53780 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53781 s/^/s,@/; s/!/@,|#_!!_#|/
53782 :n
53783 t n
53784 s/'"$ac_delim"'$/,g/; t
53785 s/$/\\/; p
53786 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53787 ' >>$CONFIG_STATUS <conf$$subs.sed
53788 rm -f conf$$subs.sed
53789 cat >>$CONFIG_STATUS <<_ACEOF
53790 CEOF$ac_eof
53791 _ACEOF
53792
53793
53794 ac_delim='%!_!# '
53795 for ac_last_try in false false false false false :; do
53796   cat >conf$$subs.sed <<_ACEOF
53797 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
53798 GCC_PCH!$GCC_PCH$ac_delim
53799 ICC_PCH!$ICC_PCH$ac_delim
53800 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
53801 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
53802 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53803 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53804 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53805 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53806 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53807 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53808 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53809 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53810 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53811 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53812 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
53813 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
53814 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
53815 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
53816 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
53817 COND_BUILD_release!$COND_BUILD_release$ac_delim
53818 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
53819 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
53820 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
53821 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
53822 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53823 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53824 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53825 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53826 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53827 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53828 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53829 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53830 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53831 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53835 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53836 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
53837 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
53838 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53839 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53840 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53841 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53842 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53846 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53847 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
53848 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
53849 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53850 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53851 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53852 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53853 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53854 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53855 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53856 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53857 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
53858 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
53859 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
53860 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53861 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53862 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53863 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53864 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53865 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53866 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53867 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53868 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53869 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53870 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53871 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
53872 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
53873 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
53874 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
53875 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
53876 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
53877 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
53878 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
53879 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53880 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
53881 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53882 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53883 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
53884 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53885 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
53886 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53887 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53888 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53889 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53890 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53891 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53892 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53893 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53894 _ACEOF
53895
53896   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53897     break
53898   elif $ac_last_try; then
53899     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53900 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53901    { (exit 1); exit 1; }; }
53902   else
53903     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53904   fi
53905 done
53906
53907 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53908 if test -n "$ac_eof"; then
53909   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53910   ac_eof=`expr $ac_eof + 1`
53911 fi
53912
53913 cat >>$CONFIG_STATUS <<_ACEOF
53914 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53916 _ACEOF
53917 sed '
53918 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53919 s/^/s,@/; s/!/@,|#_!!_#|/
53920 :n
53921 t n
53922 s/'"$ac_delim"'$/,g/; t
53923 s/$/\\/; p
53924 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53925 ' >>$CONFIG_STATUS <conf$$subs.sed
53926 rm -f conf$$subs.sed
53927 cat >>$CONFIG_STATUS <<_ACEOF
53928 CEOF$ac_eof
53929 _ACEOF
53930
53931
53932 ac_delim='%!_!# '
53933 for ac_last_try in false false false false false :; do
53934   cat >conf$$subs.sed <<_ACEOF
53935 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53936 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53937 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
53938 COND_SHARED_0!$COND_SHARED_0$ac_delim
53939 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53940 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
53941 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53942 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53943 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
53944 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
53945 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
53946 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53947 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
53948 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
53949 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
53950 COND_SHARED_1!$COND_SHARED_1$ac_delim
53951 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53952 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53953 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53954 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53955 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53956 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53957 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53958 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53959 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53960 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53961 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53962 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53963 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53964 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53965 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53966 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53967 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53968 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53969 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53970 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53971 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53972 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53973 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53974 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53975 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53976 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
53977 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
53978 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
53979 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
53980 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
53981 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
53982 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
53983 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53984 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53985 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53986 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53987 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53988 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53989 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53990 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53991 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53992 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
53993 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
53994 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53995 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53996 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53997 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53998 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53999 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54000 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54001 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54002 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54003 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54004 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54005 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54006 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54007 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54008 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54009 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54010 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54011 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54012 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54013 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54014 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54015 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54016 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54017 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54018 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54019 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54020 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54021 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54022 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54023 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54024 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54025 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54026 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54027 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54028 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54029 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54030 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54031 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54032 _ACEOF
54033
54034   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54035     break
54036   elif $ac_last_try; then
54037     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54038 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54039    { (exit 1); exit 1; }; }
54040   else
54041     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54042   fi
54043 done
54044
54045 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54046 if test -n "$ac_eof"; then
54047   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54048   ac_eof=`expr $ac_eof + 1`
54049 fi
54050
54051 cat >>$CONFIG_STATUS <<_ACEOF
54052 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54053 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54054 _ACEOF
54055 sed '
54056 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54057 s/^/s,@/; s/!/@,|#_!!_#|/
54058 :n
54059 t n
54060 s/'"$ac_delim"'$/,g/; t
54061 s/$/\\/; p
54062 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54063 ' >>$CONFIG_STATUS <conf$$subs.sed
54064 rm -f conf$$subs.sed
54065 cat >>$CONFIG_STATUS <<_ACEOF
54066 CEOF$ac_eof
54067 _ACEOF
54068
54069
54070 ac_delim='%!_!# '
54071 for ac_last_try in false false false false false :; do
54072   cat >conf$$subs.sed <<_ACEOF
54073 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54074 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54075 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54076 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54077 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54078 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54079 DEREZ!$DEREZ$ac_delim
54080 SHARED!$SHARED$ac_delim
54081 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54082 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54083 USE_GUI!$USE_GUI$ac_delim
54084 AFMINSTALL!$AFMINSTALL$ac_delim
54085 WIN32INSTALL!$WIN32INSTALL$ac_delim
54086 TOOLKIT!$TOOLKIT$ac_delim
54087 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54088 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54089 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54090 cross_compiling!$cross_compiling$ac_delim
54091 WIDGET_SET!$WIDGET_SET$ac_delim
54092 WX_RELEASE!$WX_RELEASE$ac_delim
54093 WX_VERSION!$WX_VERSION$ac_delim
54094 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54095 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54096 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54097 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54098 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54099 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54100 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54101 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54102 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54103 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54104 GUIDIST!$GUIDIST$ac_delim
54105 DISTDIR!$DISTDIR$ac_delim
54106 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54107 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54108 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54109 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54110 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54111 RESCOMP!$RESCOMP$ac_delim
54112 RESFLAGS!$RESFLAGS$ac_delim
54113 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54114 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54115 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54116 LIBWXMACRES!$LIBWXMACRES$ac_delim
54117 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54118 MACSETFILE!$MACSETFILE$ac_delim
54119 GCC!$GCC$ac_delim
54120 DLLTOOL!$DLLTOOL$ac_delim
54121 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54122 LIBOBJS!$LIBOBJS$ac_delim
54123 LTLIBOBJS!$LTLIBOBJS$ac_delim
54124 _ACEOF
54125
54126   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
54127     break
54128   elif $ac_last_try; then
54129     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54130 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54131    { (exit 1); exit 1; }; }
54132   else
54133     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54134   fi
54135 done
54136
54137 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54138 if test -n "$ac_eof"; then
54139   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54140   ac_eof=`expr $ac_eof + 1`
54141 fi
54142
54143 cat >>$CONFIG_STATUS <<_ACEOF
54144 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54146 _ACEOF
54147 sed '
54148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54149 s/^/s,@/; s/!/@,|#_!!_#|/
54150 :n
54151 t n
54152 s/'"$ac_delim"'$/,g/; t
54153 s/$/\\/; p
54154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54155 ' >>$CONFIG_STATUS <conf$$subs.sed
54156 rm -f conf$$subs.sed
54157 cat >>$CONFIG_STATUS <<_ACEOF
54158 :end
54159 s/|#_!!_#|//g
54160 CEOF$ac_eof
54161 _ACEOF
54162
54163
54164 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54165 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54166 # trailing colons and then remove the whole line if VPATH becomes empty
54167 # (actually we leave an empty line to preserve line numbers).
54168 if test "x$srcdir" = x.; then
54169   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54170 s/:*\$(srcdir):*/:/
54171 s/:*\${srcdir}:*/:/
54172 s/:*@srcdir@:*/:/
54173 s/^\([^=]*=[     ]*\):*/\1/
54174 s/:*$//
54175 s/^[^=]*=[       ]*$//
54176 }'
54177 fi
54178
54179 cat >>$CONFIG_STATUS <<\_ACEOF
54180 fi # test -n "$CONFIG_FILES"
54181
54182
54183 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54184 do
54185   case $ac_tag in
54186   :[FHLC]) ac_mode=$ac_tag; continue;;
54187   esac
54188   case $ac_mode$ac_tag in
54189   :[FHL]*:*);;
54190   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54191 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54192    { (exit 1); exit 1; }; };;
54193   :[FH]-) ac_tag=-:-;;
54194   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54195   esac
54196   ac_save_IFS=$IFS
54197   IFS=:
54198   set x $ac_tag
54199   IFS=$ac_save_IFS
54200   shift
54201   ac_file=$1
54202   shift
54203
54204   case $ac_mode in
54205   :L) ac_source=$1;;
54206   :[FH])
54207     ac_file_inputs=
54208     for ac_f
54209     do
54210       case $ac_f in
54211       -) ac_f="$tmp/stdin";;
54212       *) # Look for the file first in the build tree, then in the source tree
54213          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54214          # because $ac_f cannot contain `:'.
54215          test -f "$ac_f" ||
54216            case $ac_f in
54217            [\\/$]*) false;;
54218            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54219            esac ||
54220            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54221 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54222    { (exit 1); exit 1; }; };;
54223       esac
54224       ac_file_inputs="$ac_file_inputs $ac_f"
54225     done
54226
54227     # Let's still pretend it is `configure' which instantiates (i.e., don't
54228     # use $as_me), people would be surprised to read:
54229     #    /* config.h.  Generated by config.status.  */
54230     configure_input="Generated from "`IFS=:
54231           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54232     if test x"$ac_file" != x-; then
54233       configure_input="$ac_file.  $configure_input"
54234       { echo "$as_me:$LINENO: creating $ac_file" >&5
54235 echo "$as_me: creating $ac_file" >&6;}
54236     fi
54237
54238     case $ac_tag in
54239     *:-:* | *:-) cat >"$tmp/stdin";;
54240     esac
54241     ;;
54242   esac
54243
54244   ac_dir=`$as_dirname -- "$ac_file" ||
54245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54246          X"$ac_file" : 'X\(//\)[^/]' \| \
54247          X"$ac_file" : 'X\(//\)$' \| \
54248          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54249 echo X"$ac_file" |
54250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54251             s//\1/
54252             q
54253           }
54254           /^X\(\/\/\)[^/].*/{
54255             s//\1/
54256             q
54257           }
54258           /^X\(\/\/\)$/{
54259             s//\1/
54260             q
54261           }
54262           /^X\(\/\).*/{
54263             s//\1/
54264             q
54265           }
54266           s/.*/./; q'`
54267   { as_dir="$ac_dir"
54268   case $as_dir in #(
54269   -*) as_dir=./$as_dir;;
54270   esac
54271   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54272     as_dirs=
54273     while :; do
54274       case $as_dir in #(
54275       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54276       *) as_qdir=$as_dir;;
54277       esac
54278       as_dirs="'$as_qdir' $as_dirs"
54279       as_dir=`$as_dirname -- "$as_dir" ||
54280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54281          X"$as_dir" : 'X\(//\)[^/]' \| \
54282          X"$as_dir" : 'X\(//\)$' \| \
54283          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54284 echo X"$as_dir" |
54285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54286             s//\1/
54287             q
54288           }
54289           /^X\(\/\/\)[^/].*/{
54290             s//\1/
54291             q
54292           }
54293           /^X\(\/\/\)$/{
54294             s//\1/
54295             q
54296           }
54297           /^X\(\/\).*/{
54298             s//\1/
54299             q
54300           }
54301           s/.*/./; q'`
54302       test -d "$as_dir" && break
54303     done
54304     test -z "$as_dirs" || eval "mkdir $as_dirs"
54305   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54306 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54307    { (exit 1); exit 1; }; }; }
54308   ac_builddir=.
54309
54310 case "$ac_dir" in
54311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54312 *)
54313   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54314   # A ".." for each directory in $ac_dir_suffix.
54315   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54316   case $ac_top_builddir_sub in
54317   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54318   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54319   esac ;;
54320 esac
54321 ac_abs_top_builddir=$ac_pwd
54322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54323 # for backward compatibility:
54324 ac_top_builddir=$ac_top_build_prefix
54325
54326 case $srcdir in
54327   .)  # We are building in place.
54328     ac_srcdir=.
54329     ac_top_srcdir=$ac_top_builddir_sub
54330     ac_abs_top_srcdir=$ac_pwd ;;
54331   [\\/]* | ?:[\\/]* )  # Absolute name.
54332     ac_srcdir=$srcdir$ac_dir_suffix;
54333     ac_top_srcdir=$srcdir
54334     ac_abs_top_srcdir=$srcdir ;;
54335   *) # Relative name.
54336     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54337     ac_top_srcdir=$ac_top_build_prefix$srcdir
54338     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54339 esac
54340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54341
54342
54343   case $ac_mode in
54344   :F)
54345   #
54346   # CONFIG_FILE
54347   #
54348
54349   case $INSTALL in
54350   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54351   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54352   esac
54353 _ACEOF
54354
54355 cat >>$CONFIG_STATUS <<\_ACEOF
54356 # If the template does not know about datarootdir, expand it.
54357 # FIXME: This hack should be removed a few years after 2.60.
54358 ac_datarootdir_hack=; ac_datarootdir_seen=
54359
54360 case `sed -n '/datarootdir/ {
54361   p
54362   q
54363 }
54364 /@datadir@/p
54365 /@docdir@/p
54366 /@infodir@/p
54367 /@localedir@/p
54368 /@mandir@/p
54369 ' $ac_file_inputs` in
54370 *datarootdir*) ac_datarootdir_seen=yes;;
54371 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54372   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54373 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54374 _ACEOF
54375 cat >>$CONFIG_STATUS <<_ACEOF
54376   ac_datarootdir_hack='
54377   s&@datadir@&$datadir&g
54378   s&@docdir@&$docdir&g
54379   s&@infodir@&$infodir&g
54380   s&@localedir@&$localedir&g
54381   s&@mandir@&$mandir&g
54382     s&\\\${datarootdir}&$datarootdir&g' ;;
54383 esac
54384 _ACEOF
54385
54386 # Neutralize VPATH when `$srcdir' = `.'.
54387 # Shell code in configure.ac might set extrasub.
54388 # FIXME: do we really want to maintain this feature?
54389 cat >>$CONFIG_STATUS <<_ACEOF
54390   sed "$ac_vpsub
54391 $extrasub
54392 _ACEOF
54393 cat >>$CONFIG_STATUS <<\_ACEOF
54394 :t
54395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54396 s&@configure_input@&$configure_input&;t t
54397 s&@top_builddir@&$ac_top_builddir_sub&;t t
54398 s&@srcdir@&$ac_srcdir&;t t
54399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54400 s&@top_srcdir@&$ac_top_srcdir&;t t
54401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54402 s&@builddir@&$ac_builddir&;t t
54403 s&@abs_builddir@&$ac_abs_builddir&;t t
54404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54405 s&@INSTALL@&$ac_INSTALL&;t t
54406 $ac_datarootdir_hack
54407 " $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
54408
54409 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54410   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54411   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54412   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54413 which seems to be undefined.  Please make sure it is defined." >&5
54414 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54415 which seems to be undefined.  Please make sure it is defined." >&2;}
54416
54417   rm -f "$tmp/stdin"
54418   case $ac_file in
54419   -) cat "$tmp/out"; rm -f "$tmp/out";;
54420   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54421   esac
54422  ;;
54423   :H)
54424   #
54425   # CONFIG_HEADER
54426   #
54427 _ACEOF
54428
54429 # Transform confdefs.h into a sed script `conftest.defines', that
54430 # substitutes the proper values into config.h.in to produce config.h.
54431 rm -f conftest.defines conftest.tail
54432 # First, append a space to every undef/define line, to ease matching.
54433 echo 's/$/ /' >conftest.defines
54434 # Then, protect against being on the right side of a sed subst, or in
54435 # an unquoted here document, in config.status.  If some macros were
54436 # called several times there might be several #defines for the same
54437 # symbol, which is useless.  But do not sort them, since the last
54438 # AC_DEFINE must be honored.
54439 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54440 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54441 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54442 # PARAMS is the parameter list in the macro definition--in most cases, it's
54443 # just an empty string.
54444 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54445 ac_dB='\\)[      (].*,\\1define\\2'
54446 ac_dC=' '
54447 ac_dD=' ,'
54448
54449 uniq confdefs.h |
54450   sed -n '
54451         t rset
54452         :rset
54453         s/^[     ]*#[    ]*define[       ][      ]*//
54454         t ok
54455         d
54456         :ok
54457         s/[\\&,]/\\&/g
54458         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54459         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54460   ' >>conftest.defines
54461
54462 # Remove the space that was appended to ease matching.
54463 # Then replace #undef with comments.  This is necessary, for
54464 # example, in the case of _POSIX_SOURCE, which is predefined and required
54465 # on some systems where configure will not decide to define it.
54466 # (The regexp can be short, since the line contains either #define or #undef.)
54467 echo 's/ $//
54468 s,^[     #]*u.*,/* & */,' >>conftest.defines
54469
54470 # Break up conftest.defines:
54471 ac_max_sed_lines=50
54472
54473 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54474 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54475 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54476 # et cetera.
54477 ac_in='$ac_file_inputs'
54478 ac_out='"$tmp/out1"'
54479 ac_nxt='"$tmp/out2"'
54480
54481 while :
54482 do
54483   # Write a here document:
54484     cat >>$CONFIG_STATUS <<_ACEOF
54485     # First, check the format of the line:
54486     cat >"\$tmp/defines.sed" <<\\CEOF
54487 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54488 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54489 b
54490 :def
54491 _ACEOF
54492   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54493   echo 'CEOF
54494     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54495   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54496   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54497   grep . conftest.tail >/dev/null || break
54498   rm -f conftest.defines
54499   mv conftest.tail conftest.defines
54500 done
54501 rm -f conftest.defines conftest.tail
54502
54503 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54504 cat >>$CONFIG_STATUS <<\_ACEOF
54505   if test x"$ac_file" != x-; then
54506     echo "/* $configure_input  */" >"$tmp/config.h"
54507     cat "$ac_result" >>"$tmp/config.h"
54508     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54509       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54510 echo "$as_me: $ac_file is unchanged" >&6;}
54511     else
54512       rm -f $ac_file
54513       mv "$tmp/config.h" $ac_file
54514     fi
54515   else
54516     echo "/* $configure_input  */"
54517     cat "$ac_result"
54518   fi
54519   rm -f "$tmp/out12"
54520  ;;
54521
54522   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54523 echo "$as_me: executing $ac_file commands" >&6;}
54524  ;;
54525   esac
54526
54527
54528   case $ac_file$ac_mode in
54529     "rcdefs.h":C)
54530             mkdir -p $outdir &&
54531             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54532          ;;
54533     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54534     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54535     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
54536     "wx-config":C)  rm -f wx-config
54537                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54538                     ;;
54539
54540   esac
54541 done # for ac_tag
54542
54543
54544 { (exit 0); exit 0; }
54545 _ACEOF
54546 chmod +x $CONFIG_STATUS
54547 ac_clean_files=$ac_clean_files_save
54548
54549
54550 # configure is writing to config.log, and then calls config.status.
54551 # config.status does its own redirection, appending to config.log.
54552 # Unfortunately, on DOS this fails, as config.log is still kept open
54553 # by configure, so config.status won't be able to write to it; its
54554 # output is simply discarded.  So we exec the FD to /dev/null,
54555 # effectively closing config.log, so it can be properly (re)opened and
54556 # appended to by config.status.  When coming back to configure, we
54557 # need to make the FD available again.
54558 if test "$no_create" != yes; then
54559   ac_cs_success=:
54560   ac_config_status_args=
54561   test "$silent" = yes &&
54562     ac_config_status_args="$ac_config_status_args --quiet"
54563   exec 5>/dev/null
54564   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54565   exec 5>>config.log
54566   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54567   # would make configure fail if this is the last instruction.
54568   $ac_cs_success || { (exit 1); exit 1; }
54569 fi
54570
54571 #
54572 # CONFIG_SUBDIRS section.
54573 #
54574 if test "$no_recursion" != yes; then
54575
54576   # Remove --cache-file and --srcdir arguments so they do not pile up.
54577   ac_sub_configure_args=
54578   ac_prev=
54579   eval "set x $ac_configure_args"
54580   shift
54581   for ac_arg
54582   do
54583     if test -n "$ac_prev"; then
54584       ac_prev=
54585       continue
54586     fi
54587     case $ac_arg in
54588     -cache-file | --cache-file | --cache-fil | --cache-fi \
54589     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54590       ac_prev=cache_file ;;
54591     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54592     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54593     | --c=*)
54594       ;;
54595     --config-cache | -C)
54596       ;;
54597     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54598       ac_prev=srcdir ;;
54599     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54600       ;;
54601     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54602       ac_prev=prefix ;;
54603     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54604       ;;
54605     *)
54606       case $ac_arg in
54607       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54608       esac
54609       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54610     esac
54611   done
54612
54613   # Always prepend --prefix to ensure using the same prefix
54614   # in subdir configurations.
54615   ac_arg="--prefix=$prefix"
54616   case $ac_arg in
54617   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54618   esac
54619   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54620
54621   # Pass --silent
54622   if test "$silent" = yes; then
54623     ac_sub_configure_args="--silent $ac_sub_configure_args"
54624   fi
54625
54626   ac_popdir=`pwd`
54627   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54628
54629     # Do not complain, so a configure script can configure whichever
54630     # parts of a large source tree are present.
54631     test -d "$srcdir/$ac_dir" || continue
54632
54633     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54634     echo "$as_me:$LINENO: $ac_msg" >&5
54635     echo "$ac_msg" >&6
54636     { as_dir="$ac_dir"
54637   case $as_dir in #(
54638   -*) as_dir=./$as_dir;;
54639   esac
54640   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54641     as_dirs=
54642     while :; do
54643       case $as_dir in #(
54644       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54645       *) as_qdir=$as_dir;;
54646       esac
54647       as_dirs="'$as_qdir' $as_dirs"
54648       as_dir=`$as_dirname -- "$as_dir" ||
54649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54650          X"$as_dir" : 'X\(//\)[^/]' \| \
54651          X"$as_dir" : 'X\(//\)$' \| \
54652          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54653 echo X"$as_dir" |
54654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54655             s//\1/
54656             q
54657           }
54658           /^X\(\/\/\)[^/].*/{
54659             s//\1/
54660             q
54661           }
54662           /^X\(\/\/\)$/{
54663             s//\1/
54664             q
54665           }
54666           /^X\(\/\).*/{
54667             s//\1/
54668             q
54669           }
54670           s/.*/./; q'`
54671       test -d "$as_dir" && break
54672     done
54673     test -z "$as_dirs" || eval "mkdir $as_dirs"
54674   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54675 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54676    { (exit 1); exit 1; }; }; }
54677     ac_builddir=.
54678
54679 case "$ac_dir" in
54680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54681 *)
54682   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54683   # A ".." for each directory in $ac_dir_suffix.
54684   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54685   case $ac_top_builddir_sub in
54686   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54687   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54688   esac ;;
54689 esac
54690 ac_abs_top_builddir=$ac_pwd
54691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54692 # for backward compatibility:
54693 ac_top_builddir=$ac_top_build_prefix
54694
54695 case $srcdir in
54696   .)  # We are building in place.
54697     ac_srcdir=.
54698     ac_top_srcdir=$ac_top_builddir_sub
54699     ac_abs_top_srcdir=$ac_pwd ;;
54700   [\\/]* | ?:[\\/]* )  # Absolute name.
54701     ac_srcdir=$srcdir$ac_dir_suffix;
54702     ac_top_srcdir=$srcdir
54703     ac_abs_top_srcdir=$srcdir ;;
54704   *) # Relative name.
54705     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54706     ac_top_srcdir=$ac_top_build_prefix$srcdir
54707     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54708 esac
54709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54710
54711
54712     cd "$ac_dir"
54713
54714     # Check for guested configure; otherwise get Cygnus style configure.
54715     if test -f "$ac_srcdir/configure.gnu"; then
54716       ac_sub_configure=$ac_srcdir/configure.gnu
54717     elif test -f "$ac_srcdir/configure"; then
54718       ac_sub_configure=$ac_srcdir/configure
54719     elif test -f "$ac_srcdir/configure.in"; then
54720       # This should be Cygnus configure.
54721       ac_sub_configure=$ac_aux_dir/configure
54722     else
54723       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54724 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54725       ac_sub_configure=
54726     fi
54727
54728     # The recursion is here.
54729     if test -n "$ac_sub_configure"; then
54730       # Make the cache file name correct relative to the subdirectory.
54731       case $cache_file in
54732       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54733       *) # Relative name.
54734         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54735       esac
54736
54737       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54738 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54739       # The eval makes quoting arguments work.
54740       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54741            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54742         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54743 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54744    { (exit 1); exit 1; }; }
54745     fi
54746
54747     cd "$ac_popdir"
54748   done
54749 fi
54750
54751
54752 echo
54753 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54754 echo ""
54755 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54756 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54757 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54758 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
54759 if test "$wxUSE_UNICODE" = "yes"; then
54760     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54761         echo " (using UTF-8)"
54762     else
54763         echo " (using wchar_t)"
54764     fi
54765 else
54766     echo
54767 fi
54768
54769 echo "  What level of wxWidgets compatibility should be enabled?"
54770 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54771 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54772
54773 echo "  Which libraries should wxWidgets use?"
54774 echo "                                       STL                ${wxUSE_STL}"
54775 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54776 echo "                                       png                ${wxUSE_LIBPNG-none}"
54777 echo "                                       regex              ${wxUSE_REGEX}"
54778 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54779 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54780 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54781 fi
54782 echo "                                       zlib               ${wxUSE_ZLIB}"
54783 echo "                                       expat              ${wxUSE_EXPAT}"
54784 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54785 echo "                                       sdl                ${wxUSE_LIBSDL}"
54786
54787 echo ""
54788