minor change: differentiate the initial banner of test.exe from test_gui.exe
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 60470 2009-05-02 12:52:54Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
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.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
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 subdirs
680 PKG_CONFIG
681 GTK_CFLAGS
682 GTK_LIBS
683 GTK_CONFIG
684 DIRECTFB_CFLAGS
685 DIRECTFB_LIBS
686 XMKMF
687 X_CFLAGS
688 X_PRE_LIBS
689 X_LIBS
690 X_EXTRA_LIBS
691 PANGOX_CFLAGS
692 PANGOX_LIBS
693 PANGOFT2_CFLAGS
694 PANGOFT2_LIBS
695 PANGOXFT_CFLAGS
696 PANGOXFT_LIBS
697 CFLAGS_VISIBILITY
698 CXXFLAGS_VISIBILITY
699 LIBICONV
700 GXX_VERSION
701 SDL_CONFIG
702 SDL_CFLAGS
703 SDL_LIBS
704 GTKPRINT_CFLAGS
705 GTKPRINT_LIBS
706 LIBGNOMEPRINTUI_CFLAGS
707 LIBGNOMEPRINTUI_LIBS
708 GNOMEVFS_CFLAGS
709 GNOMEVFS_LIBS
710 HILDON_CFLAGS
711 HILDON_LIBS
712 PYTHON
713 COND_PYTHON
714 CAIRO_CFLAGS
715 CAIRO_LIBS
716 GST_CFLAGS
717 GST_LIBS
718 ALL_WX_LIBS
719 BUILT_WX_LIBS
720 STD_BASE_LIBS
721 STD_GUI_LIBS
722 wxUSE_ZLIB
723 wxUSE_REGEX
724 wxUSE_EXPAT
725 wxUSE_LIBJPEG
726 wxUSE_LIBPNG
727 wxUSE_LIBTIFF
728 VENDOR
729 OFFICIAL_BUILD
730 WX_FLAVOUR
731 WX_LIB_FLAVOUR
732 WXUNIV
733 MONOLITHIC
734 USE_PLUGINS
735 CXXWARNINGS
736 EXTRALIBS
737 EXTRALIBS_XML
738 EXTRALIBS_HTML
739 EXTRALIBS_MEDIA
740 EXTRALIBS_GUI
741 EXTRALIBS_OPENGL
742 EXTRALIBS_SDL
743 EXTRALIBS_STC
744 WITH_PLUGIN_SDL
745 EXTRALIBS_GTKPRINT
746 EXTRALIBS_GNOMEPRINT
747 EXTRALIBS_GNOMEVFS
748 EXTRALIBS_HILDON
749 UNICODE
750 BUILD
751 DEBUG_INFO
752 DEBUG_FLAG
753 TOOLKIT_LOWERCASE
754 TOOLKIT_VERSION
755 DYLIB_RPATH_INSTALL
756 DYLIB_RPATH_POSTLINK
757 SAMPLES_RPATH_FLAG
758 HEADER_PAD_OPTION
759 HOST_SUFFIX
760 CPPUNIT_CFLAGS
761 CPPUNIT_LIBS
762 RANLIB
763 INSTALL_PROGRAM
764 INSTALL_SCRIPT
765 INSTALL_DATA
766 LN_S
767 SET_MAKE
768 MAKE_SET
769 AROPTIONS
770 STRIP
771 NM
772 INSTALL_DIR
773 LDFLAGS_GUI
774 IF_GNU_MAKE
775 PLATFORM_UNIX
776 PLATFORM_WIN32
777 PLATFORM_MSDOS
778 PLATFORM_MAC
779 PLATFORM_MACOS
780 PLATFORM_MACOSX
781 PLATFORM_OS2
782 PLATFORM_BEOS
783 SO_SUFFIX
784 SO_SUFFIX_MODULE
785 DLLIMP_SUFFIX
786 LIBPREFIX
787 LIBEXT
788 DLLPREFIX
789 DLLPREFIX_MODULE
790 dlldir
791 AIX_CXX_LD
792 SHARED_LD_CC
793 SHARED_LD_CXX
794 SHARED_LD_MODULE_CC
795 SHARED_LD_MODULE_CXX
796 PIC_FLAG
797 WINDOWS_IMPLIB
798 USE_SOVERSION
799 USE_SOVERLINUX
800 USE_SOVERSOLARIS
801 USE_SOVERCYGWIN
802 USE_MACVERSION
803 USE_SOSYMLINKS
804 SONAME_FLAG
805 DEPS_TRACKING
806 BK_DEPS
807 WINDRES
808 REZ
809 SETFILE
810 OBJCXXFLAGS
811 GCC_PCH
812 ICC_PCH
813 ICC_PCH_CREATE_SWITCH
814 ICC_PCH_USE_SWITCH
815 BK_MAKE_PCH
816 COND_BUILD_DEBUG
817 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
818 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
819 COND_BUILD_DEBUG_UNICODE_0
820 COND_BUILD_DEBUG_UNICODE_1
821 COND_BUILD_RELEASE
822 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
823 COND_BUILD_RELEASE_UNICODE_0
824 COND_BUILD_RELEASE_UNICODE_1
825 COND_BUILD_debug
826 COND_BUILD_debug_DEBUG_FLAG_default
827 COND_BUILD_debug_DEBUG_INFO_default
828 COND_BUILD_debug_UNICODE_0
829 COND_BUILD_debug_UNICODE_1
830 COND_BUILD_release
831 COND_BUILD_release_DEBUG_INFO_default
832 COND_BUILD_release_UNICODE_0
833 COND_BUILD_release_UNICODE_1
834 COND_DEBUG_FLAG_1
835 COND_DEBUG_INFO_0
836 COND_DEBUG_INFO_1
837 COND_DEPS_TRACKING_0
838 COND_DEPS_TRACKING_1
839 COND_GCC_PCH_1
840 COND_ICC_PCH_1
841 COND_MONOLITHIC_0
842 COND_MONOLITHIC_0_SHARED_0
843 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
845 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
846 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
847 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
848 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
849 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
850 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
851 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
852 COND_MONOLITHIC_0_SHARED_1
853 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
854 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
855 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
856 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
857 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
858 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
859 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
860 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
861 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
862 COND_MONOLITHIC_0_USE_AUI_1
863 COND_MONOLITHIC_0_USE_GUI_1
864 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
865 COND_MONOLITHIC_0_USE_HTML_1
866 COND_MONOLITHIC_0_USE_MEDIA_1
867 COND_MONOLITHIC_0_USE_PROPGRID_1
868 COND_MONOLITHIC_0_USE_QA_1
869 COND_MONOLITHIC_0_USE_RICHTEXT_1
870 COND_MONOLITHIC_0_USE_STC_1
871 COND_MONOLITHIC_0_USE_XRC_1
872 COND_MONOLITHIC_1
873 COND_MONOLITHIC_1_SHARED_0
874 COND_MONOLITHIC_1_SHARED_1
875 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
876 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
877 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
878 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
879 COND_PLATFORM_MACOSX_1
880 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
881 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
882 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
883 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
884 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
885 COND_PLATFORM_MACOSX_1_USE_GUI_1
886 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
887 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
888 COND_PLATFORM_MACOS_1
889 COND_PLATFORM_MAC_0
890 COND_PLATFORM_MAC_1
891 COND_PLATFORM_MSDOS_0
892 COND_PLATFORM_MSDOS_1
893 COND_PLATFORM_OS2_1
894 COND_PLATFORM_UNIX_0
895 COND_PLATFORM_UNIX_1
896 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
897 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
898 COND_PLATFORM_UNIX_1_USE_GUI_1
899 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
900 COND_PLATFORM_WIN32_0
901 COND_PLATFORM_WIN32_1
902 COND_SHARED_0
903 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
904 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
905 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
906 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
907 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
908 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
909 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
910 COND_SHARED_0_USE_STC_1
911 COND_SHARED_0_wxUSE_EXPAT_builtin
912 COND_SHARED_0_wxUSE_REGEX_builtin
913 COND_SHARED_0_wxUSE_ZLIB_builtin
914 COND_SHARED_1
915 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
916 COND_TOOLKIT_
917 COND_TOOLKIT_COCOA
918 COND_TOOLKIT_COCOA_USE_GUI_1
919 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
920 COND_TOOLKIT_DFB
921 COND_TOOLKIT_DFB_USE_GUI_1
922 COND_TOOLKIT_GTK
923 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
924 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
925 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
926 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
927 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
928 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
929 COND_TOOLKIT_GTK_USE_GUI_1
930 COND_TOOLKIT_MAC
931 COND_TOOLKIT_MGL
932 COND_TOOLKIT_MGL_USE_GUI_1
933 COND_TOOLKIT_MOTIF
934 COND_TOOLKIT_MOTIF_USE_GUI_1
935 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_MSW
937 COND_TOOLKIT_MSW_USE_GUI_1
938 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
939 COND_TOOLKIT_MSW_WXUNIV_0
940 COND_TOOLKIT_OSX_CARBON
941 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
942 COND_TOOLKIT_OSX_COCOA
943 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
944 COND_TOOLKIT_OSX_IPHONE
945 COND_TOOLKIT_PM
946 COND_TOOLKIT_PM_USE_GUI_1
947 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
948 COND_TOOLKIT_WINCE
949 COND_TOOLKIT_WINCE_USE_GUI_1
950 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
951 COND_TOOLKIT_WINCE_WXUNIV_0
952 COND_TOOLKIT_X11
953 COND_TOOLKIT_X11_USE_GUI_1
954 COND_UNICODE_1
955 COND_USE_EXCEPTIONS_0
956 COND_USE_EXCEPTIONS_1
957 COND_USE_GUI_0
958 COND_USE_GUI_1
959 COND_USE_GUI_1_USE_OPENGL_1
960 COND_USE_GUI_1_WXUNIV_0
961 COND_USE_GUI_1_WXUNIV_1
962 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
963 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
964 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
965 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
966 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
967 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
968 COND_USE_OPENGL_1
969 COND_USE_PCH_1
970 COND_USE_PLUGINS_0
971 COND_USE_RTTI_0
972 COND_USE_RTTI_1
973 COND_USE_SOSYMLINKS_1
974 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
975 COND_USE_SOVERLINUX_1
976 COND_USE_SOVERSION_0
977 COND_USE_SOVERSOLARIS_1
978 COND_USE_STC_1
979 COND_USE_THREADS_0
980 COND_USE_THREADS_1
981 COND_USE_XRC_1
982 COND_WINDOWS_IMPLIB_1
983 COND_WITH_PLUGIN_SDL_1
984 COND_WXUNIV_0
985 COND_WXUNIV_1
986 COND_WXUSE_EXPAT_BUILTIN
987 COND_WXUSE_LIBJPEG_BUILTIN
988 COND_WXUSE_LIBPNG_BUILTIN
989 COND_WXUSE_LIBTIFF_BUILTIN
990 COND_WXUSE_REGEX_BUILTIN
991 COND_WXUSE_ZLIB_BUILTIN
992 COND_wxUSE_EXPAT_builtin
993 COND_wxUSE_LIBJPEG_builtin
994 COND_wxUSE_LIBPNG_builtin
995 COND_wxUSE_LIBTIFF_builtin
996 COND_wxUSE_REGEX_builtin
997 COND_wxUSE_ZLIB_builtin
998 DEREZ
999 SHARED
1000 WX_LIBRARY_BASENAME_NOGUI
1001 WX_LIBRARY_BASENAME_GUI
1002 USE_GUI
1003 AFMINSTALL
1004 WIN32INSTALL
1005 TOOLKIT
1006 TOOLKIT_DIR
1007 TOOLCHAIN_NAME
1008 TOOLCHAIN_FULLNAME
1009 cross_compiling
1010 WIDGET_SET
1011 WX_RELEASE
1012 WX_VERSION
1013 WX_SUBVERSION
1014 WX_CHARTYPE
1015 WX_DEBUGTYPE
1016 WXCONFIG_CPPFLAGS
1017 WXCONFIG_CFLAGS
1018 WXCONFIG_CXXFLAGS
1019 WXCONFIG_LIBS
1020 WXCONFIG_RPATH
1021 WXCONFIG_LDFLAGS_GUI
1022 WXCONFIG_RESFLAGS
1023 GUIDIST
1024 DISTDIR
1025 SAMPLES_SUBDIRS
1026 LDFLAGS_GL
1027 OPENGL_LIBS
1028 DMALLOC_LIBS
1029 WX_VERSION_TAG
1030 RESCOMP
1031 RESFLAGS
1032 RESPROGRAMOBJ
1033 WX_RESOURCES_MACOSX_ASCII
1034 WX_RESOURCES_MACOSX_DATA
1035 LIBWXMACRES
1036 POSTLINK_COMMAND
1037 MACSETFILE
1038 GCC
1039 DLLTOOL
1040 CPPUNIT_CONFIG
1041 LIBOBJS
1042 LTLIBOBJS'
1043 ac_subst_files=''
1044       ac_precious_vars='build_alias
1045 host_alias
1046 target_alias
1047 CC
1048 CFLAGS
1049 LDFLAGS
1050 LIBS
1051 CPPFLAGS
1052 CPP
1053 CXX
1054 CXXFLAGS
1055 CCC
1056 PKG_CONFIG
1057 DIRECTFB_CFLAGS
1058 DIRECTFB_LIBS
1059 XMKMF
1060 PANGOX_CFLAGS
1061 PANGOX_LIBS
1062 PANGOFT2_CFLAGS
1063 PANGOFT2_LIBS
1064 PANGOXFT_CFLAGS
1065 PANGOXFT_LIBS
1066 GTKPRINT_CFLAGS
1067 GTKPRINT_LIBS
1068 LIBGNOMEPRINTUI_CFLAGS
1069 LIBGNOMEPRINTUI_LIBS
1070 GNOMEVFS_CFLAGS
1071 GNOMEVFS_LIBS
1072 HILDON_CFLAGS
1073 HILDON_LIBS
1074 CAIRO_CFLAGS
1075 CAIRO_LIBS
1076 GST_CFLAGS
1077 GST_LIBS'
1078 ac_subdirs_all='src/tiff
1079 src/expat'
1080
1081 # Initialize some variables set by options.
1082 ac_init_help=
1083 ac_init_version=false
1084 # The variables have the same names as the options, with
1085 # dashes changed to underlines.
1086 cache_file=/dev/null
1087 exec_prefix=NONE
1088 no_create=
1089 no_recursion=
1090 prefix=NONE
1091 program_prefix=NONE
1092 program_suffix=NONE
1093 program_transform_name=s,x,x,
1094 silent=
1095 site=
1096 srcdir=
1097 verbose=
1098 x_includes=NONE
1099 x_libraries=NONE
1100
1101 # Installation directory options.
1102 # These are left unexpanded so users can "make install exec_prefix=/foo"
1103 # and all the variables that are supposed to be based on exec_prefix
1104 # by default will actually change.
1105 # Use braces instead of parens because sh, perl, etc. also accept them.
1106 # (The list follows the same order as the GNU Coding Standards.)
1107 bindir='${exec_prefix}/bin'
1108 sbindir='${exec_prefix}/sbin'
1109 libexecdir='${exec_prefix}/libexec'
1110 datarootdir='${prefix}/share'
1111 datadir='${datarootdir}'
1112 sysconfdir='${prefix}/etc'
1113 sharedstatedir='${prefix}/com'
1114 localstatedir='${prefix}/var'
1115 includedir='${prefix}/include'
1116 oldincludedir='/usr/include'
1117 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1118 infodir='${datarootdir}/info'
1119 htmldir='${docdir}'
1120 dvidir='${docdir}'
1121 pdfdir='${docdir}'
1122 psdir='${docdir}'
1123 libdir='${exec_prefix}/lib'
1124 localedir='${datarootdir}/locale'
1125 mandir='${datarootdir}/man'
1126
1127 ac_prev=
1128 ac_dashdash=
1129 for ac_option
1130 do
1131   # If the previous option needs an argument, assign it.
1132   if test -n "$ac_prev"; then
1133     eval $ac_prev=\$ac_option
1134     ac_prev=
1135     continue
1136   fi
1137
1138   case $ac_option in
1139   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1140   *)    ac_optarg=yes ;;
1141   esac
1142
1143   # Accept the important Cygnus configure options, so we can diagnose typos.
1144
1145   case $ac_dashdash$ac_option in
1146   --)
1147     ac_dashdash=yes ;;
1148
1149   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1150     ac_prev=bindir ;;
1151   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1152     bindir=$ac_optarg ;;
1153
1154   -build | --build | --buil | --bui | --bu)
1155     ac_prev=build_alias ;;
1156   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1157     build_alias=$ac_optarg ;;
1158
1159   -cache-file | --cache-file | --cache-fil | --cache-fi \
1160   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1161     ac_prev=cache_file ;;
1162   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1163   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1164     cache_file=$ac_optarg ;;
1165
1166   --config-cache | -C)
1167     cache_file=config.cache ;;
1168
1169   -datadir | --datadir | --datadi | --datad)
1170     ac_prev=datadir ;;
1171   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1172     datadir=$ac_optarg ;;
1173
1174   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1175   | --dataroo | --dataro | --datar)
1176     ac_prev=datarootdir ;;
1177   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1178   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1179     datarootdir=$ac_optarg ;;
1180
1181   -disable-* | --disable-*)
1182     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1186    { (exit 1); exit 1; }; }
1187     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1188     eval enable_$ac_feature=no ;;
1189
1190   -docdir | --docdir | --docdi | --doc | --do)
1191     ac_prev=docdir ;;
1192   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193     docdir=$ac_optarg ;;
1194
1195   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196     ac_prev=dvidir ;;
1197   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198     dvidir=$ac_optarg ;;
1199
1200   -enable-* | --enable-*)
1201     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1205    { (exit 1); exit 1; }; }
1206     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1207     eval enable_$ac_feature=\$ac_optarg ;;
1208
1209   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1210   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1211   | --exec | --exe | --ex)
1212     ac_prev=exec_prefix ;;
1213   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1214   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1215   | --exec=* | --exe=* | --ex=*)
1216     exec_prefix=$ac_optarg ;;
1217
1218   -gas | --gas | --ga | --g)
1219     # Obsolete; use --with-gas.
1220     with_gas=yes ;;
1221
1222   -help | --help | --hel | --he | -h)
1223     ac_init_help=long ;;
1224   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1225     ac_init_help=recursive ;;
1226   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1227     ac_init_help=short ;;
1228
1229   -host | --host | --hos | --ho)
1230     ac_prev=host_alias ;;
1231   -host=* | --host=* | --hos=* | --ho=*)
1232     host_alias=$ac_optarg ;;
1233
1234   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1235     ac_prev=htmldir ;;
1236   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1237   | --ht=*)
1238     htmldir=$ac_optarg ;;
1239
1240   -includedir | --includedir | --includedi | --included | --include \
1241   | --includ | --inclu | --incl | --inc)
1242     ac_prev=includedir ;;
1243   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1244   | --includ=* | --inclu=* | --incl=* | --inc=*)
1245     includedir=$ac_optarg ;;
1246
1247   -infodir | --infodir | --infodi | --infod | --info | --inf)
1248     ac_prev=infodir ;;
1249   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1250     infodir=$ac_optarg ;;
1251
1252   -libdir | --libdir | --libdi | --libd)
1253     ac_prev=libdir ;;
1254   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1255     libdir=$ac_optarg ;;
1256
1257   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1258   | --libexe | --libex | --libe)
1259     ac_prev=libexecdir ;;
1260   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1261   | --libexe=* | --libex=* | --libe=*)
1262     libexecdir=$ac_optarg ;;
1263
1264   -localedir | --localedir | --localedi | --localed | --locale)
1265     ac_prev=localedir ;;
1266   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1267     localedir=$ac_optarg ;;
1268
1269   -localstatedir | --localstatedir | --localstatedi | --localstated \
1270   | --localstate | --localstat | --localsta | --localst | --locals)
1271     ac_prev=localstatedir ;;
1272   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1273   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1274     localstatedir=$ac_optarg ;;
1275
1276   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1277     ac_prev=mandir ;;
1278   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1279     mandir=$ac_optarg ;;
1280
1281   -nfp | --nfp | --nf)
1282     # Obsolete; use --without-fp.
1283     with_fp=no ;;
1284
1285   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1286   | --no-cr | --no-c | -n)
1287     no_create=yes ;;
1288
1289   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1290   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1291     no_recursion=yes ;;
1292
1293   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1294   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1295   | --oldin | --oldi | --old | --ol | --o)
1296     ac_prev=oldincludedir ;;
1297   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1298   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1299   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1300     oldincludedir=$ac_optarg ;;
1301
1302   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1303     ac_prev=prefix ;;
1304   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1305     prefix=$ac_optarg ;;
1306
1307   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1308   | --program-pre | --program-pr | --program-p)
1309     ac_prev=program_prefix ;;
1310   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1311   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1312     program_prefix=$ac_optarg ;;
1313
1314   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1315   | --program-suf | --program-su | --program-s)
1316     ac_prev=program_suffix ;;
1317   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1318   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1319     program_suffix=$ac_optarg ;;
1320
1321   -program-transform-name | --program-transform-name \
1322   | --program-transform-nam | --program-transform-na \
1323   | --program-transform-n | --program-transform- \
1324   | --program-transform | --program-transfor \
1325   | --program-transfo | --program-transf \
1326   | --program-trans | --program-tran \
1327   | --progr-tra | --program-tr | --program-t)
1328     ac_prev=program_transform_name ;;
1329   -program-transform-name=* | --program-transform-name=* \
1330   | --program-transform-nam=* | --program-transform-na=* \
1331   | --program-transform-n=* | --program-transform-=* \
1332   | --program-transform=* | --program-transfor=* \
1333   | --program-transfo=* | --program-transf=* \
1334   | --program-trans=* | --program-tran=* \
1335   | --progr-tra=* | --program-tr=* | --program-t=*)
1336     program_transform_name=$ac_optarg ;;
1337
1338   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1339     ac_prev=pdfdir ;;
1340   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1341     pdfdir=$ac_optarg ;;
1342
1343   -psdir | --psdir | --psdi | --psd | --ps)
1344     ac_prev=psdir ;;
1345   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1346     psdir=$ac_optarg ;;
1347
1348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1349   | -silent | --silent | --silen | --sile | --sil)
1350     silent=yes ;;
1351
1352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1353     ac_prev=sbindir ;;
1354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1355   | --sbi=* | --sb=*)
1356     sbindir=$ac_optarg ;;
1357
1358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1360   | --sharedst | --shareds | --shared | --share | --shar \
1361   | --sha | --sh)
1362     ac_prev=sharedstatedir ;;
1363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1366   | --sha=* | --sh=*)
1367     sharedstatedir=$ac_optarg ;;
1368
1369   -site | --site | --sit)
1370     ac_prev=site ;;
1371   -site=* | --site=* | --sit=*)
1372     site=$ac_optarg ;;
1373
1374   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1375     ac_prev=srcdir ;;
1376   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1377     srcdir=$ac_optarg ;;
1378
1379   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1380   | --syscon | --sysco | --sysc | --sys | --sy)
1381     ac_prev=sysconfdir ;;
1382   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1383   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1384     sysconfdir=$ac_optarg ;;
1385
1386   -target | --target | --targe | --targ | --tar | --ta | --t)
1387     ac_prev=target_alias ;;
1388   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1389     target_alias=$ac_optarg ;;
1390
1391   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1392     verbose=yes ;;
1393
1394   -version | --version | --versio | --versi | --vers | -V)
1395     ac_init_version=: ;;
1396
1397   -with-* | --with-*)
1398     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1399     # Reject names that are not valid shell variable names.
1400     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401       { echo "$as_me: error: invalid package name: $ac_package" >&2
1402    { (exit 1); exit 1; }; }
1403     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1404     eval with_$ac_package=\$ac_optarg ;;
1405
1406   -without-* | --without-*)
1407     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1408     # Reject names that are not valid shell variable names.
1409     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1410       { echo "$as_me: error: invalid package name: $ac_package" >&2
1411    { (exit 1); exit 1; }; }
1412     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1413     eval with_$ac_package=no ;;
1414
1415   --x)
1416     # Obsolete; use --with-x.
1417     with_x=yes ;;
1418
1419   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1420   | --x-incl | --x-inc | --x-in | --x-i)
1421     ac_prev=x_includes ;;
1422   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1423   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1424     x_includes=$ac_optarg ;;
1425
1426   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1427   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1428     ac_prev=x_libraries ;;
1429   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1430   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1431     x_libraries=$ac_optarg ;;
1432
1433   -*) { echo "$as_me: error: unrecognized option: $ac_option
1434 Try \`$0 --help' for more information." >&2
1435    { (exit 1); exit 1; }; }
1436     ;;
1437
1438   *=*)
1439     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440     # Reject names that are not valid shell variable names.
1441     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1442       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1443    { (exit 1); exit 1; }; }
1444     eval $ac_envvar=\$ac_optarg
1445     export $ac_envvar ;;
1446
1447   *)
1448     # FIXME: should be removed in autoconf 3.0.
1449     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1450     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1451       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1452     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1453     ;;
1454
1455   esac
1456 done
1457
1458 if test -n "$ac_prev"; then
1459   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1460   { echo "$as_me: error: missing argument to $ac_option" >&2
1461    { (exit 1); exit 1; }; }
1462 fi
1463
1464 # Be sure to have absolute directory names.
1465 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1466                 datadir sysconfdir sharedstatedir localstatedir includedir \
1467                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1468                 libdir localedir mandir
1469 do
1470   eval ac_val=\$$ac_var
1471   case $ac_val in
1472     [\\/$]* | ?:[\\/]* )  continue;;
1473     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1474   esac
1475   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1476    { (exit 1); exit 1; }; }
1477 done
1478
1479 # There might be people who depend on the old broken behavior: `$host'
1480 # used to hold the argument of --host etc.
1481 # FIXME: To remove some day.
1482 build=$build_alias
1483 host=$host_alias
1484 target=$target_alias
1485
1486 # FIXME: To remove some day.
1487 if test "x$host_alias" != x; then
1488   if test "x$build_alias" = x; then
1489     cross_compiling=maybe
1490     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1491     If a cross compiler is detected then cross compile mode will be used." >&2
1492   elif test "x$build_alias" != "x$host_alias"; then
1493     cross_compiling=yes
1494   fi
1495 fi
1496
1497 ac_tool_prefix=
1498 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1499
1500 test "$silent" = yes && exec 6>/dev/null
1501
1502
1503 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1504 ac_ls_di=`ls -di .` &&
1505 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1506   { echo "$as_me: error: Working directory cannot be determined" >&2
1507    { (exit 1); exit 1; }; }
1508 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509   { echo "$as_me: error: pwd does not report name of working directory" >&2
1510    { (exit 1); exit 1; }; }
1511
1512
1513 # Find the source files, if location was not specified.
1514 if test -z "$srcdir"; then
1515   ac_srcdir_defaulted=yes
1516   # Try the directory containing this script, then the parent directory.
1517   ac_confdir=`$as_dirname -- "$0" ||
1518 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1519          X"$0" : 'X\(//\)[^/]' \| \
1520          X"$0" : 'X\(//\)$' \| \
1521          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1522 echo X"$0" |
1523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524             s//\1/
1525             q
1526           }
1527           /^X\(\/\/\)[^/].*/{
1528             s//\1/
1529             q
1530           }
1531           /^X\(\/\/\)$/{
1532             s//\1/
1533             q
1534           }
1535           /^X\(\/\).*/{
1536             s//\1/
1537             q
1538           }
1539           s/.*/./; q'`
1540   srcdir=$ac_confdir
1541   if test ! -r "$srcdir/$ac_unique_file"; then
1542     srcdir=..
1543   fi
1544 else
1545   ac_srcdir_defaulted=no
1546 fi
1547 if test ! -r "$srcdir/$ac_unique_file"; then
1548   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1549   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553 ac_abs_confdir=`(
1554         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1555    { (exit 1); exit 1; }; }
1556         pwd)`
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559   srcdir=.
1560 fi
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1564 case $srcdir in
1565 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1566 esac
1567 for ac_var in $ac_precious_vars; do
1568   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569   eval ac_env_${ac_var}_value=\$${ac_var}
1570   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1572 done
1573
1574 #
1575 # Report the --help message.
1576 #
1577 if test "$ac_init_help" = "long"; then
1578   # Omit some internal or obsolete options to make the list less imposing.
1579   # This message is too long to be a string in the A/UX 3.1 sh.
1580   cat <<_ACEOF
1581 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1582
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1584
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE.  See below for descriptions of some of the useful variables.
1587
1588 Defaults for the options are specified in brackets.
1589
1590 Configuration:
1591   -h, --help              display this help and exit
1592       --help=short        display options specific to this package
1593       --help=recursive    display the short help of all the included packages
1594   -V, --version           display version information and exit
1595   -q, --quiet, --silent   do not print \`checking...' messages
1596       --cache-file=FILE   cache test results in FILE [disabled]
1597   -C, --config-cache      alias for \`--cache-file=config.cache'
1598   -n, --no-create         do not create output files
1599       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1600
1601 Installation directories:
1602   --prefix=PREFIX         install architecture-independent files in PREFIX
1603                           [$ac_default_prefix]
1604   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1605                           [PREFIX]
1606
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1611
1612 For better control, use the options below.
1613
1614 Fine tuning of the installation directories:
1615   --bindir=DIR           user executables [EPREFIX/bin]
1616   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1617   --libexecdir=DIR       program executables [EPREFIX/libexec]
1618   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1619   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1620   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1621   --libdir=DIR           object code libraries [EPREFIX/lib]
1622   --includedir=DIR       C header files [PREFIX/include]
1623   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1624   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1625   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1626   --infodir=DIR          info documentation [DATAROOTDIR/info]
1627   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1628   --mandir=DIR           man documentation [DATAROOTDIR/man]
1629   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1630   --htmldir=DIR          html documentation [DOCDIR]
1631   --dvidir=DIR           dvi documentation [DOCDIR]
1632   --pdfdir=DIR           pdf documentation [DOCDIR]
1633   --psdir=DIR            ps documentation [DOCDIR]
1634 _ACEOF
1635
1636   cat <<\_ACEOF
1637
1638 X features:
1639   --x-includes=DIR    X include files are in DIR
1640   --x-libraries=DIR   X library files are in DIR
1641
1642 System types:
1643   --build=BUILD     configure for building on BUILD [guessed]
1644   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1645 _ACEOF
1646 fi
1647
1648 if test -n "$ac_init_help"; then
1649   case $ac_init_help in
1650      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1651    esac
1652   cat <<\_ACEOF
1653
1654 Optional Features:
1655   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1656   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1657   --disable-gui           don't build GUI parts of the library
1658   --enable-monolithic     build wxWidgets as single library
1659   --enable-plugins        build parts of wxWidgets as loadable components
1660   --enable-official_build official build of wxWidgets (win32 DLL only)
1661   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1662   --disable-all-features  disable all optional features to build minimal library
1663   --enable-universal      use wxWidgets GUI controls instead of native ones
1664   --enable-nanox          use NanoX
1665   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1666   --enable-gpe            use GNOME PDA Environment features if possible
1667   --disable-shared        create static library instead of shared
1668   --enable-debug          same as debug_flag and debug_info
1669   --enable-stl            use STL for containers
1670   --enable-std_iostreams  use standard C++ stream classes
1671   --enable-std_string     use standard C++ string classes
1672   --disable-unicode       compile without Unicode support
1673   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1674   --enable-utf8           use UTF-8 representation for strings (Unix only)
1675   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1676   --enable-extended_rtti  use extended RTTI (XTI)
1677   --enable-omf            use OMF object format
1678   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1679   --enable-debug_info     create code with debugging information
1680   --disable-optimise      compile without optimisations
1681   --enable-debug_gdb      create code with extra GDB debugging information
1682   --enable-debug_cntxt    use wxDebugContext
1683   --enable-mem_tracing    create code with memory tracing
1684   --enable-profile        create code with profiling information
1685   --enable-no_rtti        create code without RTTI information
1686   --enable-no_exceptions  create code without C++ exceptions handling
1687   --enable-permissive     compile code disregarding strict ANSI
1688   --enable-no_deps        create code without dependency information
1689   --disable-vararg_macros don't use vararg macros, even if they are supported
1690   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1691   --enable-compat26       enable wxWidgets 2.6 compatibility
1692   --disable-compat28      disable wxWidgets 2.8 compatibility
1693   --disable-rpath         disable use of rpath for uninstalled builds
1694   --enable-objc_uniquifying enable Objective-C class name uniquifying
1695   --disable-visibility    disable use of ELF symbols visibility even if supported
1696   --enable-intl           use internationalization system
1697   --enable-xlocale        use x-locale support (requires wxLocale)
1698   --enable-config         use wxConfig (and derived) classes
1699   --enable-protocols      use wxProtocol and derived classes
1700   --enable-ftp            use wxFTP (requires wxProtocol
1701   --enable-http           use wxHTTP (requires wxProtocol
1702   --enable-fileproto      use wxFileProto class (requires wxProtocol
1703   --enable-sockets        use socket/network classes
1704   --enable-ipv6           enable IPv6 support in wxSocket
1705   --enable-ole            use OLE classes (Win32 only)
1706   --enable-dataobj        use data object classes
1707   --enable-ipc            use interprocess communication (wxSocket etc.)
1708   --enable-baseevtloop    use event loop in console programs too
1709   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1710   --enable-selectloop     use wxSelectDispatcher class
1711   --enable-apple_ieee     use the Apple IEEE codec
1712   --enable-arcstream      use wxArchive streams
1713   --enable-base64         use base64 encoding/decoding functions
1714   --enable-backtrace      use wxStackWalker class for getting backtraces
1715   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1716   --enable-cmdline        use wxCmdLineParser class
1717   --enable-datetime       use wxDateTime class
1718   --enable-debugreport    use wxDebugReport class
1719   --enable-dialupman      use dialup network classes
1720   --enable-dynlib         use wxLibrary class for DLL loading
1721   --enable-dynamicloader  use (new) wxDynamicLibrary class
1722   --enable-exceptions     build exception-safe library
1723   --enable-ffile          use wxFFile class
1724   --enable-file           use wxFile class
1725   --enable-filesystem     use virtual file systems classes
1726   --enable-fontenum       use wxFontEnumerator class
1727   --enable-fontmap        use font encodings conversion classes
1728   --enable-fs_archive     use virtual archive filesystems
1729   --enable-fs_inet        use virtual HTTP/FTP filesystems
1730   --enable-fs_zip         now replaced by fs_archive
1731   --enable-geometry       use geometry class
1732   --enable-log            use logging system
1733   --enable-longlong       use wxLongLong class
1734   --enable-mimetype       use wxMimeTypesManager
1735   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1736   --enable-snglinst       use wxSingleInstanceChecker class
1737   --enable-sound          use wxSound class
1738   --enable-stdpaths       use wxStandardPaths class
1739   --enable-stopwatch      use wxStopWatch class
1740   --enable-streams        use wxStream etc classes
1741   --enable-sysoptions     use wxSystemOptions
1742   --enable-tarstream      use wxTar streams
1743   --enable-textbuf        use wxTextBuffer class
1744   --enable-textfile       use wxTextFile class
1745   --enable-timer          use wxTimer class
1746   --enable-variant        use wxVariant class
1747   --enable-zipstream      use wxZip streams
1748   --enable-url            use wxURL class
1749   --enable-protocol       use wxProtocol class
1750   --enable-protocol-http  HTTP support in wxProtocol
1751   --enable-protocol-ftp   FTP support in wxProtocol
1752   --enable-protocol-file  FILE support in wxProtocol
1753   --enable-threads        use threads
1754   --enable-iniconf        use wxIniConfig (Win32 only)
1755   --enable-regkey         use wxRegKey class (Win32 only)
1756   --enable-docview        use document view architecture
1757   --enable-help           use help subsystem
1758   --enable-mshtmlhelp     use MS HTML Help (win32)
1759   --enable-html           use wxHTML sub-library
1760   --enable-htmlhelp       use wxHTML-based help
1761   --enable-xrc            use XRC resources sub-library
1762   --enable-aui            use AUI docking library
1763   --enable-propgrid       use wxPropertyGrid library
1764   --enable-stc            use wxStyledTextCtrl library
1765   --enable-constraints    use layout-constraints system
1766   --enable-loggui         use standard GUI logger
1767   --enable-logwin         use wxLogWindow
1768   --enable-logdialog      use wxLogDialog
1769   --enable-mdi            use multiple document interface architecture
1770   --enable-mdidoc         use docview architecture with MDI
1771   --enable-mediactrl      use wxMediaCtrl class
1772   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1773   --enable-webkit         use wxWebKitCtrl (Mac)
1774   --enable-richtext       use wxRichTextCtrl
1775   --enable-graphics_ctx   use graphics context 2D drawing API
1776   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1777   --enable-printarch      use printing architecture
1778   --enable-svg            use wxSVGFileDC device context
1779   --enable-clipboard      use wxClipboard class
1780   --enable-dnd            use Drag'n'Drop classes
1781   --enable-metafile       use win32 metafiles
1782   --disable-controls      disable compilation of all standard controls
1783   --enable-accel          use accelerators
1784   --enable-animatectrl    use wxAnimationCtrl class
1785   --enable-bmpbutton      use wxBitmapButton class
1786   --enable-bmpcombobox    use wxBitmapComboBox class
1787   --enable-button         use wxButton class
1788   --enable-calendar       use wxCalendarCtrl class
1789   --enable-caret          use wxCaret class
1790   --enable-checkbox       use wxCheckBox class
1791   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1792   --enable-choice         use wxChoice class
1793   --enable-choicebook     use wxChoicebook class
1794   --enable-collpane       use wxCollapsiblePane class
1795   --enable-colourpicker   use wxColourPickerCtrl class
1796   --enable-combobox       use wxComboBox class
1797   --enable-comboctrl      use wxComboCtrl class
1798   --enable-dataviewctrl   use wxDataViewCtrl class
1799   --enable-datepick       use wxDatePickerCtrl class
1800   --enable-detect_sm      use code to detect X11 session manager
1801   --enable-dirpicker      use wxDirPickerCtrl class
1802   --enable-display        use wxDisplay class
1803   --enable-editablebox    use wxEditableListBox class
1804   --enable-filectrl       use wxFileCtrl class
1805   --enable-filepicker     use wxFilePickerCtrl class
1806   --enable-fontpicker     use wxFontPickerCtrl class
1807   --enable-gauge          use wxGauge class
1808   --enable-grid           use wxGrid class
1809   --enable-headerctrl     use wxHeaderCtrl class
1810   --enable-hyperlink      use wxHyperlinkCtrl class
1811   --enable-imaglist       use wxImageList class
1812   --enable-listbook       use wxListbook class
1813   --enable-listbox        use wxListBox class
1814   --enable-listctrl       use wxListCtrl class
1815   --enable-notebook       use wxNotebook class
1816   --enable-notifmsg       use wxNotificationMessage class
1817   --enable-odcombobox     use wxOwnerDrawnComboBox class
1818   --enable-popupwin       use wxPopUpWindow class
1819   --enable-radiobox       use wxRadioBox class
1820   --enable-radiobtn       use wxRadioButton class
1821   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1822   --enable-sash           use wxSashWindow class
1823   --enable-scrollbar      use wxScrollBar class and scrollable windows
1824   --enable-searchctrl     use wxSearchCtrl class
1825   --enable-slider         use wxSlider class
1826   --enable-spinbtn        use wxSpinButton class
1827   --enable-spinctrl       use wxSpinCtrl class
1828   --enable-splitter       use wxSplitterWindow class
1829   --enable-statbmp        use wxStaticBitmap class
1830   --enable-statbox        use wxStaticBox class
1831   --enable-statline       use wxStaticLine class
1832   --enable-stattext       use wxStaticText class
1833   --enable-statusbar      use wxStatusBar class
1834   --enable-taskbaricon    use wxTaskBarIcon class
1835   --enable-tbarnative     use native wxToolBar class
1836   --enable-textctrl       use wxTextCtrl class
1837   --enable-tipwindow      use wxTipWindow class
1838   --enable-togglebtn      use wxToggleButton class
1839   --enable-toolbar        use wxToolBar class
1840   --enable-toolbook       use wxToolbook class
1841   --enable-treebook       use wxTreebook class
1842   --enable-treectrl       use wxTreeCtrl class
1843   --enable-commondlg      use all common dialogs
1844   --enable-aboutdlg       use wxAboutBox
1845   --enable-choicedlg      use wxChoiceDialog
1846   --enable-coldlg         use wxColourDialog
1847   --enable-filedlg        use wxFileDialog
1848   --enable-finddlg        use wxFindReplaceDialog
1849   --enable-fontdlg        use wxFontDialog
1850   --enable-dirdlg         use wxDirDialog
1851   --enable-msgdlg         use wxMessageDialog
1852   --enable-numberdlg      use wxNumberEntryDialog
1853   --enable-splash         use wxSplashScreen
1854   --enable-textdlg        use wxTextDialog
1855   --enable-tipdlg         use startup tips
1856   --enable-progressdlg    use wxProgressDialog
1857   --enable-wizarddlg      use wxWizard
1858   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1859   --enable-miniframe      use wxMiniFrame class
1860   --enable-tooltips       use wxToolTip class
1861   --enable-splines        use spline drawing code
1862   --enable-mousewheel     use mousewheel
1863   --enable-validators     use wxValidator and derived classes
1864   --enable-busyinfo       use wxBusyInfo
1865   --enable-joystick       use wxJoystick
1866   --enable-metafiles      use wxMetaFile (Win32 only)
1867   --enable-dragimage      use wxDragImage
1868   --enable-accessibility  enable accessibility support
1869   --enable-palette        use wxPalette class
1870   --enable-image          use wxImage class
1871   --enable-gif            use gif images (GIF file format)
1872   --enable-pcx            use pcx images (PCX file format)
1873   --enable-tga            use tga images (TGA file format)
1874   --enable-iff            use iff images (IFF file format)
1875   --enable-pnm            use pnm images (PNM file format)
1876   --enable-xpm            use xpm images (XPM file format)
1877   --enable-ico_cur        use Windows ICO and CUR formats
1878   --enable-dccache        cache temporary wxDC objects (Win32 only)
1879   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1880   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1881   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1882   --enable-wxdib          use wxDIB class (Win32 only)
1883   --enable-autoidman      use automatic ids management
1884   --disable-largefile     omit support for large files
1885   --disable-gtktest       do not try to compile and run a test GTK+ program
1886   --disable-gtktest       Do not try to compile and run a test GTK program
1887   --disable-sdltest       Do not try to compile and run a test SDL program
1888   --enable-omf            use OMF object format (OS/2)
1889   --disable-dependency-tracking
1890                           don't use dependency tracking even if the compiler
1891                           can
1892   --disable-precomp-headers
1893                           don't use precompiled headers even if compiler can
1894
1895 Optional Packages:
1896   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1897   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1898   --without-subdirs       don't generate makefiles for samples/demos/...
1899   --with-flavour=NAME     specify a name to identify this build
1900   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1901   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1902   --with-motif            use Motif/Lesstif
1903   --with-osx_carbon       use Mac OS X (Carbon)
1904   --with-osx_cocoa        use Mac OS X (Cocoa)
1905   --with-mac              use Mac OS X (Default)
1906   --with-cocoa            use Cocoa
1907   --with-wine             use Wine
1908   --with-msw              use MS-Windows
1909   --with-pm               use OS/2 Presentation Manager
1910   --with-mgl              use SciTech MGL
1911   --with-directfb         use DirectFB
1912   --with-microwin         use MicroWindows
1913   --with-x11              use X11
1914   --with-libpng           use libpng (PNG image format)
1915   --with-libjpeg          use libjpeg (JPEG file format)
1916   --with-libtiff          use libtiff (TIFF file format)
1917   --with-libxpm           use libxpm (XPM file format)
1918   --with-libiconv         use libiconv (character conversion)
1919   --with-libmspack        use libmspack (CHM help files loading)
1920   --without-gtkprint      don't use GTK printing support
1921   --without-gnomeprint    don't use GNOME printing libraries
1922   --with-gnomevfs         use GNOME VFS for associating MIME types
1923   --with-hildon           use Hildon framework for Nokia 770
1924   --with-opengl           use OpenGL (or Mesa)
1925   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1926   --with-sdl              use SDL for audio on Unix
1927   --with-regex            enable support for wxRegEx class
1928   --with-zlib             use zlib for LZW compression
1929   --with-expat            enable XML support using expat parser
1930   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1931   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1932   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1933   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1934   --with-x                use the X Window System
1935   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1936   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1937   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1938   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1939   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1940
1941 Some influential environment variables:
1942   CC          C compiler command
1943   CFLAGS      C compiler flags
1944   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1945               nonstandard directory <lib dir>
1946   LIBS        libraries to pass to the linker, e.g. -l<library>
1947   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1948               you have headers in a nonstandard directory <include dir>
1949   CPP         C preprocessor
1950   CXX         C++ compiler command
1951   CXXFLAGS    C++ compiler flags
1952   PKG_CONFIG  path to pkg-config utility
1953   DIRECTFB_CFLAGS
1954               C compiler flags for DIRECTFB, overriding pkg-config
1955   DIRECTFB_LIBS
1956               linker flags for DIRECTFB, overriding pkg-config
1957   XMKMF       Path to xmkmf, Makefile generator for X Window System
1958   PANGOX_CFLAGS
1959               C compiler flags for PANGOX, overriding pkg-config
1960   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1961   PANGOFT2_CFLAGS
1962               C compiler flags for PANGOFT2, overriding pkg-config
1963   PANGOFT2_LIBS
1964               linker flags for PANGOFT2, overriding pkg-config
1965   PANGOXFT_CFLAGS
1966               C compiler flags for PANGOXFT, overriding pkg-config
1967   PANGOXFT_LIBS
1968               linker flags for PANGOXFT, overriding pkg-config
1969   GTKPRINT_CFLAGS
1970               C compiler flags for GTKPRINT, overriding pkg-config
1971   GTKPRINT_LIBS
1972               linker flags for GTKPRINT, overriding pkg-config
1973   LIBGNOMEPRINTUI_CFLAGS
1974               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1975   LIBGNOMEPRINTUI_LIBS
1976               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1977   GNOMEVFS_CFLAGS
1978               C compiler flags for GNOMEVFS, overriding pkg-config
1979   GNOMEVFS_LIBS
1980               linker flags for GNOMEVFS, overriding pkg-config
1981   HILDON_CFLAGS
1982               C compiler flags for HILDON, overriding pkg-config
1983   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1984   CAIRO_CFLAGS
1985               C compiler flags for CAIRO, overriding pkg-config
1986   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1987   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1988   GST_LIBS    linker flags for GST, overriding pkg-config
1989
1990 Use these variables to override the choices made by `configure' or to help
1991 it to find libraries and programs with nonstandard names/locations.
1992
1993 Report bugs to <wx-dev@lists.wxwidgets.org>.
1994 _ACEOF
1995 ac_status=$?
1996 fi
1997
1998 if test "$ac_init_help" = "recursive"; then
1999   # If there are subdirs, report their specific --help.
2000   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2001     test -d "$ac_dir" || continue
2002     ac_builddir=.
2003
2004 case "$ac_dir" in
2005 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2006 *)
2007   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2008   # A ".." for each directory in $ac_dir_suffix.
2009   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2010   case $ac_top_builddir_sub in
2011   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2012   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2013   esac ;;
2014 esac
2015 ac_abs_top_builddir=$ac_pwd
2016 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2017 # for backward compatibility:
2018 ac_top_builddir=$ac_top_build_prefix
2019
2020 case $srcdir in
2021   .)  # We are building in place.
2022     ac_srcdir=.
2023     ac_top_srcdir=$ac_top_builddir_sub
2024     ac_abs_top_srcdir=$ac_pwd ;;
2025   [\\/]* | ?:[\\/]* )  # Absolute name.
2026     ac_srcdir=$srcdir$ac_dir_suffix;
2027     ac_top_srcdir=$srcdir
2028     ac_abs_top_srcdir=$srcdir ;;
2029   *) # Relative name.
2030     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2031     ac_top_srcdir=$ac_top_build_prefix$srcdir
2032     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2033 esac
2034 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2035
2036     cd "$ac_dir" || { ac_status=$?; continue; }
2037     # Check for guested configure.
2038     if test -f "$ac_srcdir/configure.gnu"; then
2039       echo &&
2040       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2041     elif test -f "$ac_srcdir/configure"; then
2042       echo &&
2043       $SHELL "$ac_srcdir/configure" --help=recursive
2044     else
2045       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2046     fi || ac_status=$?
2047     cd "$ac_pwd" || { ac_status=$?; break; }
2048   done
2049 fi
2050
2051 test -n "$ac_init_help" && exit $ac_status
2052 if $ac_init_version; then
2053   cat <<\_ACEOF
2054 wxWidgets configure 2.9.0
2055 generated by GNU Autoconf 2.61
2056
2057 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2058 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2059 This configure script is free software; the Free Software Foundation
2060 gives unlimited permission to copy, distribute and modify it.
2061 _ACEOF
2062   exit
2063 fi
2064 cat >config.log <<_ACEOF
2065 This file contains any messages produced by compilers while
2066 running configure, to aid debugging if configure makes a mistake.
2067
2068 It was created by wxWidgets $as_me 2.9.0, which was
2069 generated by GNU Autoconf 2.61.  Invocation command line was
2070
2071   $ $0 $@
2072
2073 _ACEOF
2074 exec 5>>config.log
2075 {
2076 cat <<_ASUNAME
2077 ## --------- ##
2078 ## Platform. ##
2079 ## --------- ##
2080
2081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2089
2090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2097
2098 _ASUNAME
2099
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   echo "PATH: $as_dir"
2106 done
2107 IFS=$as_save_IFS
2108
2109 } >&5
2110
2111 cat >&5 <<_ACEOF
2112
2113
2114 ## ----------- ##
2115 ## Core tests. ##
2116 ## ----------- ##
2117
2118 _ACEOF
2119
2120
2121 # Keep a trace of the command line.
2122 # Strip out --no-create and --no-recursion so they do not pile up.
2123 # Strip out --silent because we don't want to record it for future runs.
2124 # Also quote any args containing shell meta-characters.
2125 # Make two passes to allow for proper duplicate-argument suppression.
2126 ac_configure_args=
2127 ac_configure_args0=
2128 ac_configure_args1=
2129 ac_must_keep_next=false
2130 for ac_pass in 1 2
2131 do
2132   for ac_arg
2133   do
2134     case $ac_arg in
2135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137     | -silent | --silent | --silen | --sile | --sil)
2138       continue ;;
2139     *\'*)
2140       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141     esac
2142     case $ac_pass in
2143     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2144     2)
2145       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2146       if test $ac_must_keep_next = true; then
2147         ac_must_keep_next=false # Got value, back to normal.
2148       else
2149         case $ac_arg in
2150           *=* | --config-cache | -C | -disable-* | --disable-* \
2151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153           | -with-* | --with-* | -without-* | --without-* | --x)
2154             case "$ac_configure_args0 " in
2155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156             esac
2157             ;;
2158           -* ) ac_must_keep_next=true ;;
2159         esac
2160       fi
2161       ac_configure_args="$ac_configure_args '$ac_arg'"
2162       ;;
2163     esac
2164   done
2165 done
2166 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2167 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2168
2169 # When interrupted or exit'd, cleanup temporary files, and complete
2170 # config.log.  We remove comments because anyway the quotes in there
2171 # would cause problems or look ugly.
2172 # WARNING: Use '\'' to represent an apostrophe within the trap.
2173 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174 trap 'exit_status=$?
2175   # Save into config.log some information that might help in debugging.
2176   {
2177     echo
2178
2179     cat <<\_ASBOX
2180 ## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##
2183 _ASBOX
2184     echo
2185     # The following way of writing the cache mishandles newlines in values,
2186 (
2187   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188     eval ac_val=\$$ac_var
2189     case $ac_val in #(
2190     *${as_nl}*)
2191       case $ac_var in #(
2192       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2193 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2194       esac
2195       case $ac_var in #(
2196       _ | IFS | as_nl) ;; #(
2197       *) $as_unset $ac_var ;;
2198       esac ;;
2199     esac
2200   done
2201   (set) 2>&1 |
2202     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203     *${as_nl}ac_space=\ *)
2204       sed -n \
2205         "s/'\''/'\''\\\\'\'''\''/g;
2206           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207       ;; #(
2208     *)
2209       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210       ;;
2211     esac |
2212     sort
2213 )
2214     echo
2215
2216     cat <<\_ASBOX
2217 ## ----------------- ##
2218 ## Output variables. ##
2219 ## ----------------- ##
2220 _ASBOX
2221     echo
2222     for ac_var in $ac_subst_vars
2223     do
2224       eval ac_val=\$$ac_var
2225       case $ac_val in
2226       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227       esac
2228       echo "$ac_var='\''$ac_val'\''"
2229     done | sort
2230     echo
2231
2232     if test -n "$ac_subst_files"; then
2233       cat <<\_ASBOX
2234 ## ------------------- ##
2235 ## File substitutions. ##
2236 ## ------------------- ##
2237 _ASBOX
2238       echo
2239       for ac_var in $ac_subst_files
2240       do
2241         eval ac_val=\$$ac_var
2242         case $ac_val in
2243         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244         esac
2245         echo "$ac_var='\''$ac_val'\''"
2246       done | sort
2247       echo
2248     fi
2249
2250     if test -s confdefs.h; then
2251       cat <<\_ASBOX
2252 ## ----------- ##
2253 ## confdefs.h. ##
2254 ## ----------- ##
2255 _ASBOX
2256       echo
2257       cat confdefs.h
2258       echo
2259     fi
2260     test "$ac_signal" != 0 &&
2261       echo "$as_me: caught signal $ac_signal"
2262     echo "$as_me: exit $exit_status"
2263   } >&5
2264   rm -f core *.core core.conftest.* &&
2265     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2266     exit $exit_status
2267 ' 0
2268 for ac_signal in 1 2 13 15; do
2269   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2270 done
2271 ac_signal=0
2272
2273 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2274 rm -f -r conftest* confdefs.h
2275
2276 # Predefined preprocessor variables.
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_NAME "$PACKAGE_NAME"
2280 _ACEOF
2281
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2285 _ACEOF
2286
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2290 _ACEOF
2291
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_STRING "$PACKAGE_STRING"
2295 _ACEOF
2296
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2300 _ACEOF
2301
2302
2303 # Let the site file select an alternate cache file if it wants to.
2304 # Prefer explicitly selected file to automatically selected ones.
2305 if test -n "$CONFIG_SITE"; then
2306   set x "$CONFIG_SITE"
2307 elif test "x$prefix" != xNONE; then
2308   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2309 else
2310   set x "$ac_default_prefix/share/config.site" \
2311         "$ac_default_prefix/etc/config.site"
2312 fi
2313 shift
2314 for ac_site_file
2315 do
2316   if test -r "$ac_site_file"; then
2317     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2318 echo "$as_me: loading site script $ac_site_file" >&6;}
2319     sed 's/^/| /' "$ac_site_file" >&5
2320     . "$ac_site_file"
2321   fi
2322 done
2323
2324 if test -r "$cache_file"; then
2325   # Some versions of bash will fail to source /dev/null (special
2326   # files actually), so we avoid doing that.
2327   if test -f "$cache_file"; then
2328     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2329 echo "$as_me: loading cache $cache_file" >&6;}
2330     case $cache_file in
2331       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332       *)                      . "./$cache_file";;
2333     esac
2334   fi
2335 else
2336   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2337 echo "$as_me: creating cache $cache_file" >&6;}
2338   >$cache_file
2339 fi
2340
2341 # Check that the precious variables saved in the cache have kept the same
2342 # value.
2343 ac_cache_corrupted=false
2344 for ac_var in $ac_precious_vars; do
2345   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2346   eval ac_new_set=\$ac_env_${ac_var}_set
2347   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2348   eval ac_new_val=\$ac_env_${ac_var}_value
2349   case $ac_old_set,$ac_new_set in
2350     set,)
2351       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2352 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2353       ac_cache_corrupted=: ;;
2354     ,set)
2355       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2356 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2357       ac_cache_corrupted=: ;;
2358     ,);;
2359     *)
2360       if test "x$ac_old_val" != "x$ac_new_val"; then
2361         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2362 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2363         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2364 echo "$as_me:   former value:  $ac_old_val" >&2;}
2365         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2366 echo "$as_me:   current value: $ac_new_val" >&2;}
2367         ac_cache_corrupted=:
2368       fi;;
2369   esac
2370   # Pass precious variables to config.status.
2371   if test "$ac_new_set" = set; then
2372     case $ac_new_val in
2373     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2374     *) ac_arg=$ac_var=$ac_new_val ;;
2375     esac
2376     case " $ac_configure_args " in
2377       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2378       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2379     esac
2380   fi
2381 done
2382 if $ac_cache_corrupted; then
2383   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2384 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2385   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2386 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2387    { (exit 1); exit 1; }; }
2388 fi
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419
2420
2421
2422
2423
2424 ac_aux_dir=
2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426   if test -f "$ac_dir/install-sh"; then
2427     ac_aux_dir=$ac_dir
2428     ac_install_sh="$ac_aux_dir/install-sh -c"
2429     break
2430   elif test -f "$ac_dir/install.sh"; then
2431     ac_aux_dir=$ac_dir
2432     ac_install_sh="$ac_aux_dir/install.sh -c"
2433     break
2434   elif test -f "$ac_dir/shtool"; then
2435     ac_aux_dir=$ac_dir
2436     ac_install_sh="$ac_aux_dir/shtool install -c"
2437     break
2438   fi
2439 done
2440 if test -z "$ac_aux_dir"; then
2441   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2442 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2443    { (exit 1); exit 1; }; }
2444 fi
2445
2446 # These three variables are undocumented and unsupported,
2447 # and are intended to be withdrawn in a future Autoconf release.
2448 # They can cause serious problems if a builder's source tree is in a directory
2449 # whose full name contains unusual characters.
2450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2452 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2453
2454
2455 # Make sure we can run config.sub.
2456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2457   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2458 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2459    { (exit 1); exit 1; }; }
2460
2461 { echo "$as_me:$LINENO: checking build system type" >&5
2462 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2463 if test "${ac_cv_build+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   ac_build_alias=$build_alias
2467 test "x$ac_build_alias" = x &&
2468   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2469 test "x$ac_build_alias" = x &&
2470   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2471 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2472    { (exit 1); exit 1; }; }
2473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2474   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2476    { (exit 1); exit 1; }; }
2477
2478 fi
2479 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2480 echo "${ECHO_T}$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2482 *-*-*) ;;
2483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2484 echo "$as_me: error: invalid value of canonical build" >&2;}
2485    { (exit 1); exit 1; }; };;
2486 esac
2487 build=$ac_cv_build
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_build
2490 shift
2491 build_cpu=$1
2492 build_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 build_os=$*
2497 IFS=$ac_save_IFS
2498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 { echo "$as_me:$LINENO: checking host system type" >&5
2502 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2503 if test "${ac_cv_host+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test "x$host_alias" = x; then
2507   ac_cv_host=$ac_cv_build
2508 else
2509   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2510     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2512    { (exit 1); exit 1; }; }
2513 fi
2514
2515 fi
2516 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2517 echo "${ECHO_T}$ac_cv_host" >&6; }
2518 case $ac_cv_host in
2519 *-*-*) ;;
2520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2521 echo "$as_me: error: invalid value of canonical host" >&2;}
2522    { (exit 1); exit 1; }; };;
2523 esac
2524 host=$ac_cv_host
2525 ac_save_IFS=$IFS; IFS='-'
2526 set x $ac_cv_host
2527 shift
2528 host_cpu=$1
2529 host_vendor=$2
2530 shift; shift
2531 # Remember, the first character of IFS is used to create $*,
2532 # except with old shells:
2533 host_os=$*
2534 IFS=$ac_save_IFS
2535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2536
2537
2538
2539 if test "$cross_compiling" != "no"; then
2540     HOST_PREFIX="${host_alias}-"
2541     HOST_SUFFIX="-$host_alias"
2542 else
2543     HOST_PREFIX=
2544     HOST_SUFFIX=
2545 fi
2546
2547
2548 wx_major_version_number=2
2549 wx_minor_version_number=9
2550 wx_release_number=0
2551 wx_subrelease_number=0
2552
2553 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2554 WX_VERSION=$WX_RELEASE.$wx_release_number
2555 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2556
2557 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2558
2559
2560 wx_top_builddir="`pwd`"
2561
2562
2563
2564
2565 USE_UNIX=1
2566 USE_OS2=0
2567 USE_WIN32=0
2568 USE_DOS=0
2569 USE_BEOS=0
2570 USE_MAC=0
2571
2572 USE_AIX=
2573 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2574 USE_GNU=                            USE_HPUX=
2575 USE_LINUX=
2576 USE_NETBSD=
2577 USE_OPENBSD=
2578 USE_OSF=                            USE_SGI=
2579 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2580 USE_ULTRIX=
2581 USE_UNIXWARE=
2582
2583 USE_ALPHA=
2584
2585 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2586
2587 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2588
2589 DEFAULT_wxUSE_COCOA=0
2590 DEFAULT_wxUSE_GTK=0
2591 DEFAULT_wxUSE_OSX_CARBON=0
2592 DEFAULT_wxUSE_OSX_COCOA=0
2593 DEFAULT_wxUSE_MGL=0
2594 DEFAULT_wxUSE_MICROWIN=0
2595 DEFAULT_wxUSE_MOTIF=0
2596 DEFAULT_wxUSE_MSW=0
2597 DEFAULT_wxUSE_PM=0
2598 DEFAULT_wxUSE_X11=0
2599 DEFAULT_wxUSE_DFB=0
2600
2601 DEFAULT_DEFAULT_wxUSE_COCOA=0
2602 DEFAULT_DEFAULT_wxUSE_GTK=0
2603 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2604 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2605 DEFAULT_DEFAULT_wxUSE_MGL=0
2606 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2607 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2608 DEFAULT_DEFAULT_wxUSE_MSW=0
2609 DEFAULT_DEFAULT_wxUSE_PM=0
2610 DEFAULT_DEFAULT_wxUSE_X11=0
2611 DEFAULT_DEFAULT_wxUSE_DFB=0
2612
2613 PROGRAM_EXT=
2614 SAMPLES_RPATH_FLAG=
2615 DYLIB_RPATH_INSTALL=
2616 DYLIB_RPATH_POSTLINK=
2617
2618 DEFAULT_STD_FLAG=yes
2619
2620 case "${host}" in
2621   *-hp-hpux* )
2622     USE_HPUX=1
2623     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2624     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2625     cat >>confdefs.h <<\_ACEOF
2626 #define __HPUX__ 1
2627 _ACEOF
2628
2629
2630             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2631   ;;
2632   *-*-linux* )
2633     USE_LINUX=1
2634     cat >>confdefs.h <<\_ACEOF
2635 #define __LINUX__ 1
2636 _ACEOF
2637
2638     TMP=`uname -m`
2639     if test "x$TMP" = "xalpha"; then
2640       USE_ALPHA=1
2641       cat >>confdefs.h <<\_ACEOF
2642 #define __ALPHA__ 1
2643 _ACEOF
2644
2645     fi
2646     DEFAULT_DEFAULT_wxUSE_GTK=1
2647   ;;
2648   *-*-gnu* | *-*-k*bsd*-gnu )
2649     USE_GNU=1
2650     TMP=`uname -m`
2651     if test "x$TMP" = "xalpha"; then
2652       USE_ALPHA=1
2653       cat >>confdefs.h <<\_ACEOF
2654 #define __ALPHA__ 1
2655 _ACEOF
2656
2657     fi
2658     DEFAULT_DEFAULT_wxUSE_GTK=1
2659   ;;
2660   *-*-irix5* | *-*-irix6* )
2661     USE_SGI=1
2662     USE_SVR4=1
2663     cat >>confdefs.h <<\_ACEOF
2664 #define __SGI__ 1
2665 _ACEOF
2666
2667     cat >>confdefs.h <<\_ACEOF
2668 #define __SVR4__ 1
2669 _ACEOF
2670
2671     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2672   ;;
2673   *-*-solaris2* )
2674     USE_SUN=1
2675     USE_SOLARIS=1
2676     USE_SVR4=1
2677     cat >>confdefs.h <<\_ACEOF
2678 #define __SUN__ 1
2679 _ACEOF
2680
2681     cat >>confdefs.h <<\_ACEOF
2682 #define __SOLARIS__ 1
2683 _ACEOF
2684
2685     cat >>confdefs.h <<\_ACEOF
2686 #define __SVR4__ 1
2687 _ACEOF
2688
2689     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2690     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2691   ;;
2692   *-*-sunos4* )
2693     USE_SUN=1
2694     USE_SUNOS=1
2695     USE_BSD=1
2696     cat >>confdefs.h <<\_ACEOF
2697 #define __SUN__ 1
2698 _ACEOF
2699
2700     cat >>confdefs.h <<\_ACEOF
2701 #define __SUNOS__ 1
2702 _ACEOF
2703
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __BSD__ 1
2706 _ACEOF
2707
2708     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2709   ;;
2710   *-*-freebsd*)
2711     USE_BSD=1
2712     USE_FREEBSD=1
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __FREEBSD__ 1
2715 _ACEOF
2716
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __BSD__ 1
2719 _ACEOF
2720
2721     DEFAULT_DEFAULT_wxUSE_GTK=1
2722   ;;
2723   *-*-openbsd*|*-*-mirbsd*)
2724     USE_BSD=1
2725     USE_OPENBSD=1
2726     cat >>confdefs.h <<\_ACEOF
2727 #define __OPENBSD__ 1
2728 _ACEOF
2729
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __BSD__ 1
2732 _ACEOF
2733
2734     DEFAULT_DEFAULT_wxUSE_GTK=1
2735   ;;
2736   *-*-netbsd*)
2737     USE_BSD=1
2738     USE_NETBSD=1
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __NETBSD__ 1
2741 _ACEOF
2742
2743     cat >>confdefs.h <<\_ACEOF
2744 #define __BSD__ 1
2745 _ACEOF
2746
2747     DEFAULT_DEFAULT_wxUSE_GTK=1
2748     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2749
2750             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2751   ;;
2752   *-*-osf* )
2753     USE_ALPHA=1
2754     USE_OSF=1
2755     cat >>confdefs.h <<\_ACEOF
2756 #define __ALPHA__ 1
2757 _ACEOF
2758
2759     cat >>confdefs.h <<\_ACEOF
2760 #define __OSF__ 1
2761 _ACEOF
2762
2763     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2764     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2765   ;;
2766   *-*-dgux5* )
2767     USE_ALPHA=1
2768     USE_SVR4=1
2769     cat >>confdefs.h <<\_ACEOF
2770 #define __ALPHA__ 1
2771 _ACEOF
2772
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __SVR4__ 1
2775 _ACEOF
2776
2777     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2778   ;;
2779   *-*-sysv5* )
2780     USE_SYSV=1
2781     USE_SVR4=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __SYSV__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __SVR4__ 1
2788 _ACEOF
2789
2790     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2791   ;;
2792   *-*-aix* )
2793     USE_AIX=1
2794     USE_SYSV=1
2795     USE_SVR4=1
2796     cat >>confdefs.h <<\_ACEOF
2797 #define __AIX__ 1
2798 _ACEOF
2799
2800     cat >>confdefs.h <<\_ACEOF
2801 #define __SYSV__ 1
2802 _ACEOF
2803
2804     cat >>confdefs.h <<\_ACEOF
2805 #define __SVR4__ 1
2806 _ACEOF
2807
2808     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2809   ;;
2810
2811   *-*-*UnixWare*)
2812     USE_SYSV=1
2813     USE_SVR4=1
2814     USE_UNIXWARE=1
2815     cat >>confdefs.h <<\_ACEOF
2816 #define __UNIXWARE__ 1
2817 _ACEOF
2818
2819   ;;
2820
2821   *-*-cygwin* | *-*-mingw32* )
2822                 PROGRAM_EXT=".exe"
2823     DEFAULT_DEFAULT_wxUSE_MSW=1
2824   ;;
2825
2826   *-pc-msdosdjgpp )
2827     USE_UNIX=0
2828     USE_DOS=1
2829     cat >>confdefs.h <<\_ACEOF
2830 #define __DOS__ 1
2831 _ACEOF
2832
2833     PROGRAM_EXT=".exe"
2834     DEFAULT_DEFAULT_wxUSE_MGL=1
2835   ;;
2836
2837   *-pc-os2_emx | *-pc-os2-emx )
2838     cat >>confdefs.h <<\_ACEOF
2839 #define __EMX__ 1
2840 _ACEOF
2841
2842     USE_OS2=1
2843     cat >>confdefs.h <<\_ACEOF
2844 #define __OS2__ 1
2845 _ACEOF
2846
2847     PROGRAM_EXT=".exe"
2848     DEFAULT_DEFAULT_wxUSE_PM=1
2849         CXX=gcc
2850     LDFLAGS="$LDFLAGS -Zcrtdll"
2851                         ac_executable_extensions=".exe"
2852     export ac_executable_extensions
2853             ac_save_IFS="$IFS"
2854     IFS='\\'
2855     ac_TEMP_PATH=
2856     for ac_dir in $PATH; do
2857       IFS=$ac_save_IFS
2858       if test -z "$ac_TEMP_PATH"; then
2859         ac_TEMP_PATH="$ac_dir"
2860       else
2861         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2862       fi
2863     done
2864     export PATH="$ac_TEMP_PATH"
2865     unset ac_TEMP_PATH
2866     DEFAULT_STD_FLAG=no
2867   ;;
2868
2869   *-*-darwin* )
2870         USE_BSD=1
2871     USE_DARWIN=1
2872     cat >>confdefs.h <<\_ACEOF
2873 #define __BSD__ 1
2874 _ACEOF
2875
2876     cat >>confdefs.h <<\_ACEOF
2877 #define __DARWIN__ 1
2878 _ACEOF
2879
2880     cat >>confdefs.h <<\_ACEOF
2881 #define TARGET_CARBON 1
2882 _ACEOF
2883
2884     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2885     DEFAULT_STD_FLAG=no
2886   ;;
2887   powerpc-apple-macos* )
2888         USE_UNIX=0
2889             ac_cv_c_bigendian=yes
2890             DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2891     DEFAULT_STD_FLAG=no
2892   ;;
2893
2894   *-*-beos* )
2895         USE_BEOS=1
2896     cat >>confdefs.h <<\_ACEOF
2897 #define __BEOS__ 1
2898 _ACEOF
2899
2900   ;;
2901
2902   *)
2903     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2904 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2905     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2906 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2907
2908     DEFAULT_DEFAULT_wxUSE_X11=1
2909     DEFAULT_wxUSE_SHARED=no
2910 esac
2911
2912
2913
2914 DEFAULT_wxUSE_ALL_FEATURES=yes
2915
2916 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2917 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2918
2919 DEFAULT_wxUSE_DMALLOC=no
2920 DEFAULT_wxUSE_LIBGNOMEVFS=no
2921 DEFAULT_wxUSE_LIBHILDON=no
2922 DEFAULT_wxUSE_LIBMSPACK=no
2923 DEFAULT_wxUSE_LIBSDL=no
2924
2925 DEFAULT_wxUSE_ACCESSIBILITY=no
2926 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2927 DEFAULT_wxUSE_IPV6=no
2928 DEFAULT_wxUSE_GSTREAMER8=no
2929
2930 DEFAULT_wxUSE_UNICODE_UTF8=auto
2931 DEFAULT_wxUSE_OPENGL=auto
2932 DEFAULT_wxUSE_MEDIACTRL=auto
2933
2934 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2935
2936 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2937
2938 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2939
2940 DEFAULT_wxUSE_GTK2=yes
2941
2942 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2943
2944
2945
2946
2947
2948           enablestring=disable
2949           defaultval=
2950           if test -z "$defaultval"; then
2951               if test x"$enablestring" = xdisable; then
2952                   defaultval=yes
2953               else
2954                   defaultval=no
2955               fi
2956           fi
2957
2958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2959 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2960           # Check whether --enable-gui was given.
2961 if test "${enable_gui+set}" = set; then
2962   enableval=$enable_gui;
2963                           if test "$enableval" = yes; then
2964                             wx_cv_use_gui='wxUSE_GUI=yes'
2965                           else
2966                             wx_cv_use_gui='wxUSE_GUI=no'
2967                           fi
2968
2969 else
2970
2971                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2972
2973 fi
2974
2975
2976           eval "$wx_cv_use_gui"
2977
2978           if test x"$enablestring" = xdisable; then
2979             if test $wxUSE_GUI = yes; then
2980               result=no
2981             else
2982               result=yes
2983             fi
2984           else
2985             result=$wxUSE_GUI
2986           fi
2987
2988           { echo "$as_me:$LINENO: result: $result" >&5
2989 echo "${ECHO_T}$result" >&6; }
2990
2991
2992           enablestring=
2993           defaultval=
2994           if test -z "$defaultval"; then
2995               if test x"$enablestring" = xdisable; then
2996                   defaultval=yes
2997               else
2998                   defaultval=no
2999               fi
3000           fi
3001
3002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3003 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3004           # Check whether --enable-monolithic was given.
3005 if test "${enable_monolithic+set}" = set; then
3006   enableval=$enable_monolithic;
3007                           if test "$enableval" = yes; then
3008                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3009                           else
3010                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3011                           fi
3012
3013 else
3014
3015                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3016
3017 fi
3018
3019
3020           eval "$wx_cv_use_monolithic"
3021
3022           if test x"$enablestring" = xdisable; then
3023             if test $wxUSE_MONOLITHIC = yes; then
3024               result=no
3025             else
3026               result=yes
3027             fi
3028           else
3029             result=$wxUSE_MONOLITHIC
3030           fi
3031
3032           { echo "$as_me:$LINENO: result: $result" >&5
3033 echo "${ECHO_T}$result" >&6; }
3034
3035
3036           enablestring=
3037           defaultval=
3038           if test -z "$defaultval"; then
3039               if test x"$enablestring" = xdisable; then
3040                   defaultval=yes
3041               else
3042                   defaultval=no
3043               fi
3044           fi
3045
3046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3047 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3048           # Check whether --enable-plugins was given.
3049 if test "${enable_plugins+set}" = set; then
3050   enableval=$enable_plugins;
3051                           if test "$enableval" = yes; then
3052                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3053                           else
3054                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3055                           fi
3056
3057 else
3058
3059                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3060
3061 fi
3062
3063
3064           eval "$wx_cv_use_plugins"
3065
3066           if test x"$enablestring" = xdisable; then
3067             if test $wxUSE_PLUGINS = yes; then
3068               result=no
3069             else
3070               result=yes
3071             fi
3072           else
3073             result=$wxUSE_PLUGINS
3074           fi
3075
3076           { echo "$as_me:$LINENO: result: $result" >&5
3077 echo "${ECHO_T}$result" >&6; }
3078
3079
3080           withstring=without
3081           defaultval=$wxUSE_ALL_FEATURES
3082           if test -z "$defaultval"; then
3083               if test x"$withstring" = xwithout; then
3084                   defaultval=yes
3085               else
3086                   defaultval=no
3087               fi
3088           fi
3089           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3090 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3091
3092 # Check whether --with-subdirs was given.
3093 if test "${with_subdirs+set}" = set; then
3094   withval=$with_subdirs;
3095                         if test "$withval" = yes; then
3096                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3097                         else
3098                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3099                         fi
3100
3101 else
3102
3103                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3104
3105 fi
3106
3107
3108           eval "$wx_cv_use_subdirs"
3109
3110           if test x"$withstring" = xwithout; then
3111             if test $wxWITH_SUBDIRS = yes; then
3112               result=no
3113             else
3114               result=yes
3115             fi
3116           else
3117             result=$wxWITH_SUBDIRS
3118           fi
3119
3120           { echo "$as_me:$LINENO: result: $result" >&5
3121 echo "${ECHO_T}$result" >&6; }
3122
3123
3124 # Check whether --with-flavour was given.
3125 if test "${with_flavour+set}" = set; then
3126   withval=$with_flavour; WX_FLAVOUR="$withval"
3127 fi
3128
3129
3130           enablestring=
3131           defaultval=
3132           if test -z "$defaultval"; then
3133               if test x"$enablestring" = xdisable; then
3134                   defaultval=yes
3135               else
3136                   defaultval=no
3137               fi
3138           fi
3139
3140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3141 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3142           # Check whether --enable-official_build was given.
3143 if test "${enable_official_build+set}" = set; then
3144   enableval=$enable_official_build;
3145                           if test "$enableval" = yes; then
3146                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3147                           else
3148                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3149                           fi
3150
3151 else
3152
3153                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3154
3155 fi
3156
3157
3158           eval "$wx_cv_use_official_build"
3159
3160           if test x"$enablestring" = xdisable; then
3161             if test $wxUSE_OFFICIAL_BUILD = yes; then
3162               result=no
3163             else
3164               result=yes
3165             fi
3166           else
3167             result=$wxUSE_OFFICIAL_BUILD
3168           fi
3169
3170           { echo "$as_me:$LINENO: result: $result" >&5
3171 echo "${ECHO_T}$result" >&6; }
3172
3173 # Check whether --enable-vendor was given.
3174 if test "${enable_vendor+set}" = set; then
3175   enableval=$enable_vendor; VENDOR="$enableval"
3176 fi
3177
3178 if test "x$VENDOR" = "x"; then
3179     VENDOR="custom"
3180 fi
3181
3182
3183           enablestring=disable
3184           defaultval=
3185           if test -z "$defaultval"; then
3186               if test x"$enablestring" = xdisable; then
3187                   defaultval=yes
3188               else
3189                   defaultval=no
3190               fi
3191           fi
3192
3193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3194 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3195           # Check whether --enable-all-features was given.
3196 if test "${enable_all_features+set}" = set; then
3197   enableval=$enable_all_features;
3198                           if test "$enableval" = yes; then
3199                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3200                           else
3201                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3202                           fi
3203
3204 else
3205
3206                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3207
3208 fi
3209
3210
3211           eval "$wx_cv_use_all_features"
3212
3213           if test x"$enablestring" = xdisable; then
3214             if test $wxUSE_ALL_FEATURES = yes; then
3215               result=no
3216             else
3217               result=yes
3218             fi
3219           else
3220             result=$wxUSE_ALL_FEATURES
3221           fi
3222
3223           { echo "$as_me:$LINENO: result: $result" >&5
3224 echo "${ECHO_T}$result" >&6; }
3225
3226
3227 if test "$wxUSE_ALL_FEATURES" = "no"; then
3228                     DEFAULT_wxUSE_MEDIACTRL=no
3229 fi
3230
3231
3232 if test "$wxUSE_GUI" = "yes"; then
3233
3234
3235           enablestring=
3236           defaultval=
3237           if test -z "$defaultval"; then
3238               if test x"$enablestring" = xdisable; then
3239                   defaultval=yes
3240               else
3241                   defaultval=no
3242               fi
3243           fi
3244
3245           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3246 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3247           # Check whether --enable-universal was given.
3248 if test "${enable_universal+set}" = set; then
3249   enableval=$enable_universal;
3250                           if test "$enableval" = yes; then
3251                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3252                           else
3253                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3254                           fi
3255
3256 else
3257
3258                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3259
3260 fi
3261
3262
3263           eval "$wx_cv_use_universal"
3264
3265           if test x"$enablestring" = xdisable; then
3266             if test $wxUSE_UNIVERSAL = yes; then
3267               result=no
3268             else
3269               result=yes
3270             fi
3271           else
3272             result=$wxUSE_UNIVERSAL
3273           fi
3274
3275           { echo "$as_me:$LINENO: result: $result" >&5
3276 echo "${ECHO_T}$result" >&6; }
3277
3278 if test "$wxUSE_UNIVERSAL" = "yes"; then
3279
3280 # Check whether --with-themes was given.
3281 if test "${with_themes+set}" = set; then
3282   withval=$with_themes; wxUNIV_THEMES="$withval"
3283 fi
3284
3285 fi
3286
3287
3288 # Check whether --with-gtk was given.
3289 if test "${with_gtk+set}" = set; then
3290   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3291 fi
3292
3293
3294 # Check whether --with-motif was given.
3295 if test "${with_motif+set}" = set; then
3296   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3297 fi
3298
3299
3300 # Check whether --with-osx_carbon was given.
3301 if test "${with_osx_carbon+set}" = set; then
3302   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3303 fi
3304
3305
3306 # Check whether --with-osx_cocoa was given.
3307 if test "${with_osx_cocoa+set}" = set; then
3308   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3309 fi
3310
3311
3312 # Check whether --with-mac was given.
3313 if test "${with_mac+set}" = set; then
3314   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3315 fi
3316
3317
3318 # Check whether --with-cocoa was given.
3319 if test "${with_cocoa+set}" = set; then
3320   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3321 fi
3322
3323
3324 # Check whether --with-wine was given.
3325 if test "${with_wine+set}" = set; then
3326   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3327 fi
3328
3329
3330 # Check whether --with-msw was given.
3331 if test "${with_msw+set}" = set; then
3332   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3333 fi
3334
3335
3336 # Check whether --with-pm was given.
3337 if test "${with_pm+set}" = set; then
3338   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3339 fi
3340
3341
3342 # Check whether --with-mgl was given.
3343 if test "${with_mgl+set}" = set; then
3344   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3345 fi
3346
3347
3348 # Check whether --with-directfb was given.
3349 if test "${with_directfb+set}" = set; then
3350   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3351 fi
3352
3353
3354 # Check whether --with-microwin was given.
3355 if test "${with_microwin+set}" = set; then
3356   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3357 fi
3358
3359
3360 # Check whether --with-x11 was given.
3361 if test "${with_x11+set}" = set; then
3362   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3363 fi
3364
3365
3366           enablestring=
3367           defaultval=
3368           if test -z "$defaultval"; then
3369               if test x"$enablestring" = xdisable; then
3370                   defaultval=yes
3371               else
3372                   defaultval=no
3373               fi
3374           fi
3375
3376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3377 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3378           # Check whether --enable-nanox was given.
3379 if test "${enable_nanox+set}" = set; then
3380   enableval=$enable_nanox;
3381                           if test "$enableval" = yes; then
3382                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3383                           else
3384                             wx_cv_use_nanox='wxUSE_NANOX=no'
3385                           fi
3386
3387 else
3388
3389                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3390
3391 fi
3392
3393
3394           eval "$wx_cv_use_nanox"
3395
3396           if test x"$enablestring" = xdisable; then
3397             if test $wxUSE_NANOX = yes; then
3398               result=no
3399             else
3400               result=yes
3401             fi
3402           else
3403             result=$wxUSE_NANOX
3404           fi
3405
3406           { echo "$as_me:$LINENO: result: $result" >&5
3407 echo "${ECHO_T}$result" >&6; }
3408
3409
3410 # Check whether --enable-gtk2 was given.
3411 if test "${enable_gtk2+set}" = set; then
3412   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3413 fi
3414
3415
3416           enablestring=
3417           defaultval=
3418           if test -z "$defaultval"; then
3419               if test x"$enablestring" = xdisable; then
3420                   defaultval=yes
3421               else
3422                   defaultval=no
3423               fi
3424           fi
3425
3426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3427 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3428           # Check whether --enable-gpe was given.
3429 if test "${enable_gpe+set}" = set; then
3430   enableval=$enable_gpe;
3431                           if test "$enableval" = yes; then
3432                             wx_cv_use_gpe='wxUSE_GPE=yes'
3433                           else
3434                             wx_cv_use_gpe='wxUSE_GPE=no'
3435                           fi
3436
3437 else
3438
3439                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3440
3441 fi
3442
3443
3444           eval "$wx_cv_use_gpe"
3445
3446           if test x"$enablestring" = xdisable; then
3447             if test $wxUSE_GPE = yes; then
3448               result=no
3449             else
3450               result=yes
3451             fi
3452           else
3453             result=$wxUSE_GPE
3454           fi
3455
3456           { echo "$as_me:$LINENO: result: $result" >&5
3457 echo "${ECHO_T}$result" >&6; }
3458
3459
3460
3461 { echo "$as_me:$LINENO: checking for toolkit" >&5
3462 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3463
3464
3465
3466 # In Wine, we need to default to MSW, not GTK or MOTIF
3467 if test "$wxUSE_WINE" = "yes"; then
3468     DEFAULT_DEFAULT_wxUSE_GTK=0
3469     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3470     DEFAULT_DEFAULT_wxUSE_MSW=1
3471     wxUSE_SHARED=no
3472     CC=${CC:-winegcc}
3473     CXX=${CXX:-wineg++}
3474 fi
3475
3476
3477 if test "$wxUSE_GUI" = "yes"; then
3478
3479     if test "$USE_BEOS" = 1; then
3480         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3481 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3482    { (exit 1); exit 1; }; }
3483     fi
3484
3485     if test "$TOOLKIT_GIVEN" = 1; then
3486             for toolkit in $ALL_TOOLKITS; do
3487         var=wxUSE_$toolkit
3488         eval "value=\$${var}"
3489         if test "x$value" = "xno"; then
3490           eval "$var=0"
3491         elif test "x$value" != "x"; then
3492           eval "$var=1"
3493         fi
3494
3495         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3496           eval "wx${toolkit}_VERSION=$value"
3497         fi
3498       done
3499     else
3500             for toolkit in $ALL_TOOLKITS; do
3501         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3502         eval "wxUSE_$toolkit=\$${var}"
3503       done
3504     fi
3505
3506             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3507                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3508                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3509
3510         case "${host}" in
3511       *-pc-os2_emx | *-pc-os2-emx )
3512         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3513     esac
3514
3515     case "$NUM_TOOLKITS" in
3516       1)
3517       ;;
3518       0)
3519         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3520 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3521    { (exit 1); exit 1; }; }
3522       ;;
3523       *)
3524         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3525 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3526    { (exit 1); exit 1; }; }
3527     esac
3528
3529     # to be removed when --disable-gtk2 isn't needed
3530     if test "x$wxUSE_GTK2" = "xyes"; then
3531         wxGTK_VERSION=2
3532     elif test "x$wxUSE_GTK2" = "xno"; then
3533         wxGTK_VERSION=1
3534     fi
3535
3536     for toolkit in $ALL_TOOLKITS; do
3537         var=wxUSE_$toolkit
3538         eval "value=\$${var}"
3539         if test "$value" = 1; then
3540           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3541           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3542 echo "${ECHO_T}$toolkit_echo" >&6; }
3543         fi
3544     done
3545 else
3546     if test "x$host_alias" != "x"; then
3547         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3548 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3549     else
3550         { echo "$as_me:$LINENO: result: base only" >&5
3551 echo "${ECHO_T}base only" >&6; }
3552     fi
3553 fi
3554
3555 wxUSE_MAC=0
3556 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3557     wxUSE_MAC=1
3558 fi
3559
3560
3561
3562           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3563 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3564
3565 # Check whether --with-libpng was given.
3566 if test "${with_libpng+set}" = set; then
3567   withval=$with_libpng;
3568                         if test "$withval" = yes; then
3569                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3570                         elif test "$withval" = no; then
3571                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3572                         elif test "$withval" = sys; then
3573                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3574                         elif test "$withval" = builtin; then
3575                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3576                         else
3577                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3578 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3579    { (exit 1); exit 1; }; }
3580                         fi
3581
3582 else
3583
3584                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3585
3586 fi
3587
3588
3589           eval "$wx_cv_use_libpng"
3590
3591           if test "$wxUSE_LIBPNG" = yes; then
3592             { echo "$as_me:$LINENO: result: yes" >&5
3593 echo "${ECHO_T}yes" >&6; }
3594           elif test "$wxUSE_LIBPNG" = no; then
3595             { echo "$as_me:$LINENO: result: no" >&5
3596 echo "${ECHO_T}no" >&6; }
3597           elif test "$wxUSE_LIBPNG" = sys; then
3598             { echo "$as_me:$LINENO: result: system version" >&5
3599 echo "${ECHO_T}system version" >&6; }
3600           elif test "$wxUSE_LIBPNG" = builtin; then
3601             { echo "$as_me:$LINENO: result: builtin version" >&5
3602 echo "${ECHO_T}builtin version" >&6; }
3603           else
3604             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3605 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3606    { (exit 1); exit 1; }; }
3607           fi
3608
3609
3610           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3611 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3612
3613 # Check whether --with-libjpeg was given.
3614 if test "${with_libjpeg+set}" = set; then
3615   withval=$with_libjpeg;
3616                         if test "$withval" = yes; then
3617                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3618                         elif test "$withval" = no; then
3619                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3620                         elif test "$withval" = sys; then
3621                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3622                         elif test "$withval" = builtin; then
3623                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3624                         else
3625                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3626 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3627    { (exit 1); exit 1; }; }
3628                         fi
3629
3630 else
3631
3632                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3633
3634 fi
3635
3636
3637           eval "$wx_cv_use_libjpeg"
3638
3639           if test "$wxUSE_LIBJPEG" = yes; then
3640             { echo "$as_me:$LINENO: result: yes" >&5
3641 echo "${ECHO_T}yes" >&6; }
3642           elif test "$wxUSE_LIBJPEG" = no; then
3643             { echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6; }
3645           elif test "$wxUSE_LIBJPEG" = sys; then
3646             { echo "$as_me:$LINENO: result: system version" >&5
3647 echo "${ECHO_T}system version" >&6; }
3648           elif test "$wxUSE_LIBJPEG" = builtin; then
3649             { echo "$as_me:$LINENO: result: builtin version" >&5
3650 echo "${ECHO_T}builtin version" >&6; }
3651           else
3652             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3653 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3654    { (exit 1); exit 1; }; }
3655           fi
3656
3657
3658           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3659 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3660
3661 # Check whether --with-libtiff was given.
3662 if test "${with_libtiff+set}" = set; then
3663   withval=$with_libtiff;
3664                         if test "$withval" = yes; then
3665                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3666                         elif test "$withval" = no; then
3667                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3668                         elif test "$withval" = sys; then
3669                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3670                         elif test "$withval" = builtin; then
3671                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3672                         else
3673                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3674 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3675    { (exit 1); exit 1; }; }
3676                         fi
3677
3678 else
3679
3680                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3681
3682 fi
3683
3684
3685           eval "$wx_cv_use_libtiff"
3686
3687           if test "$wxUSE_LIBTIFF" = yes; then
3688             { echo "$as_me:$LINENO: result: yes" >&5
3689 echo "${ECHO_T}yes" >&6; }
3690           elif test "$wxUSE_LIBTIFF" = no; then
3691             { echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6; }
3693           elif test "$wxUSE_LIBTIFF" = sys; then
3694             { echo "$as_me:$LINENO: result: system version" >&5
3695 echo "${ECHO_T}system version" >&6; }
3696           elif test "$wxUSE_LIBTIFF" = 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-libtiff: should be yes, no, sys, or builtin" >&5
3701 echo "$as_me: error: Invalid value for --with-libtiff: 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-libxpm" >&5
3707 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3708
3709 # Check whether --with-libxpm was given.
3710 if test "${with_libxpm+set}" = set; then
3711   withval=$with_libxpm;
3712                         if test "$withval" = yes; then
3713                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3714                         elif test "$withval" = no; then
3715                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3716                         elif test "$withval" = sys; then
3717                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3718                         elif test "$withval" = builtin; then
3719                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3720                         else
3721                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3722 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3723    { (exit 1); exit 1; }; }
3724                         fi
3725
3726 else
3727
3728                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3729
3730 fi
3731
3732
3733           eval "$wx_cv_use_libxpm"
3734
3735           if test "$wxUSE_LIBXPM" = yes; then
3736             { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3738           elif test "$wxUSE_LIBXPM" = no; then
3739             { echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6; }
3741           elif test "$wxUSE_LIBXPM" = sys; then
3742             { echo "$as_me:$LINENO: result: system version" >&5
3743 echo "${ECHO_T}system version" >&6; }
3744           elif test "$wxUSE_LIBXPM" = 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-libxpm: should be yes, no, sys, or builtin" >&5
3749 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3750    { (exit 1); exit 1; }; }
3751           fi
3752
3753
3754           withstring=
3755           defaultval=$wxUSE_ALL_FEATURES
3756           if test -z "$defaultval"; then
3757               if test x"$withstring" = xwithout; then
3758                   defaultval=yes
3759               else
3760                   defaultval=no
3761               fi
3762           fi
3763           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3764 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3765
3766 # Check whether --with-libiconv was given.
3767 if test "${with_libiconv+set}" = set; then
3768   withval=$with_libiconv;
3769                         if test "$withval" = yes; then
3770                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3771                         else
3772                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3773                         fi
3774
3775 else
3776
3777                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3778
3779 fi
3780
3781
3782           eval "$wx_cv_use_libiconv"
3783
3784           if test x"$withstring" = xwithout; then
3785             if test $wxUSE_LIBICONV = yes; then
3786               result=no
3787             else
3788               result=yes
3789             fi
3790           else
3791             result=$wxUSE_LIBICONV
3792           fi
3793
3794           { echo "$as_me:$LINENO: result: $result" >&5
3795 echo "${ECHO_T}$result" >&6; }
3796
3797
3798           withstring=
3799           defaultval=$wxUSE_ALL_FEATURES
3800           if test -z "$defaultval"; then
3801               if test x"$withstring" = xwithout; then
3802                   defaultval=yes
3803               else
3804                   defaultval=no
3805               fi
3806           fi
3807           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3808 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3809
3810 # Check whether --with-libmspack was given.
3811 if test "${with_libmspack+set}" = set; then
3812   withval=$with_libmspack;
3813                         if test "$withval" = yes; then
3814                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3815                         else
3816                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3817                         fi
3818
3819 else
3820
3821                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3822
3823 fi
3824
3825
3826           eval "$wx_cv_use_libmspack"
3827
3828           if test x"$withstring" = xwithout; then
3829             if test $wxUSE_LIBMSPACK = yes; then
3830               result=no
3831             else
3832               result=yes
3833             fi
3834           else
3835             result=$wxUSE_LIBMSPACK
3836           fi
3837
3838           { echo "$as_me:$LINENO: result: $result" >&5
3839 echo "${ECHO_T}$result" >&6; }
3840
3841
3842           withstring=without
3843           defaultval=$wxUSE_ALL_FEATURES
3844           if test -z "$defaultval"; then
3845               if test x"$withstring" = xwithout; then
3846                   defaultval=yes
3847               else
3848                   defaultval=no
3849               fi
3850           fi
3851           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3852 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3853
3854 # Check whether --with-gtkprint was given.
3855 if test "${with_gtkprint+set}" = set; then
3856   withval=$with_gtkprint;
3857                         if test "$withval" = yes; then
3858                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3859                         else
3860                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3861                         fi
3862
3863 else
3864
3865                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3866
3867 fi
3868
3869
3870           eval "$wx_cv_use_gtkprint"
3871
3872           if test x"$withstring" = xwithout; then
3873             if test $wxUSE_GTKPRINT = yes; then
3874               result=no
3875             else
3876               result=yes
3877             fi
3878           else
3879             result=$wxUSE_GTKPRINT
3880           fi
3881
3882           { echo "$as_me:$LINENO: result: $result" >&5
3883 echo "${ECHO_T}$result" >&6; }
3884
3885
3886           withstring=without
3887           defaultval=$wxUSE_ALL_FEATURES
3888           if test -z "$defaultval"; then
3889               if test x"$withstring" = xwithout; then
3890                   defaultval=yes
3891               else
3892                   defaultval=no
3893               fi
3894           fi
3895           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3896 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3897
3898 # Check whether --with-gnomeprint was given.
3899 if test "${with_gnomeprint+set}" = set; then
3900   withval=$with_gnomeprint;
3901                         if test "$withval" = yes; then
3902                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3903                         else
3904                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3905                         fi
3906
3907 else
3908
3909                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3910
3911 fi
3912
3913
3914           eval "$wx_cv_use_gnomeprint"
3915
3916           if test x"$withstring" = xwithout; then
3917             if test $wxUSE_LIBGNOMEPRINT = yes; then
3918               result=no
3919             else
3920               result=yes
3921             fi
3922           else
3923             result=$wxUSE_LIBGNOMEPRINT
3924           fi
3925
3926           { echo "$as_me:$LINENO: result: $result" >&5
3927 echo "${ECHO_T}$result" >&6; }
3928
3929
3930           withstring=
3931           defaultval=$wxUSE_ALL_FEATURES
3932           if test -z "$defaultval"; then
3933               if test x"$withstring" = xwithout; then
3934                   defaultval=yes
3935               else
3936                   defaultval=no
3937               fi
3938           fi
3939           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3940 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3941
3942 # Check whether --with-gnomevfs was given.
3943 if test "${with_gnomevfs+set}" = set; then
3944   withval=$with_gnomevfs;
3945                         if test "$withval" = yes; then
3946                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3947                         else
3948                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3949                         fi
3950
3951 else
3952
3953                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3954
3955 fi
3956
3957
3958           eval "$wx_cv_use_gnomevfs"
3959
3960           if test x"$withstring" = xwithout; then
3961             if test $wxUSE_LIBGNOMEVFS = yes; then
3962               result=no
3963             else
3964               result=yes
3965             fi
3966           else
3967             result=$wxUSE_LIBGNOMEVFS
3968           fi
3969
3970           { echo "$as_me:$LINENO: result: $result" >&5
3971 echo "${ECHO_T}$result" >&6; }
3972
3973
3974           withstring=
3975           defaultval=$wxUSE_ALL_FEATURES
3976           if test -z "$defaultval"; then
3977               if test x"$withstring" = xwithout; then
3978                   defaultval=yes
3979               else
3980                   defaultval=no
3981               fi
3982           fi
3983           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3984 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3985
3986 # Check whether --with-hildon was given.
3987 if test "${with_hildon+set}" = set; then
3988   withval=$with_hildon;
3989                         if test "$withval" = yes; then
3990                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3991                         else
3992                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3993                         fi
3994
3995 else
3996
3997                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3998
3999 fi
4000
4001
4002           eval "$wx_cv_use_hildon"
4003
4004           if test x"$withstring" = xwithout; then
4005             if test $wxUSE_LIBHILDON = yes; then
4006               result=no
4007             else
4008               result=yes
4009             fi
4010           else
4011             result=$wxUSE_LIBHILDON
4012           fi
4013
4014           { echo "$as_me:$LINENO: result: $result" >&5
4015 echo "${ECHO_T}$result" >&6; }
4016
4017
4018           withstring=
4019           defaultval=$wxUSE_ALL_FEATURES
4020           if test -z "$defaultval"; then
4021               if test x"$withstring" = xwithout; then
4022                   defaultval=yes
4023               else
4024                   defaultval=no
4025               fi
4026           fi
4027           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4028 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4029
4030 # Check whether --with-opengl was given.
4031 if test "${with_opengl+set}" = set; then
4032   withval=$with_opengl;
4033                         if test "$withval" = yes; then
4034                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4035                         else
4036                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4037                         fi
4038
4039 else
4040
4041                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4042
4043 fi
4044
4045
4046           eval "$wx_cv_use_opengl"
4047
4048           if test x"$withstring" = xwithout; then
4049             if test $wxUSE_OPENGL = yes; then
4050               result=no
4051             else
4052               result=yes
4053             fi
4054           else
4055             result=$wxUSE_OPENGL
4056           fi
4057
4058           { echo "$as_me:$LINENO: result: $result" >&5
4059 echo "${ECHO_T}$result" >&6; }
4060
4061
4062 fi
4063
4064
4065           withstring=
4066           defaultval=$wxUSE_ALL_FEATURES
4067           if test -z "$defaultval"; then
4068               if test x"$withstring" = xwithout; then
4069                   defaultval=yes
4070               else
4071                   defaultval=no
4072               fi
4073           fi
4074           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4075 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4076
4077 # Check whether --with-dmalloc was given.
4078 if test "${with_dmalloc+set}" = set; then
4079   withval=$with_dmalloc;
4080                         if test "$withval" = yes; then
4081                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4082                         else
4083                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4084                         fi
4085
4086 else
4087
4088                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4089
4090 fi
4091
4092
4093           eval "$wx_cv_use_dmalloc"
4094
4095           if test x"$withstring" = xwithout; then
4096             if test $wxUSE_DMALLOC = yes; then
4097               result=no
4098             else
4099               result=yes
4100             fi
4101           else
4102             result=$wxUSE_DMALLOC
4103           fi
4104
4105           { echo "$as_me:$LINENO: result: $result" >&5
4106 echo "${ECHO_T}$result" >&6; }
4107
4108
4109           withstring=
4110           defaultval=$wxUSE_ALL_FEATURES
4111           if test -z "$defaultval"; then
4112               if test x"$withstring" = xwithout; then
4113                   defaultval=yes
4114               else
4115                   defaultval=no
4116               fi
4117           fi
4118           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4119 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4120
4121 # Check whether --with-sdl was given.
4122 if test "${with_sdl+set}" = set; then
4123   withval=$with_sdl;
4124                         if test "$withval" = yes; then
4125                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4126                         else
4127                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4128                         fi
4129
4130 else
4131
4132                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4133
4134 fi
4135
4136
4137           eval "$wx_cv_use_sdl"
4138
4139           if test x"$withstring" = xwithout; then
4140             if test $wxUSE_LIBSDL = yes; then
4141               result=no
4142             else
4143               result=yes
4144             fi
4145           else
4146             result=$wxUSE_LIBSDL
4147           fi
4148
4149           { echo "$as_me:$LINENO: result: $result" >&5
4150 echo "${ECHO_T}$result" >&6; }
4151
4152
4153           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4154 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4155
4156 # Check whether --with-regex was given.
4157 if test "${with_regex+set}" = set; then
4158   withval=$with_regex;
4159                         if test "$withval" = yes; then
4160                           wx_cv_use_regex='wxUSE_REGEX=yes'
4161                         elif test "$withval" = no; then
4162                           wx_cv_use_regex='wxUSE_REGEX=no'
4163                         elif test "$withval" = sys; then
4164                           wx_cv_use_regex='wxUSE_REGEX=sys'
4165                         elif test "$withval" = builtin; then
4166                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4167                         else
4168                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4169 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4170    { (exit 1); exit 1; }; }
4171                         fi
4172
4173 else
4174
4175                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4176
4177 fi
4178
4179
4180           eval "$wx_cv_use_regex"
4181
4182           if test "$wxUSE_REGEX" = yes; then
4183             { echo "$as_me:$LINENO: result: yes" >&5
4184 echo "${ECHO_T}yes" >&6; }
4185           elif test "$wxUSE_REGEX" = no; then
4186             { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4188           elif test "$wxUSE_REGEX" = sys; then
4189             { echo "$as_me:$LINENO: result: system version" >&5
4190 echo "${ECHO_T}system version" >&6; }
4191           elif test "$wxUSE_REGEX" = builtin; then
4192             { echo "$as_me:$LINENO: result: builtin version" >&5
4193 echo "${ECHO_T}builtin version" >&6; }
4194           else
4195             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4196 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4197    { (exit 1); exit 1; }; }
4198           fi
4199
4200
4201           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4202 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4203
4204 # Check whether --with-zlib was given.
4205 if test "${with_zlib+set}" = set; then
4206   withval=$with_zlib;
4207                         if test "$withval" = yes; then
4208                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4209                         elif test "$withval" = no; then
4210                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4211                         elif test "$withval" = sys; then
4212                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4213                         elif test "$withval" = builtin; then
4214                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4215                         else
4216                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4217 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4218    { (exit 1); exit 1; }; }
4219                         fi
4220
4221 else
4222
4223                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4224
4225 fi
4226
4227
4228           eval "$wx_cv_use_zlib"
4229
4230           if test "$wxUSE_ZLIB" = yes; then
4231             { echo "$as_me:$LINENO: result: yes" >&5
4232 echo "${ECHO_T}yes" >&6; }
4233           elif test "$wxUSE_ZLIB" = no; then
4234             { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236           elif test "$wxUSE_ZLIB" = sys; then
4237             { echo "$as_me:$LINENO: result: system version" >&5
4238 echo "${ECHO_T}system version" >&6; }
4239           elif test "$wxUSE_ZLIB" = builtin; then
4240             { echo "$as_me:$LINENO: result: builtin version" >&5
4241 echo "${ECHO_T}builtin version" >&6; }
4242           else
4243             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4244 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4245    { (exit 1); exit 1; }; }
4246           fi
4247
4248
4249           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4250 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4251
4252 # Check whether --with-expat was given.
4253 if test "${with_expat+set}" = set; then
4254   withval=$with_expat;
4255                         if test "$withval" = yes; then
4256                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4257                         elif test "$withval" = no; then
4258                           wx_cv_use_expat='wxUSE_EXPAT=no'
4259                         elif test "$withval" = sys; then
4260                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4261                         elif test "$withval" = builtin; then
4262                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4263                         else
4264                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4265 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4266    { (exit 1); exit 1; }; }
4267                         fi
4268
4269 else
4270
4271                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4272
4273 fi
4274
4275
4276           eval "$wx_cv_use_expat"
4277
4278           if test "$wxUSE_EXPAT" = yes; then
4279             { echo "$as_me:$LINENO: result: yes" >&5
4280 echo "${ECHO_T}yes" >&6; }
4281           elif test "$wxUSE_EXPAT" = no; then
4282             { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4284           elif test "$wxUSE_EXPAT" = sys; then
4285             { echo "$as_me:$LINENO: result: system version" >&5
4286 echo "${ECHO_T}system version" >&6; }
4287           elif test "$wxUSE_EXPAT" = 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-expat: should be yes, no, sys, or builtin" >&5
4292 echo "$as_me: error: Invalid value for --with-expat: 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-macosx-sdk" >&5
4298 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4299
4300 # Check whether --with-macosx-sdk was given.
4301 if test "${with_macosx_sdk+set}" = set; then
4302   withval=$with_macosx_sdk;
4303         wxUSE_MACOSX_SDK=$withval
4304         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4305
4306 fi
4307
4308 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4309 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4310
4311 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4312 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4313
4314 # Check whether --with-macosx-version-min was given.
4315 if test "${with_macosx_version_min+set}" = set; then
4316   withval=$with_macosx_version_min;
4317         wxUSE_MACOSX_VERSION_MIN=$withval
4318         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4319
4320 fi
4321
4322 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4323 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4324
4325
4326
4327           enablestring=disable
4328           defaultval=
4329           if test -z "$defaultval"; then
4330               if test x"$enablestring" = xdisable; then
4331                   defaultval=yes
4332               else
4333                   defaultval=no
4334               fi
4335           fi
4336
4337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4338 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4339           # Check whether --enable-shared was given.
4340 if test "${enable_shared+set}" = set; then
4341   enableval=$enable_shared;
4342                           if test "$enableval" = yes; then
4343                             wx_cv_use_shared='wxUSE_SHARED=yes'
4344                           else
4345                             wx_cv_use_shared='wxUSE_SHARED=no'
4346                           fi
4347
4348 else
4349
4350                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4351
4352 fi
4353
4354
4355           eval "$wx_cv_use_shared"
4356
4357           if test x"$enablestring" = xdisable; then
4358             if test $wxUSE_SHARED = yes; then
4359               result=no
4360             else
4361               result=yes
4362             fi
4363           else
4364             result=$wxUSE_SHARED
4365           fi
4366
4367           { echo "$as_me:$LINENO: result: $result" >&5
4368 echo "${ECHO_T}$result" >&6; }
4369
4370
4371           enablestring=
4372           defaultval=
4373           if test -z "$defaultval"; then
4374               if test x"$enablestring" = xdisable; then
4375                   defaultval=yes
4376               else
4377                   defaultval=no
4378               fi
4379           fi
4380
4381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4382 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4383           # Check whether --enable-debug was given.
4384 if test "${enable_debug+set}" = set; then
4385   enableval=$enable_debug;
4386                           if test "$enableval" = yes; then
4387                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4388                           else
4389                             wx_cv_use_debug='wxUSE_DEBUG=no'
4390                           fi
4391
4392 else
4393
4394                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4395
4396 fi
4397
4398
4399           eval "$wx_cv_use_debug"
4400
4401           if test x"$enablestring" = xdisable; then
4402             if test $wxUSE_DEBUG = yes; then
4403               result=no
4404             else
4405               result=yes
4406             fi
4407           else
4408             result=$wxUSE_DEBUG
4409           fi
4410
4411           { echo "$as_me:$LINENO: result: $result" >&5
4412 echo "${ECHO_T}$result" >&6; }
4413
4414
4415           enablestring=
4416           defaultval=
4417           if test -z "$defaultval"; then
4418               if test x"$enablestring" = xdisable; then
4419                   defaultval=yes
4420               else
4421                   defaultval=no
4422               fi
4423           fi
4424
4425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4426 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4427           # Check whether --enable-stl was given.
4428 if test "${enable_stl+set}" = set; then
4429   enableval=$enable_stl;
4430                           if test "$enableval" = yes; then
4431                             wx_cv_use_stl='wxUSE_STL=yes'
4432                           else
4433                             wx_cv_use_stl='wxUSE_STL=no'
4434                           fi
4435
4436 else
4437
4438                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4439
4440 fi
4441
4442
4443           eval "$wx_cv_use_stl"
4444
4445           if test x"$enablestring" = xdisable; then
4446             if test $wxUSE_STL = yes; then
4447               result=no
4448             else
4449               result=yes
4450             fi
4451           else
4452             result=$wxUSE_STL
4453           fi
4454
4455           { echo "$as_me:$LINENO: result: $result" >&5
4456 echo "${ECHO_T}$result" >&6; }
4457
4458
4459           enablestring=
4460           defaultval=
4461           if test -z "$defaultval"; then
4462               if test x"$enablestring" = xdisable; then
4463                   defaultval=yes
4464               else
4465                   defaultval=no
4466               fi
4467           fi
4468
4469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4470 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4471           # Check whether --enable-std_iostreams was given.
4472 if test "${enable_std_iostreams+set}" = set; then
4473   enableval=$enable_std_iostreams;
4474                           if test "$enableval" = yes; then
4475                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4476                           else
4477                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4478                           fi
4479
4480 else
4481
4482                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4483
4484 fi
4485
4486
4487           eval "$wx_cv_use_std_iostreams"
4488
4489           if test x"$enablestring" = xdisable; then
4490             if test $wxUSE_STD_IOSTREAM = yes; then
4491               result=no
4492             else
4493               result=yes
4494             fi
4495           else
4496             result=$wxUSE_STD_IOSTREAM
4497           fi
4498
4499           { echo "$as_me:$LINENO: result: $result" >&5
4500 echo "${ECHO_T}$result" >&6; }
4501
4502
4503           enablestring=
4504           defaultval=
4505           if test -z "$defaultval"; then
4506               if test x"$enablestring" = xdisable; then
4507                   defaultval=yes
4508               else
4509                   defaultval=no
4510               fi
4511           fi
4512
4513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4514 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4515           # Check whether --enable-std_string was given.
4516 if test "${enable_std_string+set}" = set; then
4517   enableval=$enable_std_string;
4518                           if test "$enableval" = yes; then
4519                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4520                           else
4521                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4522                           fi
4523
4524 else
4525
4526                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4527
4528 fi
4529
4530
4531           eval "$wx_cv_use_std_string"
4532
4533           if test x"$enablestring" = xdisable; then
4534             if test $wxUSE_STD_STRING = yes; then
4535               result=no
4536             else
4537               result=yes
4538             fi
4539           else
4540             result=$wxUSE_STD_STRING
4541           fi
4542
4543           { echo "$as_me:$LINENO: result: $result" >&5
4544 echo "${ECHO_T}$result" >&6; }
4545
4546
4547           enablestring=disable
4548           defaultval=
4549           if test -z "$defaultval"; then
4550               if test x"$enablestring" = xdisable; then
4551                   defaultval=yes
4552               else
4553                   defaultval=no
4554               fi
4555           fi
4556
4557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4558 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4559           # Check whether --enable-unicode was given.
4560 if test "${enable_unicode+set}" = set; then
4561   enableval=$enable_unicode;
4562                           if test "$enableval" = yes; then
4563                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4564                           else
4565                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4566                           fi
4567
4568 else
4569
4570                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4571
4572 fi
4573
4574
4575           eval "$wx_cv_use_unicode"
4576
4577           if test x"$enablestring" = xdisable; then
4578             if test $wxUSE_UNICODE = yes; then
4579               result=no
4580             else
4581               result=yes
4582             fi
4583           else
4584             result=$wxUSE_UNICODE
4585           fi
4586
4587           { echo "$as_me:$LINENO: result: $result" >&5
4588 echo "${ECHO_T}$result" >&6; }
4589
4590
4591           enablestring=
4592           defaultval=
4593           if test -z "$defaultval"; then
4594               if test x"$enablestring" = xdisable; then
4595                   defaultval=yes
4596               else
4597                   defaultval=no
4598               fi
4599           fi
4600
4601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4602 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4603           # Check whether --enable-mslu was given.
4604 if test "${enable_mslu+set}" = set; then
4605   enableval=$enable_mslu;
4606                           if test "$enableval" = yes; then
4607                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4608                           else
4609                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4610                           fi
4611
4612 else
4613
4614                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4615
4616 fi
4617
4618
4619           eval "$wx_cv_use_mslu"
4620
4621           if test x"$enablestring" = xdisable; then
4622             if test $wxUSE_UNICODE_MSLU = yes; then
4623               result=no
4624             else
4625               result=yes
4626             fi
4627           else
4628             result=$wxUSE_UNICODE_MSLU
4629           fi
4630
4631           { echo "$as_me:$LINENO: result: $result" >&5
4632 echo "${ECHO_T}$result" >&6; }
4633
4634
4635           enablestring=
4636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4637 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4638           # Check whether --enable-utf8 was given.
4639 if test "${enable_utf8+set}" = set; then
4640   enableval=$enable_utf8;
4641                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4642
4643 else
4644
4645                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4646
4647 fi
4648
4649
4650           eval "$wx_cv_use_utf8"
4651
4652           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4653 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4654
4655
4656           enablestring=
4657           defaultval=
4658           if test -z "$defaultval"; then
4659               if test x"$enablestring" = xdisable; then
4660                   defaultval=yes
4661               else
4662                   defaultval=no
4663               fi
4664           fi
4665
4666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4667 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4668           # Check whether --enable-utf8only was given.
4669 if test "${enable_utf8only+set}" = set; then
4670   enableval=$enable_utf8only;
4671                           if test "$enableval" = yes; then
4672                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4673                           else
4674                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4675                           fi
4676
4677 else
4678
4679                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4680
4681 fi
4682
4683
4684           eval "$wx_cv_use_utf8only"
4685
4686           if test x"$enablestring" = xdisable; then
4687             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4688               result=no
4689             else
4690               result=yes
4691             fi
4692           else
4693             result=$wxUSE_UNICODE_UTF8_LOCALE
4694           fi
4695
4696           { echo "$as_me:$LINENO: result: $result" >&5
4697 echo "${ECHO_T}$result" >&6; }
4698
4699
4700           enablestring=
4701           defaultval=
4702           if test -z "$defaultval"; then
4703               if test x"$enablestring" = xdisable; then
4704                   defaultval=yes
4705               else
4706                   defaultval=no
4707               fi
4708           fi
4709
4710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4711 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4712           # Check whether --enable-extended_rtti was given.
4713 if test "${enable_extended_rtti+set}" = set; then
4714   enableval=$enable_extended_rtti;
4715                           if test "$enableval" = yes; then
4716                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4717                           else
4718                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4719                           fi
4720
4721 else
4722
4723                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4724
4725 fi
4726
4727
4728           eval "$wx_cv_use_extended_rtti"
4729
4730           if test x"$enablestring" = xdisable; then
4731             if test $wxUSE_EXTENDED_RTTI = yes; then
4732               result=no
4733             else
4734               result=yes
4735             fi
4736           else
4737             result=$wxUSE_EXTENDED_RTTI
4738           fi
4739
4740           { echo "$as_me:$LINENO: result: $result" >&5
4741 echo "${ECHO_T}$result" >&6; }
4742
4743 if test "$USE_OS2" = 1; then
4744     DEFAULT_wxUSE_OMF=no
4745
4746           enablestring=
4747           defaultval=
4748           if test -z "$defaultval"; then
4749               if test x"$enablestring" = xdisable; then
4750                   defaultval=yes
4751               else
4752                   defaultval=no
4753               fi
4754           fi
4755
4756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4757 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4758           # Check whether --enable-omf was given.
4759 if test "${enable_omf+set}" = set; then
4760   enableval=$enable_omf;
4761                           if test "$enableval" = yes; then
4762                             wx_cv_use_omf='wxUSE_OMF=yes'
4763                           else
4764                             wx_cv_use_omf='wxUSE_OMF=no'
4765                           fi
4766
4767 else
4768
4769                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4770
4771 fi
4772
4773
4774           eval "$wx_cv_use_omf"
4775
4776           if test x"$enablestring" = xdisable; then
4777             if test $wxUSE_OMF = yes; then
4778               result=no
4779             else
4780               result=yes
4781             fi
4782           else
4783             result=$wxUSE_OMF
4784           fi
4785
4786           { echo "$as_me:$LINENO: result: $result" >&5
4787 echo "${ECHO_T}$result" >&6; }
4788
4789 fi
4790
4791 if test "$wxUSE_DEBUG" = "yes"; then
4792     DEFAULT_wxUSE_DEBUG_FLAG=yes
4793     DEFAULT_wxUSE_DEBUG_INFO=yes
4794     BUILD=debug
4795 elif test "$wxUSE_DEBUG" = "no"; then
4796     DEFAULT_wxUSE_DEBUG_FLAG=no
4797     DEFAULT_wxUSE_DEBUG_INFO=no
4798     BUILD=release
4799 fi
4800
4801
4802           enablestring=
4803           defaultval=
4804           if test -z "$defaultval"; then
4805               if test x"$enablestring" = xdisable; then
4806                   defaultval=yes
4807               else
4808                   defaultval=no
4809               fi
4810           fi
4811
4812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4813 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4814           # Check whether --enable-debug_flag was given.
4815 if test "${enable_debug_flag+set}" = set; then
4816   enableval=$enable_debug_flag;
4817                           if test "$enableval" = yes; then
4818                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4819                           else
4820                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4821                           fi
4822
4823 else
4824
4825                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4826
4827 fi
4828
4829
4830           eval "$wx_cv_use_debug_flag"
4831
4832           if test x"$enablestring" = xdisable; then
4833             if test $wxUSE_DEBUG_FLAG = yes; then
4834               result=no
4835             else
4836               result=yes
4837             fi
4838           else
4839             result=$wxUSE_DEBUG_FLAG
4840           fi
4841
4842           { echo "$as_me:$LINENO: result: $result" >&5
4843 echo "${ECHO_T}$result" >&6; }
4844
4845
4846           enablestring=
4847           defaultval=
4848           if test -z "$defaultval"; then
4849               if test x"$enablestring" = xdisable; then
4850                   defaultval=yes
4851               else
4852                   defaultval=no
4853               fi
4854           fi
4855
4856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4857 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4858           # Check whether --enable-debug_info was given.
4859 if test "${enable_debug_info+set}" = set; then
4860   enableval=$enable_debug_info;
4861                           if test "$enableval" = yes; then
4862                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4863                           else
4864                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4865                           fi
4866
4867 else
4868
4869                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4870
4871 fi
4872
4873
4874           eval "$wx_cv_use_debug_info"
4875
4876           if test x"$enablestring" = xdisable; then
4877             if test $wxUSE_DEBUG_INFO = yes; then
4878               result=no
4879             else
4880               result=yes
4881             fi
4882           else
4883             result=$wxUSE_DEBUG_INFO
4884           fi
4885
4886           { echo "$as_me:$LINENO: result: $result" >&5
4887 echo "${ECHO_T}$result" >&6; }
4888
4889
4890 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4891     wxUSE_DEBUG=yes
4892     BUILD=debug
4893 fi
4894
4895 if test "$wxUSE_DEBUG" = "yes"; then
4896     DEFAULT_wxUSE_OPTIMISE=no
4897 fi
4898
4899
4900           enablestring=disable
4901           defaultval=
4902           if test -z "$defaultval"; then
4903               if test x"$enablestring" = xdisable; then
4904                   defaultval=yes
4905               else
4906                   defaultval=no
4907               fi
4908           fi
4909
4910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4911 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4912           # Check whether --enable-optimise was given.
4913 if test "${enable_optimise+set}" = set; then
4914   enableval=$enable_optimise;
4915                           if test "$enableval" = yes; then
4916                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4917                           else
4918                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4919                           fi
4920
4921 else
4922
4923                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4924
4925 fi
4926
4927
4928           eval "$wx_cv_use_optimise"
4929
4930           if test x"$enablestring" = xdisable; then
4931             if test $wxUSE_OPTIMISE = yes; then
4932               result=no
4933             else
4934               result=yes
4935             fi
4936           else
4937             result=$wxUSE_OPTIMISE
4938           fi
4939
4940           { echo "$as_me:$LINENO: result: $result" >&5
4941 echo "${ECHO_T}$result" >&6; }
4942
4943
4944
4945           enablestring=
4946           defaultval=
4947           if test -z "$defaultval"; then
4948               if test x"$enablestring" = xdisable; then
4949                   defaultval=yes
4950               else
4951                   defaultval=no
4952               fi
4953           fi
4954
4955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4956 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4957           # Check whether --enable-debug_gdb was given.
4958 if test "${enable_debug_gdb+set}" = set; then
4959   enableval=$enable_debug_gdb;
4960                           if test "$enableval" = yes; then
4961                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4962                           else
4963                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4964                           fi
4965
4966 else
4967
4968                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4969
4970 fi
4971
4972
4973           eval "$wx_cv_use_debug_gdb"
4974
4975           if test x"$enablestring" = xdisable; then
4976             if test $wxUSE_DEBUG_GDB = yes; then
4977               result=no
4978             else
4979               result=yes
4980             fi
4981           else
4982             result=$wxUSE_DEBUG_GDB
4983           fi
4984
4985           { echo "$as_me:$LINENO: result: $result" >&5
4986 echo "${ECHO_T}$result" >&6; }
4987
4988
4989           enablestring=
4990           defaultval=
4991           if test -z "$defaultval"; then
4992               if test x"$enablestring" = xdisable; then
4993                   defaultval=yes
4994               else
4995                   defaultval=no
4996               fi
4997           fi
4998
4999           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5000 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5001           # Check whether --enable-debug_cntxt was given.
5002 if test "${enable_debug_cntxt+set}" = set; then
5003   enableval=$enable_debug_cntxt;
5004                           if test "$enableval" = yes; then
5005                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5006                           else
5007                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5008                           fi
5009
5010 else
5011
5012                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5013
5014 fi
5015
5016
5017           eval "$wx_cv_use_debug_cntxt"
5018
5019           if test x"$enablestring" = xdisable; then
5020             if test $wxUSE_DEBUG_CONTEXT = yes; then
5021               result=no
5022             else
5023               result=yes
5024             fi
5025           else
5026             result=$wxUSE_DEBUG_CONTEXT
5027           fi
5028
5029           { echo "$as_me:$LINENO: result: $result" >&5
5030 echo "${ECHO_T}$result" >&6; }
5031
5032
5033           enablestring=
5034           defaultval=
5035           if test -z "$defaultval"; then
5036               if test x"$enablestring" = xdisable; then
5037                   defaultval=yes
5038               else
5039                   defaultval=no
5040               fi
5041           fi
5042
5043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5044 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5045           # Check whether --enable-mem_tracing was given.
5046 if test "${enable_mem_tracing+set}" = set; then
5047   enableval=$enable_mem_tracing;
5048                           if test "$enableval" = yes; then
5049                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5050                           else
5051                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5052                           fi
5053
5054 else
5055
5056                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5057
5058 fi
5059
5060
5061           eval "$wx_cv_use_mem_tracing"
5062
5063           if test x"$enablestring" = xdisable; then
5064             if test $wxUSE_MEM_TRACING = yes; then
5065               result=no
5066             else
5067               result=yes
5068             fi
5069           else
5070             result=$wxUSE_MEM_TRACING
5071           fi
5072
5073           { echo "$as_me:$LINENO: result: $result" >&5
5074 echo "${ECHO_T}$result" >&6; }
5075
5076
5077           enablestring=
5078           defaultval=
5079           if test -z "$defaultval"; then
5080               if test x"$enablestring" = xdisable; then
5081                   defaultval=yes
5082               else
5083                   defaultval=no
5084               fi
5085           fi
5086
5087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5088 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5089           # Check whether --enable-profile was given.
5090 if test "${enable_profile+set}" = set; then
5091   enableval=$enable_profile;
5092                           if test "$enableval" = yes; then
5093                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5094                           else
5095                             wx_cv_use_profile='wxUSE_PROFILE=no'
5096                           fi
5097
5098 else
5099
5100                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5101
5102 fi
5103
5104
5105           eval "$wx_cv_use_profile"
5106
5107           if test x"$enablestring" = xdisable; then
5108             if test $wxUSE_PROFILE = yes; then
5109               result=no
5110             else
5111               result=yes
5112             fi
5113           else
5114             result=$wxUSE_PROFILE
5115           fi
5116
5117           { echo "$as_me:$LINENO: result: $result" >&5
5118 echo "${ECHO_T}$result" >&6; }
5119
5120
5121           enablestring=
5122           defaultval=
5123           if test -z "$defaultval"; then
5124               if test x"$enablestring" = xdisable; then
5125                   defaultval=yes
5126               else
5127                   defaultval=no
5128               fi
5129           fi
5130
5131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5132 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5133           # Check whether --enable-no_rtti was given.
5134 if test "${enable_no_rtti+set}" = set; then
5135   enableval=$enable_no_rtti;
5136                           if test "$enableval" = yes; then
5137                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5138                           else
5139                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5140                           fi
5141
5142 else
5143
5144                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5145
5146 fi
5147
5148
5149           eval "$wx_cv_use_no_rtti"
5150
5151           if test x"$enablestring" = xdisable; then
5152             if test $wxUSE_NO_RTTI = yes; then
5153               result=no
5154             else
5155               result=yes
5156             fi
5157           else
5158             result=$wxUSE_NO_RTTI
5159           fi
5160
5161           { echo "$as_me:$LINENO: result: $result" >&5
5162 echo "${ECHO_T}$result" >&6; }
5163
5164
5165           enablestring=
5166           defaultval=
5167           if test -z "$defaultval"; then
5168               if test x"$enablestring" = xdisable; then
5169                   defaultval=yes
5170               else
5171                   defaultval=no
5172               fi
5173           fi
5174
5175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5176 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5177           # Check whether --enable-no_exceptions was given.
5178 if test "${enable_no_exceptions+set}" = set; then
5179   enableval=$enable_no_exceptions;
5180                           if test "$enableval" = yes; then
5181                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5182                           else
5183                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5184                           fi
5185
5186 else
5187
5188                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5189
5190 fi
5191
5192
5193           eval "$wx_cv_use_no_exceptions"
5194
5195           if test x"$enablestring" = xdisable; then
5196             if test $wxUSE_NO_EXCEPTIONS = yes; then
5197               result=no
5198             else
5199               result=yes
5200             fi
5201           else
5202             result=$wxUSE_NO_EXCEPTIONS
5203           fi
5204
5205           { echo "$as_me:$LINENO: result: $result" >&5
5206 echo "${ECHO_T}$result" >&6; }
5207
5208
5209           enablestring=
5210           defaultval=
5211           if test -z "$defaultval"; then
5212               if test x"$enablestring" = xdisable; then
5213                   defaultval=yes
5214               else
5215                   defaultval=no
5216               fi
5217           fi
5218
5219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5220 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5221           # Check whether --enable-permissive was given.
5222 if test "${enable_permissive+set}" = set; then
5223   enableval=$enable_permissive;
5224                           if test "$enableval" = yes; then
5225                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5226                           else
5227                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5228                           fi
5229
5230 else
5231
5232                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5233
5234 fi
5235
5236
5237           eval "$wx_cv_use_permissive"
5238
5239           if test x"$enablestring" = xdisable; then
5240             if test $wxUSE_PERMISSIVE = yes; then
5241               result=no
5242             else
5243               result=yes
5244             fi
5245           else
5246             result=$wxUSE_PERMISSIVE
5247           fi
5248
5249           { echo "$as_me:$LINENO: result: $result" >&5
5250 echo "${ECHO_T}$result" >&6; }
5251
5252
5253           enablestring=
5254           defaultval=
5255           if test -z "$defaultval"; then
5256               if test x"$enablestring" = xdisable; then
5257                   defaultval=yes
5258               else
5259                   defaultval=no
5260               fi
5261           fi
5262
5263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5264 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5265           # Check whether --enable-no_deps was given.
5266 if test "${enable_no_deps+set}" = set; then
5267   enableval=$enable_no_deps;
5268                           if test "$enableval" = yes; then
5269                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5270                           else
5271                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5272                           fi
5273
5274 else
5275
5276                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5277
5278 fi
5279
5280
5281           eval "$wx_cv_use_no_deps"
5282
5283           if test x"$enablestring" = xdisable; then
5284             if test $wxUSE_NO_DEPS = yes; then
5285               result=no
5286             else
5287               result=yes
5288             fi
5289           else
5290             result=$wxUSE_NO_DEPS
5291           fi
5292
5293           { echo "$as_me:$LINENO: result: $result" >&5
5294 echo "${ECHO_T}$result" >&6; }
5295
5296
5297           enablestring=disable
5298           defaultval=
5299           if test -z "$defaultval"; then
5300               if test x"$enablestring" = xdisable; then
5301                   defaultval=yes
5302               else
5303                   defaultval=no
5304               fi
5305           fi
5306
5307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5308 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5309           # Check whether --enable-vararg_macros was given.
5310 if test "${enable_vararg_macros+set}" = set; then
5311   enableval=$enable_vararg_macros;
5312                           if test "$enableval" = yes; then
5313                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5314                           else
5315                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5316                           fi
5317
5318 else
5319
5320                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5321
5322 fi
5323
5324
5325           eval "$wx_cv_use_vararg_macros"
5326
5327           if test x"$enablestring" = xdisable; then
5328             if test $wxUSE_VARARG_MACROS = yes; then
5329               result=no
5330             else
5331               result=yes
5332             fi
5333           else
5334             result=$wxUSE_VARARG_MACROS
5335           fi
5336
5337           { echo "$as_me:$LINENO: result: $result" >&5
5338 echo "${ECHO_T}$result" >&6; }
5339
5340
5341           enablestring=
5342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5343 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5344           # Check whether --enable-universal_binary was given.
5345 if test "${enable_universal_binary+set}" = set; then
5346   enableval=$enable_universal_binary;
5347                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5348
5349 else
5350
5351                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5352
5353 fi
5354
5355
5356           eval "$wx_cv_use_universal_binary"
5357
5358           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5359 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5360
5361
5362
5363           enablestring=
5364           defaultval=
5365           if test -z "$defaultval"; then
5366               if test x"$enablestring" = xdisable; then
5367                   defaultval=yes
5368               else
5369                   defaultval=no
5370               fi
5371           fi
5372
5373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5374 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5375           # Check whether --enable-compat26 was given.
5376 if test "${enable_compat26+set}" = set; then
5377   enableval=$enable_compat26;
5378                           if test "$enableval" = yes; then
5379                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5380                           else
5381                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5382                           fi
5383
5384 else
5385
5386                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5387
5388 fi
5389
5390
5391           eval "$wx_cv_use_compat26"
5392
5393           if test x"$enablestring" = xdisable; then
5394             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5395               result=no
5396             else
5397               result=yes
5398             fi
5399           else
5400             result=$WXWIN_COMPATIBILITY_2_6
5401           fi
5402
5403           { echo "$as_me:$LINENO: result: $result" >&5
5404 echo "${ECHO_T}$result" >&6; }
5405
5406
5407           enablestring=disable
5408           defaultval=
5409           if test -z "$defaultval"; then
5410               if test x"$enablestring" = xdisable; then
5411                   defaultval=yes
5412               else
5413                   defaultval=no
5414               fi
5415           fi
5416
5417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5418 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5419           # Check whether --enable-compat28 was given.
5420 if test "${enable_compat28+set}" = set; then
5421   enableval=$enable_compat28;
5422                           if test "$enableval" = yes; then
5423                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5424                           else
5425                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5426                           fi
5427
5428 else
5429
5430                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5431
5432 fi
5433
5434
5435           eval "$wx_cv_use_compat28"
5436
5437           if test x"$enablestring" = xdisable; then
5438             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5439               result=no
5440             else
5441               result=yes
5442             fi
5443           else
5444             result=$WXWIN_COMPATIBILITY_2_8
5445           fi
5446
5447           { echo "$as_me:$LINENO: result: $result" >&5
5448 echo "${ECHO_T}$result" >&6; }
5449
5450
5451
5452           enablestring=disable
5453           defaultval=
5454           if test -z "$defaultval"; then
5455               if test x"$enablestring" = xdisable; then
5456                   defaultval=yes
5457               else
5458                   defaultval=no
5459               fi
5460           fi
5461
5462           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5463 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5464           # Check whether --enable-rpath was given.
5465 if test "${enable_rpath+set}" = set; then
5466   enableval=$enable_rpath;
5467                           if test "$enableval" = yes; then
5468                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5469                           else
5470                             wx_cv_use_rpath='wxUSE_RPATH=no'
5471                           fi
5472
5473 else
5474
5475                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5476
5477 fi
5478
5479
5480           eval "$wx_cv_use_rpath"
5481
5482           if test x"$enablestring" = xdisable; then
5483             if test $wxUSE_RPATH = yes; then
5484               result=no
5485             else
5486               result=yes
5487             fi
5488           else
5489             result=$wxUSE_RPATH
5490           fi
5491
5492           { echo "$as_me:$LINENO: result: $result" >&5
5493 echo "${ECHO_T}$result" >&6; }
5494
5495
5496
5497           enablestring=
5498           defaultval=
5499           if test -z "$defaultval"; then
5500               if test x"$enablestring" = xdisable; then
5501                   defaultval=yes
5502               else
5503                   defaultval=no
5504               fi
5505           fi
5506
5507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5508 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5509           # Check whether --enable-objc_uniquifying was given.
5510 if test "${enable_objc_uniquifying+set}" = set; then
5511   enableval=$enable_objc_uniquifying;
5512                           if test "$enableval" = yes; then
5513                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5514                           else
5515                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5516                           fi
5517
5518 else
5519
5520                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5521
5522 fi
5523
5524
5525           eval "$wx_cv_use_objc_uniquifying"
5526
5527           if test x"$enablestring" = xdisable; then
5528             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5529               result=no
5530             else
5531               result=yes
5532             fi
5533           else
5534             result=$wxUSE_OBJC_UNIQUIFYING
5535           fi
5536
5537           { echo "$as_me:$LINENO: result: $result" >&5
5538 echo "${ECHO_T}$result" >&6; }
5539
5540
5541
5542           enablestring=disable
5543           defaultval=
5544           if test -z "$defaultval"; then
5545               if test x"$enablestring" = xdisable; then
5546                   defaultval=yes
5547               else
5548                   defaultval=no
5549               fi
5550           fi
5551
5552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5553 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5554           # Check whether --enable-visibility was given.
5555 if test "${enable_visibility+set}" = set; then
5556   enableval=$enable_visibility;
5557                           if test "$enableval" = yes; then
5558                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5559                           else
5560                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5561                           fi
5562
5563 else
5564
5565                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5566
5567 fi
5568
5569
5570           eval "$wx_cv_use_visibility"
5571
5572           if test x"$enablestring" = xdisable; then
5573             if test $wxUSE_VISIBILITY = yes; then
5574               result=no
5575             else
5576               result=yes
5577             fi
5578           else
5579             result=$wxUSE_VISIBILITY
5580           fi
5581
5582           { echo "$as_me:$LINENO: result: $result" >&5
5583 echo "${ECHO_T}$result" >&6; }
5584
5585
5586
5587
5588           enablestring=
5589           defaultval=$wxUSE_ALL_FEATURES
5590           if test -z "$defaultval"; then
5591               if test x"$enablestring" = xdisable; then
5592                   defaultval=yes
5593               else
5594                   defaultval=no
5595               fi
5596           fi
5597
5598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5599 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5600           # Check whether --enable-intl was given.
5601 if test "${enable_intl+set}" = set; then
5602   enableval=$enable_intl;
5603                           if test "$enableval" = yes; then
5604                             wx_cv_use_intl='wxUSE_INTL=yes'
5605                           else
5606                             wx_cv_use_intl='wxUSE_INTL=no'
5607                           fi
5608
5609 else
5610
5611                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5612
5613 fi
5614
5615
5616           eval "$wx_cv_use_intl"
5617
5618           if test x"$enablestring" = xdisable; then
5619             if test $wxUSE_INTL = yes; then
5620               result=no
5621             else
5622               result=yes
5623             fi
5624           else
5625             result=$wxUSE_INTL
5626           fi
5627
5628           { echo "$as_me:$LINENO: result: $result" >&5
5629 echo "${ECHO_T}$result" >&6; }
5630
5631
5632           enablestring=
5633           defaultval=$wxUSE_ALL_FEATURES
5634           if test -z "$defaultval"; then
5635               if test x"$enablestring" = xdisable; then
5636                   defaultval=yes
5637               else
5638                   defaultval=no
5639               fi
5640           fi
5641
5642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5643 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5644           # Check whether --enable-xlocale was given.
5645 if test "${enable_xlocale+set}" = set; then
5646   enableval=$enable_xlocale;
5647                           if test "$enableval" = yes; then
5648                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5649                           else
5650                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5651                           fi
5652
5653 else
5654
5655                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5656
5657 fi
5658
5659
5660           eval "$wx_cv_use_xlocale"
5661
5662           if test x"$enablestring" = xdisable; then
5663             if test $wxUSE_XLOCALE = yes; then
5664               result=no
5665             else
5666               result=yes
5667             fi
5668           else
5669             result=$wxUSE_XLOCALE
5670           fi
5671
5672           { echo "$as_me:$LINENO: result: $result" >&5
5673 echo "${ECHO_T}$result" >&6; }
5674
5675
5676           enablestring=
5677           defaultval=$wxUSE_ALL_FEATURES
5678           if test -z "$defaultval"; then
5679               if test x"$enablestring" = xdisable; then
5680                   defaultval=yes
5681               else
5682                   defaultval=no
5683               fi
5684           fi
5685
5686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5687 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5688           # Check whether --enable-config was given.
5689 if test "${enable_config+set}" = set; then
5690   enableval=$enable_config;
5691                           if test "$enableval" = yes; then
5692                             wx_cv_use_config='wxUSE_CONFIG=yes'
5693                           else
5694                             wx_cv_use_config='wxUSE_CONFIG=no'
5695                           fi
5696
5697 else
5698
5699                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5700
5701 fi
5702
5703
5704           eval "$wx_cv_use_config"
5705
5706           if test x"$enablestring" = xdisable; then
5707             if test $wxUSE_CONFIG = yes; then
5708               result=no
5709             else
5710               result=yes
5711             fi
5712           else
5713             result=$wxUSE_CONFIG
5714           fi
5715
5716           { echo "$as_me:$LINENO: result: $result" >&5
5717 echo "${ECHO_T}$result" >&6; }
5718
5719
5720
5721           enablestring=
5722           defaultval=$wxUSE_ALL_FEATURES
5723           if test -z "$defaultval"; then
5724               if test x"$enablestring" = xdisable; then
5725                   defaultval=yes
5726               else
5727                   defaultval=no
5728               fi
5729           fi
5730
5731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5732 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5733           # Check whether --enable-protocols was given.
5734 if test "${enable_protocols+set}" = set; then
5735   enableval=$enable_protocols;
5736                           if test "$enableval" = yes; then
5737                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5738                           else
5739                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5740                           fi
5741
5742 else
5743
5744                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5745
5746 fi
5747
5748
5749           eval "$wx_cv_use_protocols"
5750
5751           if test x"$enablestring" = xdisable; then
5752             if test $wxUSE_PROTOCOL = yes; then
5753               result=no
5754             else
5755               result=yes
5756             fi
5757           else
5758             result=$wxUSE_PROTOCOL
5759           fi
5760
5761           { echo "$as_me:$LINENO: result: $result" >&5
5762 echo "${ECHO_T}$result" >&6; }
5763
5764
5765           enablestring=
5766           defaultval=$wxUSE_ALL_FEATURES
5767           if test -z "$defaultval"; then
5768               if test x"$enablestring" = xdisable; then
5769                   defaultval=yes
5770               else
5771                   defaultval=no
5772               fi
5773           fi
5774
5775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5776 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5777           # Check whether --enable-ftp was given.
5778 if test "${enable_ftp+set}" = set; then
5779   enableval=$enable_ftp;
5780                           if test "$enableval" = yes; then
5781                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5782                           else
5783                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5784                           fi
5785
5786 else
5787
5788                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5789
5790 fi
5791
5792
5793           eval "$wx_cv_use_ftp"
5794
5795           if test x"$enablestring" = xdisable; then
5796             if test $wxUSE_PROTOCOL_FTP = yes; then
5797               result=no
5798             else
5799               result=yes
5800             fi
5801           else
5802             result=$wxUSE_PROTOCOL_FTP
5803           fi
5804
5805           { echo "$as_me:$LINENO: result: $result" >&5
5806 echo "${ECHO_T}$result" >&6; }
5807
5808
5809           enablestring=
5810           defaultval=$wxUSE_ALL_FEATURES
5811           if test -z "$defaultval"; then
5812               if test x"$enablestring" = xdisable; then
5813                   defaultval=yes
5814               else
5815                   defaultval=no
5816               fi
5817           fi
5818
5819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5820 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5821           # Check whether --enable-http was given.
5822 if test "${enable_http+set}" = set; then
5823   enableval=$enable_http;
5824                           if test "$enableval" = yes; then
5825                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5826                           else
5827                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5828                           fi
5829
5830 else
5831
5832                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5833
5834 fi
5835
5836
5837           eval "$wx_cv_use_http"
5838
5839           if test x"$enablestring" = xdisable; then
5840             if test $wxUSE_PROTOCOL_HTTP = yes; then
5841               result=no
5842             else
5843               result=yes
5844             fi
5845           else
5846             result=$wxUSE_PROTOCOL_HTTP
5847           fi
5848
5849           { echo "$as_me:$LINENO: result: $result" >&5
5850 echo "${ECHO_T}$result" >&6; }
5851
5852
5853           enablestring=
5854           defaultval=$wxUSE_ALL_FEATURES
5855           if test -z "$defaultval"; then
5856               if test x"$enablestring" = xdisable; then
5857                   defaultval=yes
5858               else
5859                   defaultval=no
5860               fi
5861           fi
5862
5863           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5864 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5865           # Check whether --enable-fileproto was given.
5866 if test "${enable_fileproto+set}" = set; then
5867   enableval=$enable_fileproto;
5868                           if test "$enableval" = yes; then
5869                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5870                           else
5871                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5872                           fi
5873
5874 else
5875
5876                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5877
5878 fi
5879
5880
5881           eval "$wx_cv_use_fileproto"
5882
5883           if test x"$enablestring" = xdisable; then
5884             if test $wxUSE_PROTOCOL_FILE = yes; then
5885               result=no
5886             else
5887               result=yes
5888             fi
5889           else
5890             result=$wxUSE_PROTOCOL_FILE
5891           fi
5892
5893           { echo "$as_me:$LINENO: result: $result" >&5
5894 echo "${ECHO_T}$result" >&6; }
5895
5896
5897           enablestring=
5898           defaultval=$wxUSE_ALL_FEATURES
5899           if test -z "$defaultval"; then
5900               if test x"$enablestring" = xdisable; then
5901                   defaultval=yes
5902               else
5903                   defaultval=no
5904               fi
5905           fi
5906
5907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5908 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5909           # Check whether --enable-sockets was given.
5910 if test "${enable_sockets+set}" = set; then
5911   enableval=$enable_sockets;
5912                           if test "$enableval" = yes; then
5913                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5914                           else
5915                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5916                           fi
5917
5918 else
5919
5920                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5921
5922 fi
5923
5924
5925           eval "$wx_cv_use_sockets"
5926
5927           if test x"$enablestring" = xdisable; then
5928             if test $wxUSE_SOCKETS = yes; then
5929               result=no
5930             else
5931               result=yes
5932             fi
5933           else
5934             result=$wxUSE_SOCKETS
5935           fi
5936
5937           { echo "$as_me:$LINENO: result: $result" >&5
5938 echo "${ECHO_T}$result" >&6; }
5939
5940
5941           enablestring=
5942           defaultval=$wxUSE_ALL_FEATURES
5943           if test -z "$defaultval"; then
5944               if test x"$enablestring" = xdisable; then
5945                   defaultval=yes
5946               else
5947                   defaultval=no
5948               fi
5949           fi
5950
5951           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5952 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5953           # Check whether --enable-ipv6 was given.
5954 if test "${enable_ipv6+set}" = set; then
5955   enableval=$enable_ipv6;
5956                           if test "$enableval" = yes; then
5957                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5958                           else
5959                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5960                           fi
5961
5962 else
5963
5964                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5965
5966 fi
5967
5968
5969           eval "$wx_cv_use_ipv6"
5970
5971           if test x"$enablestring" = xdisable; then
5972             if test $wxUSE_IPV6 = yes; then
5973               result=no
5974             else
5975               result=yes
5976             fi
5977           else
5978             result=$wxUSE_IPV6
5979           fi
5980
5981           { echo "$as_me:$LINENO: result: $result" >&5
5982 echo "${ECHO_T}$result" >&6; }
5983
5984
5985           enablestring=
5986           defaultval=$wxUSE_ALL_FEATURES
5987           if test -z "$defaultval"; then
5988               if test x"$enablestring" = xdisable; then
5989                   defaultval=yes
5990               else
5991                   defaultval=no
5992               fi
5993           fi
5994
5995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5996 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5997           # Check whether --enable-ole was given.
5998 if test "${enable_ole+set}" = set; then
5999   enableval=$enable_ole;
6000                           if test "$enableval" = yes; then
6001                             wx_cv_use_ole='wxUSE_OLE=yes'
6002                           else
6003                             wx_cv_use_ole='wxUSE_OLE=no'
6004                           fi
6005
6006 else
6007
6008                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6009
6010 fi
6011
6012
6013           eval "$wx_cv_use_ole"
6014
6015           if test x"$enablestring" = xdisable; then
6016             if test $wxUSE_OLE = yes; then
6017               result=no
6018             else
6019               result=yes
6020             fi
6021           else
6022             result=$wxUSE_OLE
6023           fi
6024
6025           { echo "$as_me:$LINENO: result: $result" >&5
6026 echo "${ECHO_T}$result" >&6; }
6027
6028
6029           enablestring=
6030           defaultval=$wxUSE_ALL_FEATURES
6031           if test -z "$defaultval"; then
6032               if test x"$enablestring" = xdisable; then
6033                   defaultval=yes
6034               else
6035                   defaultval=no
6036               fi
6037           fi
6038
6039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6040 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6041           # Check whether --enable-dataobj was given.
6042 if test "${enable_dataobj+set}" = set; then
6043   enableval=$enable_dataobj;
6044                           if test "$enableval" = yes; then
6045                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6046                           else
6047                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6048                           fi
6049
6050 else
6051
6052                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6053
6054 fi
6055
6056
6057           eval "$wx_cv_use_dataobj"
6058
6059           if test x"$enablestring" = xdisable; then
6060             if test $wxUSE_DATAOBJ = yes; then
6061               result=no
6062             else
6063               result=yes
6064             fi
6065           else
6066             result=$wxUSE_DATAOBJ
6067           fi
6068
6069           { echo "$as_me:$LINENO: result: $result" >&5
6070 echo "${ECHO_T}$result" >&6; }
6071
6072
6073
6074           enablestring=
6075           defaultval=$wxUSE_ALL_FEATURES
6076           if test -z "$defaultval"; then
6077               if test x"$enablestring" = xdisable; then
6078                   defaultval=yes
6079               else
6080                   defaultval=no
6081               fi
6082           fi
6083
6084           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6085 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6086           # Check whether --enable-ipc was given.
6087 if test "${enable_ipc+set}" = set; then
6088   enableval=$enable_ipc;
6089                           if test "$enableval" = yes; then
6090                             wx_cv_use_ipc='wxUSE_IPC=yes'
6091                           else
6092                             wx_cv_use_ipc='wxUSE_IPC=no'
6093                           fi
6094
6095 else
6096
6097                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6098
6099 fi
6100
6101
6102           eval "$wx_cv_use_ipc"
6103
6104           if test x"$enablestring" = xdisable; then
6105             if test $wxUSE_IPC = yes; then
6106               result=no
6107             else
6108               result=yes
6109             fi
6110           else
6111             result=$wxUSE_IPC
6112           fi
6113
6114           { echo "$as_me:$LINENO: result: $result" >&5
6115 echo "${ECHO_T}$result" >&6; }
6116
6117
6118
6119           enablestring=
6120           defaultval=$wxUSE_ALL_FEATURES
6121           if test -z "$defaultval"; then
6122               if test x"$enablestring" = xdisable; then
6123                   defaultval=yes
6124               else
6125                   defaultval=no
6126               fi
6127           fi
6128
6129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6130 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6131           # Check whether --enable-baseevtloop was given.
6132 if test "${enable_baseevtloop+set}" = set; then
6133   enableval=$enable_baseevtloop;
6134                           if test "$enableval" = yes; then
6135                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6136                           else
6137                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6138                           fi
6139
6140 else
6141
6142                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6143
6144 fi
6145
6146
6147           eval "$wx_cv_use_baseevtloop"
6148
6149           if test x"$enablestring" = xdisable; then
6150             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6151               result=no
6152             else
6153               result=yes
6154             fi
6155           else
6156             result=$wxUSE_CONSOLE_EVENTLOOP
6157           fi
6158
6159           { echo "$as_me:$LINENO: result: $result" >&5
6160 echo "${ECHO_T}$result" >&6; }
6161
6162
6163           enablestring=
6164           defaultval=$wxUSE_ALL_FEATURES
6165           if test -z "$defaultval"; then
6166               if test x"$enablestring" = xdisable; then
6167                   defaultval=yes
6168               else
6169                   defaultval=no
6170               fi
6171           fi
6172
6173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6174 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6175           # Check whether --enable-epollloop was given.
6176 if test "${enable_epollloop+set}" = set; then
6177   enableval=$enable_epollloop;
6178                           if test "$enableval" = yes; then
6179                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6180                           else
6181                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6182                           fi
6183
6184 else
6185
6186                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6187
6188 fi
6189
6190
6191           eval "$wx_cv_use_epollloop"
6192
6193           if test x"$enablestring" = xdisable; then
6194             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6195               result=no
6196             else
6197               result=yes
6198             fi
6199           else
6200             result=$wxUSE_EPOLL_DISPATCHER
6201           fi
6202
6203           { echo "$as_me:$LINENO: result: $result" >&5
6204 echo "${ECHO_T}$result" >&6; }
6205
6206
6207           enablestring=
6208           defaultval=$wxUSE_ALL_FEATURES
6209           if test -z "$defaultval"; then
6210               if test x"$enablestring" = xdisable; then
6211                   defaultval=yes
6212               else
6213                   defaultval=no
6214               fi
6215           fi
6216
6217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6218 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6219           # Check whether --enable-selectloop was given.
6220 if test "${enable_selectloop+set}" = set; then
6221   enableval=$enable_selectloop;
6222                           if test "$enableval" = yes; then
6223                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6224                           else
6225                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6226                           fi
6227
6228 else
6229
6230                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6231
6232 fi
6233
6234
6235           eval "$wx_cv_use_selectloop"
6236
6237           if test x"$enablestring" = xdisable; then
6238             if test $wxUSE_SELECT_DISPATCHER = yes; then
6239               result=no
6240             else
6241               result=yes
6242             fi
6243           else
6244             result=$wxUSE_SELECT_DISPATCHER
6245           fi
6246
6247           { echo "$as_me:$LINENO: result: $result" >&5
6248 echo "${ECHO_T}$result" >&6; }
6249
6250
6251
6252           enablestring=
6253           defaultval=$wxUSE_ALL_FEATURES
6254           if test -z "$defaultval"; then
6255               if test x"$enablestring" = xdisable; then
6256                   defaultval=yes
6257               else
6258                   defaultval=no
6259               fi
6260           fi
6261
6262           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6263 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6264           # Check whether --enable-apple_ieee was given.
6265 if test "${enable_apple_ieee+set}" = set; then
6266   enableval=$enable_apple_ieee;
6267                           if test "$enableval" = yes; then
6268                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6269                           else
6270                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6271                           fi
6272
6273 else
6274
6275                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6276
6277 fi
6278
6279
6280           eval "$wx_cv_use_apple_ieee"
6281
6282           if test x"$enablestring" = xdisable; then
6283             if test $wxUSE_APPLE_IEEE = yes; then
6284               result=no
6285             else
6286               result=yes
6287             fi
6288           else
6289             result=$wxUSE_APPLE_IEEE
6290           fi
6291
6292           { echo "$as_me:$LINENO: result: $result" >&5
6293 echo "${ECHO_T}$result" >&6; }
6294
6295
6296           enablestring=
6297           defaultval=$wxUSE_ALL_FEATURES
6298           if test -z "$defaultval"; then
6299               if test x"$enablestring" = xdisable; then
6300                   defaultval=yes
6301               else
6302                   defaultval=no
6303               fi
6304           fi
6305
6306           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6307 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6308           # Check whether --enable-arcstream was given.
6309 if test "${enable_arcstream+set}" = set; then
6310   enableval=$enable_arcstream;
6311                           if test "$enableval" = yes; then
6312                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6313                           else
6314                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6315                           fi
6316
6317 else
6318
6319                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6320
6321 fi
6322
6323
6324           eval "$wx_cv_use_arcstream"
6325
6326           if test x"$enablestring" = xdisable; then
6327             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6328               result=no
6329             else
6330               result=yes
6331             fi
6332           else
6333             result=$wxUSE_ARCHIVE_STREAMS
6334           fi
6335
6336           { echo "$as_me:$LINENO: result: $result" >&5
6337 echo "${ECHO_T}$result" >&6; }
6338
6339
6340           enablestring=
6341           defaultval=$wxUSE_ALL_FEATURES
6342           if test -z "$defaultval"; then
6343               if test x"$enablestring" = xdisable; then
6344                   defaultval=yes
6345               else
6346                   defaultval=no
6347               fi
6348           fi
6349
6350           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6351 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6352           # Check whether --enable-base64 was given.
6353 if test "${enable_base64+set}" = set; then
6354   enableval=$enable_base64;
6355                           if test "$enableval" = yes; then
6356                             wx_cv_use_base64='wxUSE_BASE64=yes'
6357                           else
6358                             wx_cv_use_base64='wxUSE_BASE64=no'
6359                           fi
6360
6361 else
6362
6363                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6364
6365 fi
6366
6367
6368           eval "$wx_cv_use_base64"
6369
6370           if test x"$enablestring" = xdisable; then
6371             if test $wxUSE_BASE64 = yes; then
6372               result=no
6373             else
6374               result=yes
6375             fi
6376           else
6377             result=$wxUSE_BASE64
6378           fi
6379
6380           { echo "$as_me:$LINENO: result: $result" >&5
6381 echo "${ECHO_T}$result" >&6; }
6382
6383
6384           enablestring=
6385           defaultval=$wxUSE_ALL_FEATURES
6386           if test -z "$defaultval"; then
6387               if test x"$enablestring" = xdisable; then
6388                   defaultval=yes
6389               else
6390                   defaultval=no
6391               fi
6392           fi
6393
6394           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6395 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6396           # Check whether --enable-backtrace was given.
6397 if test "${enable_backtrace+set}" = set; then
6398   enableval=$enable_backtrace;
6399                           if test "$enableval" = yes; then
6400                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6401                           else
6402                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6403                           fi
6404
6405 else
6406
6407                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6408
6409 fi
6410
6411
6412           eval "$wx_cv_use_backtrace"
6413
6414           if test x"$enablestring" = xdisable; then
6415             if test $wxUSE_STACKWALKER = yes; then
6416               result=no
6417             else
6418               result=yes
6419             fi
6420           else
6421             result=$wxUSE_STACKWALKER
6422           fi
6423
6424           { echo "$as_me:$LINENO: result: $result" >&5
6425 echo "${ECHO_T}$result" >&6; }
6426
6427
6428           enablestring=
6429           defaultval=$wxUSE_ALL_FEATURES
6430           if test -z "$defaultval"; then
6431               if test x"$enablestring" = xdisable; then
6432                   defaultval=yes
6433               else
6434                   defaultval=no
6435               fi
6436           fi
6437
6438           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6439 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6440           # Check whether --enable-catch_segvs was given.
6441 if test "${enable_catch_segvs+set}" = set; then
6442   enableval=$enable_catch_segvs;
6443                           if test "$enableval" = yes; then
6444                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6445                           else
6446                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6447                           fi
6448
6449 else
6450
6451                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6452
6453 fi
6454
6455
6456           eval "$wx_cv_use_catch_segvs"
6457
6458           if test x"$enablestring" = xdisable; then
6459             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6460               result=no
6461             else
6462               result=yes
6463             fi
6464           else
6465             result=$wxUSE_ON_FATAL_EXCEPTION
6466           fi
6467
6468           { echo "$as_me:$LINENO: result: $result" >&5
6469 echo "${ECHO_T}$result" >&6; }
6470
6471
6472           enablestring=
6473           defaultval=$wxUSE_ALL_FEATURES
6474           if test -z "$defaultval"; then
6475               if test x"$enablestring" = xdisable; then
6476                   defaultval=yes
6477               else
6478                   defaultval=no
6479               fi
6480           fi
6481
6482           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6483 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6484           # Check whether --enable-cmdline was given.
6485 if test "${enable_cmdline+set}" = set; then
6486   enableval=$enable_cmdline;
6487                           if test "$enableval" = yes; then
6488                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6489                           else
6490                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6491                           fi
6492
6493 else
6494
6495                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6496
6497 fi
6498
6499
6500           eval "$wx_cv_use_cmdline"
6501
6502           if test x"$enablestring" = xdisable; then
6503             if test $wxUSE_CMDLINE_PARSER = yes; then
6504               result=no
6505             else
6506               result=yes
6507             fi
6508           else
6509             result=$wxUSE_CMDLINE_PARSER
6510           fi
6511
6512           { echo "$as_me:$LINENO: result: $result" >&5
6513 echo "${ECHO_T}$result" >&6; }
6514
6515
6516           enablestring=
6517           defaultval=$wxUSE_ALL_FEATURES
6518           if test -z "$defaultval"; then
6519               if test x"$enablestring" = xdisable; then
6520                   defaultval=yes
6521               else
6522                   defaultval=no
6523               fi
6524           fi
6525
6526           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6527 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6528           # Check whether --enable-datetime was given.
6529 if test "${enable_datetime+set}" = set; then
6530   enableval=$enable_datetime;
6531                           if test "$enableval" = yes; then
6532                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6533                           else
6534                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6535                           fi
6536
6537 else
6538
6539                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6540
6541 fi
6542
6543
6544           eval "$wx_cv_use_datetime"
6545
6546           if test x"$enablestring" = xdisable; then
6547             if test $wxUSE_DATETIME = yes; then
6548               result=no
6549             else
6550               result=yes
6551             fi
6552           else
6553             result=$wxUSE_DATETIME
6554           fi
6555
6556           { echo "$as_me:$LINENO: result: $result" >&5
6557 echo "${ECHO_T}$result" >&6; }
6558
6559
6560           enablestring=
6561           defaultval=$wxUSE_ALL_FEATURES
6562           if test -z "$defaultval"; then
6563               if test x"$enablestring" = xdisable; then
6564                   defaultval=yes
6565               else
6566                   defaultval=no
6567               fi
6568           fi
6569
6570           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6571 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6572           # Check whether --enable-debugreport was given.
6573 if test "${enable_debugreport+set}" = set; then
6574   enableval=$enable_debugreport;
6575                           if test "$enableval" = yes; then
6576                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6577                           else
6578                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6579                           fi
6580
6581 else
6582
6583                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6584
6585 fi
6586
6587
6588           eval "$wx_cv_use_debugreport"
6589
6590           if test x"$enablestring" = xdisable; then
6591             if test $wxUSE_DEBUGREPORT = yes; then
6592               result=no
6593             else
6594               result=yes
6595             fi
6596           else
6597             result=$wxUSE_DEBUGREPORT
6598           fi
6599
6600           { echo "$as_me:$LINENO: result: $result" >&5
6601 echo "${ECHO_T}$result" >&6; }
6602
6603
6604           enablestring=
6605           defaultval=$wxUSE_ALL_FEATURES
6606           if test -z "$defaultval"; then
6607               if test x"$enablestring" = xdisable; then
6608                   defaultval=yes
6609               else
6610                   defaultval=no
6611               fi
6612           fi
6613
6614           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6615 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6616           # Check whether --enable-dialupman was given.
6617 if test "${enable_dialupman+set}" = set; then
6618   enableval=$enable_dialupman;
6619                           if test "$enableval" = yes; then
6620                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6621                           else
6622                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6623                           fi
6624
6625 else
6626
6627                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6628
6629 fi
6630
6631
6632           eval "$wx_cv_use_dialupman"
6633
6634           if test x"$enablestring" = xdisable; then
6635             if test $wxUSE_DIALUP_MANAGER = yes; then
6636               result=no
6637             else
6638               result=yes
6639             fi
6640           else
6641             result=$wxUSE_DIALUP_MANAGER
6642           fi
6643
6644           { echo "$as_me:$LINENO: result: $result" >&5
6645 echo "${ECHO_T}$result" >&6; }
6646
6647
6648           enablestring=
6649           defaultval=$wxUSE_ALL_FEATURES
6650           if test -z "$defaultval"; then
6651               if test x"$enablestring" = xdisable; then
6652                   defaultval=yes
6653               else
6654                   defaultval=no
6655               fi
6656           fi
6657
6658           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6659 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6660           # Check whether --enable-dynlib was given.
6661 if test "${enable_dynlib+set}" = set; then
6662   enableval=$enable_dynlib;
6663                           if test "$enableval" = yes; then
6664                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6665                           else
6666                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6667                           fi
6668
6669 else
6670
6671                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6672
6673 fi
6674
6675
6676           eval "$wx_cv_use_dynlib"
6677
6678           if test x"$enablestring" = xdisable; then
6679             if test $wxUSE_DYNLIB_CLASS = yes; then
6680               result=no
6681             else
6682               result=yes
6683             fi
6684           else
6685             result=$wxUSE_DYNLIB_CLASS
6686           fi
6687
6688           { echo "$as_me:$LINENO: result: $result" >&5
6689 echo "${ECHO_T}$result" >&6; }
6690
6691
6692           enablestring=
6693           defaultval=$wxUSE_ALL_FEATURES
6694           if test -z "$defaultval"; then
6695               if test x"$enablestring" = xdisable; then
6696                   defaultval=yes
6697               else
6698                   defaultval=no
6699               fi
6700           fi
6701
6702           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6703 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6704           # Check whether --enable-dynamicloader was given.
6705 if test "${enable_dynamicloader+set}" = set; then
6706   enableval=$enable_dynamicloader;
6707                           if test "$enableval" = yes; then
6708                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6709                           else
6710                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6711                           fi
6712
6713 else
6714
6715                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6716
6717 fi
6718
6719
6720           eval "$wx_cv_use_dynamicloader"
6721
6722           if test x"$enablestring" = xdisable; then
6723             if test $wxUSE_DYNAMIC_LOADER = yes; then
6724               result=no
6725             else
6726               result=yes
6727             fi
6728           else
6729             result=$wxUSE_DYNAMIC_LOADER
6730           fi
6731
6732           { echo "$as_me:$LINENO: result: $result" >&5
6733 echo "${ECHO_T}$result" >&6; }
6734
6735
6736           enablestring=
6737           defaultval=$wxUSE_ALL_FEATURES
6738           if test -z "$defaultval"; then
6739               if test x"$enablestring" = xdisable; then
6740                   defaultval=yes
6741               else
6742                   defaultval=no
6743               fi
6744           fi
6745
6746           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6747 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6748           # Check whether --enable-exceptions was given.
6749 if test "${enable_exceptions+set}" = set; then
6750   enableval=$enable_exceptions;
6751                           if test "$enableval" = yes; then
6752                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6753                           else
6754                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6755                           fi
6756
6757 else
6758
6759                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6760
6761 fi
6762
6763
6764           eval "$wx_cv_use_exceptions"
6765
6766           if test x"$enablestring" = xdisable; then
6767             if test $wxUSE_EXCEPTIONS = yes; then
6768               result=no
6769             else
6770               result=yes
6771             fi
6772           else
6773             result=$wxUSE_EXCEPTIONS
6774           fi
6775
6776           { echo "$as_me:$LINENO: result: $result" >&5
6777 echo "${ECHO_T}$result" >&6; }
6778
6779
6780           enablestring=
6781           defaultval=$wxUSE_ALL_FEATURES
6782           if test -z "$defaultval"; then
6783               if test x"$enablestring" = xdisable; then
6784                   defaultval=yes
6785               else
6786                   defaultval=no
6787               fi
6788           fi
6789
6790           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6791 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6792           # Check whether --enable-ffile was given.
6793 if test "${enable_ffile+set}" = set; then
6794   enableval=$enable_ffile;
6795                           if test "$enableval" = yes; then
6796                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6797                           else
6798                             wx_cv_use_ffile='wxUSE_FFILE=no'
6799                           fi
6800
6801 else
6802
6803                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6804
6805 fi
6806
6807
6808           eval "$wx_cv_use_ffile"
6809
6810           if test x"$enablestring" = xdisable; then
6811             if test $wxUSE_FFILE = yes; then
6812               result=no
6813             else
6814               result=yes
6815             fi
6816           else
6817             result=$wxUSE_FFILE
6818           fi
6819
6820           { echo "$as_me:$LINENO: result: $result" >&5
6821 echo "${ECHO_T}$result" >&6; }
6822
6823
6824           enablestring=
6825           defaultval=$wxUSE_ALL_FEATURES
6826           if test -z "$defaultval"; then
6827               if test x"$enablestring" = xdisable; then
6828                   defaultval=yes
6829               else
6830                   defaultval=no
6831               fi
6832           fi
6833
6834           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6835 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6836           # Check whether --enable-file was given.
6837 if test "${enable_file+set}" = set; then
6838   enableval=$enable_file;
6839                           if test "$enableval" = yes; then
6840                             wx_cv_use_file='wxUSE_FILE=yes'
6841                           else
6842                             wx_cv_use_file='wxUSE_FILE=no'
6843                           fi
6844
6845 else
6846
6847                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6848
6849 fi
6850
6851
6852           eval "$wx_cv_use_file"
6853
6854           if test x"$enablestring" = xdisable; then
6855             if test $wxUSE_FILE = yes; then
6856               result=no
6857             else
6858               result=yes
6859             fi
6860           else
6861             result=$wxUSE_FILE
6862           fi
6863
6864           { echo "$as_me:$LINENO: result: $result" >&5
6865 echo "${ECHO_T}$result" >&6; }
6866
6867
6868           enablestring=
6869           defaultval=$wxUSE_ALL_FEATURES
6870           if test -z "$defaultval"; then
6871               if test x"$enablestring" = xdisable; then
6872                   defaultval=yes
6873               else
6874                   defaultval=no
6875               fi
6876           fi
6877
6878           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6879 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6880           # Check whether --enable-filesystem was given.
6881 if test "${enable_filesystem+set}" = set; then
6882   enableval=$enable_filesystem;
6883                           if test "$enableval" = yes; then
6884                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6885                           else
6886                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6887                           fi
6888
6889 else
6890
6891                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6892
6893 fi
6894
6895
6896           eval "$wx_cv_use_filesystem"
6897
6898           if test x"$enablestring" = xdisable; then
6899             if test $wxUSE_FILESYSTEM = yes; then
6900               result=no
6901             else
6902               result=yes
6903             fi
6904           else
6905             result=$wxUSE_FILESYSTEM
6906           fi
6907
6908           { echo "$as_me:$LINENO: result: $result" >&5
6909 echo "${ECHO_T}$result" >&6; }
6910
6911
6912           enablestring=
6913           defaultval=$wxUSE_ALL_FEATURES
6914           if test -z "$defaultval"; then
6915               if test x"$enablestring" = xdisable; then
6916                   defaultval=yes
6917               else
6918                   defaultval=no
6919               fi
6920           fi
6921
6922           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6923 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6924           # Check whether --enable-fontenum was given.
6925 if test "${enable_fontenum+set}" = set; then
6926   enableval=$enable_fontenum;
6927                           if test "$enableval" = yes; then
6928                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6929                           else
6930                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6931                           fi
6932
6933 else
6934
6935                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6936
6937 fi
6938
6939
6940           eval "$wx_cv_use_fontenum"
6941
6942           if test x"$enablestring" = xdisable; then
6943             if test $wxUSE_FONTENUM = yes; then
6944               result=no
6945             else
6946               result=yes
6947             fi
6948           else
6949             result=$wxUSE_FONTENUM
6950           fi
6951
6952           { echo "$as_me:$LINENO: result: $result" >&5
6953 echo "${ECHO_T}$result" >&6; }
6954
6955
6956           enablestring=
6957           defaultval=$wxUSE_ALL_FEATURES
6958           if test -z "$defaultval"; then
6959               if test x"$enablestring" = xdisable; then
6960                   defaultval=yes
6961               else
6962                   defaultval=no
6963               fi
6964           fi
6965
6966           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6967 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6968           # Check whether --enable-fontmap was given.
6969 if test "${enable_fontmap+set}" = set; then
6970   enableval=$enable_fontmap;
6971                           if test "$enableval" = yes; then
6972                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6973                           else
6974                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6975                           fi
6976
6977 else
6978
6979                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6980
6981 fi
6982
6983
6984           eval "$wx_cv_use_fontmap"
6985
6986           if test x"$enablestring" = xdisable; then
6987             if test $wxUSE_FONTMAP = yes; then
6988               result=no
6989             else
6990               result=yes
6991             fi
6992           else
6993             result=$wxUSE_FONTMAP
6994           fi
6995
6996           { echo "$as_me:$LINENO: result: $result" >&5
6997 echo "${ECHO_T}$result" >&6; }
6998
6999
7000           enablestring=
7001           defaultval=$wxUSE_ALL_FEATURES
7002           if test -z "$defaultval"; then
7003               if test x"$enablestring" = xdisable; then
7004                   defaultval=yes
7005               else
7006                   defaultval=no
7007               fi
7008           fi
7009
7010           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7011 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7012           # Check whether --enable-fs_archive was given.
7013 if test "${enable_fs_archive+set}" = set; then
7014   enableval=$enable_fs_archive;
7015                           if test "$enableval" = yes; then
7016                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7017                           else
7018                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7019                           fi
7020
7021 else
7022
7023                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7024
7025 fi
7026
7027
7028           eval "$wx_cv_use_fs_archive"
7029
7030           if test x"$enablestring" = xdisable; then
7031             if test $wxUSE_FS_ARCHIVE = yes; then
7032               result=no
7033             else
7034               result=yes
7035             fi
7036           else
7037             result=$wxUSE_FS_ARCHIVE
7038           fi
7039
7040           { echo "$as_me:$LINENO: result: $result" >&5
7041 echo "${ECHO_T}$result" >&6; }
7042
7043
7044           enablestring=
7045           defaultval=$wxUSE_ALL_FEATURES
7046           if test -z "$defaultval"; then
7047               if test x"$enablestring" = xdisable; then
7048                   defaultval=yes
7049               else
7050                   defaultval=no
7051               fi
7052           fi
7053
7054           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7055 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7056           # Check whether --enable-fs_inet was given.
7057 if test "${enable_fs_inet+set}" = set; then
7058   enableval=$enable_fs_inet;
7059                           if test "$enableval" = yes; then
7060                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7061                           else
7062                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7063                           fi
7064
7065 else
7066
7067                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7068
7069 fi
7070
7071
7072           eval "$wx_cv_use_fs_inet"
7073
7074           if test x"$enablestring" = xdisable; then
7075             if test $wxUSE_FS_INET = yes; then
7076               result=no
7077             else
7078               result=yes
7079             fi
7080           else
7081             result=$wxUSE_FS_INET
7082           fi
7083
7084           { echo "$as_me:$LINENO: result: $result" >&5
7085 echo "${ECHO_T}$result" >&6; }
7086
7087
7088           enablestring=
7089           defaultval=$wxUSE_ALL_FEATURES
7090           if test -z "$defaultval"; then
7091               if test x"$enablestring" = xdisable; then
7092                   defaultval=yes
7093               else
7094                   defaultval=no
7095               fi
7096           fi
7097
7098           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7099 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7100           # Check whether --enable-fs_zip was given.
7101 if test "${enable_fs_zip+set}" = set; then
7102   enableval=$enable_fs_zip;
7103                           if test "$enableval" = yes; then
7104                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7105                           else
7106                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7107                           fi
7108
7109 else
7110
7111                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7112
7113 fi
7114
7115
7116           eval "$wx_cv_use_fs_zip"
7117
7118           if test x"$enablestring" = xdisable; then
7119             if test $wxUSE_FS_ZIP = yes; then
7120               result=no
7121             else
7122               result=yes
7123             fi
7124           else
7125             result=$wxUSE_FS_ZIP
7126           fi
7127
7128           { echo "$as_me:$LINENO: result: $result" >&5
7129 echo "${ECHO_T}$result" >&6; }
7130
7131
7132           enablestring=
7133           defaultval=$wxUSE_ALL_FEATURES
7134           if test -z "$defaultval"; then
7135               if test x"$enablestring" = xdisable; then
7136                   defaultval=yes
7137               else
7138                   defaultval=no
7139               fi
7140           fi
7141
7142           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7143 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7144           # Check whether --enable-geometry was given.
7145 if test "${enable_geometry+set}" = set; then
7146   enableval=$enable_geometry;
7147                           if test "$enableval" = yes; then
7148                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7149                           else
7150                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7151                           fi
7152
7153 else
7154
7155                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7156
7157 fi
7158
7159
7160           eval "$wx_cv_use_geometry"
7161
7162           if test x"$enablestring" = xdisable; then
7163             if test $wxUSE_GEOMETRY = yes; then
7164               result=no
7165             else
7166               result=yes
7167             fi
7168           else
7169             result=$wxUSE_GEOMETRY
7170           fi
7171
7172           { echo "$as_me:$LINENO: result: $result" >&5
7173 echo "${ECHO_T}$result" >&6; }
7174
7175
7176           enablestring=
7177           defaultval=$wxUSE_ALL_FEATURES
7178           if test -z "$defaultval"; then
7179               if test x"$enablestring" = xdisable; then
7180                   defaultval=yes
7181               else
7182                   defaultval=no
7183               fi
7184           fi
7185
7186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7187 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7188           # Check whether --enable-log was given.
7189 if test "${enable_log+set}" = set; then
7190   enableval=$enable_log;
7191                           if test "$enableval" = yes; then
7192                             wx_cv_use_log='wxUSE_LOG=yes'
7193                           else
7194                             wx_cv_use_log='wxUSE_LOG=no'
7195                           fi
7196
7197 else
7198
7199                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7200
7201 fi
7202
7203
7204           eval "$wx_cv_use_log"
7205
7206           if test x"$enablestring" = xdisable; then
7207             if test $wxUSE_LOG = yes; then
7208               result=no
7209             else
7210               result=yes
7211             fi
7212           else
7213             result=$wxUSE_LOG
7214           fi
7215
7216           { echo "$as_me:$LINENO: result: $result" >&5
7217 echo "${ECHO_T}$result" >&6; }
7218
7219
7220           enablestring=
7221           defaultval=$wxUSE_ALL_FEATURES
7222           if test -z "$defaultval"; then
7223               if test x"$enablestring" = xdisable; then
7224                   defaultval=yes
7225               else
7226                   defaultval=no
7227               fi
7228           fi
7229
7230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7231 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7232           # Check whether --enable-longlong was given.
7233 if test "${enable_longlong+set}" = set; then
7234   enableval=$enable_longlong;
7235                           if test "$enableval" = yes; then
7236                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7237                           else
7238                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7239                           fi
7240
7241 else
7242
7243                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7244
7245 fi
7246
7247
7248           eval "$wx_cv_use_longlong"
7249
7250           if test x"$enablestring" = xdisable; then
7251             if test $wxUSE_LONGLONG = yes; then
7252               result=no
7253             else
7254               result=yes
7255             fi
7256           else
7257             result=$wxUSE_LONGLONG
7258           fi
7259
7260           { echo "$as_me:$LINENO: result: $result" >&5
7261 echo "${ECHO_T}$result" >&6; }
7262
7263
7264           enablestring=
7265           defaultval=$wxUSE_ALL_FEATURES
7266           if test -z "$defaultval"; then
7267               if test x"$enablestring" = xdisable; then
7268                   defaultval=yes
7269               else
7270                   defaultval=no
7271               fi
7272           fi
7273
7274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7275 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7276           # Check whether --enable-mimetype was given.
7277 if test "${enable_mimetype+set}" = set; then
7278   enableval=$enable_mimetype;
7279                           if test "$enableval" = yes; then
7280                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7281                           else
7282                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7283                           fi
7284
7285 else
7286
7287                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7288
7289 fi
7290
7291
7292           eval "$wx_cv_use_mimetype"
7293
7294           if test x"$enablestring" = xdisable; then
7295             if test $wxUSE_MIMETYPE = yes; then
7296               result=no
7297             else
7298               result=yes
7299             fi
7300           else
7301             result=$wxUSE_MIMETYPE
7302           fi
7303
7304           { echo "$as_me:$LINENO: result: $result" >&5
7305 echo "${ECHO_T}$result" >&6; }
7306
7307
7308           enablestring=
7309           defaultval=$wxUSE_ALL_FEATURES
7310           if test -z "$defaultval"; then
7311               if test x"$enablestring" = xdisable; then
7312                   defaultval=yes
7313               else
7314                   defaultval=no
7315               fi
7316           fi
7317
7318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7319 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7320           # Check whether --enable-printfposparam was given.
7321 if test "${enable_printfposparam+set}" = set; then
7322   enableval=$enable_printfposparam;
7323                           if test "$enableval" = yes; then
7324                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7325                           else
7326                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7327                           fi
7328
7329 else
7330
7331                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7332
7333 fi
7334
7335
7336           eval "$wx_cv_use_printfposparam"
7337
7338           if test x"$enablestring" = xdisable; then
7339             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7340               result=no
7341             else
7342               result=yes
7343             fi
7344           else
7345             result=$wxUSE_PRINTF_POS_PARAMS
7346           fi
7347
7348           { echo "$as_me:$LINENO: result: $result" >&5
7349 echo "${ECHO_T}$result" >&6; }
7350
7351
7352           enablestring=
7353           defaultval=$wxUSE_ALL_FEATURES
7354           if test -z "$defaultval"; then
7355               if test x"$enablestring" = xdisable; then
7356                   defaultval=yes
7357               else
7358                   defaultval=no
7359               fi
7360           fi
7361
7362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7363 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7364           # Check whether --enable-snglinst was given.
7365 if test "${enable_snglinst+set}" = set; then
7366   enableval=$enable_snglinst;
7367                           if test "$enableval" = yes; then
7368                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7369                           else
7370                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7371                           fi
7372
7373 else
7374
7375                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7376
7377 fi
7378
7379
7380           eval "$wx_cv_use_snglinst"
7381
7382           if test x"$enablestring" = xdisable; then
7383             if test $wxUSE_SNGLINST_CHECKER = yes; then
7384               result=no
7385             else
7386               result=yes
7387             fi
7388           else
7389             result=$wxUSE_SNGLINST_CHECKER
7390           fi
7391
7392           { echo "$as_me:$LINENO: result: $result" >&5
7393 echo "${ECHO_T}$result" >&6; }
7394
7395
7396           enablestring=
7397           defaultval=$wxUSE_ALL_FEATURES
7398           if test -z "$defaultval"; then
7399               if test x"$enablestring" = xdisable; then
7400                   defaultval=yes
7401               else
7402                   defaultval=no
7403               fi
7404           fi
7405
7406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7407 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7408           # Check whether --enable-sound was given.
7409 if test "${enable_sound+set}" = set; then
7410   enableval=$enable_sound;
7411                           if test "$enableval" = yes; then
7412                             wx_cv_use_sound='wxUSE_SOUND=yes'
7413                           else
7414                             wx_cv_use_sound='wxUSE_SOUND=no'
7415                           fi
7416
7417 else
7418
7419                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7420
7421 fi
7422
7423
7424           eval "$wx_cv_use_sound"
7425
7426           if test x"$enablestring" = xdisable; then
7427             if test $wxUSE_SOUND = yes; then
7428               result=no
7429             else
7430               result=yes
7431             fi
7432           else
7433             result=$wxUSE_SOUND
7434           fi
7435
7436           { echo "$as_me:$LINENO: result: $result" >&5
7437 echo "${ECHO_T}$result" >&6; }
7438
7439
7440           enablestring=
7441           defaultval=$wxUSE_ALL_FEATURES
7442           if test -z "$defaultval"; then
7443               if test x"$enablestring" = xdisable; then
7444                   defaultval=yes
7445               else
7446                   defaultval=no
7447               fi
7448           fi
7449
7450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7451 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7452           # Check whether --enable-stdpaths was given.
7453 if test "${enable_stdpaths+set}" = set; then
7454   enableval=$enable_stdpaths;
7455                           if test "$enableval" = yes; then
7456                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7457                           else
7458                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7459                           fi
7460
7461 else
7462
7463                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7464
7465 fi
7466
7467
7468           eval "$wx_cv_use_stdpaths"
7469
7470           if test x"$enablestring" = xdisable; then
7471             if test $wxUSE_STDPATHS = yes; then
7472               result=no
7473             else
7474               result=yes
7475             fi
7476           else
7477             result=$wxUSE_STDPATHS
7478           fi
7479
7480           { echo "$as_me:$LINENO: result: $result" >&5
7481 echo "${ECHO_T}$result" >&6; }
7482
7483
7484           enablestring=
7485           defaultval=$wxUSE_ALL_FEATURES
7486           if test -z "$defaultval"; then
7487               if test x"$enablestring" = xdisable; then
7488                   defaultval=yes
7489               else
7490                   defaultval=no
7491               fi
7492           fi
7493
7494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7495 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7496           # Check whether --enable-stopwatch was given.
7497 if test "${enable_stopwatch+set}" = set; then
7498   enableval=$enable_stopwatch;
7499                           if test "$enableval" = yes; then
7500                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7501                           else
7502                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7503                           fi
7504
7505 else
7506
7507                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7508
7509 fi
7510
7511
7512           eval "$wx_cv_use_stopwatch"
7513
7514           if test x"$enablestring" = xdisable; then
7515             if test $wxUSE_STOPWATCH = yes; then
7516               result=no
7517             else
7518               result=yes
7519             fi
7520           else
7521             result=$wxUSE_STOPWATCH
7522           fi
7523
7524           { echo "$as_me:$LINENO: result: $result" >&5
7525 echo "${ECHO_T}$result" >&6; }
7526
7527
7528           enablestring=
7529           defaultval=$wxUSE_ALL_FEATURES
7530           if test -z "$defaultval"; then
7531               if test x"$enablestring" = xdisable; then
7532                   defaultval=yes
7533               else
7534                   defaultval=no
7535               fi
7536           fi
7537
7538           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7539 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7540           # Check whether --enable-streams was given.
7541 if test "${enable_streams+set}" = set; then
7542   enableval=$enable_streams;
7543                           if test "$enableval" = yes; then
7544                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7545                           else
7546                             wx_cv_use_streams='wxUSE_STREAMS=no'
7547                           fi
7548
7549 else
7550
7551                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7552
7553 fi
7554
7555
7556           eval "$wx_cv_use_streams"
7557
7558           if test x"$enablestring" = xdisable; then
7559             if test $wxUSE_STREAMS = yes; then
7560               result=no
7561             else
7562               result=yes
7563             fi
7564           else
7565             result=$wxUSE_STREAMS
7566           fi
7567
7568           { echo "$as_me:$LINENO: result: $result" >&5
7569 echo "${ECHO_T}$result" >&6; }
7570
7571
7572           enablestring=
7573           defaultval=$wxUSE_ALL_FEATURES
7574           if test -z "$defaultval"; then
7575               if test x"$enablestring" = xdisable; then
7576                   defaultval=yes
7577               else
7578                   defaultval=no
7579               fi
7580           fi
7581
7582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7583 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7584           # Check whether --enable-system_options was given.
7585 if test "${enable_system_options+set}" = set; then
7586   enableval=$enable_system_options;
7587                           if test "$enableval" = yes; then
7588                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7589                           else
7590                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7591                           fi
7592
7593 else
7594
7595                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7596
7597 fi
7598
7599
7600           eval "$wx_cv_use_system_options"
7601
7602           if test x"$enablestring" = xdisable; then
7603             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7604               result=no
7605             else
7606               result=yes
7607             fi
7608           else
7609             result=$wxUSE_SYSTEM_OPTIONS
7610           fi
7611
7612           { echo "$as_me:$LINENO: result: $result" >&5
7613 echo "${ECHO_T}$result" >&6; }
7614
7615
7616           enablestring=
7617           defaultval=$wxUSE_ALL_FEATURES
7618           if test -z "$defaultval"; then
7619               if test x"$enablestring" = xdisable; then
7620                   defaultval=yes
7621               else
7622                   defaultval=no
7623               fi
7624           fi
7625
7626           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7627 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7628           # Check whether --enable-tarstream was given.
7629 if test "${enable_tarstream+set}" = set; then
7630   enableval=$enable_tarstream;
7631                           if test "$enableval" = yes; then
7632                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7633                           else
7634                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7635                           fi
7636
7637 else
7638
7639                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7640
7641 fi
7642
7643
7644           eval "$wx_cv_use_tarstream"
7645
7646           if test x"$enablestring" = xdisable; then
7647             if test $wxUSE_TARSTREAM = yes; then
7648               result=no
7649             else
7650               result=yes
7651             fi
7652           else
7653             result=$wxUSE_TARSTREAM
7654           fi
7655
7656           { echo "$as_me:$LINENO: result: $result" >&5
7657 echo "${ECHO_T}$result" >&6; }
7658
7659
7660           enablestring=
7661           defaultval=$wxUSE_ALL_FEATURES
7662           if test -z "$defaultval"; then
7663               if test x"$enablestring" = xdisable; then
7664                   defaultval=yes
7665               else
7666                   defaultval=no
7667               fi
7668           fi
7669
7670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7671 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7672           # Check whether --enable-textbuf was given.
7673 if test "${enable_textbuf+set}" = set; then
7674   enableval=$enable_textbuf;
7675                           if test "$enableval" = yes; then
7676                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7677                           else
7678                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7679                           fi
7680
7681 else
7682
7683                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7684
7685 fi
7686
7687
7688           eval "$wx_cv_use_textbuf"
7689
7690           if test x"$enablestring" = xdisable; then
7691             if test $wxUSE_TEXTBUFFER = yes; then
7692               result=no
7693             else
7694               result=yes
7695             fi
7696           else
7697             result=$wxUSE_TEXTBUFFER
7698           fi
7699
7700           { echo "$as_me:$LINENO: result: $result" >&5
7701 echo "${ECHO_T}$result" >&6; }
7702
7703
7704           enablestring=
7705           defaultval=$wxUSE_ALL_FEATURES
7706           if test -z "$defaultval"; then
7707               if test x"$enablestring" = xdisable; then
7708                   defaultval=yes
7709               else
7710                   defaultval=no
7711               fi
7712           fi
7713
7714           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7715 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7716           # Check whether --enable-textfile was given.
7717 if test "${enable_textfile+set}" = set; then
7718   enableval=$enable_textfile;
7719                           if test "$enableval" = yes; then
7720                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7721                           else
7722                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7723                           fi
7724
7725 else
7726
7727                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7728
7729 fi
7730
7731
7732           eval "$wx_cv_use_textfile"
7733
7734           if test x"$enablestring" = xdisable; then
7735             if test $wxUSE_TEXTFILE = yes; then
7736               result=no
7737             else
7738               result=yes
7739             fi
7740           else
7741             result=$wxUSE_TEXTFILE
7742           fi
7743
7744           { echo "$as_me:$LINENO: result: $result" >&5
7745 echo "${ECHO_T}$result" >&6; }
7746
7747
7748           enablestring=
7749           defaultval=$wxUSE_ALL_FEATURES
7750           if test -z "$defaultval"; then
7751               if test x"$enablestring" = xdisable; then
7752                   defaultval=yes
7753               else
7754                   defaultval=no
7755               fi
7756           fi
7757
7758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7759 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7760           # Check whether --enable-timer was given.
7761 if test "${enable_timer+set}" = set; then
7762   enableval=$enable_timer;
7763                           if test "$enableval" = yes; then
7764                             wx_cv_use_timer='wxUSE_TIMER=yes'
7765                           else
7766                             wx_cv_use_timer='wxUSE_TIMER=no'
7767                           fi
7768
7769 else
7770
7771                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7772
7773 fi
7774
7775
7776           eval "$wx_cv_use_timer"
7777
7778           if test x"$enablestring" = xdisable; then
7779             if test $wxUSE_TIMER = yes; then
7780               result=no
7781             else
7782               result=yes
7783             fi
7784           else
7785             result=$wxUSE_TIMER
7786           fi
7787
7788           { echo "$as_me:$LINENO: result: $result" >&5
7789 echo "${ECHO_T}$result" >&6; }
7790
7791
7792           enablestring=
7793           defaultval=$wxUSE_ALL_FEATURES
7794           if test -z "$defaultval"; then
7795               if test x"$enablestring" = xdisable; then
7796                   defaultval=yes
7797               else
7798                   defaultval=no
7799               fi
7800           fi
7801
7802           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7803 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7804           # Check whether --enable-variant was given.
7805 if test "${enable_variant+set}" = set; then
7806   enableval=$enable_variant;
7807                           if test "$enableval" = yes; then
7808                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7809                           else
7810                             wx_cv_use_variant='wxUSE_VARIANT=no'
7811                           fi
7812
7813 else
7814
7815                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7816
7817 fi
7818
7819
7820           eval "$wx_cv_use_variant"
7821
7822           if test x"$enablestring" = xdisable; then
7823             if test $wxUSE_VARIANT = yes; then
7824               result=no
7825             else
7826               result=yes
7827             fi
7828           else
7829             result=$wxUSE_VARIANT
7830           fi
7831
7832           { echo "$as_me:$LINENO: result: $result" >&5
7833 echo "${ECHO_T}$result" >&6; }
7834
7835
7836           enablestring=
7837           defaultval=$wxUSE_ALL_FEATURES
7838           if test -z "$defaultval"; then
7839               if test x"$enablestring" = xdisable; then
7840                   defaultval=yes
7841               else
7842                   defaultval=no
7843               fi
7844           fi
7845
7846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7847 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7848           # Check whether --enable-zipstream was given.
7849 if test "${enable_zipstream+set}" = set; then
7850   enableval=$enable_zipstream;
7851                           if test "$enableval" = yes; then
7852                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7853                           else
7854                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7855                           fi
7856
7857 else
7858
7859                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7860
7861 fi
7862
7863
7864           eval "$wx_cv_use_zipstream"
7865
7866           if test x"$enablestring" = xdisable; then
7867             if test $wxUSE_ZIPSTREAM = yes; then
7868               result=no
7869             else
7870               result=yes
7871             fi
7872           else
7873             result=$wxUSE_ZIPSTREAM
7874           fi
7875
7876           { echo "$as_me:$LINENO: result: $result" >&5
7877 echo "${ECHO_T}$result" >&6; }
7878
7879
7880
7881           enablestring=
7882           defaultval=$wxUSE_ALL_FEATURES
7883           if test -z "$defaultval"; then
7884               if test x"$enablestring" = xdisable; then
7885                   defaultval=yes
7886               else
7887                   defaultval=no
7888               fi
7889           fi
7890
7891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7892 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7893           # Check whether --enable-url was given.
7894 if test "${enable_url+set}" = set; then
7895   enableval=$enable_url;
7896                           if test "$enableval" = yes; then
7897                             wx_cv_use_url='wxUSE_URL=yes'
7898                           else
7899                             wx_cv_use_url='wxUSE_URL=no'
7900                           fi
7901
7902 else
7903
7904                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7905
7906 fi
7907
7908
7909           eval "$wx_cv_use_url"
7910
7911           if test x"$enablestring" = xdisable; then
7912             if test $wxUSE_URL = yes; then
7913               result=no
7914             else
7915               result=yes
7916             fi
7917           else
7918             result=$wxUSE_URL
7919           fi
7920
7921           { echo "$as_me:$LINENO: result: $result" >&5
7922 echo "${ECHO_T}$result" >&6; }
7923
7924
7925           enablestring=
7926           defaultval=$wxUSE_ALL_FEATURES
7927           if test -z "$defaultval"; then
7928               if test x"$enablestring" = xdisable; then
7929                   defaultval=yes
7930               else
7931                   defaultval=no
7932               fi
7933           fi
7934
7935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7936 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7937           # Check whether --enable-protocol was given.
7938 if test "${enable_protocol+set}" = set; then
7939   enableval=$enable_protocol;
7940                           if test "$enableval" = yes; then
7941                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7942                           else
7943                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7944                           fi
7945
7946 else
7947
7948                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7949
7950 fi
7951
7952
7953           eval "$wx_cv_use_protocol"
7954
7955           if test x"$enablestring" = xdisable; then
7956             if test $wxUSE_PROTOCOL = yes; then
7957               result=no
7958             else
7959               result=yes
7960             fi
7961           else
7962             result=$wxUSE_PROTOCOL
7963           fi
7964
7965           { echo "$as_me:$LINENO: result: $result" >&5
7966 echo "${ECHO_T}$result" >&6; }
7967
7968
7969           enablestring=
7970           defaultval=$wxUSE_ALL_FEATURES
7971           if test -z "$defaultval"; then
7972               if test x"$enablestring" = xdisable; then
7973                   defaultval=yes
7974               else
7975                   defaultval=no
7976               fi
7977           fi
7978
7979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7980 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7981           # Check whether --enable-protocol_http was given.
7982 if test "${enable_protocol_http+set}" = set; then
7983   enableval=$enable_protocol_http;
7984                           if test "$enableval" = yes; then
7985                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7986                           else
7987                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7988                           fi
7989
7990 else
7991
7992                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7993
7994 fi
7995
7996
7997           eval "$wx_cv_use_protocol_http"
7998
7999           if test x"$enablestring" = xdisable; then
8000             if test $wxUSE_PROTOCOL_HTTP = yes; then
8001               result=no
8002             else
8003               result=yes
8004             fi
8005           else
8006             result=$wxUSE_PROTOCOL_HTTP
8007           fi
8008
8009           { echo "$as_me:$LINENO: result: $result" >&5
8010 echo "${ECHO_T}$result" >&6; }
8011
8012
8013           enablestring=
8014           defaultval=$wxUSE_ALL_FEATURES
8015           if test -z "$defaultval"; then
8016               if test x"$enablestring" = xdisable; then
8017                   defaultval=yes
8018               else
8019                   defaultval=no
8020               fi
8021           fi
8022
8023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8024 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8025           # Check whether --enable-protocol_ftp was given.
8026 if test "${enable_protocol_ftp+set}" = set; then
8027   enableval=$enable_protocol_ftp;
8028                           if test "$enableval" = yes; then
8029                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8030                           else
8031                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8032                           fi
8033
8034 else
8035
8036                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8037
8038 fi
8039
8040
8041           eval "$wx_cv_use_protocol_ftp"
8042
8043           if test x"$enablestring" = xdisable; then
8044             if test $wxUSE_PROTOCOL_FTP = yes; then
8045               result=no
8046             else
8047               result=yes
8048             fi
8049           else
8050             result=$wxUSE_PROTOCOL_FTP
8051           fi
8052
8053           { echo "$as_me:$LINENO: result: $result" >&5
8054 echo "${ECHO_T}$result" >&6; }
8055
8056
8057           enablestring=
8058           defaultval=$wxUSE_ALL_FEATURES
8059           if test -z "$defaultval"; then
8060               if test x"$enablestring" = xdisable; then
8061                   defaultval=yes
8062               else
8063                   defaultval=no
8064               fi
8065           fi
8066
8067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8068 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8069           # Check whether --enable-protocol_file was given.
8070 if test "${enable_protocol_file+set}" = set; then
8071   enableval=$enable_protocol_file;
8072                           if test "$enableval" = yes; then
8073                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8074                           else
8075                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8076                           fi
8077
8078 else
8079
8080                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8081
8082 fi
8083
8084
8085           eval "$wx_cv_use_protocol_file"
8086
8087           if test x"$enablestring" = xdisable; then
8088             if test $wxUSE_PROTOCOL_FILE = yes; then
8089               result=no
8090             else
8091               result=yes
8092             fi
8093           else
8094             result=$wxUSE_PROTOCOL_FILE
8095           fi
8096
8097           { echo "$as_me:$LINENO: result: $result" >&5
8098 echo "${ECHO_T}$result" >&6; }
8099
8100
8101
8102           enablestring=
8103           defaultval=$wxUSE_ALL_FEATURES
8104           if test -z "$defaultval"; then
8105               if test x"$enablestring" = xdisable; then
8106                   defaultval=yes
8107               else
8108                   defaultval=no
8109               fi
8110           fi
8111
8112           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8113 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8114           # Check whether --enable-threads was given.
8115 if test "${enable_threads+set}" = set; then
8116   enableval=$enable_threads;
8117                           if test "$enableval" = yes; then
8118                             wx_cv_use_threads='wxUSE_THREADS=yes'
8119                           else
8120                             wx_cv_use_threads='wxUSE_THREADS=no'
8121                           fi
8122
8123 else
8124
8125                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8126
8127 fi
8128
8129
8130           eval "$wx_cv_use_threads"
8131
8132           if test x"$enablestring" = xdisable; then
8133             if test $wxUSE_THREADS = yes; then
8134               result=no
8135             else
8136               result=yes
8137             fi
8138           else
8139             result=$wxUSE_THREADS
8140           fi
8141
8142           { echo "$as_me:$LINENO: result: $result" >&5
8143 echo "${ECHO_T}$result" >&6; }
8144
8145
8146
8147           enablestring=
8148           defaultval=
8149           if test -z "$defaultval"; then
8150               if test x"$enablestring" = xdisable; then
8151                   defaultval=yes
8152               else
8153                   defaultval=no
8154               fi
8155           fi
8156
8157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8158 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8159           # Check whether --enable-iniconf was given.
8160 if test "${enable_iniconf+set}" = set; then
8161   enableval=$enable_iniconf;
8162                           if test "$enableval" = yes; then
8163                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8164                           else
8165                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8166                           fi
8167
8168 else
8169
8170                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8171
8172 fi
8173
8174
8175           eval "$wx_cv_use_iniconf"
8176
8177           if test x"$enablestring" = xdisable; then
8178             if test $wxUSE_INICONF = yes; then
8179               result=no
8180             else
8181               result=yes
8182             fi
8183           else
8184             result=$wxUSE_INICONF
8185           fi
8186
8187           { echo "$as_me:$LINENO: result: $result" >&5
8188 echo "${ECHO_T}$result" >&6; }
8189
8190
8191           enablestring=
8192           defaultval=$wxUSE_ALL_FEATURES
8193           if test -z "$defaultval"; then
8194               if test x"$enablestring" = xdisable; then
8195                   defaultval=yes
8196               else
8197                   defaultval=no
8198               fi
8199           fi
8200
8201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8202 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8203           # Check whether --enable-regkey was given.
8204 if test "${enable_regkey+set}" = set; then
8205   enableval=$enable_regkey;
8206                           if test "$enableval" = yes; then
8207                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8208                           else
8209                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8210                           fi
8211
8212 else
8213
8214                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8215
8216 fi
8217
8218
8219           eval "$wx_cv_use_regkey"
8220
8221           if test x"$enablestring" = xdisable; then
8222             if test $wxUSE_REGKEY = yes; then
8223               result=no
8224             else
8225               result=yes
8226             fi
8227           else
8228             result=$wxUSE_REGKEY
8229           fi
8230
8231           { echo "$as_me:$LINENO: result: $result" >&5
8232 echo "${ECHO_T}$result" >&6; }
8233
8234
8235 if test "$wxUSE_GUI" = "yes"; then
8236
8237
8238
8239           enablestring=
8240           defaultval=$wxUSE_ALL_FEATURES
8241           if test -z "$defaultval"; then
8242               if test x"$enablestring" = xdisable; then
8243                   defaultval=yes
8244               else
8245                   defaultval=no
8246               fi
8247           fi
8248
8249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8250 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8251           # Check whether --enable-docview was given.
8252 if test "${enable_docview+set}" = set; then
8253   enableval=$enable_docview;
8254                           if test "$enableval" = yes; then
8255                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8256                           else
8257                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8258                           fi
8259
8260 else
8261
8262                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8263
8264 fi
8265
8266
8267           eval "$wx_cv_use_docview"
8268
8269           if test x"$enablestring" = xdisable; then
8270             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8271               result=no
8272             else
8273               result=yes
8274             fi
8275           else
8276             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8277           fi
8278
8279           { echo "$as_me:$LINENO: result: $result" >&5
8280 echo "${ECHO_T}$result" >&6; }
8281
8282
8283           enablestring=
8284           defaultval=$wxUSE_ALL_FEATURES
8285           if test -z "$defaultval"; then
8286               if test x"$enablestring" = xdisable; then
8287                   defaultval=yes
8288               else
8289                   defaultval=no
8290               fi
8291           fi
8292
8293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8294 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8295           # Check whether --enable-help was given.
8296 if test "${enable_help+set}" = set; then
8297   enableval=$enable_help;
8298                           if test "$enableval" = yes; then
8299                             wx_cv_use_help='wxUSE_HELP=yes'
8300                           else
8301                             wx_cv_use_help='wxUSE_HELP=no'
8302                           fi
8303
8304 else
8305
8306                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8307
8308 fi
8309
8310
8311           eval "$wx_cv_use_help"
8312
8313           if test x"$enablestring" = xdisable; then
8314             if test $wxUSE_HELP = yes; then
8315               result=no
8316             else
8317               result=yes
8318             fi
8319           else
8320             result=$wxUSE_HELP
8321           fi
8322
8323           { echo "$as_me:$LINENO: result: $result" >&5
8324 echo "${ECHO_T}$result" >&6; }
8325
8326
8327           enablestring=
8328           defaultval=$wxUSE_ALL_FEATURES
8329           if test -z "$defaultval"; then
8330               if test x"$enablestring" = xdisable; then
8331                   defaultval=yes
8332               else
8333                   defaultval=no
8334               fi
8335           fi
8336
8337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8338 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8339           # Check whether --enable-mshtmlhelp was given.
8340 if test "${enable_mshtmlhelp+set}" = set; then
8341   enableval=$enable_mshtmlhelp;
8342                           if test "$enableval" = yes; then
8343                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8344                           else
8345                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8346                           fi
8347
8348 else
8349
8350                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8351
8352 fi
8353
8354
8355           eval "$wx_cv_use_mshtmlhelp"
8356
8357           if test x"$enablestring" = xdisable; then
8358             if test $wxUSE_MS_HTML_HELP = yes; then
8359               result=no
8360             else
8361               result=yes
8362             fi
8363           else
8364             result=$wxUSE_MS_HTML_HELP
8365           fi
8366
8367           { echo "$as_me:$LINENO: result: $result" >&5
8368 echo "${ECHO_T}$result" >&6; }
8369
8370
8371           enablestring=
8372           defaultval=$wxUSE_ALL_FEATURES
8373           if test -z "$defaultval"; then
8374               if test x"$enablestring" = xdisable; then
8375                   defaultval=yes
8376               else
8377                   defaultval=no
8378               fi
8379           fi
8380
8381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8382 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8383           # Check whether --enable-html was given.
8384 if test "${enable_html+set}" = set; then
8385   enableval=$enable_html;
8386                           if test "$enableval" = yes; then
8387                             wx_cv_use_html='wxUSE_HTML=yes'
8388                           else
8389                             wx_cv_use_html='wxUSE_HTML=no'
8390                           fi
8391
8392 else
8393
8394                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8395
8396 fi
8397
8398
8399           eval "$wx_cv_use_html"
8400
8401           if test x"$enablestring" = xdisable; then
8402             if test $wxUSE_HTML = yes; then
8403               result=no
8404             else
8405               result=yes
8406             fi
8407           else
8408             result=$wxUSE_HTML
8409           fi
8410
8411           { echo "$as_me:$LINENO: result: $result" >&5
8412 echo "${ECHO_T}$result" >&6; }
8413
8414
8415           enablestring=
8416           defaultval=$wxUSE_ALL_FEATURES
8417           if test -z "$defaultval"; then
8418               if test x"$enablestring" = xdisable; then
8419                   defaultval=yes
8420               else
8421                   defaultval=no
8422               fi
8423           fi
8424
8425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8426 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8427           # Check whether --enable-htmlhelp was given.
8428 if test "${enable_htmlhelp+set}" = set; then
8429   enableval=$enable_htmlhelp;
8430                           if test "$enableval" = yes; then
8431                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8432                           else
8433                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8434                           fi
8435
8436 else
8437
8438                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8439
8440 fi
8441
8442
8443           eval "$wx_cv_use_htmlhelp"
8444
8445           if test x"$enablestring" = xdisable; then
8446             if test $wxUSE_WXHTML_HELP = yes; then
8447               result=no
8448             else
8449               result=yes
8450             fi
8451           else
8452             result=$wxUSE_WXHTML_HELP
8453           fi
8454
8455           { echo "$as_me:$LINENO: result: $result" >&5
8456 echo "${ECHO_T}$result" >&6; }
8457
8458
8459           enablestring=
8460           defaultval=$wxUSE_ALL_FEATURES
8461           if test -z "$defaultval"; then
8462               if test x"$enablestring" = xdisable; then
8463                   defaultval=yes
8464               else
8465                   defaultval=no
8466               fi
8467           fi
8468
8469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8470 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8471           # Check whether --enable-xrc was given.
8472 if test "${enable_xrc+set}" = set; then
8473   enableval=$enable_xrc;
8474                           if test "$enableval" = yes; then
8475                             wx_cv_use_xrc='wxUSE_XRC=yes'
8476                           else
8477                             wx_cv_use_xrc='wxUSE_XRC=no'
8478                           fi
8479
8480 else
8481
8482                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8483
8484 fi
8485
8486
8487           eval "$wx_cv_use_xrc"
8488
8489           if test x"$enablestring" = xdisable; then
8490             if test $wxUSE_XRC = yes; then
8491               result=no
8492             else
8493               result=yes
8494             fi
8495           else
8496             result=$wxUSE_XRC
8497           fi
8498
8499           { echo "$as_me:$LINENO: result: $result" >&5
8500 echo "${ECHO_T}$result" >&6; }
8501
8502
8503           enablestring=
8504           defaultval=$wxUSE_ALL_FEATURES
8505           if test -z "$defaultval"; then
8506               if test x"$enablestring" = xdisable; then
8507                   defaultval=yes
8508               else
8509                   defaultval=no
8510               fi
8511           fi
8512
8513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8514 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8515           # Check whether --enable-aui was given.
8516 if test "${enable_aui+set}" = set; then
8517   enableval=$enable_aui;
8518                           if test "$enableval" = yes; then
8519                             wx_cv_use_aui='wxUSE_AUI=yes'
8520                           else
8521                             wx_cv_use_aui='wxUSE_AUI=no'
8522                           fi
8523
8524 else
8525
8526                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8527
8528 fi
8529
8530
8531           eval "$wx_cv_use_aui"
8532
8533           if test x"$enablestring" = xdisable; then
8534             if test $wxUSE_AUI = yes; then
8535               result=no
8536             else
8537               result=yes
8538             fi
8539           else
8540             result=$wxUSE_AUI
8541           fi
8542
8543           { echo "$as_me:$LINENO: result: $result" >&5
8544 echo "${ECHO_T}$result" >&6; }
8545
8546
8547           enablestring=
8548           defaultval=$wxUSE_ALL_FEATURES
8549           if test -z "$defaultval"; then
8550               if test x"$enablestring" = xdisable; then
8551                   defaultval=yes
8552               else
8553                   defaultval=no
8554               fi
8555           fi
8556
8557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8558 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8559           # Check whether --enable-propgrid was given.
8560 if test "${enable_propgrid+set}" = set; then
8561   enableval=$enable_propgrid;
8562                           if test "$enableval" = yes; then
8563                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8564                           else
8565                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8566                           fi
8567
8568 else
8569
8570                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8571
8572 fi
8573
8574
8575           eval "$wx_cv_use_propgrid"
8576
8577           if test x"$enablestring" = xdisable; then
8578             if test $wxUSE_PROPGRID = yes; then
8579               result=no
8580             else
8581               result=yes
8582             fi
8583           else
8584             result=$wxUSE_PROPGRID
8585           fi
8586
8587           { echo "$as_me:$LINENO: result: $result" >&5
8588 echo "${ECHO_T}$result" >&6; }
8589
8590
8591           enablestring=
8592           defaultval=$wxUSE_ALL_FEATURES
8593           if test -z "$defaultval"; then
8594               if test x"$enablestring" = xdisable; then
8595                   defaultval=yes
8596               else
8597                   defaultval=no
8598               fi
8599           fi
8600
8601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8602 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8603           # Check whether --enable-stc was given.
8604 if test "${enable_stc+set}" = set; then
8605   enableval=$enable_stc;
8606                           if test "$enableval" = yes; then
8607                             wx_cv_use_stc='wxUSE_STC=yes'
8608                           else
8609                             wx_cv_use_stc='wxUSE_STC=no'
8610                           fi
8611
8612 else
8613
8614                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8615
8616 fi
8617
8618
8619           eval "$wx_cv_use_stc"
8620
8621           if test x"$enablestring" = xdisable; then
8622             if test $wxUSE_STC = yes; then
8623               result=no
8624             else
8625               result=yes
8626             fi
8627           else
8628             result=$wxUSE_STC
8629           fi
8630
8631           { echo "$as_me:$LINENO: result: $result" >&5
8632 echo "${ECHO_T}$result" >&6; }
8633
8634
8635           enablestring=
8636           defaultval=$wxUSE_ALL_FEATURES
8637           if test -z "$defaultval"; then
8638               if test x"$enablestring" = xdisable; then
8639                   defaultval=yes
8640               else
8641                   defaultval=no
8642               fi
8643           fi
8644
8645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8646 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8647           # Check whether --enable-constraints was given.
8648 if test "${enable_constraints+set}" = set; then
8649   enableval=$enable_constraints;
8650                           if test "$enableval" = yes; then
8651                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8652                           else
8653                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8654                           fi
8655
8656 else
8657
8658                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8659
8660 fi
8661
8662
8663           eval "$wx_cv_use_constraints"
8664
8665           if test x"$enablestring" = xdisable; then
8666             if test $wxUSE_CONSTRAINTS = yes; then
8667               result=no
8668             else
8669               result=yes
8670             fi
8671           else
8672             result=$wxUSE_CONSTRAINTS
8673           fi
8674
8675           { echo "$as_me:$LINENO: result: $result" >&5
8676 echo "${ECHO_T}$result" >&6; }
8677
8678
8679           enablestring=
8680           defaultval=$wxUSE_ALL_FEATURES
8681           if test -z "$defaultval"; then
8682               if test x"$enablestring" = xdisable; then
8683                   defaultval=yes
8684               else
8685                   defaultval=no
8686               fi
8687           fi
8688
8689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8690 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8691           # Check whether --enable-loggui was given.
8692 if test "${enable_loggui+set}" = set; then
8693   enableval=$enable_loggui;
8694                           if test "$enableval" = yes; then
8695                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8696                           else
8697                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8698                           fi
8699
8700 else
8701
8702                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8703
8704 fi
8705
8706
8707           eval "$wx_cv_use_loggui"
8708
8709           if test x"$enablestring" = xdisable; then
8710             if test $wxUSE_LOGGUI = yes; then
8711               result=no
8712             else
8713               result=yes
8714             fi
8715           else
8716             result=$wxUSE_LOGGUI
8717           fi
8718
8719           { echo "$as_me:$LINENO: result: $result" >&5
8720 echo "${ECHO_T}$result" >&6; }
8721
8722
8723           enablestring=
8724           defaultval=$wxUSE_ALL_FEATURES
8725           if test -z "$defaultval"; then
8726               if test x"$enablestring" = xdisable; then
8727                   defaultval=yes
8728               else
8729                   defaultval=no
8730               fi
8731           fi
8732
8733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8734 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8735           # Check whether --enable-logwin was given.
8736 if test "${enable_logwin+set}" = set; then
8737   enableval=$enable_logwin;
8738                           if test "$enableval" = yes; then
8739                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8740                           else
8741                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8742                           fi
8743
8744 else
8745
8746                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8747
8748 fi
8749
8750
8751           eval "$wx_cv_use_logwin"
8752
8753           if test x"$enablestring" = xdisable; then
8754             if test $wxUSE_LOGWINDOW = yes; then
8755               result=no
8756             else
8757               result=yes
8758             fi
8759           else
8760             result=$wxUSE_LOGWINDOW
8761           fi
8762
8763           { echo "$as_me:$LINENO: result: $result" >&5
8764 echo "${ECHO_T}$result" >&6; }
8765
8766
8767           enablestring=
8768           defaultval=$wxUSE_ALL_FEATURES
8769           if test -z "$defaultval"; then
8770               if test x"$enablestring" = xdisable; then
8771                   defaultval=yes
8772               else
8773                   defaultval=no
8774               fi
8775           fi
8776
8777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8778 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8779           # Check whether --enable-logdialog was given.
8780 if test "${enable_logdialog+set}" = set; then
8781   enableval=$enable_logdialog;
8782                           if test "$enableval" = yes; then
8783                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8784                           else
8785                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8786                           fi
8787
8788 else
8789
8790                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8791
8792 fi
8793
8794
8795           eval "$wx_cv_use_logdialog"
8796
8797           if test x"$enablestring" = xdisable; then
8798             if test $wxUSE_LOGDIALOG = yes; then
8799               result=no
8800             else
8801               result=yes
8802             fi
8803           else
8804             result=$wxUSE_LOGDIALOG
8805           fi
8806
8807           { echo "$as_me:$LINENO: result: $result" >&5
8808 echo "${ECHO_T}$result" >&6; }
8809
8810
8811           enablestring=
8812           defaultval=$wxUSE_ALL_FEATURES
8813           if test -z "$defaultval"; then
8814               if test x"$enablestring" = xdisable; then
8815                   defaultval=yes
8816               else
8817                   defaultval=no
8818               fi
8819           fi
8820
8821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8822 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8823           # Check whether --enable-mdi was given.
8824 if test "${enable_mdi+set}" = set; then
8825   enableval=$enable_mdi;
8826                           if test "$enableval" = yes; then
8827                             wx_cv_use_mdi='wxUSE_MDI=yes'
8828                           else
8829                             wx_cv_use_mdi='wxUSE_MDI=no'
8830                           fi
8831
8832 else
8833
8834                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8835
8836 fi
8837
8838
8839           eval "$wx_cv_use_mdi"
8840
8841           if test x"$enablestring" = xdisable; then
8842             if test $wxUSE_MDI = yes; then
8843               result=no
8844             else
8845               result=yes
8846             fi
8847           else
8848             result=$wxUSE_MDI
8849           fi
8850
8851           { echo "$as_me:$LINENO: result: $result" >&5
8852 echo "${ECHO_T}$result" >&6; }
8853
8854
8855           enablestring=
8856           defaultval=$wxUSE_ALL_FEATURES
8857           if test -z "$defaultval"; then
8858               if test x"$enablestring" = xdisable; then
8859                   defaultval=yes
8860               else
8861                   defaultval=no
8862               fi
8863           fi
8864
8865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8866 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8867           # Check whether --enable-mdidoc was given.
8868 if test "${enable_mdidoc+set}" = set; then
8869   enableval=$enable_mdidoc;
8870                           if test "$enableval" = yes; then
8871                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8872                           else
8873                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8874                           fi
8875
8876 else
8877
8878                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8879
8880 fi
8881
8882
8883           eval "$wx_cv_use_mdidoc"
8884
8885           if test x"$enablestring" = xdisable; then
8886             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8887               result=no
8888             else
8889               result=yes
8890             fi
8891           else
8892             result=$wxUSE_MDI_ARCHITECTURE
8893           fi
8894
8895           { echo "$as_me:$LINENO: result: $result" >&5
8896 echo "${ECHO_T}$result" >&6; }
8897
8898
8899           enablestring=
8900           defaultval=$wxUSE_ALL_FEATURES
8901           if test -z "$defaultval"; then
8902               if test x"$enablestring" = xdisable; then
8903                   defaultval=yes
8904               else
8905                   defaultval=no
8906               fi
8907           fi
8908
8909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8910 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8911           # Check whether --enable-mediactrl was given.
8912 if test "${enable_mediactrl+set}" = set; then
8913   enableval=$enable_mediactrl;
8914                           if test "$enableval" = yes; then
8915                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8916                           else
8917                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8918                           fi
8919
8920 else
8921
8922                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8923
8924 fi
8925
8926
8927           eval "$wx_cv_use_mediactrl"
8928
8929           if test x"$enablestring" = xdisable; then
8930             if test $wxUSE_MEDIACTRL = yes; then
8931               result=no
8932             else
8933               result=yes
8934             fi
8935           else
8936             result=$wxUSE_MEDIACTRL
8937           fi
8938
8939           { echo "$as_me:$LINENO: result: $result" >&5
8940 echo "${ECHO_T}$result" >&6; }
8941
8942
8943           enablestring=
8944           defaultval=$wxUSE_ALL_FEATURES
8945           if test -z "$defaultval"; then
8946               if test x"$enablestring" = xdisable; then
8947                   defaultval=yes
8948               else
8949                   defaultval=no
8950               fi
8951           fi
8952
8953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8954 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8955           # Check whether --enable-gstreamer8 was given.
8956 if test "${enable_gstreamer8+set}" = set; then
8957   enableval=$enable_gstreamer8;
8958                           if test "$enableval" = yes; then
8959                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8960                           else
8961                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8962                           fi
8963
8964 else
8965
8966                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8967
8968 fi
8969
8970
8971           eval "$wx_cv_use_gstreamer8"
8972
8973           if test x"$enablestring" = xdisable; then
8974             if test $wxUSE_GSTREAMER8 = yes; then
8975               result=no
8976             else
8977               result=yes
8978             fi
8979           else
8980             result=$wxUSE_GSTREAMER8
8981           fi
8982
8983           { echo "$as_me:$LINENO: result: $result" >&5
8984 echo "${ECHO_T}$result" >&6; }
8985
8986
8987           enablestring=
8988           defaultval=$wxUSE_ALL_FEATURES
8989           if test -z "$defaultval"; then
8990               if test x"$enablestring" = xdisable; then
8991                   defaultval=yes
8992               else
8993                   defaultval=no
8994               fi
8995           fi
8996
8997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8998 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8999           # Check whether --enable-webkit was given.
9000 if test "${enable_webkit+set}" = set; then
9001   enableval=$enable_webkit;
9002                           if test "$enableval" = yes; then
9003                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9004                           else
9005                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9006                           fi
9007
9008 else
9009
9010                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9011
9012 fi
9013
9014
9015           eval "$wx_cv_use_webkit"
9016
9017           if test x"$enablestring" = xdisable; then
9018             if test $wxUSE_WEBKIT = yes; then
9019               result=no
9020             else
9021               result=yes
9022             fi
9023           else
9024             result=$wxUSE_WEBKIT
9025           fi
9026
9027           { echo "$as_me:$LINENO: result: $result" >&5
9028 echo "${ECHO_T}$result" >&6; }
9029
9030
9031           enablestring=
9032           defaultval=$wxUSE_ALL_FEATURES
9033           if test -z "$defaultval"; then
9034               if test x"$enablestring" = xdisable; then
9035                   defaultval=yes
9036               else
9037                   defaultval=no
9038               fi
9039           fi
9040
9041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9042 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9043           # Check whether --enable-richtext was given.
9044 if test "${enable_richtext+set}" = set; then
9045   enableval=$enable_richtext;
9046                           if test "$enableval" = yes; then
9047                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9048                           else
9049                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9050                           fi
9051
9052 else
9053
9054                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9055
9056 fi
9057
9058
9059           eval "$wx_cv_use_richtext"
9060
9061           if test x"$enablestring" = xdisable; then
9062             if test $wxUSE_RICHTEXT = yes; then
9063               result=no
9064             else
9065               result=yes
9066             fi
9067           else
9068             result=$wxUSE_RICHTEXT
9069           fi
9070
9071           { echo "$as_me:$LINENO: result: $result" >&5
9072 echo "${ECHO_T}$result" >&6; }
9073
9074
9075           enablestring=
9076           defaultval=$wxUSE_ALL_FEATURES
9077           if test -z "$defaultval"; then
9078               if test x"$enablestring" = xdisable; then
9079                   defaultval=yes
9080               else
9081                   defaultval=no
9082               fi
9083           fi
9084
9085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9086 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9087           # Check whether --enable-graphics_ctx was given.
9088 if test "${enable_graphics_ctx+set}" = set; then
9089   enableval=$enable_graphics_ctx;
9090                           if test "$enableval" = yes; then
9091                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9092                           else
9093                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9094                           fi
9095
9096 else
9097
9098                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9099
9100 fi
9101
9102
9103           eval "$wx_cv_use_graphics_ctx"
9104
9105           if test x"$enablestring" = xdisable; then
9106             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9107               result=no
9108             else
9109               result=yes
9110             fi
9111           else
9112             result=$wxUSE_GRAPHICS_CONTEXT
9113           fi
9114
9115           { echo "$as_me:$LINENO: result: $result" >&5
9116 echo "${ECHO_T}$result" >&6; }
9117
9118
9119           enablestring=
9120           defaultval=$wxUSE_ALL_FEATURES
9121           if test -z "$defaultval"; then
9122               if test x"$enablestring" = xdisable; then
9123                   defaultval=yes
9124               else
9125                   defaultval=no
9126               fi
9127           fi
9128
9129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9130 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9131           # Check whether --enable-postscript was given.
9132 if test "${enable_postscript+set}" = set; then
9133   enableval=$enable_postscript;
9134                           if test "$enableval" = yes; then
9135                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9136                           else
9137                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9138                           fi
9139
9140 else
9141
9142                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9143
9144 fi
9145
9146
9147           eval "$wx_cv_use_postscript"
9148
9149           if test x"$enablestring" = xdisable; then
9150             if test $wxUSE_POSTSCRIPT = yes; then
9151               result=no
9152             else
9153               result=yes
9154             fi
9155           else
9156             result=$wxUSE_POSTSCRIPT
9157           fi
9158
9159           { echo "$as_me:$LINENO: result: $result" >&5
9160 echo "${ECHO_T}$result" >&6; }
9161
9162
9163           enablestring=
9164           defaultval=$wxUSE_ALL_FEATURES
9165           if test -z "$defaultval"; then
9166               if test x"$enablestring" = xdisable; then
9167                   defaultval=yes
9168               else
9169                   defaultval=no
9170               fi
9171           fi
9172
9173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9174 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9175           # Check whether --enable-printarch was given.
9176 if test "${enable_printarch+set}" = set; then
9177   enableval=$enable_printarch;
9178                           if test "$enableval" = yes; then
9179                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9180                           else
9181                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9182                           fi
9183
9184 else
9185
9186                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9187
9188 fi
9189
9190
9191           eval "$wx_cv_use_printarch"
9192
9193           if test x"$enablestring" = xdisable; then
9194             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9195               result=no
9196             else
9197               result=yes
9198             fi
9199           else
9200             result=$wxUSE_PRINTING_ARCHITECTURE
9201           fi
9202
9203           { echo "$as_me:$LINENO: result: $result" >&5
9204 echo "${ECHO_T}$result" >&6; }
9205
9206
9207           enablestring=
9208           defaultval=$wxUSE_ALL_FEATURES
9209           if test -z "$defaultval"; then
9210               if test x"$enablestring" = xdisable; then
9211                   defaultval=yes
9212               else
9213                   defaultval=no
9214               fi
9215           fi
9216
9217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9218 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9219           # Check whether --enable-svg was given.
9220 if test "${enable_svg+set}" = set; then
9221   enableval=$enable_svg;
9222                           if test "$enableval" = yes; then
9223                             wx_cv_use_svg='wxUSE_SVG=yes'
9224                           else
9225                             wx_cv_use_svg='wxUSE_SVG=no'
9226                           fi
9227
9228 else
9229
9230                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9231
9232 fi
9233
9234
9235           eval "$wx_cv_use_svg"
9236
9237           if test x"$enablestring" = xdisable; then
9238             if test $wxUSE_SVG = yes; then
9239               result=no
9240             else
9241               result=yes
9242             fi
9243           else
9244             result=$wxUSE_SVG
9245           fi
9246
9247           { echo "$as_me:$LINENO: result: $result" >&5
9248 echo "${ECHO_T}$result" >&6; }
9249
9250
9251
9252
9253           enablestring=
9254           defaultval=$wxUSE_ALL_FEATURES
9255           if test -z "$defaultval"; then
9256               if test x"$enablestring" = xdisable; then
9257                   defaultval=yes
9258               else
9259                   defaultval=no
9260               fi
9261           fi
9262
9263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9264 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9265           # Check whether --enable-clipboard was given.
9266 if test "${enable_clipboard+set}" = set; then
9267   enableval=$enable_clipboard;
9268                           if test "$enableval" = yes; then
9269                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9270                           else
9271                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9272                           fi
9273
9274 else
9275
9276                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9277
9278 fi
9279
9280
9281           eval "$wx_cv_use_clipboard"
9282
9283           if test x"$enablestring" = xdisable; then
9284             if test $wxUSE_CLIPBOARD = yes; then
9285               result=no
9286             else
9287               result=yes
9288             fi
9289           else
9290             result=$wxUSE_CLIPBOARD
9291           fi
9292
9293           { echo "$as_me:$LINENO: result: $result" >&5
9294 echo "${ECHO_T}$result" >&6; }
9295
9296
9297           enablestring=
9298           defaultval=$wxUSE_ALL_FEATURES
9299           if test -z "$defaultval"; then
9300               if test x"$enablestring" = xdisable; then
9301                   defaultval=yes
9302               else
9303                   defaultval=no
9304               fi
9305           fi
9306
9307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9308 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9309           # Check whether --enable-dnd was given.
9310 if test "${enable_dnd+set}" = set; then
9311   enableval=$enable_dnd;
9312                           if test "$enableval" = yes; then
9313                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9314                           else
9315                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9316                           fi
9317
9318 else
9319
9320                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9321
9322 fi
9323
9324
9325           eval "$wx_cv_use_dnd"
9326
9327           if test x"$enablestring" = xdisable; then
9328             if test $wxUSE_DRAG_AND_DROP = yes; then
9329               result=no
9330             else
9331               result=yes
9332             fi
9333           else
9334             result=$wxUSE_DRAG_AND_DROP
9335           fi
9336
9337           { echo "$as_me:$LINENO: result: $result" >&5
9338 echo "${ECHO_T}$result" >&6; }
9339
9340
9341           enablestring=
9342           defaultval=$wxUSE_ALL_FEATURES
9343           if test -z "$defaultval"; then
9344               if test x"$enablestring" = xdisable; then
9345                   defaultval=yes
9346               else
9347                   defaultval=no
9348               fi
9349           fi
9350
9351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9352 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9353           # Check whether --enable-metafile was given.
9354 if test "${enable_metafile+set}" = set; then
9355   enableval=$enable_metafile;
9356                           if test "$enableval" = yes; then
9357                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9358                           else
9359                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9360                           fi
9361
9362 else
9363
9364                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9365
9366 fi
9367
9368
9369           eval "$wx_cv_use_metafile"
9370
9371           if test x"$enablestring" = xdisable; then
9372             if test $wxUSE_METAFILE = yes; then
9373               result=no
9374             else
9375               result=yes
9376             fi
9377           else
9378             result=$wxUSE_METAFILE
9379           fi
9380
9381           { echo "$as_me:$LINENO: result: $result" >&5
9382 echo "${ECHO_T}$result" >&6; }
9383
9384
9385
9386 DEFAULT_wxUSE_CONTROLS=none
9387
9388           enablestring=disable
9389           defaultval=
9390           if test -z "$defaultval"; then
9391               if test x"$enablestring" = xdisable; then
9392                   defaultval=yes
9393               else
9394                   defaultval=no
9395               fi
9396           fi
9397
9398           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9399 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9400           # Check whether --enable-controls was given.
9401 if test "${enable_controls+set}" = set; then
9402   enableval=$enable_controls;
9403                           if test "$enableval" = yes; then
9404                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9405                           else
9406                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9407                           fi
9408
9409 else
9410
9411                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9412
9413 fi
9414
9415
9416           eval "$wx_cv_use_controls"
9417
9418           if test x"$enablestring" = xdisable; then
9419             if test $wxUSE_CONTROLS = yes; then
9420               result=no
9421             else
9422               result=yes
9423             fi
9424           else
9425             result=$wxUSE_CONTROLS
9426           fi
9427
9428           { echo "$as_me:$LINENO: result: $result" >&5
9429 echo "${ECHO_T}$result" >&6; }
9430
9431
9432 if test "$wxUSE_CONTROLS" = "no"; then
9433     DEFAULT_wxUSE_ACCEL=no
9434     DEFAULT_wxUSE_ANIMATIONCTRL=no
9435     DEFAULT_wxUSE_BMPBUTTON=no
9436     DEFAULT_wxUSE_BUTTON=no
9437     DEFAULT_wxUSE_CALCTRL=no
9438     DEFAULT_wxUSE_CARET=no
9439     DEFAULT_wxUSE_CHECKBOX=no
9440     DEFAULT_wxUSE_CHECKLISTBOX=no
9441     DEFAULT_wxUSE_CHOICE=no
9442     DEFAULT_wxUSE_CHOICEBOOK=no
9443     DEFAULT_wxUSE_COLLPANE=no
9444     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9445     DEFAULT_wxUSE_COMBOBOX=no
9446     DEFAULT_wxUSE_COMBOBOX=no
9447     DEFAULT_wxUSE_DATAVIEWCTRL=no
9448     DEFAULT_wxUSE_DATEPICKCTRL=no
9449     DEFAULT_wxUSE_DETECT_SM=no
9450     DEFAULT_wxUSE_DIRPICKERCTRL=no
9451     DEFAULT_wxUSE_DISPLAY=no
9452     DEFAULT_wxUSE_FILECTRL=no
9453     DEFAULT_wxUSE_FILEPICKERCTRL=no
9454     DEFAULT_wxUSE_FONTPICKERCTRL=no
9455     DEFAULT_wxUSE_GAUGE=no
9456     DEFAULT_wxUSE_GRID=no
9457     DEFAULT_wxUSE_HEADERCTRL=no
9458     DEFAULT_wxUSE_HYPERLINKCTRL=no
9459     DEFAULT_wxUSE_IMAGLIST=no
9460     DEFAULT_wxUSE_LISTBOOK=no
9461     DEFAULT_wxUSE_LISTBOX=no
9462     DEFAULT_wxUSE_LISTCTRL=no
9463     DEFAULT_wxUSE_NOTEBOOK=no
9464     DEFAULT_wxUSE_POPUPWIN=no
9465     DEFAULT_wxUSE_RADIOBOX=no
9466     DEFAULT_wxUSE_RADIOBTN=no
9467     DEFAULT_wxUSE_REARRANGECTRL=no
9468     DEFAULT_wxUSE_SASH=no
9469     DEFAULT_wxUSE_SCROLLBAR=no
9470     DEFAULT_wxUSE_SEARCHCTRL=no
9471     DEFAULT_wxUSE_SLIDER=no
9472     DEFAULT_wxUSE_SPINBTN=no
9473     DEFAULT_wxUSE_SPINCTRL=no
9474     DEFAULT_wxUSE_SPLITTER=no
9475     DEFAULT_wxUSE_STATBMP=no
9476     DEFAULT_wxUSE_STATBOX=no
9477     DEFAULT_wxUSE_STATLINE=no
9478     DEFAULT_wxUSE_STATUSBAR=no
9479     DEFAULT_wxUSE_TIPWINDOW=no
9480     DEFAULT_wxUSE_TOGGLEBTN=no
9481     DEFAULT_wxUSE_TOOLBAR=no
9482     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9483     DEFAULT_wxUSE_TOOLBOOK=no
9484     DEFAULT_wxUSE_TOOLTIPS=no
9485     DEFAULT_wxUSE_TREEBOOK=no
9486     DEFAULT_wxUSE_TREECTRL=no
9487 fi
9488
9489
9490           enablestring=
9491           defaultval=$wxUSE_ALL_FEATURES
9492           if test -z "$defaultval"; then
9493               if test x"$enablestring" = xdisable; then
9494                   defaultval=yes
9495               else
9496                   defaultval=no
9497               fi
9498           fi
9499
9500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9501 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9502           # Check whether --enable-accel was given.
9503 if test "${enable_accel+set}" = set; then
9504   enableval=$enable_accel;
9505                           if test "$enableval" = yes; then
9506                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9507                           else
9508                             wx_cv_use_accel='wxUSE_ACCEL=no'
9509                           fi
9510
9511 else
9512
9513                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9514
9515 fi
9516
9517
9518           eval "$wx_cv_use_accel"
9519
9520           if test x"$enablestring" = xdisable; then
9521             if test $wxUSE_ACCEL = yes; then
9522               result=no
9523             else
9524               result=yes
9525             fi
9526           else
9527             result=$wxUSE_ACCEL
9528           fi
9529
9530           { echo "$as_me:$LINENO: result: $result" >&5
9531 echo "${ECHO_T}$result" >&6; }
9532
9533
9534           enablestring=
9535           defaultval=$wxUSE_ALL_FEATURES
9536           if test -z "$defaultval"; then
9537               if test x"$enablestring" = xdisable; then
9538                   defaultval=yes
9539               else
9540                   defaultval=no
9541               fi
9542           fi
9543
9544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9545 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9546           # Check whether --enable-animatectrl was given.
9547 if test "${enable_animatectrl+set}" = set; then
9548   enableval=$enable_animatectrl;
9549                           if test "$enableval" = yes; then
9550                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9551                           else
9552                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9553                           fi
9554
9555 else
9556
9557                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9558
9559 fi
9560
9561
9562           eval "$wx_cv_use_animatectrl"
9563
9564           if test x"$enablestring" = xdisable; then
9565             if test $wxUSE_ANIMATIONCTRL = yes; then
9566               result=no
9567             else
9568               result=yes
9569             fi
9570           else
9571             result=$wxUSE_ANIMATIONCTRL
9572           fi
9573
9574           { echo "$as_me:$LINENO: result: $result" >&5
9575 echo "${ECHO_T}$result" >&6; }
9576
9577
9578           enablestring=
9579           defaultval=$wxUSE_ALL_FEATURES
9580           if test -z "$defaultval"; then
9581               if test x"$enablestring" = xdisable; then
9582                   defaultval=yes
9583               else
9584                   defaultval=no
9585               fi
9586           fi
9587
9588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9589 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9590           # Check whether --enable-bmpbutton was given.
9591 if test "${enable_bmpbutton+set}" = set; then
9592   enableval=$enable_bmpbutton;
9593                           if test "$enableval" = yes; then
9594                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9595                           else
9596                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9597                           fi
9598
9599 else
9600
9601                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9602
9603 fi
9604
9605
9606           eval "$wx_cv_use_bmpbutton"
9607
9608           if test x"$enablestring" = xdisable; then
9609             if test $wxUSE_BMPBUTTON = yes; then
9610               result=no
9611             else
9612               result=yes
9613             fi
9614           else
9615             result=$wxUSE_BMPBUTTON
9616           fi
9617
9618           { echo "$as_me:$LINENO: result: $result" >&5
9619 echo "${ECHO_T}$result" >&6; }
9620
9621
9622           enablestring=
9623           defaultval=$wxUSE_ALL_FEATURES
9624           if test -z "$defaultval"; then
9625               if test x"$enablestring" = xdisable; then
9626                   defaultval=yes
9627               else
9628                   defaultval=no
9629               fi
9630           fi
9631
9632           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9633 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9634           # Check whether --enable-bmpcombobox was given.
9635 if test "${enable_bmpcombobox+set}" = set; then
9636   enableval=$enable_bmpcombobox;
9637                           if test "$enableval" = yes; then
9638                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9639                           else
9640                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9641                           fi
9642
9643 else
9644
9645                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9646
9647 fi
9648
9649
9650           eval "$wx_cv_use_bmpcombobox"
9651
9652           if test x"$enablestring" = xdisable; then
9653             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9654               result=no
9655             else
9656               result=yes
9657             fi
9658           else
9659             result=$wxUSE_BITMAPCOMBOBOX
9660           fi
9661
9662           { echo "$as_me:$LINENO: result: $result" >&5
9663 echo "${ECHO_T}$result" >&6; }
9664
9665
9666           enablestring=
9667           defaultval=$wxUSE_ALL_FEATURES
9668           if test -z "$defaultval"; then
9669               if test x"$enablestring" = xdisable; then
9670                   defaultval=yes
9671               else
9672                   defaultval=no
9673               fi
9674           fi
9675
9676           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9677 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9678           # Check whether --enable-button was given.
9679 if test "${enable_button+set}" = set; then
9680   enableval=$enable_button;
9681                           if test "$enableval" = yes; then
9682                             wx_cv_use_button='wxUSE_BUTTON=yes'
9683                           else
9684                             wx_cv_use_button='wxUSE_BUTTON=no'
9685                           fi
9686
9687 else
9688
9689                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9690
9691 fi
9692
9693
9694           eval "$wx_cv_use_button"
9695
9696           if test x"$enablestring" = xdisable; then
9697             if test $wxUSE_BUTTON = yes; then
9698               result=no
9699             else
9700               result=yes
9701             fi
9702           else
9703             result=$wxUSE_BUTTON
9704           fi
9705
9706           { echo "$as_me:$LINENO: result: $result" >&5
9707 echo "${ECHO_T}$result" >&6; }
9708
9709
9710           enablestring=
9711           defaultval=$wxUSE_ALL_FEATURES
9712           if test -z "$defaultval"; then
9713               if test x"$enablestring" = xdisable; then
9714                   defaultval=yes
9715               else
9716                   defaultval=no
9717               fi
9718           fi
9719
9720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9721 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9722           # Check whether --enable-calendar was given.
9723 if test "${enable_calendar+set}" = set; then
9724   enableval=$enable_calendar;
9725                           if test "$enableval" = yes; then
9726                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9727                           else
9728                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9729                           fi
9730
9731 else
9732
9733                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9734
9735 fi
9736
9737
9738           eval "$wx_cv_use_calendar"
9739
9740           if test x"$enablestring" = xdisable; then
9741             if test $wxUSE_CALCTRL = yes; then
9742               result=no
9743             else
9744               result=yes
9745             fi
9746           else
9747             result=$wxUSE_CALCTRL
9748           fi
9749
9750           { echo "$as_me:$LINENO: result: $result" >&5
9751 echo "${ECHO_T}$result" >&6; }
9752
9753
9754           enablestring=
9755           defaultval=$wxUSE_ALL_FEATURES
9756           if test -z "$defaultval"; then
9757               if test x"$enablestring" = xdisable; then
9758                   defaultval=yes
9759               else
9760                   defaultval=no
9761               fi
9762           fi
9763
9764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9765 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9766           # Check whether --enable-caret was given.
9767 if test "${enable_caret+set}" = set; then
9768   enableval=$enable_caret;
9769                           if test "$enableval" = yes; then
9770                             wx_cv_use_caret='wxUSE_CARET=yes'
9771                           else
9772                             wx_cv_use_caret='wxUSE_CARET=no'
9773                           fi
9774
9775 else
9776
9777                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9778
9779 fi
9780
9781
9782           eval "$wx_cv_use_caret"
9783
9784           if test x"$enablestring" = xdisable; then
9785             if test $wxUSE_CARET = yes; then
9786               result=no
9787             else
9788               result=yes
9789             fi
9790           else
9791             result=$wxUSE_CARET
9792           fi
9793
9794           { echo "$as_me:$LINENO: result: $result" >&5
9795 echo "${ECHO_T}$result" >&6; }
9796
9797
9798           enablestring=
9799           defaultval=$wxUSE_ALL_FEATURES
9800           if test -z "$defaultval"; then
9801               if test x"$enablestring" = xdisable; then
9802                   defaultval=yes
9803               else
9804                   defaultval=no
9805               fi
9806           fi
9807
9808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9809 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9810           # Check whether --enable-checkbox was given.
9811 if test "${enable_checkbox+set}" = set; then
9812   enableval=$enable_checkbox;
9813                           if test "$enableval" = yes; then
9814                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9815                           else
9816                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9817                           fi
9818
9819 else
9820
9821                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9822
9823 fi
9824
9825
9826           eval "$wx_cv_use_checkbox"
9827
9828           if test x"$enablestring" = xdisable; then
9829             if test $wxUSE_CHECKBOX = yes; then
9830               result=no
9831             else
9832               result=yes
9833             fi
9834           else
9835             result=$wxUSE_CHECKBOX
9836           fi
9837
9838           { echo "$as_me:$LINENO: result: $result" >&5
9839 echo "${ECHO_T}$result" >&6; }
9840
9841
9842           enablestring=
9843           defaultval=$wxUSE_ALL_FEATURES
9844           if test -z "$defaultval"; then
9845               if test x"$enablestring" = xdisable; then
9846                   defaultval=yes
9847               else
9848                   defaultval=no
9849               fi
9850           fi
9851
9852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9853 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9854           # Check whether --enable-checklst was given.
9855 if test "${enable_checklst+set}" = set; then
9856   enableval=$enable_checklst;
9857                           if test "$enableval" = yes; then
9858                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9859                           else
9860                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9861                           fi
9862
9863 else
9864
9865                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9866
9867 fi
9868
9869
9870           eval "$wx_cv_use_checklst"
9871
9872           if test x"$enablestring" = xdisable; then
9873             if test $wxUSE_CHECKLST = yes; then
9874               result=no
9875             else
9876               result=yes
9877             fi
9878           else
9879             result=$wxUSE_CHECKLST
9880           fi
9881
9882           { echo "$as_me:$LINENO: result: $result" >&5
9883 echo "${ECHO_T}$result" >&6; }
9884
9885
9886           enablestring=
9887           defaultval=$wxUSE_ALL_FEATURES
9888           if test -z "$defaultval"; then
9889               if test x"$enablestring" = xdisable; then
9890                   defaultval=yes
9891               else
9892                   defaultval=no
9893               fi
9894           fi
9895
9896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9897 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9898           # Check whether --enable-choice was given.
9899 if test "${enable_choice+set}" = set; then
9900   enableval=$enable_choice;
9901                           if test "$enableval" = yes; then
9902                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9903                           else
9904                             wx_cv_use_choice='wxUSE_CHOICE=no'
9905                           fi
9906
9907 else
9908
9909                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9910
9911 fi
9912
9913
9914           eval "$wx_cv_use_choice"
9915
9916           if test x"$enablestring" = xdisable; then
9917             if test $wxUSE_CHOICE = yes; then
9918               result=no
9919             else
9920               result=yes
9921             fi
9922           else
9923             result=$wxUSE_CHOICE
9924           fi
9925
9926           { echo "$as_me:$LINENO: result: $result" >&5
9927 echo "${ECHO_T}$result" >&6; }
9928
9929
9930           enablestring=
9931           defaultval=$wxUSE_ALL_FEATURES
9932           if test -z "$defaultval"; then
9933               if test x"$enablestring" = xdisable; then
9934                   defaultval=yes
9935               else
9936                   defaultval=no
9937               fi
9938           fi
9939
9940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9941 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9942           # Check whether --enable-choicebook was given.
9943 if test "${enable_choicebook+set}" = set; then
9944   enableval=$enable_choicebook;
9945                           if test "$enableval" = yes; then
9946                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9947                           else
9948                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9949                           fi
9950
9951 else
9952
9953                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9954
9955 fi
9956
9957
9958           eval "$wx_cv_use_choicebook"
9959
9960           if test x"$enablestring" = xdisable; then
9961             if test $wxUSE_CHOICEBOOK = yes; then
9962               result=no
9963             else
9964               result=yes
9965             fi
9966           else
9967             result=$wxUSE_CHOICEBOOK
9968           fi
9969
9970           { echo "$as_me:$LINENO: result: $result" >&5
9971 echo "${ECHO_T}$result" >&6; }
9972
9973
9974           enablestring=
9975           defaultval=$wxUSE_ALL_FEATURES
9976           if test -z "$defaultval"; then
9977               if test x"$enablestring" = xdisable; then
9978                   defaultval=yes
9979               else
9980                   defaultval=no
9981               fi
9982           fi
9983
9984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9985 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9986           # Check whether --enable-collpane was given.
9987 if test "${enable_collpane+set}" = set; then
9988   enableval=$enable_collpane;
9989                           if test "$enableval" = yes; then
9990                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9991                           else
9992                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9993                           fi
9994
9995 else
9996
9997                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
9998
9999 fi
10000
10001
10002           eval "$wx_cv_use_collpane"
10003
10004           if test x"$enablestring" = xdisable; then
10005             if test $wxUSE_COLLPANE = yes; then
10006               result=no
10007             else
10008               result=yes
10009             fi
10010           else
10011             result=$wxUSE_COLLPANE
10012           fi
10013
10014           { echo "$as_me:$LINENO: result: $result" >&5
10015 echo "${ECHO_T}$result" >&6; }
10016
10017
10018           enablestring=
10019           defaultval=$wxUSE_ALL_FEATURES
10020           if test -z "$defaultval"; then
10021               if test x"$enablestring" = xdisable; then
10022                   defaultval=yes
10023               else
10024                   defaultval=no
10025               fi
10026           fi
10027
10028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10029 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10030           # Check whether --enable-colourpicker was given.
10031 if test "${enable_colourpicker+set}" = set; then
10032   enableval=$enable_colourpicker;
10033                           if test "$enableval" = yes; then
10034                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10035                           else
10036                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10037                           fi
10038
10039 else
10040
10041                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10042
10043 fi
10044
10045
10046           eval "$wx_cv_use_colourpicker"
10047
10048           if test x"$enablestring" = xdisable; then
10049             if test $wxUSE_COLOURPICKERCTRL = yes; then
10050               result=no
10051             else
10052               result=yes
10053             fi
10054           else
10055             result=$wxUSE_COLOURPICKERCTRL
10056           fi
10057
10058           { echo "$as_me:$LINENO: result: $result" >&5
10059 echo "${ECHO_T}$result" >&6; }
10060
10061
10062           enablestring=
10063           defaultval=$wxUSE_ALL_FEATURES
10064           if test -z "$defaultval"; then
10065               if test x"$enablestring" = xdisable; then
10066                   defaultval=yes
10067               else
10068                   defaultval=no
10069               fi
10070           fi
10071
10072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10073 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10074           # Check whether --enable-combobox was given.
10075 if test "${enable_combobox+set}" = set; then
10076   enableval=$enable_combobox;
10077                           if test "$enableval" = yes; then
10078                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10079                           else
10080                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10081                           fi
10082
10083 else
10084
10085                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10086
10087 fi
10088
10089
10090           eval "$wx_cv_use_combobox"
10091
10092           if test x"$enablestring" = xdisable; then
10093             if test $wxUSE_COMBOBOX = yes; then
10094               result=no
10095             else
10096               result=yes
10097             fi
10098           else
10099             result=$wxUSE_COMBOBOX
10100           fi
10101
10102           { echo "$as_me:$LINENO: result: $result" >&5
10103 echo "${ECHO_T}$result" >&6; }
10104
10105
10106           enablestring=
10107           defaultval=$wxUSE_ALL_FEATURES
10108           if test -z "$defaultval"; then
10109               if test x"$enablestring" = xdisable; then
10110                   defaultval=yes
10111               else
10112                   defaultval=no
10113               fi
10114           fi
10115
10116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10117 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10118           # Check whether --enable-comboctrl was given.
10119 if test "${enable_comboctrl+set}" = set; then
10120   enableval=$enable_comboctrl;
10121                           if test "$enableval" = yes; then
10122                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10123                           else
10124                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10125                           fi
10126
10127 else
10128
10129                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10130
10131 fi
10132
10133
10134           eval "$wx_cv_use_comboctrl"
10135
10136           if test x"$enablestring" = xdisable; then
10137             if test $wxUSE_COMBOCTRL = yes; then
10138               result=no
10139             else
10140               result=yes
10141             fi
10142           else
10143             result=$wxUSE_COMBOCTRL
10144           fi
10145
10146           { echo "$as_me:$LINENO: result: $result" >&5
10147 echo "${ECHO_T}$result" >&6; }
10148
10149
10150           enablestring=
10151           defaultval=$wxUSE_ALL_FEATURES
10152           if test -z "$defaultval"; then
10153               if test x"$enablestring" = xdisable; then
10154                   defaultval=yes
10155               else
10156                   defaultval=no
10157               fi
10158           fi
10159
10160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10161 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10162           # Check whether --enable-dataviewctrl was given.
10163 if test "${enable_dataviewctrl+set}" = set; then
10164   enableval=$enable_dataviewctrl;
10165                           if test "$enableval" = yes; then
10166                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10167                           else
10168                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10169                           fi
10170
10171 else
10172
10173                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10174
10175 fi
10176
10177
10178           eval "$wx_cv_use_dataviewctrl"
10179
10180           if test x"$enablestring" = xdisable; then
10181             if test $wxUSE_DATAVIEWCTRL = yes; then
10182               result=no
10183             else
10184               result=yes
10185             fi
10186           else
10187             result=$wxUSE_DATAVIEWCTRL
10188           fi
10189
10190           { echo "$as_me:$LINENO: result: $result" >&5
10191 echo "${ECHO_T}$result" >&6; }
10192
10193
10194           enablestring=
10195           defaultval=$wxUSE_ALL_FEATURES
10196           if test -z "$defaultval"; then
10197               if test x"$enablestring" = xdisable; then
10198                   defaultval=yes
10199               else
10200                   defaultval=no
10201               fi
10202           fi
10203
10204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10205 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10206           # Check whether --enable-datepick was given.
10207 if test "${enable_datepick+set}" = set; then
10208   enableval=$enable_datepick;
10209                           if test "$enableval" = yes; then
10210                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10211                           else
10212                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10213                           fi
10214
10215 else
10216
10217                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10218
10219 fi
10220
10221
10222           eval "$wx_cv_use_datepick"
10223
10224           if test x"$enablestring" = xdisable; then
10225             if test $wxUSE_DATEPICKCTRL = yes; then
10226               result=no
10227             else
10228               result=yes
10229             fi
10230           else
10231             result=$wxUSE_DATEPICKCTRL
10232           fi
10233
10234           { echo "$as_me:$LINENO: result: $result" >&5
10235 echo "${ECHO_T}$result" >&6; }
10236
10237
10238           enablestring=
10239           defaultval=$wxUSE_ALL_FEATURES
10240           if test -z "$defaultval"; then
10241               if test x"$enablestring" = xdisable; then
10242                   defaultval=yes
10243               else
10244                   defaultval=no
10245               fi
10246           fi
10247
10248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10249 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10250           # Check whether --enable-detect_sm was given.
10251 if test "${enable_detect_sm+set}" = set; then
10252   enableval=$enable_detect_sm;
10253                           if test "$enableval" = yes; then
10254                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10255                           else
10256                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10257                           fi
10258
10259 else
10260
10261                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10262
10263 fi
10264
10265
10266           eval "$wx_cv_use_detect_sm"
10267
10268           if test x"$enablestring" = xdisable; then
10269             if test $wxUSE_DETECT_SM = yes; then
10270               result=no
10271             else
10272               result=yes
10273             fi
10274           else
10275             result=$wxUSE_DETECT_SM
10276           fi
10277
10278           { echo "$as_me:$LINENO: result: $result" >&5
10279 echo "${ECHO_T}$result" >&6; }
10280
10281
10282           enablestring=
10283           defaultval=$wxUSE_ALL_FEATURES
10284           if test -z "$defaultval"; then
10285               if test x"$enablestring" = xdisable; then
10286                   defaultval=yes
10287               else
10288                   defaultval=no
10289               fi
10290           fi
10291
10292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10293 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10294           # Check whether --enable-dirpicker was given.
10295 if test "${enable_dirpicker+set}" = set; then
10296   enableval=$enable_dirpicker;
10297                           if test "$enableval" = yes; then
10298                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10299                           else
10300                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10301                           fi
10302
10303 else
10304
10305                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10306
10307 fi
10308
10309
10310           eval "$wx_cv_use_dirpicker"
10311
10312           if test x"$enablestring" = xdisable; then
10313             if test $wxUSE_DIRPICKERCTRL = yes; then
10314               result=no
10315             else
10316               result=yes
10317             fi
10318           else
10319             result=$wxUSE_DIRPICKERCTRL
10320           fi
10321
10322           { echo "$as_me:$LINENO: result: $result" >&5
10323 echo "${ECHO_T}$result" >&6; }
10324
10325
10326           enablestring=
10327           defaultval=$wxUSE_ALL_FEATURES
10328           if test -z "$defaultval"; then
10329               if test x"$enablestring" = xdisable; then
10330                   defaultval=yes
10331               else
10332                   defaultval=no
10333               fi
10334           fi
10335
10336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10337 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10338           # Check whether --enable-display was given.
10339 if test "${enable_display+set}" = set; then
10340   enableval=$enable_display;
10341                           if test "$enableval" = yes; then
10342                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10343                           else
10344                             wx_cv_use_display='wxUSE_DISPLAY=no'
10345                           fi
10346
10347 else
10348
10349                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10350
10351 fi
10352
10353
10354           eval "$wx_cv_use_display"
10355
10356           if test x"$enablestring" = xdisable; then
10357             if test $wxUSE_DISPLAY = yes; then
10358               result=no
10359             else
10360               result=yes
10361             fi
10362           else
10363             result=$wxUSE_DISPLAY
10364           fi
10365
10366           { echo "$as_me:$LINENO: result: $result" >&5
10367 echo "${ECHO_T}$result" >&6; }
10368
10369
10370           enablestring=
10371           defaultval=$wxUSE_ALL_FEATURES
10372           if test -z "$defaultval"; then
10373               if test x"$enablestring" = xdisable; then
10374                   defaultval=yes
10375               else
10376                   defaultval=no
10377               fi
10378           fi
10379
10380           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10381 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10382           # Check whether --enable-editablebox was given.
10383 if test "${enable_editablebox+set}" = set; then
10384   enableval=$enable_editablebox;
10385                           if test "$enableval" = yes; then
10386                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10387                           else
10388                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10389                           fi
10390
10391 else
10392
10393                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10394
10395 fi
10396
10397
10398           eval "$wx_cv_use_editablebox"
10399
10400           if test x"$enablestring" = xdisable; then
10401             if test $wxUSE_EDITABLELISTBOX = yes; then
10402               result=no
10403             else
10404               result=yes
10405             fi
10406           else
10407             result=$wxUSE_EDITABLELISTBOX
10408           fi
10409
10410           { echo "$as_me:$LINENO: result: $result" >&5
10411 echo "${ECHO_T}$result" >&6; }
10412
10413
10414           enablestring=
10415           defaultval=$wxUSE_ALL_FEATURES
10416           if test -z "$defaultval"; then
10417               if test x"$enablestring" = xdisable; then
10418                   defaultval=yes
10419               else
10420                   defaultval=no
10421               fi
10422           fi
10423
10424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10425 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10426           # Check whether --enable-filectrl was given.
10427 if test "${enable_filectrl+set}" = set; then
10428   enableval=$enable_filectrl;
10429                           if test "$enableval" = yes; then
10430                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10431                           else
10432                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10433                           fi
10434
10435 else
10436
10437                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10438
10439 fi
10440
10441
10442           eval "$wx_cv_use_filectrl"
10443
10444           if test x"$enablestring" = xdisable; then
10445             if test $wxUSE_FILECTRL = yes; then
10446               result=no
10447             else
10448               result=yes
10449             fi
10450           else
10451             result=$wxUSE_FILECTRL
10452           fi
10453
10454           { echo "$as_me:$LINENO: result: $result" >&5
10455 echo "${ECHO_T}$result" >&6; }
10456
10457
10458           enablestring=
10459           defaultval=$wxUSE_ALL_FEATURES
10460           if test -z "$defaultval"; then
10461               if test x"$enablestring" = xdisable; then
10462                   defaultval=yes
10463               else
10464                   defaultval=no
10465               fi
10466           fi
10467
10468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10469 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10470           # Check whether --enable-filepicker was given.
10471 if test "${enable_filepicker+set}" = set; then
10472   enableval=$enable_filepicker;
10473                           if test "$enableval" = yes; then
10474                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10475                           else
10476                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10477                           fi
10478
10479 else
10480
10481                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10482
10483 fi
10484
10485
10486           eval "$wx_cv_use_filepicker"
10487
10488           if test x"$enablestring" = xdisable; then
10489             if test $wxUSE_FILEPICKERCTRL = yes; then
10490               result=no
10491             else
10492               result=yes
10493             fi
10494           else
10495             result=$wxUSE_FILEPICKERCTRL
10496           fi
10497
10498           { echo "$as_me:$LINENO: result: $result" >&5
10499 echo "${ECHO_T}$result" >&6; }
10500
10501
10502           enablestring=
10503           defaultval=$wxUSE_ALL_FEATURES
10504           if test -z "$defaultval"; then
10505               if test x"$enablestring" = xdisable; then
10506                   defaultval=yes
10507               else
10508                   defaultval=no
10509               fi
10510           fi
10511
10512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10513 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10514           # Check whether --enable-fontpicker was given.
10515 if test "${enable_fontpicker+set}" = set; then
10516   enableval=$enable_fontpicker;
10517                           if test "$enableval" = yes; then
10518                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10519                           else
10520                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10521                           fi
10522
10523 else
10524
10525                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10526
10527 fi
10528
10529
10530           eval "$wx_cv_use_fontpicker"
10531
10532           if test x"$enablestring" = xdisable; then
10533             if test $wxUSE_FONTPICKERCTRL = yes; then
10534               result=no
10535             else
10536               result=yes
10537             fi
10538           else
10539             result=$wxUSE_FONTPICKERCTRL
10540           fi
10541
10542           { echo "$as_me:$LINENO: result: $result" >&5
10543 echo "${ECHO_T}$result" >&6; }
10544
10545
10546           enablestring=
10547           defaultval=$wxUSE_ALL_FEATURES
10548           if test -z "$defaultval"; then
10549               if test x"$enablestring" = xdisable; then
10550                   defaultval=yes
10551               else
10552                   defaultval=no
10553               fi
10554           fi
10555
10556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10557 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10558           # Check whether --enable-gauge was given.
10559 if test "${enable_gauge+set}" = set; then
10560   enableval=$enable_gauge;
10561                           if test "$enableval" = yes; then
10562                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10563                           else
10564                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10565                           fi
10566
10567 else
10568
10569                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10570
10571 fi
10572
10573
10574           eval "$wx_cv_use_gauge"
10575
10576           if test x"$enablestring" = xdisable; then
10577             if test $wxUSE_GAUGE = yes; then
10578               result=no
10579             else
10580               result=yes
10581             fi
10582           else
10583             result=$wxUSE_GAUGE
10584           fi
10585
10586           { echo "$as_me:$LINENO: result: $result" >&5
10587 echo "${ECHO_T}$result" >&6; }
10588
10589
10590           enablestring=
10591           defaultval=$wxUSE_ALL_FEATURES
10592           if test -z "$defaultval"; then
10593               if test x"$enablestring" = xdisable; then
10594                   defaultval=yes
10595               else
10596                   defaultval=no
10597               fi
10598           fi
10599
10600           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10601 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10602           # Check whether --enable-grid was given.
10603 if test "${enable_grid+set}" = set; then
10604   enableval=$enable_grid;
10605                           if test "$enableval" = yes; then
10606                             wx_cv_use_grid='wxUSE_GRID=yes'
10607                           else
10608                             wx_cv_use_grid='wxUSE_GRID=no'
10609                           fi
10610
10611 else
10612
10613                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10614
10615 fi
10616
10617
10618           eval "$wx_cv_use_grid"
10619
10620           if test x"$enablestring" = xdisable; then
10621             if test $wxUSE_GRID = yes; then
10622               result=no
10623             else
10624               result=yes
10625             fi
10626           else
10627             result=$wxUSE_GRID
10628           fi
10629
10630           { echo "$as_me:$LINENO: result: $result" >&5
10631 echo "${ECHO_T}$result" >&6; }
10632
10633
10634           enablestring=
10635           defaultval=$wxUSE_ALL_FEATURES
10636           if test -z "$defaultval"; then
10637               if test x"$enablestring" = xdisable; then
10638                   defaultval=yes
10639               else
10640                   defaultval=no
10641               fi
10642           fi
10643
10644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10645 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10646           # Check whether --enable-headerctrl was given.
10647 if test "${enable_headerctrl+set}" = set; then
10648   enableval=$enable_headerctrl;
10649                           if test "$enableval" = yes; then
10650                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10651                           else
10652                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10653                           fi
10654
10655 else
10656
10657                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10658
10659 fi
10660
10661
10662           eval "$wx_cv_use_headerctrl"
10663
10664           if test x"$enablestring" = xdisable; then
10665             if test $wxUSE_HEADERCTRL = yes; then
10666               result=no
10667             else
10668               result=yes
10669             fi
10670           else
10671             result=$wxUSE_HEADERCTRL
10672           fi
10673
10674           { echo "$as_me:$LINENO: result: $result" >&5
10675 echo "${ECHO_T}$result" >&6; }
10676
10677
10678           enablestring=
10679           defaultval=$wxUSE_ALL_FEATURES
10680           if test -z "$defaultval"; then
10681               if test x"$enablestring" = xdisable; then
10682                   defaultval=yes
10683               else
10684                   defaultval=no
10685               fi
10686           fi
10687
10688           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10689 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10690           # Check whether --enable-hyperlink was given.
10691 if test "${enable_hyperlink+set}" = set; then
10692   enableval=$enable_hyperlink;
10693                           if test "$enableval" = yes; then
10694                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10695                           else
10696                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10697                           fi
10698
10699 else
10700
10701                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10702
10703 fi
10704
10705
10706           eval "$wx_cv_use_hyperlink"
10707
10708           if test x"$enablestring" = xdisable; then
10709             if test $wxUSE_HYPERLINKCTRL = yes; then
10710               result=no
10711             else
10712               result=yes
10713             fi
10714           else
10715             result=$wxUSE_HYPERLINKCTRL
10716           fi
10717
10718           { echo "$as_me:$LINENO: result: $result" >&5
10719 echo "${ECHO_T}$result" >&6; }
10720
10721
10722           enablestring=
10723           defaultval=$wxUSE_ALL_FEATURES
10724           if test -z "$defaultval"; then
10725               if test x"$enablestring" = xdisable; then
10726                   defaultval=yes
10727               else
10728                   defaultval=no
10729               fi
10730           fi
10731
10732           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10733 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10734           # Check whether --enable-imaglist was given.
10735 if test "${enable_imaglist+set}" = set; then
10736   enableval=$enable_imaglist;
10737                           if test "$enableval" = yes; then
10738                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10739                           else
10740                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10741                           fi
10742
10743 else
10744
10745                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10746
10747 fi
10748
10749
10750           eval "$wx_cv_use_imaglist"
10751
10752           if test x"$enablestring" = xdisable; then
10753             if test $wxUSE_IMAGLIST = yes; then
10754               result=no
10755             else
10756               result=yes
10757             fi
10758           else
10759             result=$wxUSE_IMAGLIST
10760           fi
10761
10762           { echo "$as_me:$LINENO: result: $result" >&5
10763 echo "${ECHO_T}$result" >&6; }
10764
10765
10766           enablestring=
10767           defaultval=$wxUSE_ALL_FEATURES
10768           if test -z "$defaultval"; then
10769               if test x"$enablestring" = xdisable; then
10770                   defaultval=yes
10771               else
10772                   defaultval=no
10773               fi
10774           fi
10775
10776           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10777 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10778           # Check whether --enable-listbook was given.
10779 if test "${enable_listbook+set}" = set; then
10780   enableval=$enable_listbook;
10781                           if test "$enableval" = yes; then
10782                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10783                           else
10784                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10785                           fi
10786
10787 else
10788
10789                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10790
10791 fi
10792
10793
10794           eval "$wx_cv_use_listbook"
10795
10796           if test x"$enablestring" = xdisable; then
10797             if test $wxUSE_LISTBOOK = yes; then
10798               result=no
10799             else
10800               result=yes
10801             fi
10802           else
10803             result=$wxUSE_LISTBOOK
10804           fi
10805
10806           { echo "$as_me:$LINENO: result: $result" >&5
10807 echo "${ECHO_T}$result" >&6; }
10808
10809
10810           enablestring=
10811           defaultval=$wxUSE_ALL_FEATURES
10812           if test -z "$defaultval"; then
10813               if test x"$enablestring" = xdisable; then
10814                   defaultval=yes
10815               else
10816                   defaultval=no
10817               fi
10818           fi
10819
10820           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10821 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10822           # Check whether --enable-listbox was given.
10823 if test "${enable_listbox+set}" = set; then
10824   enableval=$enable_listbox;
10825                           if test "$enableval" = yes; then
10826                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10827                           else
10828                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10829                           fi
10830
10831 else
10832
10833                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10834
10835 fi
10836
10837
10838           eval "$wx_cv_use_listbox"
10839
10840           if test x"$enablestring" = xdisable; then
10841             if test $wxUSE_LISTBOX = yes; then
10842               result=no
10843             else
10844               result=yes
10845             fi
10846           else
10847             result=$wxUSE_LISTBOX
10848           fi
10849
10850           { echo "$as_me:$LINENO: result: $result" >&5
10851 echo "${ECHO_T}$result" >&6; }
10852
10853
10854           enablestring=
10855           defaultval=$wxUSE_ALL_FEATURES
10856           if test -z "$defaultval"; then
10857               if test x"$enablestring" = xdisable; then
10858                   defaultval=yes
10859               else
10860                   defaultval=no
10861               fi
10862           fi
10863
10864           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10865 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10866           # Check whether --enable-listctrl was given.
10867 if test "${enable_listctrl+set}" = set; then
10868   enableval=$enable_listctrl;
10869                           if test "$enableval" = yes; then
10870                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10871                           else
10872                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10873                           fi
10874
10875 else
10876
10877                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10878
10879 fi
10880
10881
10882           eval "$wx_cv_use_listctrl"
10883
10884           if test x"$enablestring" = xdisable; then
10885             if test $wxUSE_LISTCTRL = yes; then
10886               result=no
10887             else
10888               result=yes
10889             fi
10890           else
10891             result=$wxUSE_LISTCTRL
10892           fi
10893
10894           { echo "$as_me:$LINENO: result: $result" >&5
10895 echo "${ECHO_T}$result" >&6; }
10896
10897
10898           enablestring=
10899           defaultval=$wxUSE_ALL_FEATURES
10900           if test -z "$defaultval"; then
10901               if test x"$enablestring" = xdisable; then
10902                   defaultval=yes
10903               else
10904                   defaultval=no
10905               fi
10906           fi
10907
10908           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10909 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10910           # Check whether --enable-notebook was given.
10911 if test "${enable_notebook+set}" = set; then
10912   enableval=$enable_notebook;
10913                           if test "$enableval" = yes; then
10914                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10915                           else
10916                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10917                           fi
10918
10919 else
10920
10921                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10922
10923 fi
10924
10925
10926           eval "$wx_cv_use_notebook"
10927
10928           if test x"$enablestring" = xdisable; then
10929             if test $wxUSE_NOTEBOOK = yes; then
10930               result=no
10931             else
10932               result=yes
10933             fi
10934           else
10935             result=$wxUSE_NOTEBOOK
10936           fi
10937
10938           { echo "$as_me:$LINENO: result: $result" >&5
10939 echo "${ECHO_T}$result" >&6; }
10940
10941
10942           enablestring=
10943           defaultval=$wxUSE_ALL_FEATURES
10944           if test -z "$defaultval"; then
10945               if test x"$enablestring" = xdisable; then
10946                   defaultval=yes
10947               else
10948                   defaultval=no
10949               fi
10950           fi
10951
10952           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10953 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10954           # Check whether --enable-notifmsg was given.
10955 if test "${enable_notifmsg+set}" = set; then
10956   enableval=$enable_notifmsg;
10957                           if test "$enableval" = yes; then
10958                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10959                           else
10960                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10961                           fi
10962
10963 else
10964
10965                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10966
10967 fi
10968
10969
10970           eval "$wx_cv_use_notifmsg"
10971
10972           if test x"$enablestring" = xdisable; then
10973             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
10974               result=no
10975             else
10976               result=yes
10977             fi
10978           else
10979             result=$wxUSE_NOTIFICATION_MESSAGE
10980           fi
10981
10982           { echo "$as_me:$LINENO: result: $result" >&5
10983 echo "${ECHO_T}$result" >&6; }
10984
10985
10986           enablestring=
10987           defaultval=$wxUSE_ALL_FEATURES
10988           if test -z "$defaultval"; then
10989               if test x"$enablestring" = xdisable; then
10990                   defaultval=yes
10991               else
10992                   defaultval=no
10993               fi
10994           fi
10995
10996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10997 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10998           # Check whether --enable-odcombobox was given.
10999 if test "${enable_odcombobox+set}" = set; then
11000   enableval=$enable_odcombobox;
11001                           if test "$enableval" = yes; then
11002                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11003                           else
11004                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11005                           fi
11006
11007 else
11008
11009                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11010
11011 fi
11012
11013
11014           eval "$wx_cv_use_odcombobox"
11015
11016           if test x"$enablestring" = xdisable; then
11017             if test $wxUSE_ODCOMBOBOX = yes; then
11018               result=no
11019             else
11020               result=yes
11021             fi
11022           else
11023             result=$wxUSE_ODCOMBOBOX
11024           fi
11025
11026           { echo "$as_me:$LINENO: result: $result" >&5
11027 echo "${ECHO_T}$result" >&6; }
11028
11029
11030           enablestring=
11031           defaultval=$wxUSE_ALL_FEATURES
11032           if test -z "$defaultval"; then
11033               if test x"$enablestring" = xdisable; then
11034                   defaultval=yes
11035               else
11036                   defaultval=no
11037               fi
11038           fi
11039
11040           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11041 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11042           # Check whether --enable-popupwin was given.
11043 if test "${enable_popupwin+set}" = set; then
11044   enableval=$enable_popupwin;
11045                           if test "$enableval" = yes; then
11046                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11047                           else
11048                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11049                           fi
11050
11051 else
11052
11053                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11054
11055 fi
11056
11057
11058           eval "$wx_cv_use_popupwin"
11059
11060           if test x"$enablestring" = xdisable; then
11061             if test $wxUSE_POPUPWIN = yes; then
11062               result=no
11063             else
11064               result=yes
11065             fi
11066           else
11067             result=$wxUSE_POPUPWIN
11068           fi
11069
11070           { echo "$as_me:$LINENO: result: $result" >&5
11071 echo "${ECHO_T}$result" >&6; }
11072
11073
11074           enablestring=
11075           defaultval=$wxUSE_ALL_FEATURES
11076           if test -z "$defaultval"; then
11077               if test x"$enablestring" = xdisable; then
11078                   defaultval=yes
11079               else
11080                   defaultval=no
11081               fi
11082           fi
11083
11084           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11085 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11086           # Check whether --enable-radiobox was given.
11087 if test "${enable_radiobox+set}" = set; then
11088   enableval=$enable_radiobox;
11089                           if test "$enableval" = yes; then
11090                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11091                           else
11092                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11093                           fi
11094
11095 else
11096
11097                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11098
11099 fi
11100
11101
11102           eval "$wx_cv_use_radiobox"
11103
11104           if test x"$enablestring" = xdisable; then
11105             if test $wxUSE_RADIOBOX = yes; then
11106               result=no
11107             else
11108               result=yes
11109             fi
11110           else
11111             result=$wxUSE_RADIOBOX
11112           fi
11113
11114           { echo "$as_me:$LINENO: result: $result" >&5
11115 echo "${ECHO_T}$result" >&6; }
11116
11117
11118           enablestring=
11119           defaultval=$wxUSE_ALL_FEATURES
11120           if test -z "$defaultval"; then
11121               if test x"$enablestring" = xdisable; then
11122                   defaultval=yes
11123               else
11124                   defaultval=no
11125               fi
11126           fi
11127
11128           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11129 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11130           # Check whether --enable-radiobtn was given.
11131 if test "${enable_radiobtn+set}" = set; then
11132   enableval=$enable_radiobtn;
11133                           if test "$enableval" = yes; then
11134                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11135                           else
11136                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11137                           fi
11138
11139 else
11140
11141                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11142
11143 fi
11144
11145
11146           eval "$wx_cv_use_radiobtn"
11147
11148           if test x"$enablestring" = xdisable; then
11149             if test $wxUSE_RADIOBTN = yes; then
11150               result=no
11151             else
11152               result=yes
11153             fi
11154           else
11155             result=$wxUSE_RADIOBTN
11156           fi
11157
11158           { echo "$as_me:$LINENO: result: $result" >&5
11159 echo "${ECHO_T}$result" >&6; }
11160
11161
11162           enablestring=
11163           defaultval=$wxUSE_ALL_FEATURES
11164           if test -z "$defaultval"; then
11165               if test x"$enablestring" = xdisable; then
11166                   defaultval=yes
11167               else
11168                   defaultval=no
11169               fi
11170           fi
11171
11172           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11173 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11174           # Check whether --enable-rearrangectrl was given.
11175 if test "${enable_rearrangectrl+set}" = set; then
11176   enableval=$enable_rearrangectrl;
11177                           if test "$enableval" = yes; then
11178                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11179                           else
11180                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11181                           fi
11182
11183 else
11184
11185                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11186
11187 fi
11188
11189
11190           eval "$wx_cv_use_rearrangectrl"
11191
11192           if test x"$enablestring" = xdisable; then
11193             if test $wxUSE_REARRANGECTRL = yes; then
11194               result=no
11195             else
11196               result=yes
11197             fi
11198           else
11199             result=$wxUSE_REARRANGECTRL
11200           fi
11201
11202           { echo "$as_me:$LINENO: result: $result" >&5
11203 echo "${ECHO_T}$result" >&6; }
11204
11205
11206           enablestring=
11207           defaultval=$wxUSE_ALL_FEATURES
11208           if test -z "$defaultval"; then
11209               if test x"$enablestring" = xdisable; then
11210                   defaultval=yes
11211               else
11212                   defaultval=no
11213               fi
11214           fi
11215
11216           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11217 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11218           # Check whether --enable-sash was given.
11219 if test "${enable_sash+set}" = set; then
11220   enableval=$enable_sash;
11221                           if test "$enableval" = yes; then
11222                             wx_cv_use_sash='wxUSE_SASH=yes'
11223                           else
11224                             wx_cv_use_sash='wxUSE_SASH=no'
11225                           fi
11226
11227 else
11228
11229                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11230
11231 fi
11232
11233
11234           eval "$wx_cv_use_sash"
11235
11236           if test x"$enablestring" = xdisable; then
11237             if test $wxUSE_SASH = yes; then
11238               result=no
11239             else
11240               result=yes
11241             fi
11242           else
11243             result=$wxUSE_SASH
11244           fi
11245
11246           { echo "$as_me:$LINENO: result: $result" >&5
11247 echo "${ECHO_T}$result" >&6; }
11248
11249
11250           enablestring=
11251           defaultval=$wxUSE_ALL_FEATURES
11252           if test -z "$defaultval"; then
11253               if test x"$enablestring" = xdisable; then
11254                   defaultval=yes
11255               else
11256                   defaultval=no
11257               fi
11258           fi
11259
11260           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11261 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11262           # Check whether --enable-scrollbar was given.
11263 if test "${enable_scrollbar+set}" = set; then
11264   enableval=$enable_scrollbar;
11265                           if test "$enableval" = yes; then
11266                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11267                           else
11268                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11269                           fi
11270
11271 else
11272
11273                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11274
11275 fi
11276
11277
11278           eval "$wx_cv_use_scrollbar"
11279
11280           if test x"$enablestring" = xdisable; then
11281             if test $wxUSE_SCROLLBAR = yes; then
11282               result=no
11283             else
11284               result=yes
11285             fi
11286           else
11287             result=$wxUSE_SCROLLBAR
11288           fi
11289
11290           { echo "$as_me:$LINENO: result: $result" >&5
11291 echo "${ECHO_T}$result" >&6; }
11292
11293
11294           enablestring=
11295           defaultval=$wxUSE_ALL_FEATURES
11296           if test -z "$defaultval"; then
11297               if test x"$enablestring" = xdisable; then
11298                   defaultval=yes
11299               else
11300                   defaultval=no
11301               fi
11302           fi
11303
11304           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11305 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11306           # Check whether --enable-searchctrl was given.
11307 if test "${enable_searchctrl+set}" = set; then
11308   enableval=$enable_searchctrl;
11309                           if test "$enableval" = yes; then
11310                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11311                           else
11312                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11313                           fi
11314
11315 else
11316
11317                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11318
11319 fi
11320
11321
11322           eval "$wx_cv_use_searchctrl"
11323
11324           if test x"$enablestring" = xdisable; then
11325             if test $wxUSE_SEARCHCTRL = yes; then
11326               result=no
11327             else
11328               result=yes
11329             fi
11330           else
11331             result=$wxUSE_SEARCHCTRL
11332           fi
11333
11334           { echo "$as_me:$LINENO: result: $result" >&5
11335 echo "${ECHO_T}$result" >&6; }
11336
11337
11338           enablestring=
11339           defaultval=$wxUSE_ALL_FEATURES
11340           if test -z "$defaultval"; then
11341               if test x"$enablestring" = xdisable; then
11342                   defaultval=yes
11343               else
11344                   defaultval=no
11345               fi
11346           fi
11347
11348           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11349 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11350           # Check whether --enable-slider was given.
11351 if test "${enable_slider+set}" = set; then
11352   enableval=$enable_slider;
11353                           if test "$enableval" = yes; then
11354                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11355                           else
11356                             wx_cv_use_slider='wxUSE_SLIDER=no'
11357                           fi
11358
11359 else
11360
11361                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11362
11363 fi
11364
11365
11366           eval "$wx_cv_use_slider"
11367
11368           if test x"$enablestring" = xdisable; then
11369             if test $wxUSE_SLIDER = yes; then
11370               result=no
11371             else
11372               result=yes
11373             fi
11374           else
11375             result=$wxUSE_SLIDER
11376           fi
11377
11378           { echo "$as_me:$LINENO: result: $result" >&5
11379 echo "${ECHO_T}$result" >&6; }
11380
11381
11382           enablestring=
11383           defaultval=$wxUSE_ALL_FEATURES
11384           if test -z "$defaultval"; then
11385               if test x"$enablestring" = xdisable; then
11386                   defaultval=yes
11387               else
11388                   defaultval=no
11389               fi
11390           fi
11391
11392           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11393 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11394           # Check whether --enable-spinbtn was given.
11395 if test "${enable_spinbtn+set}" = set; then
11396   enableval=$enable_spinbtn;
11397                           if test "$enableval" = yes; then
11398                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11399                           else
11400                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11401                           fi
11402
11403 else
11404
11405                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11406
11407 fi
11408
11409
11410           eval "$wx_cv_use_spinbtn"
11411
11412           if test x"$enablestring" = xdisable; then
11413             if test $wxUSE_SPINBTN = yes; then
11414               result=no
11415             else
11416               result=yes
11417             fi
11418           else
11419             result=$wxUSE_SPINBTN
11420           fi
11421
11422           { echo "$as_me:$LINENO: result: $result" >&5
11423 echo "${ECHO_T}$result" >&6; }
11424
11425
11426           enablestring=
11427           defaultval=$wxUSE_ALL_FEATURES
11428           if test -z "$defaultval"; then
11429               if test x"$enablestring" = xdisable; then
11430                   defaultval=yes
11431               else
11432                   defaultval=no
11433               fi
11434           fi
11435
11436           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11437 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11438           # Check whether --enable-spinctrl was given.
11439 if test "${enable_spinctrl+set}" = set; then
11440   enableval=$enable_spinctrl;
11441                           if test "$enableval" = yes; then
11442                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11443                           else
11444                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11445                           fi
11446
11447 else
11448
11449                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11450
11451 fi
11452
11453
11454           eval "$wx_cv_use_spinctrl"
11455
11456           if test x"$enablestring" = xdisable; then
11457             if test $wxUSE_SPINCTRL = yes; then
11458               result=no
11459             else
11460               result=yes
11461             fi
11462           else
11463             result=$wxUSE_SPINCTRL
11464           fi
11465
11466           { echo "$as_me:$LINENO: result: $result" >&5
11467 echo "${ECHO_T}$result" >&6; }
11468
11469
11470           enablestring=
11471           defaultval=$wxUSE_ALL_FEATURES
11472           if test -z "$defaultval"; then
11473               if test x"$enablestring" = xdisable; then
11474                   defaultval=yes
11475               else
11476                   defaultval=no
11477               fi
11478           fi
11479
11480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11481 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11482           # Check whether --enable-splitter was given.
11483 if test "${enable_splitter+set}" = set; then
11484   enableval=$enable_splitter;
11485                           if test "$enableval" = yes; then
11486                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11487                           else
11488                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11489                           fi
11490
11491 else
11492
11493                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11494
11495 fi
11496
11497
11498           eval "$wx_cv_use_splitter"
11499
11500           if test x"$enablestring" = xdisable; then
11501             if test $wxUSE_SPLITTER = yes; then
11502               result=no
11503             else
11504               result=yes
11505             fi
11506           else
11507             result=$wxUSE_SPLITTER
11508           fi
11509
11510           { echo "$as_me:$LINENO: result: $result" >&5
11511 echo "${ECHO_T}$result" >&6; }
11512
11513
11514           enablestring=
11515           defaultval=$wxUSE_ALL_FEATURES
11516           if test -z "$defaultval"; then
11517               if test x"$enablestring" = xdisable; then
11518                   defaultval=yes
11519               else
11520                   defaultval=no
11521               fi
11522           fi
11523
11524           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11525 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11526           # Check whether --enable-statbmp was given.
11527 if test "${enable_statbmp+set}" = set; then
11528   enableval=$enable_statbmp;
11529                           if test "$enableval" = yes; then
11530                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11531                           else
11532                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11533                           fi
11534
11535 else
11536
11537                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11538
11539 fi
11540
11541
11542           eval "$wx_cv_use_statbmp"
11543
11544           if test x"$enablestring" = xdisable; then
11545             if test $wxUSE_STATBMP = yes; then
11546               result=no
11547             else
11548               result=yes
11549             fi
11550           else
11551             result=$wxUSE_STATBMP
11552           fi
11553
11554           { echo "$as_me:$LINENO: result: $result" >&5
11555 echo "${ECHO_T}$result" >&6; }
11556
11557
11558           enablestring=
11559           defaultval=$wxUSE_ALL_FEATURES
11560           if test -z "$defaultval"; then
11561               if test x"$enablestring" = xdisable; then
11562                   defaultval=yes
11563               else
11564                   defaultval=no
11565               fi
11566           fi
11567
11568           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11569 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11570           # Check whether --enable-statbox was given.
11571 if test "${enable_statbox+set}" = set; then
11572   enableval=$enable_statbox;
11573                           if test "$enableval" = yes; then
11574                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11575                           else
11576                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11577                           fi
11578
11579 else
11580
11581                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11582
11583 fi
11584
11585
11586           eval "$wx_cv_use_statbox"
11587
11588           if test x"$enablestring" = xdisable; then
11589             if test $wxUSE_STATBOX = yes; then
11590               result=no
11591             else
11592               result=yes
11593             fi
11594           else
11595             result=$wxUSE_STATBOX
11596           fi
11597
11598           { echo "$as_me:$LINENO: result: $result" >&5
11599 echo "${ECHO_T}$result" >&6; }
11600
11601
11602           enablestring=
11603           defaultval=$wxUSE_ALL_FEATURES
11604           if test -z "$defaultval"; then
11605               if test x"$enablestring" = xdisable; then
11606                   defaultval=yes
11607               else
11608                   defaultval=no
11609               fi
11610           fi
11611
11612           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11613 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11614           # Check whether --enable-statline was given.
11615 if test "${enable_statline+set}" = set; then
11616   enableval=$enable_statline;
11617                           if test "$enableval" = yes; then
11618                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11619                           else
11620                             wx_cv_use_statline='wxUSE_STATLINE=no'
11621                           fi
11622
11623 else
11624
11625                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11626
11627 fi
11628
11629
11630           eval "$wx_cv_use_statline"
11631
11632           if test x"$enablestring" = xdisable; then
11633             if test $wxUSE_STATLINE = yes; then
11634               result=no
11635             else
11636               result=yes
11637             fi
11638           else
11639             result=$wxUSE_STATLINE
11640           fi
11641
11642           { echo "$as_me:$LINENO: result: $result" >&5
11643 echo "${ECHO_T}$result" >&6; }
11644
11645
11646           enablestring=
11647           defaultval=$wxUSE_ALL_FEATURES
11648           if test -z "$defaultval"; then
11649               if test x"$enablestring" = xdisable; then
11650                   defaultval=yes
11651               else
11652                   defaultval=no
11653               fi
11654           fi
11655
11656           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11657 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11658           # Check whether --enable-stattext was given.
11659 if test "${enable_stattext+set}" = set; then
11660   enableval=$enable_stattext;
11661                           if test "$enableval" = yes; then
11662                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11663                           else
11664                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11665                           fi
11666
11667 else
11668
11669                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11670
11671 fi
11672
11673
11674           eval "$wx_cv_use_stattext"
11675
11676           if test x"$enablestring" = xdisable; then
11677             if test $wxUSE_STATTEXT = yes; then
11678               result=no
11679             else
11680               result=yes
11681             fi
11682           else
11683             result=$wxUSE_STATTEXT
11684           fi
11685
11686           { echo "$as_me:$LINENO: result: $result" >&5
11687 echo "${ECHO_T}$result" >&6; }
11688
11689
11690           enablestring=
11691           defaultval=$wxUSE_ALL_FEATURES
11692           if test -z "$defaultval"; then
11693               if test x"$enablestring" = xdisable; then
11694                   defaultval=yes
11695               else
11696                   defaultval=no
11697               fi
11698           fi
11699
11700           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11701 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11702           # Check whether --enable-statusbar was given.
11703 if test "${enable_statusbar+set}" = set; then
11704   enableval=$enable_statusbar;
11705                           if test "$enableval" = yes; then
11706                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11707                           else
11708                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11709                           fi
11710
11711 else
11712
11713                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11714
11715 fi
11716
11717
11718           eval "$wx_cv_use_statusbar"
11719
11720           if test x"$enablestring" = xdisable; then
11721             if test $wxUSE_STATUSBAR = yes; then
11722               result=no
11723             else
11724               result=yes
11725             fi
11726           else
11727             result=$wxUSE_STATUSBAR
11728           fi
11729
11730           { echo "$as_me:$LINENO: result: $result" >&5
11731 echo "${ECHO_T}$result" >&6; }
11732
11733
11734           enablestring=
11735           defaultval=$wxUSE_ALL_FEATURES
11736           if test -z "$defaultval"; then
11737               if test x"$enablestring" = xdisable; then
11738                   defaultval=yes
11739               else
11740                   defaultval=no
11741               fi
11742           fi
11743
11744           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11745 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11746           # Check whether --enable-taskbaricon was given.
11747 if test "${enable_taskbaricon+set}" = set; then
11748   enableval=$enable_taskbaricon;
11749                           if test "$enableval" = yes; then
11750                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11751                           else
11752                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11753                           fi
11754
11755 else
11756
11757                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11758
11759 fi
11760
11761
11762           eval "$wx_cv_use_taskbaricon"
11763
11764           if test x"$enablestring" = xdisable; then
11765             if test $wxUSE_TASKBARICON = yes; then
11766               result=no
11767             else
11768               result=yes
11769             fi
11770           else
11771             result=$wxUSE_TASKBARICON
11772           fi
11773
11774           { echo "$as_me:$LINENO: result: $result" >&5
11775 echo "${ECHO_T}$result" >&6; }
11776
11777
11778           enablestring=
11779           defaultval=$wxUSE_ALL_FEATURES
11780           if test -z "$defaultval"; then
11781               if test x"$enablestring" = xdisable; then
11782                   defaultval=yes
11783               else
11784                   defaultval=no
11785               fi
11786           fi
11787
11788           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11789 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11790           # Check whether --enable-tbarnative was given.
11791 if test "${enable_tbarnative+set}" = set; then
11792   enableval=$enable_tbarnative;
11793                           if test "$enableval" = yes; then
11794                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11795                           else
11796                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11797                           fi
11798
11799 else
11800
11801                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11802
11803 fi
11804
11805
11806           eval "$wx_cv_use_tbarnative"
11807
11808           if test x"$enablestring" = xdisable; then
11809             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11810               result=no
11811             else
11812               result=yes
11813             fi
11814           else
11815             result=$wxUSE_TOOLBAR_NATIVE
11816           fi
11817
11818           { echo "$as_me:$LINENO: result: $result" >&5
11819 echo "${ECHO_T}$result" >&6; }
11820
11821
11822           enablestring=
11823           defaultval=$wxUSE_ALL_FEATURES
11824           if test -z "$defaultval"; then
11825               if test x"$enablestring" = xdisable; then
11826                   defaultval=yes
11827               else
11828                   defaultval=no
11829               fi
11830           fi
11831
11832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11833 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11834           # Check whether --enable-textctrl was given.
11835 if test "${enable_textctrl+set}" = set; then
11836   enableval=$enable_textctrl;
11837                           if test "$enableval" = yes; then
11838                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11839                           else
11840                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11841                           fi
11842
11843 else
11844
11845                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11846
11847 fi
11848
11849
11850           eval "$wx_cv_use_textctrl"
11851
11852           if test x"$enablestring" = xdisable; then
11853             if test $wxUSE_TEXTCTRL = yes; then
11854               result=no
11855             else
11856               result=yes
11857             fi
11858           else
11859             result=$wxUSE_TEXTCTRL
11860           fi
11861
11862           { echo "$as_me:$LINENO: result: $result" >&5
11863 echo "${ECHO_T}$result" >&6; }
11864
11865
11866           enablestring=
11867           defaultval=$wxUSE_ALL_FEATURES
11868           if test -z "$defaultval"; then
11869               if test x"$enablestring" = xdisable; then
11870                   defaultval=yes
11871               else
11872                   defaultval=no
11873               fi
11874           fi
11875
11876           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11877 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11878           # Check whether --enable-tipwindow was given.
11879 if test "${enable_tipwindow+set}" = set; then
11880   enableval=$enable_tipwindow;
11881                           if test "$enableval" = yes; then
11882                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11883                           else
11884                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11885                           fi
11886
11887 else
11888
11889                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11890
11891 fi
11892
11893
11894           eval "$wx_cv_use_tipwindow"
11895
11896           if test x"$enablestring" = xdisable; then
11897             if test $wxUSE_TIPWINDOW = yes; then
11898               result=no
11899             else
11900               result=yes
11901             fi
11902           else
11903             result=$wxUSE_TIPWINDOW
11904           fi
11905
11906           { echo "$as_me:$LINENO: result: $result" >&5
11907 echo "${ECHO_T}$result" >&6; }
11908
11909
11910           enablestring=
11911           defaultval=$wxUSE_ALL_FEATURES
11912           if test -z "$defaultval"; then
11913               if test x"$enablestring" = xdisable; then
11914                   defaultval=yes
11915               else
11916                   defaultval=no
11917               fi
11918           fi
11919
11920           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11921 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11922           # Check whether --enable-togglebtn was given.
11923 if test "${enable_togglebtn+set}" = set; then
11924   enableval=$enable_togglebtn;
11925                           if test "$enableval" = yes; then
11926                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11927                           else
11928                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11929                           fi
11930
11931 else
11932
11933                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11934
11935 fi
11936
11937
11938           eval "$wx_cv_use_togglebtn"
11939
11940           if test x"$enablestring" = xdisable; then
11941             if test $wxUSE_TOGGLEBTN = yes; then
11942               result=no
11943             else
11944               result=yes
11945             fi
11946           else
11947             result=$wxUSE_TOGGLEBTN
11948           fi
11949
11950           { echo "$as_me:$LINENO: result: $result" >&5
11951 echo "${ECHO_T}$result" >&6; }
11952
11953
11954           enablestring=
11955           defaultval=$wxUSE_ALL_FEATURES
11956           if test -z "$defaultval"; then
11957               if test x"$enablestring" = xdisable; then
11958                   defaultval=yes
11959               else
11960                   defaultval=no
11961               fi
11962           fi
11963
11964           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11965 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11966           # Check whether --enable-toolbar was given.
11967 if test "${enable_toolbar+set}" = set; then
11968   enableval=$enable_toolbar;
11969                           if test "$enableval" = yes; then
11970                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11971                           else
11972                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11973                           fi
11974
11975 else
11976
11977                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11978
11979 fi
11980
11981
11982           eval "$wx_cv_use_toolbar"
11983
11984           if test x"$enablestring" = xdisable; then
11985             if test $wxUSE_TOOLBAR = yes; then
11986               result=no
11987             else
11988               result=yes
11989             fi
11990           else
11991             result=$wxUSE_TOOLBAR
11992           fi
11993
11994           { echo "$as_me:$LINENO: result: $result" >&5
11995 echo "${ECHO_T}$result" >&6; }
11996
11997
11998           enablestring=
11999           defaultval=$wxUSE_ALL_FEATURES
12000           if test -z "$defaultval"; then
12001               if test x"$enablestring" = xdisable; then
12002                   defaultval=yes
12003               else
12004                   defaultval=no
12005               fi
12006           fi
12007
12008           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12009 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12010           # Check whether --enable-toolbook was given.
12011 if test "${enable_toolbook+set}" = set; then
12012   enableval=$enable_toolbook;
12013                           if test "$enableval" = yes; then
12014                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12015                           else
12016                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12017                           fi
12018
12019 else
12020
12021                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12022
12023 fi
12024
12025
12026           eval "$wx_cv_use_toolbook"
12027
12028           if test x"$enablestring" = xdisable; then
12029             if test $wxUSE_TOOLBOOK = yes; then
12030               result=no
12031             else
12032               result=yes
12033             fi
12034           else
12035             result=$wxUSE_TOOLBOOK
12036           fi
12037
12038           { echo "$as_me:$LINENO: result: $result" >&5
12039 echo "${ECHO_T}$result" >&6; }
12040
12041
12042           enablestring=
12043           defaultval=$wxUSE_ALL_FEATURES
12044           if test -z "$defaultval"; then
12045               if test x"$enablestring" = xdisable; then
12046                   defaultval=yes
12047               else
12048                   defaultval=no
12049               fi
12050           fi
12051
12052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12053 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12054           # Check whether --enable-treebook was given.
12055 if test "${enable_treebook+set}" = set; then
12056   enableval=$enable_treebook;
12057                           if test "$enableval" = yes; then
12058                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12059                           else
12060                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12061                           fi
12062
12063 else
12064
12065                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12066
12067 fi
12068
12069
12070           eval "$wx_cv_use_treebook"
12071
12072           if test x"$enablestring" = xdisable; then
12073             if test $wxUSE_TREEBOOK = yes; then
12074               result=no
12075             else
12076               result=yes
12077             fi
12078           else
12079             result=$wxUSE_TREEBOOK
12080           fi
12081
12082           { echo "$as_me:$LINENO: result: $result" >&5
12083 echo "${ECHO_T}$result" >&6; }
12084
12085
12086           enablestring=
12087           defaultval=$wxUSE_ALL_FEATURES
12088           if test -z "$defaultval"; then
12089               if test x"$enablestring" = xdisable; then
12090                   defaultval=yes
12091               else
12092                   defaultval=no
12093               fi
12094           fi
12095
12096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12097 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12098           # Check whether --enable-treectrl was given.
12099 if test "${enable_treectrl+set}" = set; then
12100   enableval=$enable_treectrl;
12101                           if test "$enableval" = yes; then
12102                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12103                           else
12104                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12105                           fi
12106
12107 else
12108
12109                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12110
12111 fi
12112
12113
12114           eval "$wx_cv_use_treectrl"
12115
12116           if test x"$enablestring" = xdisable; then
12117             if test $wxUSE_TREECTRL = yes; then
12118               result=no
12119             else
12120               result=yes
12121             fi
12122           else
12123             result=$wxUSE_TREECTRL
12124           fi
12125
12126           { echo "$as_me:$LINENO: result: $result" >&5
12127 echo "${ECHO_T}$result" >&6; }
12128
12129
12130
12131
12132           enablestring=
12133           defaultval=$wxUSE_ALL_FEATURES
12134           if test -z "$defaultval"; then
12135               if test x"$enablestring" = xdisable; then
12136                   defaultval=yes
12137               else
12138                   defaultval=no
12139               fi
12140           fi
12141
12142           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12143 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12144           # Check whether --enable-commondlg was given.
12145 if test "${enable_commondlg+set}" = set; then
12146   enableval=$enable_commondlg;
12147                           if test "$enableval" = yes; then
12148                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12149                           else
12150                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12151                           fi
12152
12153 else
12154
12155                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12156
12157 fi
12158
12159
12160           eval "$wx_cv_use_commondlg"
12161
12162           if test x"$enablestring" = xdisable; then
12163             if test $wxUSE_COMMONDLGS = yes; then
12164               result=no
12165             else
12166               result=yes
12167             fi
12168           else
12169             result=$wxUSE_COMMONDLGS
12170           fi
12171
12172           { echo "$as_me:$LINENO: result: $result" >&5
12173 echo "${ECHO_T}$result" >&6; }
12174
12175
12176           enablestring=
12177           defaultval=$wxUSE_ALL_FEATURES
12178           if test -z "$defaultval"; then
12179               if test x"$enablestring" = xdisable; then
12180                   defaultval=yes
12181               else
12182                   defaultval=no
12183               fi
12184           fi
12185
12186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12187 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12188           # Check whether --enable-aboutdlg was given.
12189 if test "${enable_aboutdlg+set}" = set; then
12190   enableval=$enable_aboutdlg;
12191                           if test "$enableval" = yes; then
12192                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12193                           else
12194                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12195                           fi
12196
12197 else
12198
12199                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12200
12201 fi
12202
12203
12204           eval "$wx_cv_use_aboutdlg"
12205
12206           if test x"$enablestring" = xdisable; then
12207             if test $wxUSE_ABOUTDLG = yes; then
12208               result=no
12209             else
12210               result=yes
12211             fi
12212           else
12213             result=$wxUSE_ABOUTDLG
12214           fi
12215
12216           { echo "$as_me:$LINENO: result: $result" >&5
12217 echo "${ECHO_T}$result" >&6; }
12218
12219
12220           enablestring=
12221           defaultval=$wxUSE_ALL_FEATURES
12222           if test -z "$defaultval"; then
12223               if test x"$enablestring" = xdisable; then
12224                   defaultval=yes
12225               else
12226                   defaultval=no
12227               fi
12228           fi
12229
12230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12231 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12232           # Check whether --enable-choicedlg was given.
12233 if test "${enable_choicedlg+set}" = set; then
12234   enableval=$enable_choicedlg;
12235                           if test "$enableval" = yes; then
12236                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12237                           else
12238                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12239                           fi
12240
12241 else
12242
12243                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12244
12245 fi
12246
12247
12248           eval "$wx_cv_use_choicedlg"
12249
12250           if test x"$enablestring" = xdisable; then
12251             if test $wxUSE_CHOICEDLG = yes; then
12252               result=no
12253             else
12254               result=yes
12255             fi
12256           else
12257             result=$wxUSE_CHOICEDLG
12258           fi
12259
12260           { echo "$as_me:$LINENO: result: $result" >&5
12261 echo "${ECHO_T}$result" >&6; }
12262
12263
12264           enablestring=
12265           defaultval=$wxUSE_ALL_FEATURES
12266           if test -z "$defaultval"; then
12267               if test x"$enablestring" = xdisable; then
12268                   defaultval=yes
12269               else
12270                   defaultval=no
12271               fi
12272           fi
12273
12274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12275 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12276           # Check whether --enable-coldlg was given.
12277 if test "${enable_coldlg+set}" = set; then
12278   enableval=$enable_coldlg;
12279                           if test "$enableval" = yes; then
12280                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12281                           else
12282                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12283                           fi
12284
12285 else
12286
12287                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12288
12289 fi
12290
12291
12292           eval "$wx_cv_use_coldlg"
12293
12294           if test x"$enablestring" = xdisable; then
12295             if test $wxUSE_COLOURDLG = yes; then
12296               result=no
12297             else
12298               result=yes
12299             fi
12300           else
12301             result=$wxUSE_COLOURDLG
12302           fi
12303
12304           { echo "$as_me:$LINENO: result: $result" >&5
12305 echo "${ECHO_T}$result" >&6; }
12306
12307
12308           enablestring=
12309           defaultval=$wxUSE_ALL_FEATURES
12310           if test -z "$defaultval"; then
12311               if test x"$enablestring" = xdisable; then
12312                   defaultval=yes
12313               else
12314                   defaultval=no
12315               fi
12316           fi
12317
12318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12319 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12320           # Check whether --enable-filedlg was given.
12321 if test "${enable_filedlg+set}" = set; then
12322   enableval=$enable_filedlg;
12323                           if test "$enableval" = yes; then
12324                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12325                           else
12326                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12327                           fi
12328
12329 else
12330
12331                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12332
12333 fi
12334
12335
12336           eval "$wx_cv_use_filedlg"
12337
12338           if test x"$enablestring" = xdisable; then
12339             if test $wxUSE_FILEDLG = yes; then
12340               result=no
12341             else
12342               result=yes
12343             fi
12344           else
12345             result=$wxUSE_FILEDLG
12346           fi
12347
12348           { echo "$as_me:$LINENO: result: $result" >&5
12349 echo "${ECHO_T}$result" >&6; }
12350
12351
12352           enablestring=
12353           defaultval=$wxUSE_ALL_FEATURES
12354           if test -z "$defaultval"; then
12355               if test x"$enablestring" = xdisable; then
12356                   defaultval=yes
12357               else
12358                   defaultval=no
12359               fi
12360           fi
12361
12362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12363 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12364           # Check whether --enable-finddlg was given.
12365 if test "${enable_finddlg+set}" = set; then
12366   enableval=$enable_finddlg;
12367                           if test "$enableval" = yes; then
12368                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12369                           else
12370                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12371                           fi
12372
12373 else
12374
12375                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12376
12377 fi
12378
12379
12380           eval "$wx_cv_use_finddlg"
12381
12382           if test x"$enablestring" = xdisable; then
12383             if test $wxUSE_FINDREPLDLG = yes; then
12384               result=no
12385             else
12386               result=yes
12387             fi
12388           else
12389             result=$wxUSE_FINDREPLDLG
12390           fi
12391
12392           { echo "$as_me:$LINENO: result: $result" >&5
12393 echo "${ECHO_T}$result" >&6; }
12394
12395
12396           enablestring=
12397           defaultval=$wxUSE_ALL_FEATURES
12398           if test -z "$defaultval"; then
12399               if test x"$enablestring" = xdisable; then
12400                   defaultval=yes
12401               else
12402                   defaultval=no
12403               fi
12404           fi
12405
12406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12407 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12408           # Check whether --enable-fontdlg was given.
12409 if test "${enable_fontdlg+set}" = set; then
12410   enableval=$enable_fontdlg;
12411                           if test "$enableval" = yes; then
12412                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12413                           else
12414                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12415                           fi
12416
12417 else
12418
12419                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12420
12421 fi
12422
12423
12424           eval "$wx_cv_use_fontdlg"
12425
12426           if test x"$enablestring" = xdisable; then
12427             if test $wxUSE_FONTDLG = yes; then
12428               result=no
12429             else
12430               result=yes
12431             fi
12432           else
12433             result=$wxUSE_FONTDLG
12434           fi
12435
12436           { echo "$as_me:$LINENO: result: $result" >&5
12437 echo "${ECHO_T}$result" >&6; }
12438
12439
12440           enablestring=
12441           defaultval=$wxUSE_ALL_FEATURES
12442           if test -z "$defaultval"; then
12443               if test x"$enablestring" = xdisable; then
12444                   defaultval=yes
12445               else
12446                   defaultval=no
12447               fi
12448           fi
12449
12450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12451 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12452           # Check whether --enable-dirdlg was given.
12453 if test "${enable_dirdlg+set}" = set; then
12454   enableval=$enable_dirdlg;
12455                           if test "$enableval" = yes; then
12456                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12457                           else
12458                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12459                           fi
12460
12461 else
12462
12463                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12464
12465 fi
12466
12467
12468           eval "$wx_cv_use_dirdlg"
12469
12470           if test x"$enablestring" = xdisable; then
12471             if test $wxUSE_DIRDLG = yes; then
12472               result=no
12473             else
12474               result=yes
12475             fi
12476           else
12477             result=$wxUSE_DIRDLG
12478           fi
12479
12480           { echo "$as_me:$LINENO: result: $result" >&5
12481 echo "${ECHO_T}$result" >&6; }
12482
12483
12484           enablestring=
12485           defaultval=$wxUSE_ALL_FEATURES
12486           if test -z "$defaultval"; then
12487               if test x"$enablestring" = xdisable; then
12488                   defaultval=yes
12489               else
12490                   defaultval=no
12491               fi
12492           fi
12493
12494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12495 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12496           # Check whether --enable-msgdlg was given.
12497 if test "${enable_msgdlg+set}" = set; then
12498   enableval=$enable_msgdlg;
12499                           if test "$enableval" = yes; then
12500                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12501                           else
12502                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12503                           fi
12504
12505 else
12506
12507                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12508
12509 fi
12510
12511
12512           eval "$wx_cv_use_msgdlg"
12513
12514           if test x"$enablestring" = xdisable; then
12515             if test $wxUSE_MSGDLG = yes; then
12516               result=no
12517             else
12518               result=yes
12519             fi
12520           else
12521             result=$wxUSE_MSGDLG
12522           fi
12523
12524           { echo "$as_me:$LINENO: result: $result" >&5
12525 echo "${ECHO_T}$result" >&6; }
12526
12527
12528           enablestring=
12529           defaultval=$wxUSE_ALL_FEATURES
12530           if test -z "$defaultval"; then
12531               if test x"$enablestring" = xdisable; then
12532                   defaultval=yes
12533               else
12534                   defaultval=no
12535               fi
12536           fi
12537
12538           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12539 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12540           # Check whether --enable-numberdlg was given.
12541 if test "${enable_numberdlg+set}" = set; then
12542   enableval=$enable_numberdlg;
12543                           if test "$enableval" = yes; then
12544                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12545                           else
12546                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12547                           fi
12548
12549 else
12550
12551                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12552
12553 fi
12554
12555
12556           eval "$wx_cv_use_numberdlg"
12557
12558           if test x"$enablestring" = xdisable; then
12559             if test $wxUSE_NUMBERDLG = yes; then
12560               result=no
12561             else
12562               result=yes
12563             fi
12564           else
12565             result=$wxUSE_NUMBERDLG
12566           fi
12567
12568           { echo "$as_me:$LINENO: result: $result" >&5
12569 echo "${ECHO_T}$result" >&6; }
12570
12571
12572           enablestring=
12573           defaultval=$wxUSE_ALL_FEATURES
12574           if test -z "$defaultval"; then
12575               if test x"$enablestring" = xdisable; then
12576                   defaultval=yes
12577               else
12578                   defaultval=no
12579               fi
12580           fi
12581
12582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12583 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12584           # Check whether --enable-splash was given.
12585 if test "${enable_splash+set}" = set; then
12586   enableval=$enable_splash;
12587                           if test "$enableval" = yes; then
12588                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12589                           else
12590                             wx_cv_use_splash='wxUSE_SPLASH=no'
12591                           fi
12592
12593 else
12594
12595                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12596
12597 fi
12598
12599
12600           eval "$wx_cv_use_splash"
12601
12602           if test x"$enablestring" = xdisable; then
12603             if test $wxUSE_SPLASH = yes; then
12604               result=no
12605             else
12606               result=yes
12607             fi
12608           else
12609             result=$wxUSE_SPLASH
12610           fi
12611
12612           { echo "$as_me:$LINENO: result: $result" >&5
12613 echo "${ECHO_T}$result" >&6; }
12614
12615
12616           enablestring=
12617           defaultval=$wxUSE_ALL_FEATURES
12618           if test -z "$defaultval"; then
12619               if test x"$enablestring" = xdisable; then
12620                   defaultval=yes
12621               else
12622                   defaultval=no
12623               fi
12624           fi
12625
12626           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12627 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12628           # Check whether --enable-textdlg was given.
12629 if test "${enable_textdlg+set}" = set; then
12630   enableval=$enable_textdlg;
12631                           if test "$enableval" = yes; then
12632                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12633                           else
12634                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12635                           fi
12636
12637 else
12638
12639                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12640
12641 fi
12642
12643
12644           eval "$wx_cv_use_textdlg"
12645
12646           if test x"$enablestring" = xdisable; then
12647             if test $wxUSE_TEXTDLG = yes; then
12648               result=no
12649             else
12650               result=yes
12651             fi
12652           else
12653             result=$wxUSE_TEXTDLG
12654           fi
12655
12656           { echo "$as_me:$LINENO: result: $result" >&5
12657 echo "${ECHO_T}$result" >&6; }
12658
12659
12660           enablestring=
12661           defaultval=$wxUSE_ALL_FEATURES
12662           if test -z "$defaultval"; then
12663               if test x"$enablestring" = xdisable; then
12664                   defaultval=yes
12665               else
12666                   defaultval=no
12667               fi
12668           fi
12669
12670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12671 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12672           # Check whether --enable-tipdlg was given.
12673 if test "${enable_tipdlg+set}" = set; then
12674   enableval=$enable_tipdlg;
12675                           if test "$enableval" = yes; then
12676                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12677                           else
12678                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12679                           fi
12680
12681 else
12682
12683                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12684
12685 fi
12686
12687
12688           eval "$wx_cv_use_tipdlg"
12689
12690           if test x"$enablestring" = xdisable; then
12691             if test $wxUSE_STARTUP_TIPS = yes; then
12692               result=no
12693             else
12694               result=yes
12695             fi
12696           else
12697             result=$wxUSE_STARTUP_TIPS
12698           fi
12699
12700           { echo "$as_me:$LINENO: result: $result" >&5
12701 echo "${ECHO_T}$result" >&6; }
12702
12703
12704           enablestring=
12705           defaultval=$wxUSE_ALL_FEATURES
12706           if test -z "$defaultval"; then
12707               if test x"$enablestring" = xdisable; then
12708                   defaultval=yes
12709               else
12710                   defaultval=no
12711               fi
12712           fi
12713
12714           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12715 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12716           # Check whether --enable-progressdlg was given.
12717 if test "${enable_progressdlg+set}" = set; then
12718   enableval=$enable_progressdlg;
12719                           if test "$enableval" = yes; then
12720                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12721                           else
12722                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12723                           fi
12724
12725 else
12726
12727                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12728
12729 fi
12730
12731
12732           eval "$wx_cv_use_progressdlg"
12733
12734           if test x"$enablestring" = xdisable; then
12735             if test $wxUSE_PROGRESSDLG = yes; then
12736               result=no
12737             else
12738               result=yes
12739             fi
12740           else
12741             result=$wxUSE_PROGRESSDLG
12742           fi
12743
12744           { echo "$as_me:$LINENO: result: $result" >&5
12745 echo "${ECHO_T}$result" >&6; }
12746
12747
12748           enablestring=
12749           defaultval=$wxUSE_ALL_FEATURES
12750           if test -z "$defaultval"; then
12751               if test x"$enablestring" = xdisable; then
12752                   defaultval=yes
12753               else
12754                   defaultval=no
12755               fi
12756           fi
12757
12758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12759 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12760           # Check whether --enable-wizarddlg was given.
12761 if test "${enable_wizarddlg+set}" = set; then
12762   enableval=$enable_wizarddlg;
12763                           if test "$enableval" = yes; then
12764                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12765                           else
12766                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12767                           fi
12768
12769 else
12770
12771                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12772
12773 fi
12774
12775
12776           eval "$wx_cv_use_wizarddlg"
12777
12778           if test x"$enablestring" = xdisable; then
12779             if test $wxUSE_WIZARDDLG = yes; then
12780               result=no
12781             else
12782               result=yes
12783             fi
12784           else
12785             result=$wxUSE_WIZARDDLG
12786           fi
12787
12788           { echo "$as_me:$LINENO: result: $result" >&5
12789 echo "${ECHO_T}$result" >&6; }
12790
12791
12792
12793
12794           enablestring=
12795           defaultval=$wxUSE_ALL_FEATURES
12796           if test -z "$defaultval"; then
12797               if test x"$enablestring" = xdisable; then
12798                   defaultval=yes
12799               else
12800                   defaultval=no
12801               fi
12802           fi
12803
12804           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12805 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12806           # Check whether --enable-menus was given.
12807 if test "${enable_menus+set}" = set; then
12808   enableval=$enable_menus;
12809                           if test "$enableval" = yes; then
12810                             wx_cv_use_menus='wxUSE_MENUS=yes'
12811                           else
12812                             wx_cv_use_menus='wxUSE_MENUS=no'
12813                           fi
12814
12815 else
12816
12817                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12818
12819 fi
12820
12821
12822           eval "$wx_cv_use_menus"
12823
12824           if test x"$enablestring" = xdisable; then
12825             if test $wxUSE_MENUS = yes; then
12826               result=no
12827             else
12828               result=yes
12829             fi
12830           else
12831             result=$wxUSE_MENUS
12832           fi
12833
12834           { echo "$as_me:$LINENO: result: $result" >&5
12835 echo "${ECHO_T}$result" >&6; }
12836
12837
12838           enablestring=
12839           defaultval=$wxUSE_ALL_FEATURES
12840           if test -z "$defaultval"; then
12841               if test x"$enablestring" = xdisable; then
12842                   defaultval=yes
12843               else
12844                   defaultval=no
12845               fi
12846           fi
12847
12848           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12849 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12850           # Check whether --enable-miniframe was given.
12851 if test "${enable_miniframe+set}" = set; then
12852   enableval=$enable_miniframe;
12853                           if test "$enableval" = yes; then
12854                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12855                           else
12856                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12857                           fi
12858
12859 else
12860
12861                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12862
12863 fi
12864
12865
12866           eval "$wx_cv_use_miniframe"
12867
12868           if test x"$enablestring" = xdisable; then
12869             if test $wxUSE_MINIFRAME = yes; then
12870               result=no
12871             else
12872               result=yes
12873             fi
12874           else
12875             result=$wxUSE_MINIFRAME
12876           fi
12877
12878           { echo "$as_me:$LINENO: result: $result" >&5
12879 echo "${ECHO_T}$result" >&6; }
12880
12881
12882           enablestring=
12883           defaultval=$wxUSE_ALL_FEATURES
12884           if test -z "$defaultval"; then
12885               if test x"$enablestring" = xdisable; then
12886                   defaultval=yes
12887               else
12888                   defaultval=no
12889               fi
12890           fi
12891
12892           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12893 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12894           # Check whether --enable-tooltips was given.
12895 if test "${enable_tooltips+set}" = set; then
12896   enableval=$enable_tooltips;
12897                           if test "$enableval" = yes; then
12898                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12899                           else
12900                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12901                           fi
12902
12903 else
12904
12905                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12906
12907 fi
12908
12909
12910           eval "$wx_cv_use_tooltips"
12911
12912           if test x"$enablestring" = xdisable; then
12913             if test $wxUSE_TOOLTIPS = yes; then
12914               result=no
12915             else
12916               result=yes
12917             fi
12918           else
12919             result=$wxUSE_TOOLTIPS
12920           fi
12921
12922           { echo "$as_me:$LINENO: result: $result" >&5
12923 echo "${ECHO_T}$result" >&6; }
12924
12925
12926           enablestring=
12927           defaultval=$wxUSE_ALL_FEATURES
12928           if test -z "$defaultval"; then
12929               if test x"$enablestring" = xdisable; then
12930                   defaultval=yes
12931               else
12932                   defaultval=no
12933               fi
12934           fi
12935
12936           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12937 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12938           # Check whether --enable-splines was given.
12939 if test "${enable_splines+set}" = set; then
12940   enableval=$enable_splines;
12941                           if test "$enableval" = yes; then
12942                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12943                           else
12944                             wx_cv_use_splines='wxUSE_SPLINES=no'
12945                           fi
12946
12947 else
12948
12949                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12950
12951 fi
12952
12953
12954           eval "$wx_cv_use_splines"
12955
12956           if test x"$enablestring" = xdisable; then
12957             if test $wxUSE_SPLINES = yes; then
12958               result=no
12959             else
12960               result=yes
12961             fi
12962           else
12963             result=$wxUSE_SPLINES
12964           fi
12965
12966           { echo "$as_me:$LINENO: result: $result" >&5
12967 echo "${ECHO_T}$result" >&6; }
12968
12969
12970           enablestring=
12971           defaultval=$wxUSE_ALL_FEATURES
12972           if test -z "$defaultval"; then
12973               if test x"$enablestring" = xdisable; then
12974                   defaultval=yes
12975               else
12976                   defaultval=no
12977               fi
12978           fi
12979
12980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12981 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12982           # Check whether --enable-mousewheel was given.
12983 if test "${enable_mousewheel+set}" = set; then
12984   enableval=$enable_mousewheel;
12985                           if test "$enableval" = yes; then
12986                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12987                           else
12988                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12989                           fi
12990
12991 else
12992
12993                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12994
12995 fi
12996
12997
12998           eval "$wx_cv_use_mousewheel"
12999
13000           if test x"$enablestring" = xdisable; then
13001             if test $wxUSE_MOUSEWHEEL = yes; then
13002               result=no
13003             else
13004               result=yes
13005             fi
13006           else
13007             result=$wxUSE_MOUSEWHEEL
13008           fi
13009
13010           { echo "$as_me:$LINENO: result: $result" >&5
13011 echo "${ECHO_T}$result" >&6; }
13012
13013
13014           enablestring=
13015           defaultval=$wxUSE_ALL_FEATURES
13016           if test -z "$defaultval"; then
13017               if test x"$enablestring" = xdisable; then
13018                   defaultval=yes
13019               else
13020                   defaultval=no
13021               fi
13022           fi
13023
13024           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13025 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13026           # Check whether --enable-validators was given.
13027 if test "${enable_validators+set}" = set; then
13028   enableval=$enable_validators;
13029                           if test "$enableval" = yes; then
13030                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13031                           else
13032                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13033                           fi
13034
13035 else
13036
13037                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13038
13039 fi
13040
13041
13042           eval "$wx_cv_use_validators"
13043
13044           if test x"$enablestring" = xdisable; then
13045             if test $wxUSE_VALIDATORS = yes; then
13046               result=no
13047             else
13048               result=yes
13049             fi
13050           else
13051             result=$wxUSE_VALIDATORS
13052           fi
13053
13054           { echo "$as_me:$LINENO: result: $result" >&5
13055 echo "${ECHO_T}$result" >&6; }
13056
13057
13058           enablestring=
13059           defaultval=$wxUSE_ALL_FEATURES
13060           if test -z "$defaultval"; then
13061               if test x"$enablestring" = xdisable; then
13062                   defaultval=yes
13063               else
13064                   defaultval=no
13065               fi
13066           fi
13067
13068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13069 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13070           # Check whether --enable-busyinfo was given.
13071 if test "${enable_busyinfo+set}" = set; then
13072   enableval=$enable_busyinfo;
13073                           if test "$enableval" = yes; then
13074                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13075                           else
13076                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13077                           fi
13078
13079 else
13080
13081                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13082
13083 fi
13084
13085
13086           eval "$wx_cv_use_busyinfo"
13087
13088           if test x"$enablestring" = xdisable; then
13089             if test $wxUSE_BUSYINFO = yes; then
13090               result=no
13091             else
13092               result=yes
13093             fi
13094           else
13095             result=$wxUSE_BUSYINFO
13096           fi
13097
13098           { echo "$as_me:$LINENO: result: $result" >&5
13099 echo "${ECHO_T}$result" >&6; }
13100
13101
13102           enablestring=
13103           defaultval=$wxUSE_ALL_FEATURES
13104           if test -z "$defaultval"; then
13105               if test x"$enablestring" = xdisable; then
13106                   defaultval=yes
13107               else
13108                   defaultval=no
13109               fi
13110           fi
13111
13112           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13113 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13114           # Check whether --enable-joystick was given.
13115 if test "${enable_joystick+set}" = set; then
13116   enableval=$enable_joystick;
13117                           if test "$enableval" = yes; then
13118                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13119                           else
13120                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13121                           fi
13122
13123 else
13124
13125                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13126
13127 fi
13128
13129
13130           eval "$wx_cv_use_joystick"
13131
13132           if test x"$enablestring" = xdisable; then
13133             if test $wxUSE_JOYSTICK = yes; then
13134               result=no
13135             else
13136               result=yes
13137             fi
13138           else
13139             result=$wxUSE_JOYSTICK
13140           fi
13141
13142           { echo "$as_me:$LINENO: result: $result" >&5
13143 echo "${ECHO_T}$result" >&6; }
13144
13145
13146           enablestring=
13147           defaultval=$wxUSE_ALL_FEATURES
13148           if test -z "$defaultval"; then
13149               if test x"$enablestring" = xdisable; then
13150                   defaultval=yes
13151               else
13152                   defaultval=no
13153               fi
13154           fi
13155
13156           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13157 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13158           # Check whether --enable-metafile was given.
13159 if test "${enable_metafile+set}" = set; then
13160   enableval=$enable_metafile;
13161                           if test "$enableval" = yes; then
13162                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13163                           else
13164                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13165                           fi
13166
13167 else
13168
13169                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13170
13171 fi
13172
13173
13174           eval "$wx_cv_use_metafile"
13175
13176           if test x"$enablestring" = xdisable; then
13177             if test $wxUSE_METAFILE = yes; then
13178               result=no
13179             else
13180               result=yes
13181             fi
13182           else
13183             result=$wxUSE_METAFILE
13184           fi
13185
13186           { echo "$as_me:$LINENO: result: $result" >&5
13187 echo "${ECHO_T}$result" >&6; }
13188
13189
13190           enablestring=
13191           defaultval=$wxUSE_ALL_FEATURES
13192           if test -z "$defaultval"; then
13193               if test x"$enablestring" = xdisable; then
13194                   defaultval=yes
13195               else
13196                   defaultval=no
13197               fi
13198           fi
13199
13200           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13201 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13202           # Check whether --enable-dragimage was given.
13203 if test "${enable_dragimage+set}" = set; then
13204   enableval=$enable_dragimage;
13205                           if test "$enableval" = yes; then
13206                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13207                           else
13208                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13209                           fi
13210
13211 else
13212
13213                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13214
13215 fi
13216
13217
13218           eval "$wx_cv_use_dragimage"
13219
13220           if test x"$enablestring" = xdisable; then
13221             if test $wxUSE_DRAGIMAGE = yes; then
13222               result=no
13223             else
13224               result=yes
13225             fi
13226           else
13227             result=$wxUSE_DRAGIMAGE
13228           fi
13229
13230           { echo "$as_me:$LINENO: result: $result" >&5
13231 echo "${ECHO_T}$result" >&6; }
13232
13233
13234           enablestring=
13235           defaultval=$wxUSE_ALL_FEATURES
13236           if test -z "$defaultval"; then
13237               if test x"$enablestring" = xdisable; then
13238                   defaultval=yes
13239               else
13240                   defaultval=no
13241               fi
13242           fi
13243
13244           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13245 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13246           # Check whether --enable-accessibility was given.
13247 if test "${enable_accessibility+set}" = set; then
13248   enableval=$enable_accessibility;
13249                           if test "$enableval" = yes; then
13250                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13251                           else
13252                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13253                           fi
13254
13255 else
13256
13257                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13258
13259 fi
13260
13261
13262           eval "$wx_cv_use_accessibility"
13263
13264           if test x"$enablestring" = xdisable; then
13265             if test $wxUSE_ACCESSIBILITY = yes; then
13266               result=no
13267             else
13268               result=yes
13269             fi
13270           else
13271             result=$wxUSE_ACCESSIBILITY
13272           fi
13273
13274           { echo "$as_me:$LINENO: result: $result" >&5
13275 echo "${ECHO_T}$result" >&6; }
13276
13277
13278
13279
13280           enablestring=
13281           defaultval=$wxUSE_ALL_FEATURES
13282           if test -z "$defaultval"; then
13283               if test x"$enablestring" = xdisable; then
13284                   defaultval=yes
13285               else
13286                   defaultval=no
13287               fi
13288           fi
13289
13290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13291 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13292           # Check whether --enable-palette was given.
13293 if test "${enable_palette+set}" = set; then
13294   enableval=$enable_palette;
13295                           if test "$enableval" = yes; then
13296                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13297                           else
13298                             wx_cv_use_palette='wxUSE_PALETTE=no'
13299                           fi
13300
13301 else
13302
13303                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13304
13305 fi
13306
13307
13308           eval "$wx_cv_use_palette"
13309
13310           if test x"$enablestring" = xdisable; then
13311             if test $wxUSE_PALETTE = yes; then
13312               result=no
13313             else
13314               result=yes
13315             fi
13316           else
13317             result=$wxUSE_PALETTE
13318           fi
13319
13320           { echo "$as_me:$LINENO: result: $result" >&5
13321 echo "${ECHO_T}$result" >&6; }
13322
13323
13324           enablestring=
13325           defaultval=$wxUSE_ALL_FEATURES
13326           if test -z "$defaultval"; then
13327               if test x"$enablestring" = xdisable; then
13328                   defaultval=yes
13329               else
13330                   defaultval=no
13331               fi
13332           fi
13333
13334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13335 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13336           # Check whether --enable-image was given.
13337 if test "${enable_image+set}" = set; then
13338   enableval=$enable_image;
13339                           if test "$enableval" = yes; then
13340                             wx_cv_use_image='wxUSE_IMAGE=yes'
13341                           else
13342                             wx_cv_use_image='wxUSE_IMAGE=no'
13343                           fi
13344
13345 else
13346
13347                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13348
13349 fi
13350
13351
13352           eval "$wx_cv_use_image"
13353
13354           if test x"$enablestring" = xdisable; then
13355             if test $wxUSE_IMAGE = yes; then
13356               result=no
13357             else
13358               result=yes
13359             fi
13360           else
13361             result=$wxUSE_IMAGE
13362           fi
13363
13364           { echo "$as_me:$LINENO: result: $result" >&5
13365 echo "${ECHO_T}$result" >&6; }
13366
13367
13368           enablestring=
13369           defaultval=$wxUSE_ALL_FEATURES
13370           if test -z "$defaultval"; then
13371               if test x"$enablestring" = xdisable; then
13372                   defaultval=yes
13373               else
13374                   defaultval=no
13375               fi
13376           fi
13377
13378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13379 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13380           # Check whether --enable-gif was given.
13381 if test "${enable_gif+set}" = set; then
13382   enableval=$enable_gif;
13383                           if test "$enableval" = yes; then
13384                             wx_cv_use_gif='wxUSE_GIF=yes'
13385                           else
13386                             wx_cv_use_gif='wxUSE_GIF=no'
13387                           fi
13388
13389 else
13390
13391                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13392
13393 fi
13394
13395
13396           eval "$wx_cv_use_gif"
13397
13398           if test x"$enablestring" = xdisable; then
13399             if test $wxUSE_GIF = yes; then
13400               result=no
13401             else
13402               result=yes
13403             fi
13404           else
13405             result=$wxUSE_GIF
13406           fi
13407
13408           { echo "$as_me:$LINENO: result: $result" >&5
13409 echo "${ECHO_T}$result" >&6; }
13410
13411
13412           enablestring=
13413           defaultval=$wxUSE_ALL_FEATURES
13414           if test -z "$defaultval"; then
13415               if test x"$enablestring" = xdisable; then
13416                   defaultval=yes
13417               else
13418                   defaultval=no
13419               fi
13420           fi
13421
13422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13423 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13424           # Check whether --enable-pcx was given.
13425 if test "${enable_pcx+set}" = set; then
13426   enableval=$enable_pcx;
13427                           if test "$enableval" = yes; then
13428                             wx_cv_use_pcx='wxUSE_PCX=yes'
13429                           else
13430                             wx_cv_use_pcx='wxUSE_PCX=no'
13431                           fi
13432
13433 else
13434
13435                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13436
13437 fi
13438
13439
13440           eval "$wx_cv_use_pcx"
13441
13442           if test x"$enablestring" = xdisable; then
13443             if test $wxUSE_PCX = yes; then
13444               result=no
13445             else
13446               result=yes
13447             fi
13448           else
13449             result=$wxUSE_PCX
13450           fi
13451
13452           { echo "$as_me:$LINENO: result: $result" >&5
13453 echo "${ECHO_T}$result" >&6; }
13454
13455
13456           enablestring=
13457           defaultval=$wxUSE_ALL_FEATURES
13458           if test -z "$defaultval"; then
13459               if test x"$enablestring" = xdisable; then
13460                   defaultval=yes
13461               else
13462                   defaultval=no
13463               fi
13464           fi
13465
13466           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13467 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13468           # Check whether --enable-tga was given.
13469 if test "${enable_tga+set}" = set; then
13470   enableval=$enable_tga;
13471                           if test "$enableval" = yes; then
13472                             wx_cv_use_tga='wxUSE_TGA=yes'
13473                           else
13474                             wx_cv_use_tga='wxUSE_TGA=no'
13475                           fi
13476
13477 else
13478
13479                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13480
13481 fi
13482
13483
13484           eval "$wx_cv_use_tga"
13485
13486           if test x"$enablestring" = xdisable; then
13487             if test $wxUSE_TGA = yes; then
13488               result=no
13489             else
13490               result=yes
13491             fi
13492           else
13493             result=$wxUSE_TGA
13494           fi
13495
13496           { echo "$as_me:$LINENO: result: $result" >&5
13497 echo "${ECHO_T}$result" >&6; }
13498
13499
13500           enablestring=
13501           defaultval=$wxUSE_ALL_FEATURES
13502           if test -z "$defaultval"; then
13503               if test x"$enablestring" = xdisable; then
13504                   defaultval=yes
13505               else
13506                   defaultval=no
13507               fi
13508           fi
13509
13510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13511 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13512           # Check whether --enable-iff was given.
13513 if test "${enable_iff+set}" = set; then
13514   enableval=$enable_iff;
13515                           if test "$enableval" = yes; then
13516                             wx_cv_use_iff='wxUSE_IFF=yes'
13517                           else
13518                             wx_cv_use_iff='wxUSE_IFF=no'
13519                           fi
13520
13521 else
13522
13523                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13524
13525 fi
13526
13527
13528           eval "$wx_cv_use_iff"
13529
13530           if test x"$enablestring" = xdisable; then
13531             if test $wxUSE_IFF = yes; then
13532               result=no
13533             else
13534               result=yes
13535             fi
13536           else
13537             result=$wxUSE_IFF
13538           fi
13539
13540           { echo "$as_me:$LINENO: result: $result" >&5
13541 echo "${ECHO_T}$result" >&6; }
13542
13543
13544           enablestring=
13545           defaultval=$wxUSE_ALL_FEATURES
13546           if test -z "$defaultval"; then
13547               if test x"$enablestring" = xdisable; then
13548                   defaultval=yes
13549               else
13550                   defaultval=no
13551               fi
13552           fi
13553
13554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13555 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13556           # Check whether --enable-pnm was given.
13557 if test "${enable_pnm+set}" = set; then
13558   enableval=$enable_pnm;
13559                           if test "$enableval" = yes; then
13560                             wx_cv_use_pnm='wxUSE_PNM=yes'
13561                           else
13562                             wx_cv_use_pnm='wxUSE_PNM=no'
13563                           fi
13564
13565 else
13566
13567                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13568
13569 fi
13570
13571
13572           eval "$wx_cv_use_pnm"
13573
13574           if test x"$enablestring" = xdisable; then
13575             if test $wxUSE_PNM = yes; then
13576               result=no
13577             else
13578               result=yes
13579             fi
13580           else
13581             result=$wxUSE_PNM
13582           fi
13583
13584           { echo "$as_me:$LINENO: result: $result" >&5
13585 echo "${ECHO_T}$result" >&6; }
13586
13587
13588           enablestring=
13589           defaultval=$wxUSE_ALL_FEATURES
13590           if test -z "$defaultval"; then
13591               if test x"$enablestring" = xdisable; then
13592                   defaultval=yes
13593               else
13594                   defaultval=no
13595               fi
13596           fi
13597
13598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13599 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13600           # Check whether --enable-xpm was given.
13601 if test "${enable_xpm+set}" = set; then
13602   enableval=$enable_xpm;
13603                           if test "$enableval" = yes; then
13604                             wx_cv_use_xpm='wxUSE_XPM=yes'
13605                           else
13606                             wx_cv_use_xpm='wxUSE_XPM=no'
13607                           fi
13608
13609 else
13610
13611                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13612
13613 fi
13614
13615
13616           eval "$wx_cv_use_xpm"
13617
13618           if test x"$enablestring" = xdisable; then
13619             if test $wxUSE_XPM = yes; then
13620               result=no
13621             else
13622               result=yes
13623             fi
13624           else
13625             result=$wxUSE_XPM
13626           fi
13627
13628           { echo "$as_me:$LINENO: result: $result" >&5
13629 echo "${ECHO_T}$result" >&6; }
13630
13631
13632           enablestring=
13633           defaultval=$wxUSE_ALL_FEATURES
13634           if test -z "$defaultval"; then
13635               if test x"$enablestring" = xdisable; then
13636                   defaultval=yes
13637               else
13638                   defaultval=no
13639               fi
13640           fi
13641
13642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13643 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13644           # Check whether --enable-ico_cur was given.
13645 if test "${enable_ico_cur+set}" = set; then
13646   enableval=$enable_ico_cur;
13647                           if test "$enableval" = yes; then
13648                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13649                           else
13650                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13651                           fi
13652
13653 else
13654
13655                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13656
13657 fi
13658
13659
13660           eval "$wx_cv_use_ico_cur"
13661
13662           if test x"$enablestring" = xdisable; then
13663             if test $wxUSE_ICO_CUR = yes; then
13664               result=no
13665             else
13666               result=yes
13667             fi
13668           else
13669             result=$wxUSE_ICO_CUR
13670           fi
13671
13672           { echo "$as_me:$LINENO: result: $result" >&5
13673 echo "${ECHO_T}$result" >&6; }
13674
13675
13676
13677
13678           enablestring=
13679           defaultval=$wxUSE_ALL_FEATURES
13680           if test -z "$defaultval"; then
13681               if test x"$enablestring" = xdisable; then
13682                   defaultval=yes
13683               else
13684                   defaultval=no
13685               fi
13686           fi
13687
13688           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13689 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13690           # Check whether --enable-dccache was given.
13691 if test "${enable_dccache+set}" = set; then
13692   enableval=$enable_dccache;
13693                           if test "$enableval" = yes; then
13694                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13695                           else
13696                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13697                           fi
13698
13699 else
13700
13701                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13702
13703 fi
13704
13705
13706           eval "$wx_cv_use_dccache"
13707
13708           if test x"$enablestring" = xdisable; then
13709             if test $wxUSE_DC_CACHEING = yes; then
13710               result=no
13711             else
13712               result=yes
13713             fi
13714           else
13715             result=$wxUSE_DC_CACHEING
13716           fi
13717
13718           { echo "$as_me:$LINENO: result: $result" >&5
13719 echo "${ECHO_T}$result" >&6; }
13720
13721
13722           enablestring=
13723           defaultval=$wxUSE_ALL_FEATURES
13724           if test -z "$defaultval"; then
13725               if test x"$enablestring" = xdisable; then
13726                   defaultval=yes
13727               else
13728                   defaultval=no
13729               fi
13730           fi
13731
13732           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13733 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13734           # Check whether --enable-ps-in-msw was given.
13735 if test "${enable_ps_in_msw+set}" = set; then
13736   enableval=$enable_ps_in_msw;
13737                           if test "$enableval" = yes; then
13738                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13739                           else
13740                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13741                           fi
13742
13743 else
13744
13745                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13746
13747 fi
13748
13749
13750           eval "$wx_cv_use_ps_in_msw"
13751
13752           if test x"$enablestring" = xdisable; then
13753             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13754               result=no
13755             else
13756               result=yes
13757             fi
13758           else
13759             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13760           fi
13761
13762           { echo "$as_me:$LINENO: result: $result" >&5
13763 echo "${ECHO_T}$result" >&6; }
13764
13765
13766           enablestring=
13767           defaultval=$wxUSE_ALL_FEATURES
13768           if test -z "$defaultval"; then
13769               if test x"$enablestring" = xdisable; then
13770                   defaultval=yes
13771               else
13772                   defaultval=no
13773               fi
13774           fi
13775
13776           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13777 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13778           # Check whether --enable-ownerdrawn was given.
13779 if test "${enable_ownerdrawn+set}" = set; then
13780   enableval=$enable_ownerdrawn;
13781                           if test "$enableval" = yes; then
13782                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13783                           else
13784                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13785                           fi
13786
13787 else
13788
13789                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13790
13791 fi
13792
13793
13794           eval "$wx_cv_use_ownerdrawn"
13795
13796           if test x"$enablestring" = xdisable; then
13797             if test $wxUSE_OWNER_DRAWN = yes; then
13798               result=no
13799             else
13800               result=yes
13801             fi
13802           else
13803             result=$wxUSE_OWNER_DRAWN
13804           fi
13805
13806           { echo "$as_me:$LINENO: result: $result" >&5
13807 echo "${ECHO_T}$result" >&6; }
13808
13809
13810           enablestring=
13811           defaultval=$wxUSE_ALL_FEATURES
13812           if test -z "$defaultval"; then
13813               if test x"$enablestring" = xdisable; then
13814                   defaultval=yes
13815               else
13816                   defaultval=no
13817               fi
13818           fi
13819
13820           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13821 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13822           # Check whether --enable-uxtheme was given.
13823 if test "${enable_uxtheme+set}" = set; then
13824   enableval=$enable_uxtheme;
13825                           if test "$enableval" = yes; then
13826                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13827                           else
13828                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13829                           fi
13830
13831 else
13832
13833                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13834
13835 fi
13836
13837
13838           eval "$wx_cv_use_uxtheme"
13839
13840           if test x"$enablestring" = xdisable; then
13841             if test $wxUSE_UXTHEME = yes; then
13842               result=no
13843             else
13844               result=yes
13845             fi
13846           else
13847             result=$wxUSE_UXTHEME
13848           fi
13849
13850           { echo "$as_me:$LINENO: result: $result" >&5
13851 echo "${ECHO_T}$result" >&6; }
13852
13853
13854           enablestring=
13855           defaultval=$wxUSE_ALL_FEATURES
13856           if test -z "$defaultval"; then
13857               if test x"$enablestring" = xdisable; then
13858                   defaultval=yes
13859               else
13860                   defaultval=no
13861               fi
13862           fi
13863
13864           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13865 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13866           # Check whether --enable-wxdib was given.
13867 if test "${enable_wxdib+set}" = set; then
13868   enableval=$enable_wxdib;
13869                           if test "$enableval" = yes; then
13870                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13871                           else
13872                             wx_cv_use_wxdib='wxUSE_DIB=no'
13873                           fi
13874
13875 else
13876
13877                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13878
13879 fi
13880
13881
13882           eval "$wx_cv_use_wxdib"
13883
13884           if test x"$enablestring" = xdisable; then
13885             if test $wxUSE_DIB = yes; then
13886               result=no
13887             else
13888               result=yes
13889             fi
13890           else
13891             result=$wxUSE_DIB
13892           fi
13893
13894           { echo "$as_me:$LINENO: result: $result" >&5
13895 echo "${ECHO_T}$result" >&6; }
13896
13897
13898 if test "$wxUSE_MSW" != 1; then
13899     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13900 fi
13901
13902
13903           enablestring=
13904           defaultval=$wxUSE_ALL_FEATURES
13905           if test -z "$defaultval"; then
13906               if test x"$enablestring" = xdisable; then
13907                   defaultval=yes
13908               else
13909                   defaultval=no
13910               fi
13911           fi
13912
13913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13914 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13915           # Check whether --enable-autoidman was given.
13916 if test "${enable_autoidman+set}" = set; then
13917   enableval=$enable_autoidman;
13918                           if test "$enableval" = yes; then
13919                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13920                           else
13921                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13922                           fi
13923
13924 else
13925
13926                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13927
13928 fi
13929
13930
13931           eval "$wx_cv_use_autoidman"
13932
13933           if test x"$enablestring" = xdisable; then
13934             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13935               result=no
13936             else
13937               result=yes
13938             fi
13939           else
13940             result=$wxUSE_AUTOID_MANAGEMENT
13941           fi
13942
13943           { echo "$as_me:$LINENO: result: $result" >&5
13944 echo "${ECHO_T}$result" >&6; }
13945
13946
13947 fi
13948
13949
13950 cat >confcache <<\_ACEOF
13951 # This file is a shell script that caches the results of configure
13952 # tests run on this system so they can be shared between configure
13953 # scripts and configure runs, see configure's option --config-cache.
13954 # It is not useful on other systems.  If it contains results you don't
13955 # want to keep, you may remove or edit it.
13956 #
13957 # config.status only pays attention to the cache file if you give it
13958 # the --recheck option to rerun configure.
13959 #
13960 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13961 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13962 # following values.
13963
13964 _ACEOF
13965
13966 # The following way of writing the cache mishandles newlines in values,
13967 # but we know of no workaround that is simple, portable, and efficient.
13968 # So, we kill variables containing newlines.
13969 # Ultrix sh set writes to stderr and can't be redirected directly,
13970 # and sets the high bit in the cache file unless we assign to the vars.
13971 (
13972   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13973     eval ac_val=\$$ac_var
13974     case $ac_val in #(
13975     *${as_nl}*)
13976       case $ac_var in #(
13977       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13978 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13979       esac
13980       case $ac_var in #(
13981       _ | IFS | as_nl) ;; #(
13982       *) $as_unset $ac_var ;;
13983       esac ;;
13984     esac
13985   done
13986
13987   (set) 2>&1 |
13988     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13989     *${as_nl}ac_space=\ *)
13990       # `set' does not quote correctly, so add quotes (double-quote
13991       # substitution turns \\\\ into \\, and sed turns \\ into \).
13992       sed -n \
13993         "s/'/'\\\\''/g;
13994           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13995       ;; #(
13996     *)
13997       # `set' quotes correctly as required by POSIX, so do not add quotes.
13998       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13999       ;;
14000     esac |
14001     sort
14002 ) |
14003   sed '
14004      /^ac_cv_env_/b end
14005      t clear
14006      :clear
14007      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14008      t end
14009      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14010      :end' >>confcache
14011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14012   if test -w "$cache_file"; then
14013     test "x$cache_file" != "x/dev/null" &&
14014       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14015 echo "$as_me: updating cache $cache_file" >&6;}
14016     cat confcache >$cache_file
14017   else
14018     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14019 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14020   fi
14021 fi
14022 rm -f confcache
14023
14024 CFLAGS=${CFLAGS:=}
14025
14026
14027
14028     ac_ext=c
14029 ac_cpp='$CPP $CPPFLAGS'
14030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14033 if test -n "$ac_tool_prefix"; then
14034   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14038 if test "${ac_cv_prog_CC+set}" = set; then
14039   echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041   if test -n "$CC"; then
14042   ac_cv_prog_CC="$CC" # Let the user override the test.
14043 else
14044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14045 for as_dir in $PATH
14046 do
14047   IFS=$as_save_IFS
14048   test -z "$as_dir" && as_dir=.
14049   for ac_exec_ext in '' $ac_executable_extensions; do
14050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14051     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14053     break 2
14054   fi
14055 done
14056 done
14057 IFS=$as_save_IFS
14058
14059 fi
14060 fi
14061 CC=$ac_cv_prog_CC
14062 if test -n "$CC"; then
14063   { echo "$as_me:$LINENO: result: $CC" >&5
14064 echo "${ECHO_T}$CC" >&6; }
14065 else
14066   { echo "$as_me:$LINENO: result: no" >&5
14067 echo "${ECHO_T}no" >&6; }
14068 fi
14069
14070
14071 fi
14072 if test -z "$ac_cv_prog_CC"; then
14073   ac_ct_CC=$CC
14074   # Extract the first word of "gcc", so it can be a program name with args.
14075 set dummy gcc; ac_word=$2
14076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   if test -n "$ac_ct_CC"; then
14082   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14083 else
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14086 do
14087   IFS=$as_save_IFS
14088   test -z "$as_dir" && as_dir=.
14089   for ac_exec_ext in '' $ac_executable_extensions; do
14090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14091     ac_cv_prog_ac_ct_CC="gcc"
14092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14093     break 2
14094   fi
14095 done
14096 done
14097 IFS=$as_save_IFS
14098
14099 fi
14100 fi
14101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14102 if test -n "$ac_ct_CC"; then
14103   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14104 echo "${ECHO_T}$ac_ct_CC" >&6; }
14105 else
14106   { echo "$as_me:$LINENO: result: no" >&5
14107 echo "${ECHO_T}no" >&6; }
14108 fi
14109
14110   if test "x$ac_ct_CC" = x; then
14111     CC=""
14112   else
14113     case $cross_compiling:$ac_tool_warned in
14114 yes:)
14115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14116 whose name does not start with the host triplet.  If you think this
14117 configuration is useful to you, please write to autoconf@gnu.org." >&5
14118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14119 whose name does not start with the host triplet.  If you think this
14120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14121 ac_tool_warned=yes ;;
14122 esac
14123     CC=$ac_ct_CC
14124   fi
14125 else
14126   CC="$ac_cv_prog_CC"
14127 fi
14128
14129 if test -z "$CC"; then
14130           if test -n "$ac_tool_prefix"; then
14131     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14132 set dummy ${ac_tool_prefix}cc; ac_word=$2
14133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14135 if test "${ac_cv_prog_CC+set}" = set; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   if test -n "$CC"; then
14139   ac_cv_prog_CC="$CC" # Let the user override the test.
14140 else
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $PATH
14143 do
14144   IFS=$as_save_IFS
14145   test -z "$as_dir" && as_dir=.
14146   for ac_exec_ext in '' $ac_executable_extensions; do
14147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14148     ac_cv_prog_CC="${ac_tool_prefix}cc"
14149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14150     break 2
14151   fi
14152 done
14153 done
14154 IFS=$as_save_IFS
14155
14156 fi
14157 fi
14158 CC=$ac_cv_prog_CC
14159 if test -n "$CC"; then
14160   { echo "$as_me:$LINENO: result: $CC" >&5
14161 echo "${ECHO_T}$CC" >&6; }
14162 else
14163   { echo "$as_me:$LINENO: result: no" >&5
14164 echo "${ECHO_T}no" >&6; }
14165 fi
14166
14167
14168   fi
14169 fi
14170 if test -z "$CC"; then
14171   # Extract the first word of "cc", so it can be a program name with args.
14172 set dummy cc; ac_word=$2
14173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14175 if test "${ac_cv_prog_CC+set}" = set; then
14176   echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178   if test -n "$CC"; then
14179   ac_cv_prog_CC="$CC" # Let the user override the test.
14180 else
14181   ac_prog_rejected=no
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14184 do
14185   IFS=$as_save_IFS
14186   test -z "$as_dir" && as_dir=.
14187   for ac_exec_ext in '' $ac_executable_extensions; do
14188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14189     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14190        ac_prog_rejected=yes
14191        continue
14192      fi
14193     ac_cv_prog_CC="cc"
14194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14195     break 2
14196   fi
14197 done
14198 done
14199 IFS=$as_save_IFS
14200
14201 if test $ac_prog_rejected = yes; then
14202   # We found a bogon in the path, so make sure we never use it.
14203   set dummy $ac_cv_prog_CC
14204   shift
14205   if test $# != 0; then
14206     # We chose a different compiler from the bogus one.
14207     # However, it has the same basename, so the bogon will be chosen
14208     # first if we set CC to just the basename; use the full file name.
14209     shift
14210     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14211   fi
14212 fi
14213 fi
14214 fi
14215 CC=$ac_cv_prog_CC
14216 if test -n "$CC"; then
14217   { echo "$as_me:$LINENO: result: $CC" >&5
14218 echo "${ECHO_T}$CC" >&6; }
14219 else
14220   { echo "$as_me:$LINENO: result: no" >&5
14221 echo "${ECHO_T}no" >&6; }
14222 fi
14223
14224
14225 fi
14226 if test -z "$CC"; then
14227   if test -n "$ac_tool_prefix"; then
14228   for ac_prog in cl.exe
14229   do
14230     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14234 if test "${ac_cv_prog_CC+set}" = set; then
14235   echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237   if test -n "$CC"; then
14238   ac_cv_prog_CC="$CC" # Let the user override the test.
14239 else
14240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14241 for as_dir in $PATH
14242 do
14243   IFS=$as_save_IFS
14244   test -z "$as_dir" && as_dir=.
14245   for ac_exec_ext in '' $ac_executable_extensions; do
14246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14247     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14249     break 2
14250   fi
14251 done
14252 done
14253 IFS=$as_save_IFS
14254
14255 fi
14256 fi
14257 CC=$ac_cv_prog_CC
14258 if test -n "$CC"; then
14259   { echo "$as_me:$LINENO: result: $CC" >&5
14260 echo "${ECHO_T}$CC" >&6; }
14261 else
14262   { echo "$as_me:$LINENO: result: no" >&5
14263 echo "${ECHO_T}no" >&6; }
14264 fi
14265
14266
14267     test -n "$CC" && break
14268   done
14269 fi
14270 if test -z "$CC"; then
14271   ac_ct_CC=$CC
14272   for ac_prog in cl.exe
14273 do
14274   # Extract the first word of "$ac_prog", so it can be a program name with args.
14275 set dummy $ac_prog; ac_word=$2
14276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14279   echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281   if test -n "$ac_ct_CC"; then
14282   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14283 else
14284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285 for as_dir in $PATH
14286 do
14287   IFS=$as_save_IFS
14288   test -z "$as_dir" && as_dir=.
14289   for ac_exec_ext in '' $ac_executable_extensions; do
14290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14291     ac_cv_prog_ac_ct_CC="$ac_prog"
14292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14293     break 2
14294   fi
14295 done
14296 done
14297 IFS=$as_save_IFS
14298
14299 fi
14300 fi
14301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14302 if test -n "$ac_ct_CC"; then
14303   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14304 echo "${ECHO_T}$ac_ct_CC" >&6; }
14305 else
14306   { echo "$as_me:$LINENO: result: no" >&5
14307 echo "${ECHO_T}no" >&6; }
14308 fi
14309
14310
14311   test -n "$ac_ct_CC" && break
14312 done
14313
14314   if test "x$ac_ct_CC" = x; then
14315     CC=""
14316   else
14317     case $cross_compiling:$ac_tool_warned in
14318 yes:)
14319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14320 whose name does not start with the host triplet.  If you think this
14321 configuration is useful to you, please write to autoconf@gnu.org." >&5
14322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14323 whose name does not start with the host triplet.  If you think this
14324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14325 ac_tool_warned=yes ;;
14326 esac
14327     CC=$ac_ct_CC
14328   fi
14329 fi
14330
14331 fi
14332
14333
14334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14335 See \`config.log' for more details." >&5
14336 echo "$as_me: error: no acceptable C compiler found in \$PATH
14337 See \`config.log' for more details." >&2;}
14338    { (exit 1); exit 1; }; }
14339
14340 # Provide some information about the compiler.
14341 echo "$as_me:$LINENO: checking for C compiler version" >&5
14342 ac_compiler=`set X $ac_compile; echo $2`
14343 { (ac_try="$ac_compiler --version >&5"
14344 case "(($ac_try" in
14345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346   *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349   (eval "$ac_compiler --version >&5") 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }
14353 { (ac_try="$ac_compiler -v >&5"
14354 case "(($ac_try" in
14355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356   *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359   (eval "$ac_compiler -v >&5") 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }
14363 { (ac_try="$ac_compiler -V >&5"
14364 case "(($ac_try" in
14365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366   *) ac_try_echo=$ac_try;;
14367 esac
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369   (eval "$ac_compiler -V >&5") 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); }
14373
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380
14381 int
14382 main ()
14383 {
14384
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 ac_clean_files_save=$ac_clean_files
14390 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14391 # Try to create an executable without -o first, disregard a.out.
14392 # It will help us diagnose broken compilers, and finding out an intuition
14393 # of exeext.
14394 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14395 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14396 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14397 #
14398 # List of possible output files, starting from the most likely.
14399 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14400 # only as a last resort.  b.out is created by i960 compilers.
14401 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14402 #
14403 # The IRIX 6 linker writes into existing files which may not be
14404 # executable, retaining their permissions.  Remove them first so a
14405 # subsequent execution test works.
14406 ac_rmfiles=
14407 for ac_file in $ac_files
14408 do
14409   case $ac_file in
14410     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14411     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14412   esac
14413 done
14414 rm -f $ac_rmfiles
14415
14416 if { (ac_try="$ac_link_default"
14417 case "(($ac_try" in
14418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419   *) ac_try_echo=$ac_try;;
14420 esac
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422   (eval "$ac_link_default") 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; then
14426   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14427 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14428 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14429 # so that the user can short-circuit this test for compilers unknown to
14430 # Autoconf.
14431 for ac_file in $ac_files ''
14432 do
14433   test -f "$ac_file" || continue
14434   case $ac_file in
14435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14436         ;;
14437     [ab].out )
14438         # We found the default executable, but exeext='' is most
14439         # certainly right.
14440         break;;
14441     *.* )
14442         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14443         then :; else
14444            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14445         fi
14446         # We set ac_cv_exeext here because the later test for it is not
14447         # safe: cross compilers may not add the suffix if given an `-o'
14448         # argument, so we may need to know it at that point already.
14449         # Even if this section looks crufty: it has the advantage of
14450         # actually working.
14451         break;;
14452     * )
14453         break;;
14454   esac
14455 done
14456 test "$ac_cv_exeext" = no && ac_cv_exeext=
14457
14458 else
14459   ac_file=''
14460 fi
14461
14462 { echo "$as_me:$LINENO: result: $ac_file" >&5
14463 echo "${ECHO_T}$ac_file" >&6; }
14464 if test -z "$ac_file"; then
14465   echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14469 See \`config.log' for more details." >&5
14470 echo "$as_me: error: C compiler cannot create executables
14471 See \`config.log' for more details." >&2;}
14472    { (exit 77); exit 77; }; }
14473 fi
14474
14475 ac_exeext=$ac_cv_exeext
14476
14477 # Check that the compiler produces executables we can run.  If not, either
14478 # the compiler is broken, or we cross compile.
14479 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14480 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14481 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14482 # If not cross compiling, check that we can run a simple program.
14483 if test "$cross_compiling" != yes; then
14484   if { ac_try='./$ac_file'
14485   { (case "(($ac_try" in
14486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487   *) ac_try_echo=$ac_try;;
14488 esac
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490   (eval "$ac_try") 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; }; then
14494     cross_compiling=no
14495   else
14496     if test "$cross_compiling" = maybe; then
14497         cross_compiling=yes
14498     else
14499         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14500 If you meant to cross compile, use \`--host'.
14501 See \`config.log' for more details." >&5
14502 echo "$as_me: error: cannot run C compiled programs.
14503 If you meant to cross compile, use \`--host'.
14504 See \`config.log' for more details." >&2;}
14505    { (exit 1); exit 1; }; }
14506     fi
14507   fi
14508 fi
14509 { echo "$as_me:$LINENO: result: yes" >&5
14510 echo "${ECHO_T}yes" >&6; }
14511
14512 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14513 ac_clean_files=$ac_clean_files_save
14514 # Check that the compiler produces executables we can run.  If not, either
14515 # the compiler is broken, or we cross compile.
14516 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14517 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14518 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14519 echo "${ECHO_T}$cross_compiling" >&6; }
14520
14521 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14522 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14523 if { (ac_try="$ac_link"
14524 case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_link") 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; then
14533   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14534 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14535 # work properly (i.e., refer to `conftest.exe'), while it won't with
14536 # `rm'.
14537 for ac_file in conftest.exe conftest conftest.*; do
14538   test -f "$ac_file" || continue
14539   case $ac_file in
14540     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14541     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14542           break;;
14543     * ) break;;
14544   esac
14545 done
14546 else
14547   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14548 See \`config.log' for more details." >&5
14549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14550 See \`config.log' for more details." >&2;}
14551    { (exit 1); exit 1; }; }
14552 fi
14553
14554 rm -f conftest$ac_cv_exeext
14555 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14556 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14557
14558 rm -f conftest.$ac_ext
14559 EXEEXT=$ac_cv_exeext
14560 ac_exeext=$EXEEXT
14561 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14562 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14563 if test "${ac_cv_objext+set}" = set; then
14564   echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566   cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h.  */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h.  */
14572
14573 int
14574 main ()
14575 {
14576
14577   ;
14578   return 0;
14579 }
14580 _ACEOF
14581 rm -f conftest.o conftest.obj
14582 if { (ac_try="$ac_compile"
14583 case "(($ac_try" in
14584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585   *) ac_try_echo=$ac_try;;
14586 esac
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588   (eval "$ac_compile") 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; then
14592   for ac_file in conftest.o conftest.obj conftest.*; do
14593   test -f "$ac_file" || continue;
14594   case $ac_file in
14595     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14596     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14597        break;;
14598   esac
14599 done
14600 else
14601   echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14605 See \`config.log' for more details." >&5
14606 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14607 See \`config.log' for more details." >&2;}
14608    { (exit 1); exit 1; }; }
14609 fi
14610
14611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14612 fi
14613 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14614 echo "${ECHO_T}$ac_cv_objext" >&6; }
14615 OBJEXT=$ac_cv_objext
14616 ac_objext=$OBJEXT
14617 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14620   echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622   cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628
14629 int
14630 main ()
14631 {
14632 #ifndef __GNUC__
14633        choke me
14634 #endif
14635
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 rm -f conftest.$ac_objext
14641 if { (ac_try="$ac_compile"
14642 case "(($ac_try" in
14643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644   *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647   (eval "$ac_compile") 2>conftest.er1
14648   ac_status=$?
14649   grep -v '^ *+' conftest.er1 >conftest.err
14650   rm -f conftest.er1
14651   cat conftest.err >&5
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); } && {
14654          test -z "$ac_c_werror_flag" ||
14655          test ! -s conftest.err
14656        } && test -s conftest.$ac_objext; then
14657   ac_compiler_gnu=yes
14658 else
14659   echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662         ac_compiler_gnu=no
14663 fi
14664
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14667
14668 fi
14669 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14671 GCC=`test $ac_compiler_gnu = yes && echo yes`
14672 ac_test_CFLAGS=${CFLAGS+set}
14673 ac_save_CFLAGS=$CFLAGS
14674 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14676 if test "${ac_cv_prog_cc_g+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   ac_save_c_werror_flag=$ac_c_werror_flag
14680    ac_c_werror_flag=yes
14681    ac_cv_prog_cc_g=no
14682    CFLAGS="-g"
14683    cat >conftest.$ac_ext <<_ACEOF
14684 /* confdefs.h.  */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h.  */
14689
14690 int
14691 main ()
14692 {
14693
14694   ;
14695   return 0;
14696 }
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702   *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705   (eval "$ac_compile") 2>conftest.er1
14706   ac_status=$?
14707   grep -v '^ *+' conftest.er1 >conftest.err
14708   rm -f conftest.er1
14709   cat conftest.err >&5
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); } && {
14712          test -z "$ac_c_werror_flag" ||
14713          test ! -s conftest.err
14714        } && test -s conftest.$ac_objext; then
14715   ac_cv_prog_cc_g=yes
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720         CFLAGS=""
14721       cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727
14728 int
14729 main ()
14730 {
14731
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740   *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743   (eval "$ac_compile") 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } && {
14750          test -z "$ac_c_werror_flag" ||
14751          test ! -s conftest.err
14752        } && test -s conftest.$ac_objext; then
14753   :
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758         ac_c_werror_flag=$ac_save_c_werror_flag
14759          CFLAGS="-g"
14760          cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h.  */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h.  */
14766
14767 int
14768 main ()
14769 {
14770
14771   ;
14772   return 0;
14773 }
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (ac_try="$ac_compile"
14777 case "(($ac_try" in
14778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779   *) ac_try_echo=$ac_try;;
14780 esac
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782   (eval "$ac_compile") 2>conftest.er1
14783   ac_status=$?
14784   grep -v '^ *+' conftest.er1 >conftest.err
14785   rm -f conftest.er1
14786   cat conftest.err >&5
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } && {
14789          test -z "$ac_c_werror_flag" ||
14790          test ! -s conftest.err
14791        } && test -s conftest.$ac_objext; then
14792   ac_cv_prog_cc_g=yes
14793 else
14794   echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797
14798 fi
14799
14800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801 fi
14802
14803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804 fi
14805
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807    ac_c_werror_flag=$ac_save_c_werror_flag
14808 fi
14809 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14811 if test "$ac_test_CFLAGS" = set; then
14812   CFLAGS=$ac_save_CFLAGS
14813 elif test $ac_cv_prog_cc_g = yes; then
14814   if test "$GCC" = yes; then
14815     CFLAGS="-g -O2"
14816   else
14817     CFLAGS="-g"
14818   fi
14819 else
14820   if test "$GCC" = yes; then
14821     CFLAGS="-O2"
14822   else
14823     CFLAGS=
14824   fi
14825 fi
14826 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14827 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14828 if test "${ac_cv_prog_cc_c89+set}" = set; then
14829   echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831   ac_cv_prog_cc_c89=no
14832 ac_save_CC=$CC
14833 cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h.  */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h.  */
14839 #include <stdarg.h>
14840 #include <stdio.h>
14841 #include <sys/types.h>
14842 #include <sys/stat.h>
14843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14844 struct buf { int x; };
14845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14846 static char *e (p, i)
14847      char **p;
14848      int i;
14849 {
14850   return p[i];
14851 }
14852 static char *f (char * (*g) (char **, int), char **p, ...)
14853 {
14854   char *s;
14855   va_list v;
14856   va_start (v,p);
14857   s = g (p, va_arg (v,int));
14858   va_end (v);
14859   return s;
14860 }
14861
14862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14863    function prototypes and stuff, but not '\xHH' hex character constants.
14864    These don't provoke an error unfortunately, instead are silently treated
14865    as 'x'.  The following induces an error, until -std is added to get
14866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14867    array size at least.  It's necessary to write '\x00'==0 to get something
14868    that's true only with -std.  */
14869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14870
14871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14872    inside strings and character constants.  */
14873 #define FOO(x) 'x'
14874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14875
14876 int test (int i, double x);
14877 struct s1 {int (*f) (int a);};
14878 struct s2 {int (*f) (double a);};
14879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14880 int argc;
14881 char **argv;
14882 int
14883 main ()
14884 {
14885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14891         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14892 do
14893   CC="$ac_save_CC $ac_arg"
14894   rm -f conftest.$ac_objext
14895 if { (ac_try="$ac_compile"
14896 case "(($ac_try" in
14897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898   *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901   (eval "$ac_compile") 2>conftest.er1
14902   ac_status=$?
14903   grep -v '^ *+' conftest.er1 >conftest.err
14904   rm -f conftest.er1
14905   cat conftest.err >&5
14906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907   (exit $ac_status); } && {
14908          test -z "$ac_c_werror_flag" ||
14909          test ! -s conftest.err
14910        } && test -s conftest.$ac_objext; then
14911   ac_cv_prog_cc_c89=$ac_arg
14912 else
14913   echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14915
14916
14917 fi
14918
14919 rm -f core conftest.err conftest.$ac_objext
14920   test "x$ac_cv_prog_cc_c89" != "xno" && break
14921 done
14922 rm -f conftest.$ac_ext
14923 CC=$ac_save_CC
14924
14925 fi
14926 # AC_CACHE_VAL
14927 case "x$ac_cv_prog_cc_c89" in
14928   x)
14929     { echo "$as_me:$LINENO: result: none needed" >&5
14930 echo "${ECHO_T}none needed" >&6; } ;;
14931   xno)
14932     { echo "$as_me:$LINENO: result: unsupported" >&5
14933 echo "${ECHO_T}unsupported" >&6; } ;;
14934   *)
14935     CC="$CC $ac_cv_prog_cc_c89"
14936     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14937 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14938 esac
14939
14940
14941 ac_ext=c
14942 ac_cpp='$CPP $CPPFLAGS'
14943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14946
14947
14948
14949
14950     ac_ext=c
14951 ac_cpp='$CPP $CPPFLAGS'
14952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14955
14956     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14957 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14958 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14959   echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961   cat >conftest.$ac_ext <<_ACEOF
14962 /* confdefs.h.  */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h.  */
14967
14968 int
14969 main ()
14970 {
14971
14972              #ifndef __INTEL_COMPILER
14973                 choke me
14974              #endif
14975
14976   ;
14977   return 0;
14978 }
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_compile") 2>conftest.er1
14988   ac_status=$?
14989   grep -v '^ *+' conftest.er1 >conftest.err
14990   rm -f conftest.er1
14991   cat conftest.err >&5
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } && {
14994          test -z "$ac_c_werror_flag" ||
14995          test ! -s conftest.err
14996        } && test -s conftest.$ac_objext; then
14997   bakefile_cv_c_compiler___INTEL_COMPILER=yes
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002         bakefile_cv_c_compiler___INTEL_COMPILER=no
15003
15004 fi
15005
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007
15008
15009 fi
15010 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15011 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15012     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15013         :; INTELCC=yes
15014     else
15015         :;
15016     fi
15017     ac_ext=c
15018 ac_cpp='$CPP $CPPFLAGS'
15019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15022
15023
15024
15025
15026         if test "$INTELCC" = "yes"; then
15027
15028
15029     ac_ext=c
15030 ac_cpp='$CPP $CPPFLAGS'
15031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15034
15035     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15036 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15037 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040   cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h.  */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h.  */
15046
15047 int
15048 main ()
15049 {
15050
15051              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15052                 choke me
15053              #endif
15054
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (ac_try="$ac_compile"
15061 case "(($ac_try" in
15062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063   *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066   (eval "$ac_compile") 2>conftest.er1
15067   ac_status=$?
15068   grep -v '^ *+' conftest.er1 >conftest.err
15069   rm -f conftest.er1
15070   cat conftest.err >&5
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } && {
15073          test -z "$ac_c_werror_flag" ||
15074          test ! -s conftest.err
15075        } && test -s conftest.$ac_objext; then
15076   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15082
15083 fi
15084
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086
15087
15088 fi
15089 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15090 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15091     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15092         :; INTELCC8=yes
15093     else
15094         :;
15095     fi
15096     ac_ext=c
15097 ac_cpp='$CPP $CPPFLAGS'
15098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15101
15102
15103
15104
15105
15106     ac_ext=c
15107 ac_cpp='$CPP $CPPFLAGS'
15108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15111
15112     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15113 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15114 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117   cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123
15124 int
15125 main ()
15126 {
15127
15128              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15129                 choke me
15130              #endif
15131
15132   ;
15133   return 0;
15134 }
15135 _ACEOF
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143   (eval "$ac_compile") 2>conftest.er1
15144   ac_status=$?
15145   grep -v '^ *+' conftest.er1 >conftest.err
15146   rm -f conftest.er1
15147   cat conftest.err >&5
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } && {
15150          test -z "$ac_c_werror_flag" ||
15151          test ! -s conftest.err
15152        } && test -s conftest.$ac_objext; then
15153   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15154 else
15155   echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15159
15160 fi
15161
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163
15164
15165 fi
15166 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15167 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15168     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15169         :; INTELCC10=yes
15170     else
15171         :;
15172     fi
15173     ac_ext=c
15174 ac_cpp='$CPP $CPPFLAGS'
15175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15178
15179
15180
15181     fi
15182
15183         if test "x$GCC" != "xyes"; then
15184         if test "xCC" = "xC"; then
15185             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15186 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15187 if test "${bakefile_cv_c_exto+set}" = set; then
15188   echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15190   cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196
15197 int
15198 main ()
15199 {
15200
15201   ;
15202   return 0;
15203 }
15204 _ACEOF
15205 rm -f conftest.$ac_objext conftest.$ac_ext.o
15206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207   (eval $ac_compile) 2>&5
15208   ac_status=$?
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); }; then
15211   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15212     case $ac_file in
15213         conftest.$ac_ext.o)
15214             bakefile_cv_c_exto="-ext o"
15215             ;;
15216         *)
15217             ;;
15218     esac
15219 done
15220 else
15221   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15222 See \`config.log' for more details." >&5
15223 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15224 See \`config.log' for more details." >&2;}
15225    { (exit 1); exit 1; }; }
15226
15227 fi
15228
15229 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15230
15231 fi
15232 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15233 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15234 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15235     if test "c" = "c"; then
15236         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15237     fi
15238     if test "c" = "cxx"; then
15239         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15240     fi
15241 fi
15242
15243             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15244                 unset ac_cv_prog_cc_g
15245                 ac_test_CFLAGS=${CFLAGS+set}
15246 ac_save_CFLAGS=$CFLAGS
15247 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15248 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15249 if test "${ac_cv_prog_cc_g+set}" = set; then
15250   echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252   ac_save_c_werror_flag=$ac_c_werror_flag
15253    ac_c_werror_flag=yes
15254    ac_cv_prog_cc_g=no
15255    CFLAGS="-g"
15256    cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h.  */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h.  */
15262
15263 int
15264 main ()
15265 {
15266
15267   ;
15268   return 0;
15269 }
15270 _ACEOF
15271 rm -f conftest.$ac_objext
15272 if { (ac_try="$ac_compile"
15273 case "(($ac_try" in
15274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275   *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278   (eval "$ac_compile") 2>conftest.er1
15279   ac_status=$?
15280   grep -v '^ *+' conftest.er1 >conftest.err
15281   rm -f conftest.er1
15282   cat conftest.err >&5
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); } && {
15285          test -z "$ac_c_werror_flag" ||
15286          test ! -s conftest.err
15287        } && test -s conftest.$ac_objext; then
15288   ac_cv_prog_cc_g=yes
15289 else
15290   echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293         CFLAGS=""
15294       cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300
15301 int
15302 main ()
15303 {
15304
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext
15310 if { (ac_try="$ac_compile"
15311 case "(($ac_try" in
15312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313   *) ac_try_echo=$ac_try;;
15314 esac
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316   (eval "$ac_compile") 2>conftest.er1
15317   ac_status=$?
15318   grep -v '^ *+' conftest.er1 >conftest.err
15319   rm -f conftest.er1
15320   cat conftest.err >&5
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } && {
15323          test -z "$ac_c_werror_flag" ||
15324          test ! -s conftest.err
15325        } && test -s conftest.$ac_objext; then
15326   :
15327 else
15328   echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331         ac_c_werror_flag=$ac_save_c_werror_flag
15332          CFLAGS="-g"
15333          cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339
15340 int
15341 main ()
15342 {
15343
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_compile") 2>conftest.er1
15356   ac_status=$?
15357   grep -v '^ *+' conftest.er1 >conftest.err
15358   rm -f conftest.er1
15359   cat conftest.err >&5
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } && {
15362          test -z "$ac_c_werror_flag" ||
15363          test ! -s conftest.err
15364        } && test -s conftest.$ac_objext; then
15365   ac_cv_prog_cc_g=yes
15366 else
15367   echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370
15371 fi
15372
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 fi
15375
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15377 fi
15378
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380    ac_c_werror_flag=$ac_save_c_werror_flag
15381 fi
15382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15384 if test "$ac_test_CFLAGS" = set; then
15385   CFLAGS=$ac_save_CFLAGS
15386 elif test $ac_cv_prog_cc_g = yes; then
15387   if test "$GCC" = yes; then
15388     CFLAGS="-g -O2"
15389   else
15390     CFLAGS="-g"
15391   fi
15392 else
15393   if test "$GCC" = yes; then
15394     CFLAGS="-O2"
15395   else
15396     CFLAGS=
15397   fi
15398 fi
15399             fi
15400         fi
15401
15402                         case `uname -s` in
15403             AIX*)
15404
15405
15406     ac_ext=c
15407 ac_cpp='$CPP $CPPFLAGS'
15408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15411
15412     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15413 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15414 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15415   echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417   cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423
15424 int
15425 main ()
15426 {
15427
15428              #ifndef __xlC__
15429                 choke me
15430              #endif
15431
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext
15437 if { (ac_try="$ac_compile"
15438 case "(($ac_try" in
15439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440   *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443   (eval "$ac_compile") 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } && {
15450          test -z "$ac_c_werror_flag" ||
15451          test ! -s conftest.err
15452        } && test -s conftest.$ac_objext; then
15453   bakefile_cv_c_compiler___xlC__=yes
15454 else
15455   echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458         bakefile_cv_c_compiler___xlC__=no
15459
15460 fi
15461
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463
15464
15465 fi
15466 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15467 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15468     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15469         :; XLCC=yes
15470     else
15471         :;
15472     fi
15473     ac_ext=c
15474 ac_cpp='$CPP $CPPFLAGS'
15475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15478
15479
15480
15481                 ;;
15482
15483             Darwin)
15484
15485
15486     ac_ext=c
15487 ac_cpp='$CPP $CPPFLAGS'
15488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15491
15492     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15493 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15494 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h.  */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h.  */
15503
15504 int
15505 main ()
15506 {
15507
15508              #ifndef __MWERKS__
15509                 choke me
15510              #endif
15511
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520   *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523   (eval "$ac_compile") 2>conftest.er1
15524   ac_status=$?
15525   grep -v '^ *+' conftest.er1 >conftest.err
15526   rm -f conftest.er1
15527   cat conftest.err >&5
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); } && {
15530          test -z "$ac_c_werror_flag" ||
15531          test ! -s conftest.err
15532        } && test -s conftest.$ac_objext; then
15533   bakefile_cv_c_compiler___MWERKS__=yes
15534 else
15535   echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15537
15538         bakefile_cv_c_compiler___MWERKS__=no
15539
15540 fi
15541
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543
15544
15545 fi
15546 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15547 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15548     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15549         :; MWCC=yes
15550     else
15551         :;
15552     fi
15553     ac_ext=c
15554 ac_cpp='$CPP $CPPFLAGS'
15555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15558
15559
15560
15561                 if test "$MWCC" != "yes"; then
15562
15563
15564     ac_ext=c
15565 ac_cpp='$CPP $CPPFLAGS'
15566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15569
15570     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15571 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15572 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15573   echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575   cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581
15582 int
15583 main ()
15584 {
15585
15586              #ifndef __xlC__
15587                 choke me
15588              #endif
15589
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext
15595 if { (ac_try="$ac_compile"
15596 case "(($ac_try" in
15597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598   *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601   (eval "$ac_compile") 2>conftest.er1
15602   ac_status=$?
15603   grep -v '^ *+' conftest.er1 >conftest.err
15604   rm -f conftest.er1
15605   cat conftest.err >&5
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } && {
15608          test -z "$ac_c_werror_flag" ||
15609          test ! -s conftest.err
15610        } && test -s conftest.$ac_objext; then
15611   bakefile_cv_c_compiler___xlC__=yes
15612 else
15613   echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15615
15616         bakefile_cv_c_compiler___xlC__=no
15617
15618 fi
15619
15620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15621
15622
15623 fi
15624 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15625 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15626     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15627         :; XLCC=yes
15628     else
15629         :;
15630     fi
15631     ac_ext=c
15632 ac_cpp='$CPP $CPPFLAGS'
15633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15636
15637
15638
15639                 fi
15640                 ;;
15641
15642             IRIX*)
15643
15644
15645     ac_ext=c
15646 ac_cpp='$CPP $CPPFLAGS'
15647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15650
15651     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15652 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15653 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15654   echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656   cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662
15663 int
15664 main ()
15665 {
15666
15667              #ifndef _SGI_COMPILER_VERSION
15668                 choke me
15669              #endif
15670
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 rm -f conftest.$ac_objext
15676 if { (ac_try="$ac_compile"
15677 case "(($ac_try" in
15678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679   *) ac_try_echo=$ac_try;;
15680 esac
15681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682   (eval "$ac_compile") 2>conftest.er1
15683   ac_status=$?
15684   grep -v '^ *+' conftest.er1 >conftest.err
15685   rm -f conftest.er1
15686   cat conftest.err >&5
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } && {
15689          test -z "$ac_c_werror_flag" ||
15690          test ! -s conftest.err
15691        } && test -s conftest.$ac_objext; then
15692   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15693 else
15694   echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15698
15699 fi
15700
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702
15703
15704 fi
15705 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15706 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15707     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15708         :; SGICC=yes
15709     else
15710         :;
15711     fi
15712     ac_ext=c
15713 ac_cpp='$CPP $CPPFLAGS'
15714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15717
15718
15719
15720                 ;;
15721
15722             Linux*)
15723                                                 if test "$INTELCC" != "yes"; then
15724
15725
15726     ac_ext=c
15727 ac_cpp='$CPP $CPPFLAGS'
15728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15731
15732     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15733 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15734 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737   cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743
15744 int
15745 main ()
15746 {
15747
15748              #ifndef __SUNPRO_C
15749                 choke me
15750              #endif
15751
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_compile") 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } && {
15770          test -z "$ac_c_werror_flag" ||
15771          test ! -s conftest.err
15772        } && test -s conftest.$ac_objext; then
15773   bakefile_cv_c_compiler___SUNPRO_C=yes
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778         bakefile_cv_c_compiler___SUNPRO_C=no
15779
15780 fi
15781
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783
15784
15785 fi
15786 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15787 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15788     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15789         :; SUNCC=yes
15790     else
15791         :;
15792     fi
15793     ac_ext=c
15794 ac_cpp='$CPP $CPPFLAGS'
15795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15798
15799
15800
15801                 fi
15802                 ;;
15803
15804             HP-UX*)
15805
15806
15807     ac_ext=c
15808 ac_cpp='$CPP $CPPFLAGS'
15809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15812
15813     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15814 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15815 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h.  */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h.  */
15824
15825 int
15826 main ()
15827 {
15828
15829              #ifndef __HP_cc
15830                 choke me
15831              #endif
15832
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_compile") 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } && {
15851          test -z "$ac_c_werror_flag" ||
15852          test ! -s conftest.err
15853        } && test -s conftest.$ac_objext; then
15854   bakefile_cv_c_compiler___HP_cc=yes
15855 else
15856   echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859         bakefile_cv_c_compiler___HP_cc=no
15860
15861 fi
15862
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864
15865
15866 fi
15867 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15868 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15869     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15870         :; HPCC=yes
15871     else
15872         :;
15873     fi
15874     ac_ext=c
15875 ac_cpp='$CPP $CPPFLAGS'
15876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15879
15880
15881
15882                 ;;
15883
15884             OSF1)
15885
15886
15887     ac_ext=c
15888 ac_cpp='$CPP $CPPFLAGS'
15889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15892
15893     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15894 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15895 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15896   echo $ECHO_N "(cached) $ECHO_C" >&6
15897 else
15898   cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h.  */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h.  */
15904
15905 int
15906 main ()
15907 {
15908
15909              #ifndef __DECC
15910                 choke me
15911              #endif
15912
15913   ;
15914   return 0;
15915 }
15916 _ACEOF
15917 rm -f conftest.$ac_objext
15918 if { (ac_try="$ac_compile"
15919 case "(($ac_try" in
15920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921   *) ac_try_echo=$ac_try;;
15922 esac
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924   (eval "$ac_compile") 2>conftest.er1
15925   ac_status=$?
15926   grep -v '^ *+' conftest.er1 >conftest.err
15927   rm -f conftest.er1
15928   cat conftest.err >&5
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } && {
15931          test -z "$ac_c_werror_flag" ||
15932          test ! -s conftest.err
15933        } && test -s conftest.$ac_objext; then
15934   bakefile_cv_c_compiler___DECC=yes
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939         bakefile_cv_c_compiler___DECC=no
15940
15941 fi
15942
15943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944
15945
15946 fi
15947 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15948 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15949     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15950         :; COMPAQCC=yes
15951     else
15952         :;
15953     fi
15954     ac_ext=c
15955 ac_cpp='$CPP $CPPFLAGS'
15956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15959
15960
15961
15962                 ;;
15963
15964             SunOS)
15965
15966
15967     ac_ext=c
15968 ac_cpp='$CPP $CPPFLAGS'
15969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15972
15973     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15974 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15975 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h.  */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h.  */
15984
15985 int
15986 main ()
15987 {
15988
15989              #ifndef __SUNPRO_C
15990                 choke me
15991              #endif
15992
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004   (eval "$ac_compile") 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } && {
16011          test -z "$ac_c_werror_flag" ||
16012          test ! -s conftest.err
16013        } && test -s conftest.$ac_objext; then
16014   bakefile_cv_c_compiler___SUNPRO_C=yes
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019         bakefile_cv_c_compiler___SUNPRO_C=no
16020
16021 fi
16022
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024
16025
16026 fi
16027 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16028 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16029     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16030         :; SUNCC=yes
16031     else
16032         :;
16033     fi
16034     ac_ext=c
16035 ac_cpp='$CPP $CPPFLAGS'
16036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16039
16040
16041
16042                 ;;
16043         esac
16044     fi
16045
16046
16047
16048 ac_ext=c
16049 ac_cpp='$CPP $CPPFLAGS'
16050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16053 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16054 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16055 # On Suns, sometimes $CPP names a directory.
16056 if test -n "$CPP" && test -d "$CPP"; then
16057   CPP=
16058 fi
16059 if test -z "$CPP"; then
16060   if test "${ac_cv_prog_CPP+set}" = set; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063       # Double quotes because CPP needs to be expanded
16064     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16065     do
16066       ac_preproc_ok=false
16067 for ac_c_preproc_warn_flag in '' yes
16068 do
16069   # Use a header file that comes with gcc, so configuring glibc
16070   # with a fresh cross-compiler works.
16071   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16072   # <limits.h> exists even on freestanding compilers.
16073   # On the NeXT, cc -E runs the code through the compiler's parser,
16074   # not just through cpp. "Syntax error" is here to catch this case.
16075   cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081 #ifdef __STDC__
16082 # include <limits.h>
16083 #else
16084 # include <assert.h>
16085 #endif
16086                      Syntax error
16087 _ACEOF
16088 if { (ac_try="$ac_cpp conftest.$ac_ext"
16089 case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16095   ac_status=$?
16096   grep -v '^ *+' conftest.er1 >conftest.err
16097   rm -f conftest.er1
16098   cat conftest.err >&5
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } >/dev/null && {
16101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102          test ! -s conftest.err
16103        }; then
16104   :
16105 else
16106   echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109   # Broken: fails on valid input.
16110 continue
16111 fi
16112
16113 rm -f conftest.err conftest.$ac_ext
16114
16115   # OK, works on sane cases.  Now check whether nonexistent headers
16116   # can be detected and how.
16117   cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123 #include <ac_nonexistent.h>
16124 _ACEOF
16125 if { (ac_try="$ac_cpp conftest.$ac_ext"
16126 case "(($ac_try" in
16127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128   *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16132   ac_status=$?
16133   grep -v '^ *+' conftest.er1 >conftest.err
16134   rm -f conftest.er1
16135   cat conftest.err >&5
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); } >/dev/null && {
16138          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16139          test ! -s conftest.err
16140        }; then
16141   # Broken: success on invalid input.
16142 continue
16143 else
16144   echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16146
16147   # Passes both tests.
16148 ac_preproc_ok=:
16149 break
16150 fi
16151
16152 rm -f conftest.err conftest.$ac_ext
16153
16154 done
16155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16156 rm -f conftest.err conftest.$ac_ext
16157 if $ac_preproc_ok; then
16158   break
16159 fi
16160
16161     done
16162     ac_cv_prog_CPP=$CPP
16163
16164 fi
16165   CPP=$ac_cv_prog_CPP
16166 else
16167   ac_cv_prog_CPP=$CPP
16168 fi
16169 { echo "$as_me:$LINENO: result: $CPP" >&5
16170 echo "${ECHO_T}$CPP" >&6; }
16171 ac_preproc_ok=false
16172 for ac_c_preproc_warn_flag in '' yes
16173 do
16174   # Use a header file that comes with gcc, so configuring glibc
16175   # with a fresh cross-compiler works.
16176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16177   # <limits.h> exists even on freestanding compilers.
16178   # On the NeXT, cc -E runs the code through the compiler's parser,
16179   # not just through cpp. "Syntax error" is here to catch this case.
16180   cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h.  */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h.  */
16186 #ifdef __STDC__
16187 # include <limits.h>
16188 #else
16189 # include <assert.h>
16190 #endif
16191                      Syntax error
16192 _ACEOF
16193 if { (ac_try="$ac_cpp conftest.$ac_ext"
16194 case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } >/dev/null && {
16206          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16207          test ! -s conftest.err
16208        }; then
16209   :
16210 else
16211   echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214   # Broken: fails on valid input.
16215 continue
16216 fi
16217
16218 rm -f conftest.err conftest.$ac_ext
16219
16220   # OK, works on sane cases.  Now check whether nonexistent headers
16221   # can be detected and how.
16222   cat >conftest.$ac_ext <<_ACEOF
16223 /* confdefs.h.  */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h.  */
16228 #include <ac_nonexistent.h>
16229 _ACEOF
16230 if { (ac_try="$ac_cpp conftest.$ac_ext"
16231 case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16237   ac_status=$?
16238   grep -v '^ *+' conftest.er1 >conftest.err
16239   rm -f conftest.er1
16240   cat conftest.err >&5
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); } >/dev/null && {
16243          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16244          test ! -s conftest.err
16245        }; then
16246   # Broken: success on invalid input.
16247 continue
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252   # Passes both tests.
16253 ac_preproc_ok=:
16254 break
16255 fi
16256
16257 rm -f conftest.err conftest.$ac_ext
16258
16259 done
16260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16261 rm -f conftest.err conftest.$ac_ext
16262 if $ac_preproc_ok; then
16263   :
16264 else
16265   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16266 See \`config.log' for more details." >&5
16267 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16268 See \`config.log' for more details." >&2;}
16269    { (exit 1); exit 1; }; }
16270 fi
16271
16272 ac_ext=c
16273 ac_cpp='$CPP $CPPFLAGS'
16274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16277
16278
16279 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16280 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16281 if test "${ac_cv_path_GREP+set}" = set; then
16282   echo $ECHO_N "(cached) $ECHO_C" >&6
16283 else
16284   # Extract the first word of "grep ggrep" to use in msg output
16285 if test -z "$GREP"; then
16286 set dummy grep ggrep; ac_prog_name=$2
16287 if test "${ac_cv_path_GREP+set}" = set; then
16288   echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290   ac_path_GREP_found=false
16291 # Loop through the user's path and test for each of PROGNAME-LIST
16292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16294 do
16295   IFS=$as_save_IFS
16296   test -z "$as_dir" && as_dir=.
16297   for ac_prog in grep ggrep; do
16298   for ac_exec_ext in '' $ac_executable_extensions; do
16299     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16300     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16301     # Check for GNU ac_path_GREP and select it if it is found.
16302   # Check for GNU $ac_path_GREP
16303 case `"$ac_path_GREP" --version 2>&1` in
16304 *GNU*)
16305   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16306 *)
16307   ac_count=0
16308   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16309   while :
16310   do
16311     cat "conftest.in" "conftest.in" >"conftest.tmp"
16312     mv "conftest.tmp" "conftest.in"
16313     cp "conftest.in" "conftest.nl"
16314     echo 'GREP' >> "conftest.nl"
16315     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16316     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16317     ac_count=`expr $ac_count + 1`
16318     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16319       # Best one so far, save it but keep looking for a better one
16320       ac_cv_path_GREP="$ac_path_GREP"
16321       ac_path_GREP_max=$ac_count
16322     fi
16323     # 10*(2^10) chars as input seems more than enough
16324     test $ac_count -gt 10 && break
16325   done
16326   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16327 esac
16328
16329
16330     $ac_path_GREP_found && break 3
16331   done
16332 done
16333
16334 done
16335 IFS=$as_save_IFS
16336
16337
16338 fi
16339
16340 GREP="$ac_cv_path_GREP"
16341 if test -z "$GREP"; then
16342   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16343 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16344    { (exit 1); exit 1; }; }
16345 fi
16346
16347 else
16348   ac_cv_path_GREP=$GREP
16349 fi
16350
16351
16352 fi
16353 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16354 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16355  GREP="$ac_cv_path_GREP"
16356
16357
16358 { echo "$as_me:$LINENO: checking for egrep" >&5
16359 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16360 if test "${ac_cv_path_EGREP+set}" = set; then
16361   echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16364    then ac_cv_path_EGREP="$GREP -E"
16365    else
16366      # Extract the first word of "egrep" to use in msg output
16367 if test -z "$EGREP"; then
16368 set dummy egrep; ac_prog_name=$2
16369 if test "${ac_cv_path_EGREP+set}" = set; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   ac_path_EGREP_found=false
16373 # Loop through the user's path and test for each of PROGNAME-LIST
16374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16376 do
16377   IFS=$as_save_IFS
16378   test -z "$as_dir" && as_dir=.
16379   for ac_prog in egrep; do
16380   for ac_exec_ext in '' $ac_executable_extensions; do
16381     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16382     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16383     # Check for GNU ac_path_EGREP and select it if it is found.
16384   # Check for GNU $ac_path_EGREP
16385 case `"$ac_path_EGREP" --version 2>&1` in
16386 *GNU*)
16387   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16388 *)
16389   ac_count=0
16390   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16391   while :
16392   do
16393     cat "conftest.in" "conftest.in" >"conftest.tmp"
16394     mv "conftest.tmp" "conftest.in"
16395     cp "conftest.in" "conftest.nl"
16396     echo 'EGREP' >> "conftest.nl"
16397     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16398     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16399     ac_count=`expr $ac_count + 1`
16400     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16401       # Best one so far, save it but keep looking for a better one
16402       ac_cv_path_EGREP="$ac_path_EGREP"
16403       ac_path_EGREP_max=$ac_count
16404     fi
16405     # 10*(2^10) chars as input seems more than enough
16406     test $ac_count -gt 10 && break
16407   done
16408   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16409 esac
16410
16411
16412     $ac_path_EGREP_found && break 3
16413   done
16414 done
16415
16416 done
16417 IFS=$as_save_IFS
16418
16419
16420 fi
16421
16422 EGREP="$ac_cv_path_EGREP"
16423 if test -z "$EGREP"; then
16424   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16425 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16426    { (exit 1); exit 1; }; }
16427 fi
16428
16429 else
16430   ac_cv_path_EGREP=$EGREP
16431 fi
16432
16433
16434    fi
16435 fi
16436 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16437 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16438  EGREP="$ac_cv_path_EGREP"
16439
16440
16441 if test $ac_cv_c_compiler_gnu = yes; then
16442     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16443 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16444 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16445   echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447     ac_pattern="Autoconf.*'x'"
16448   cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h.  */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h.  */
16454 #include <sgtty.h>
16455 Autoconf TIOCGETP
16456 _ACEOF
16457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16458   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16459   ac_cv_prog_gcc_traditional=yes
16460 else
16461   ac_cv_prog_gcc_traditional=no
16462 fi
16463 rm -f conftest*
16464
16465
16466   if test $ac_cv_prog_gcc_traditional = no; then
16467     cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473 #include <termio.h>
16474 Autoconf TCGETA
16475 _ACEOF
16476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16477   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16478   ac_cv_prog_gcc_traditional=yes
16479 fi
16480 rm -f conftest*
16481
16482   fi
16483 fi
16484 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16485 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16486   if test $ac_cv_prog_gcc_traditional = yes; then
16487     CC="$CC -traditional"
16488   fi
16489 fi
16490
16491
16492 CXXFLAGS=${CXXFLAGS:=}
16493
16494
16495
16496     ac_ext=cpp
16497 ac_cpp='$CXXCPP $CPPFLAGS'
16498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16501 if test -z "$CXX"; then
16502   if test -n "$CCC"; then
16503     CXX=$CCC
16504   else
16505     if test -n "$ac_tool_prefix"; then
16506   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16507   do
16508     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16512 if test "${ac_cv_prog_CXX+set}" = set; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   if test -n "$CXX"; then
16516   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16517 else
16518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16519 for as_dir in $PATH
16520 do
16521   IFS=$as_save_IFS
16522   test -z "$as_dir" && as_dir=.
16523   for ac_exec_ext in '' $ac_executable_extensions; do
16524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16525     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16527     break 2
16528   fi
16529 done
16530 done
16531 IFS=$as_save_IFS
16532
16533 fi
16534 fi
16535 CXX=$ac_cv_prog_CXX
16536 if test -n "$CXX"; then
16537   { echo "$as_me:$LINENO: result: $CXX" >&5
16538 echo "${ECHO_T}$CXX" >&6; }
16539 else
16540   { echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6; }
16542 fi
16543
16544
16545     test -n "$CXX" && break
16546   done
16547 fi
16548 if test -z "$CXX"; then
16549   ac_ct_CXX=$CXX
16550   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16551 do
16552   # Extract the first word of "$ac_prog", so it can be a program name with args.
16553 set dummy $ac_prog; ac_word=$2
16554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16556 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16557   echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559   if test -n "$ac_ct_CXX"; then
16560   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16561 else
16562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16563 for as_dir in $PATH
16564 do
16565   IFS=$as_save_IFS
16566   test -z "$as_dir" && as_dir=.
16567   for ac_exec_ext in '' $ac_executable_extensions; do
16568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16569     ac_cv_prog_ac_ct_CXX="$ac_prog"
16570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16571     break 2
16572   fi
16573 done
16574 done
16575 IFS=$as_save_IFS
16576
16577 fi
16578 fi
16579 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16580 if test -n "$ac_ct_CXX"; then
16581   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16582 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16583 else
16584   { echo "$as_me:$LINENO: result: no" >&5
16585 echo "${ECHO_T}no" >&6; }
16586 fi
16587
16588
16589   test -n "$ac_ct_CXX" && break
16590 done
16591
16592   if test "x$ac_ct_CXX" = x; then
16593     CXX="g++"
16594   else
16595     case $cross_compiling:$ac_tool_warned in
16596 yes:)
16597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16598 whose name does not start with the host triplet.  If you think this
16599 configuration is useful to you, please write to autoconf@gnu.org." >&5
16600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16601 whose name does not start with the host triplet.  If you think this
16602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16603 ac_tool_warned=yes ;;
16604 esac
16605     CXX=$ac_ct_CXX
16606   fi
16607 fi
16608
16609   fi
16610 fi
16611 # Provide some information about the compiler.
16612 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16613 ac_compiler=`set X $ac_compile; echo $2`
16614 { (ac_try="$ac_compiler --version >&5"
16615 case "(($ac_try" in
16616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617   *) ac_try_echo=$ac_try;;
16618 esac
16619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620   (eval "$ac_compiler --version >&5") 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); }
16624 { (ac_try="$ac_compiler -v >&5"
16625 case "(($ac_try" in
16626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627   *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630   (eval "$ac_compiler -v >&5") 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }
16634 { (ac_try="$ac_compiler -V >&5"
16635 case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_compiler -V >&5") 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }
16644
16645 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16646 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16647 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16648   echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650   cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656
16657 int
16658 main ()
16659 {
16660 #ifndef __GNUC__
16661        choke me
16662 #endif
16663
16664   ;
16665   return 0;
16666 }
16667 _ACEOF
16668 rm -f conftest.$ac_objext
16669 if { (ac_try="$ac_compile"
16670 case "(($ac_try" in
16671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672   *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675   (eval "$ac_compile") 2>conftest.er1
16676   ac_status=$?
16677   grep -v '^ *+' conftest.er1 >conftest.err
16678   rm -f conftest.er1
16679   cat conftest.err >&5
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); } && {
16682          test -z "$ac_cxx_werror_flag" ||
16683          test ! -s conftest.err
16684        } && test -s conftest.$ac_objext; then
16685   ac_compiler_gnu=yes
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690         ac_compiler_gnu=no
16691 fi
16692
16693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16695
16696 fi
16697 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16698 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16699 GXX=`test $ac_compiler_gnu = yes && echo yes`
16700 ac_test_CXXFLAGS=${CXXFLAGS+set}
16701 ac_save_CXXFLAGS=$CXXFLAGS
16702 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16703 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16704 if test "${ac_cv_prog_cxx_g+set}" = set; then
16705   echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16708    ac_cxx_werror_flag=yes
16709    ac_cv_prog_cxx_g=no
16710    CXXFLAGS="-g"
16711    cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h.  */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h.  */
16717
16718 int
16719 main ()
16720 {
16721
16722   ;
16723   return 0;
16724 }
16725 _ACEOF
16726 rm -f conftest.$ac_objext
16727 if { (ac_try="$ac_compile"
16728 case "(($ac_try" in
16729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730   *) ac_try_echo=$ac_try;;
16731 esac
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733   (eval "$ac_compile") 2>conftest.er1
16734   ac_status=$?
16735   grep -v '^ *+' conftest.er1 >conftest.err
16736   rm -f conftest.er1
16737   cat conftest.err >&5
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); } && {
16740          test -z "$ac_cxx_werror_flag" ||
16741          test ! -s conftest.err
16742        } && test -s conftest.$ac_objext; then
16743   ac_cv_prog_cxx_g=yes
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748         CXXFLAGS=""
16749       cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755
16756 int
16757 main ()
16758 {
16759
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 rm -f conftest.$ac_objext
16765 if { (ac_try="$ac_compile"
16766 case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_compile") 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } && {
16778          test -z "$ac_cxx_werror_flag" ||
16779          test ! -s conftest.err
16780        } && test -s conftest.$ac_objext; then
16781   :
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16787          CXXFLAGS="-g"
16788          cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794
16795 int
16796 main ()
16797 {
16798
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext
16804 if { (ac_try="$ac_compile"
16805 case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_compile") 2>conftest.er1
16811   ac_status=$?
16812   grep -v '^ *+' conftest.er1 >conftest.err
16813   rm -f conftest.er1
16814   cat conftest.err >&5
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } && {
16817          test -z "$ac_cxx_werror_flag" ||
16818          test ! -s conftest.err
16819        } && test -s conftest.$ac_objext; then
16820   ac_cv_prog_cxx_g=yes
16821 else
16822   echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825
16826 fi
16827
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 fi
16830
16831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832 fi
16833
16834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16836 fi
16837 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16838 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16839 if test "$ac_test_CXXFLAGS" = set; then
16840   CXXFLAGS=$ac_save_CXXFLAGS
16841 elif test $ac_cv_prog_cxx_g = yes; then
16842   if test "$GXX" = yes; then
16843     CXXFLAGS="-g -O2"
16844   else
16845     CXXFLAGS="-g"
16846   fi
16847 else
16848   if test "$GXX" = yes; then
16849     CXXFLAGS="-O2"
16850   else
16851     CXXFLAGS=
16852   fi
16853 fi
16854 ac_ext=c
16855 ac_cpp='$CPP $CPPFLAGS'
16856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16859
16860
16861
16862
16863     ac_ext=cpp
16864 ac_cpp='$CXXCPP $CPPFLAGS'
16865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16868
16869     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16870 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16871 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   cat >conftest.$ac_ext <<_ACEOF
16875 /* confdefs.h.  */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h.  */
16880
16881 int
16882 main ()
16883 {
16884
16885              #ifndef __INTEL_COMPILER
16886                 choke me
16887              #endif
16888
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_compile") 2>conftest.er1
16901   ac_status=$?
16902   grep -v '^ *+' conftest.er1 >conftest.err
16903   rm -f conftest.er1
16904   cat conftest.err >&5
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } && {
16907          test -z "$ac_cxx_werror_flag" ||
16908          test ! -s conftest.err
16909        } && test -s conftest.$ac_objext; then
16910   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16916
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920
16921
16922 fi
16923 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16924 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16925     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16926         :; INTELCXX=yes
16927     else
16928         :;
16929     fi
16930     ac_ext=c
16931 ac_cpp='$CPP $CPPFLAGS'
16932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16935
16936
16937
16938
16939         if test "$INTELCXX" = "yes"; then
16940
16941
16942     ac_ext=cpp
16943 ac_cpp='$CXXCPP $CPPFLAGS'
16944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16947
16948     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
16949 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
16950 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h.  */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h.  */
16959
16960 int
16961 main ()
16962 {
16963
16964              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16965                 choke me
16966              #endif
16967
16968   ;
16969   return 0;
16970 }
16971 _ACEOF
16972 rm -f conftest.$ac_objext
16973 if { (ac_try="$ac_compile"
16974 case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979   (eval "$ac_compile") 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } && {
16986          test -z "$ac_cxx_werror_flag" ||
16987          test ! -s conftest.err
16988        } && test -s conftest.$ac_objext; then
16989   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
16990 else
16991   echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
16995
16996 fi
16997
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999
17000
17001 fi
17002 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17003 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17004     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17005         :; INTELCXX8=yes
17006     else
17007         :;
17008     fi
17009     ac_ext=c
17010 ac_cpp='$CPP $CPPFLAGS'
17011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17014
17015
17016
17017
17018
17019     ac_ext=cpp
17020 ac_cpp='$CXXCPP $CPPFLAGS'
17021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17024
17025     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17026 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17027 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17028   echo $ECHO_N "(cached) $ECHO_C" >&6
17029 else
17030   cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h.  */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h.  */
17036
17037 int
17038 main ()
17039 {
17040
17041              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17042                 choke me
17043              #endif
17044
17045   ;
17046   return 0;
17047 }
17048 _ACEOF
17049 rm -f conftest.$ac_objext
17050 if { (ac_try="$ac_compile"
17051 case "(($ac_try" in
17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053   *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056   (eval "$ac_compile") 2>conftest.er1
17057   ac_status=$?
17058   grep -v '^ *+' conftest.er1 >conftest.err
17059   rm -f conftest.er1
17060   cat conftest.err >&5
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); } && {
17063          test -z "$ac_cxx_werror_flag" ||
17064          test ! -s conftest.err
17065        } && test -s conftest.$ac_objext; then
17066   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17067 else
17068   echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17072
17073 fi
17074
17075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076
17077
17078 fi
17079 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17080 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17081     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17082         :; INTELCXX10=yes
17083     else
17084         :;
17085     fi
17086     ac_ext=c
17087 ac_cpp='$CPP $CPPFLAGS'
17088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17091
17092
17093
17094     fi
17095
17096         if test "x$GCXX" != "xyes"; then
17097         if test "xCXX" = "xC"; then
17098             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17099 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17100 if test "${bakefile_cv_c_exto+set}" = set; then
17101   echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103   cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109
17110 int
17111 main ()
17112 {
17113
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext conftest.$ac_ext.o
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120   (eval $ac_compile) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; then
17124   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17125     case $ac_file in
17126         conftest.$ac_ext.o)
17127             bakefile_cv_c_exto="-ext o"
17128             ;;
17129         *)
17130             ;;
17131     esac
17132 done
17133 else
17134   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17135 See \`config.log' for more details." >&5
17136 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17137 See \`config.log' for more details." >&2;}
17138    { (exit 1); exit 1; }; }
17139
17140 fi
17141
17142 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17143
17144 fi
17145 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17146 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17147 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17148     if test "c" = "c"; then
17149         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17150     fi
17151     if test "c" = "cxx"; then
17152         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17153     fi
17154 fi
17155
17156             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17157                 unset ac_cv_prog_cc_g
17158                 ac_test_CFLAGS=${CFLAGS+set}
17159 ac_save_CFLAGS=$CFLAGS
17160 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17161 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17162 if test "${ac_cv_prog_cc_g+set}" = set; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165   ac_save_c_werror_flag=$ac_c_werror_flag
17166    ac_c_werror_flag=yes
17167    ac_cv_prog_cc_g=no
17168    CFLAGS="-g"
17169    cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175
17176 int
17177 main ()
17178 {
17179
17180   ;
17181   return 0;
17182 }
17183 _ACEOF
17184 rm -f conftest.$ac_objext
17185 if { (ac_try="$ac_compile"
17186 case "(($ac_try" in
17187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188   *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191   (eval "$ac_compile") 2>conftest.er1
17192   ac_status=$?
17193   grep -v '^ *+' conftest.er1 >conftest.err
17194   rm -f conftest.er1
17195   cat conftest.err >&5
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } && {
17198          test -z "$ac_c_werror_flag" ||
17199          test ! -s conftest.err
17200        } && test -s conftest.$ac_objext; then
17201   ac_cv_prog_cc_g=yes
17202 else
17203   echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17205
17206         CFLAGS=""
17207       cat >conftest.$ac_ext <<_ACEOF
17208 /* confdefs.h.  */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h.  */
17213
17214 int
17215 main ()
17216 {
17217
17218   ;
17219   return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest.$ac_objext
17223 if { (ac_try="$ac_compile"
17224 case "(($ac_try" in
17225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226   *) ac_try_echo=$ac_try;;
17227 esac
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229   (eval "$ac_compile") 2>conftest.er1
17230   ac_status=$?
17231   grep -v '^ *+' conftest.er1 >conftest.err
17232   rm -f conftest.er1
17233   cat conftest.err >&5
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); } && {
17236          test -z "$ac_c_werror_flag" ||
17237          test ! -s conftest.err
17238        } && test -s conftest.$ac_objext; then
17239   :
17240 else
17241   echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244         ac_c_werror_flag=$ac_save_c_werror_flag
17245          CFLAGS="-g"
17246          cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252
17253 int
17254 main ()
17255 {
17256
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_compile") 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } && {
17275          test -z "$ac_c_werror_flag" ||
17276          test ! -s conftest.err
17277        } && test -s conftest.$ac_objext; then
17278   ac_cv_prog_cc_g=yes
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283
17284 fi
17285
17286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17287 fi
17288
17289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290 fi
17291
17292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17293    ac_c_werror_flag=$ac_save_c_werror_flag
17294 fi
17295 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17296 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17297 if test "$ac_test_CFLAGS" = set; then
17298   CFLAGS=$ac_save_CFLAGS
17299 elif test $ac_cv_prog_cc_g = yes; then
17300   if test "$GCC" = yes; then
17301     CFLAGS="-g -O2"
17302   else
17303     CFLAGS="-g"
17304   fi
17305 else
17306   if test "$GCC" = yes; then
17307     CFLAGS="-O2"
17308   else
17309     CFLAGS=
17310   fi
17311 fi
17312             fi
17313         fi
17314
17315                         case `uname -s` in
17316             AIX*)
17317
17318
17319     ac_ext=cpp
17320 ac_cpp='$CXXCPP $CPPFLAGS'
17321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17324
17325     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17326 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17327 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17328   echo $ECHO_N "(cached) $ECHO_C" >&6
17329 else
17330   cat >conftest.$ac_ext <<_ACEOF
17331 /* confdefs.h.  */
17332 _ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h.  */
17336
17337 int
17338 main ()
17339 {
17340
17341              #ifndef __xlC__
17342                 choke me
17343              #endif
17344
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349 rm -f conftest.$ac_objext
17350 if { (ac_try="$ac_compile"
17351 case "(($ac_try" in
17352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353   *) ac_try_echo=$ac_try;;
17354 esac
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356   (eval "$ac_compile") 2>conftest.er1
17357   ac_status=$?
17358   grep -v '^ *+' conftest.er1 >conftest.err
17359   rm -f conftest.er1
17360   cat conftest.err >&5
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); } && {
17363          test -z "$ac_cxx_werror_flag" ||
17364          test ! -s conftest.err
17365        } && test -s conftest.$ac_objext; then
17366   bakefile_cv_cxx_compiler___xlC__=yes
17367 else
17368   echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371         bakefile_cv_cxx_compiler___xlC__=no
17372
17373 fi
17374
17375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376
17377
17378 fi
17379 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17380 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17381     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17382         :; XLCXX=yes
17383     else
17384         :;
17385     fi
17386     ac_ext=c
17387 ac_cpp='$CPP $CPPFLAGS'
17388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17391
17392
17393
17394                 ;;
17395
17396             Darwin)
17397
17398
17399     ac_ext=cpp
17400 ac_cpp='$CXXCPP $CPPFLAGS'
17401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17404
17405     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17406 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17407 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17408   echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410   cat >conftest.$ac_ext <<_ACEOF
17411 /* confdefs.h.  */
17412 _ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h.  */
17416
17417 int
17418 main ()
17419 {
17420
17421              #ifndef __MWERKS__
17422                 choke me
17423              #endif
17424
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext
17430 if { (ac_try="$ac_compile"
17431 case "(($ac_try" in
17432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433   *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436   (eval "$ac_compile") 2>conftest.er1
17437   ac_status=$?
17438   grep -v '^ *+' conftest.er1 >conftest.err
17439   rm -f conftest.er1
17440   cat conftest.err >&5
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); } && {
17443          test -z "$ac_cxx_werror_flag" ||
17444          test ! -s conftest.err
17445        } && test -s conftest.$ac_objext; then
17446   bakefile_cv_cxx_compiler___MWERKS__=yes
17447 else
17448   echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451         bakefile_cv_cxx_compiler___MWERKS__=no
17452
17453 fi
17454
17455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17456
17457
17458 fi
17459 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17460 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17461     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17462         :; MWCXX=yes
17463     else
17464         :;
17465     fi
17466     ac_ext=c
17467 ac_cpp='$CPP $CPPFLAGS'
17468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17471
17472
17473
17474                 if test "$MWCXX" != "yes"; then
17475
17476
17477     ac_ext=cpp
17478 ac_cpp='$CXXCPP $CPPFLAGS'
17479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17482
17483     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17484 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17485 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17486   echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488   cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h.  */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h.  */
17494
17495 int
17496 main ()
17497 {
17498
17499              #ifndef __xlC__
17500                 choke me
17501              #endif
17502
17503   ;
17504   return 0;
17505 }
17506 _ACEOF
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511   *) ac_try_echo=$ac_try;;
17512 esac
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514   (eval "$ac_compile") 2>conftest.er1
17515   ac_status=$?
17516   grep -v '^ *+' conftest.er1 >conftest.err
17517   rm -f conftest.er1
17518   cat conftest.err >&5
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); } && {
17521          test -z "$ac_cxx_werror_flag" ||
17522          test ! -s conftest.err
17523        } && test -s conftest.$ac_objext; then
17524   bakefile_cv_cxx_compiler___xlC__=yes
17525 else
17526   echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17528
17529         bakefile_cv_cxx_compiler___xlC__=no
17530
17531 fi
17532
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534
17535
17536 fi
17537 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17538 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17539     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17540         :; XLCXX=yes
17541     else
17542         :;
17543     fi
17544     ac_ext=c
17545 ac_cpp='$CPP $CPPFLAGS'
17546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17549
17550
17551
17552                 fi
17553                 ;;
17554
17555             IRIX*)
17556
17557
17558     ac_ext=cpp
17559 ac_cpp='$CXXCPP $CPPFLAGS'
17560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17563
17564     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17565 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17566 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569   cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575
17576 int
17577 main ()
17578 {
17579
17580              #ifndef _SGI_COMPILER_VERSION
17581                 choke me
17582              #endif
17583
17584   ;
17585   return 0;
17586 }
17587 _ACEOF
17588 rm -f conftest.$ac_objext
17589 if { (ac_try="$ac_compile"
17590 case "(($ac_try" in
17591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592   *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595   (eval "$ac_compile") 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } && {
17602          test -z "$ac_cxx_werror_flag" ||
17603          test ! -s conftest.err
17604        } && test -s conftest.$ac_objext; then
17605   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17611
17612 fi
17613
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615
17616
17617 fi
17618 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17619 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17620     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17621         :; SGICXX=yes
17622     else
17623         :;
17624     fi
17625     ac_ext=c
17626 ac_cpp='$CPP $CPPFLAGS'
17627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17630
17631
17632
17633                 ;;
17634
17635             Linux*)
17636                                                 if test "$INTELCXX" != "yes"; then
17637
17638
17639     ac_ext=cpp
17640 ac_cpp='$CXXCPP $CPPFLAGS'
17641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17644
17645     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17646 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17647 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17648   echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650   cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h.  */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h.  */
17656
17657 int
17658 main ()
17659 {
17660
17661              #ifndef __SUNPRO_CC
17662                 choke me
17663              #endif
17664
17665   ;
17666   return 0;
17667 }
17668 _ACEOF
17669 rm -f conftest.$ac_objext
17670 if { (ac_try="$ac_compile"
17671 case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_compile") 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } && {
17683          test -z "$ac_cxx_werror_flag" ||
17684          test ! -s conftest.err
17685        } && test -s conftest.$ac_objext; then
17686   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17692
17693 fi
17694
17695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696
17697
17698 fi
17699 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17700 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17701     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17702         :; SUNCXX=yes
17703     else
17704         :;
17705     fi
17706     ac_ext=c
17707 ac_cpp='$CPP $CPPFLAGS'
17708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711
17712
17713
17714                 fi
17715                 ;;
17716
17717             HP-UX*)
17718
17719
17720     ac_ext=cpp
17721 ac_cpp='$CXXCPP $CPPFLAGS'
17722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17725
17726     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17727 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17728 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17729   echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731   cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h.  */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h.  */
17737
17738 int
17739 main ()
17740 {
17741
17742              #ifndef __HP_aCC
17743                 choke me
17744              #endif
17745
17746   ;
17747   return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
17752 case "(($ac_try" in
17753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754   *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757   (eval "$ac_compile") 2>conftest.er1
17758   ac_status=$?
17759   grep -v '^ *+' conftest.er1 >conftest.err
17760   rm -f conftest.er1
17761   cat conftest.err >&5
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); } && {
17764          test -z "$ac_cxx_werror_flag" ||
17765          test ! -s conftest.err
17766        } && test -s conftest.$ac_objext; then
17767   bakefile_cv_cxx_compiler___HP_aCC=yes
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772         bakefile_cv_cxx_compiler___HP_aCC=no
17773
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777
17778
17779 fi
17780 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17781 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17782     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17783         :; HPCXX=yes
17784     else
17785         :;
17786     fi
17787     ac_ext=c
17788 ac_cpp='$CPP $CPPFLAGS'
17789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17792
17793
17794
17795                 ;;
17796
17797             OSF1)
17798
17799
17800     ac_ext=cpp
17801 ac_cpp='$CXXCPP $CPPFLAGS'
17802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17805
17806     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17807 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17808 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17809   echo $ECHO_N "(cached) $ECHO_C" >&6
17810 else
17811   cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h.  */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h.  */
17817
17818 int
17819 main ()
17820 {
17821
17822              #ifndef __DECCXX
17823                 choke me
17824              #endif
17825
17826   ;
17827   return 0;
17828 }
17829 _ACEOF
17830 rm -f conftest.$ac_objext
17831 if { (ac_try="$ac_compile"
17832 case "(($ac_try" in
17833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834   *) ac_try_echo=$ac_try;;
17835 esac
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837   (eval "$ac_compile") 2>conftest.er1
17838   ac_status=$?
17839   grep -v '^ *+' conftest.er1 >conftest.err
17840   rm -f conftest.er1
17841   cat conftest.err >&5
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); } && {
17844          test -z "$ac_cxx_werror_flag" ||
17845          test ! -s conftest.err
17846        } && test -s conftest.$ac_objext; then
17847   bakefile_cv_cxx_compiler___DECCXX=yes
17848 else
17849   echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852         bakefile_cv_cxx_compiler___DECCXX=no
17853
17854 fi
17855
17856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17857
17858
17859 fi
17860 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17861 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17862     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17863         :; COMPAQCXX=yes
17864     else
17865         :;
17866     fi
17867     ac_ext=c
17868 ac_cpp='$CPP $CPPFLAGS'
17869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17872
17873
17874
17875                 ;;
17876
17877             SunOS)
17878
17879
17880     ac_ext=cpp
17881 ac_cpp='$CXXCPP $CPPFLAGS'
17882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17885
17886     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17887 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17888 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17889   echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891   cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897
17898 int
17899 main ()
17900 {
17901
17902              #ifndef __SUNPRO_CC
17903                 choke me
17904              #endif
17905
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (ac_try="$ac_compile"
17912 case "(($ac_try" in
17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914   *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917   (eval "$ac_compile") 2>conftest.er1
17918   ac_status=$?
17919   grep -v '^ *+' conftest.er1 >conftest.err
17920   rm -f conftest.er1
17921   cat conftest.err >&5
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } && {
17924          test -z "$ac_cxx_werror_flag" ||
17925          test ! -s conftest.err
17926        } && test -s conftest.$ac_objext; then
17927   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17933
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937
17938
17939 fi
17940 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17941 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17942     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17943         :; SUNCXX=yes
17944     else
17945         :;
17946     fi
17947     ac_ext=c
17948 ac_cpp='$CPP $CPPFLAGS'
17949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17952
17953
17954
17955                 ;;
17956         esac
17957     fi
17958
17959
17960
17961 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17962     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17963 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17964    { (exit 1); exit 1; }; }
17965 fi
17966
17967 if test "x$SUNCXX" != xyes; then
17968     if test -n "$ac_tool_prefix"; then
17969   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17970 set dummy ${ac_tool_prefix}ar; ac_word=$2
17971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17973 if test "${ac_cv_prog_AR+set}" = set; then
17974   echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976   if test -n "$AR"; then
17977   ac_cv_prog_AR="$AR" # Let the user override the test.
17978 else
17979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17980 for as_dir in $PATH
17981 do
17982   IFS=$as_save_IFS
17983   test -z "$as_dir" && as_dir=.
17984   for ac_exec_ext in '' $ac_executable_extensions; do
17985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17986     ac_cv_prog_AR="${ac_tool_prefix}ar"
17987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17988     break 2
17989   fi
17990 done
17991 done
17992 IFS=$as_save_IFS
17993
17994 fi
17995 fi
17996 AR=$ac_cv_prog_AR
17997 if test -n "$AR"; then
17998   { echo "$as_me:$LINENO: result: $AR" >&5
17999 echo "${ECHO_T}$AR" >&6; }
18000 else
18001   { echo "$as_me:$LINENO: result: no" >&5
18002 echo "${ECHO_T}no" >&6; }
18003 fi
18004
18005
18006 fi
18007 if test -z "$ac_cv_prog_AR"; then
18008   ac_ct_AR=$AR
18009   # Extract the first word of "ar", so it can be a program name with args.
18010 set dummy ar; ac_word=$2
18011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18013 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18014   echo $ECHO_N "(cached) $ECHO_C" >&6
18015 else
18016   if test -n "$ac_ct_AR"; then
18017   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18018 else
18019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18020 for as_dir in $PATH
18021 do
18022   IFS=$as_save_IFS
18023   test -z "$as_dir" && as_dir=.
18024   for ac_exec_ext in '' $ac_executable_extensions; do
18025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18026     ac_cv_prog_ac_ct_AR="ar"
18027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18028     break 2
18029   fi
18030 done
18031 done
18032 IFS=$as_save_IFS
18033
18034 fi
18035 fi
18036 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18037 if test -n "$ac_ct_AR"; then
18038   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18039 echo "${ECHO_T}$ac_ct_AR" >&6; }
18040 else
18041   { echo "$as_me:$LINENO: result: no" >&5
18042 echo "${ECHO_T}no" >&6; }
18043 fi
18044
18045   if test "x$ac_ct_AR" = x; then
18046     AR=""
18047   else
18048     case $cross_compiling:$ac_tool_warned in
18049 yes:)
18050 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18051 whose name does not start with the host triplet.  If you think this
18052 configuration is useful to you, please write to autoconf@gnu.org." >&5
18053 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18054 whose name does not start with the host triplet.  If you think this
18055 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18056 ac_tool_warned=yes ;;
18057 esac
18058     AR=$ac_ct_AR
18059   fi
18060 else
18061   AR="$ac_cv_prog_AR"
18062 fi
18063
18064     if test "x$AR" = "x" ; then
18065         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18066 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18067    { (exit 1); exit 1; }; }
18068     fi
18069 fi
18070
18071 retest_macosx_linking=no
18072
18073 #if test "$wxUSE_MAC" = 1; then
18074     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18075                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18076             # Implicitly turn on the new --with-macosx-sdk using the default
18077             # SDK which provides the behavior this option has always had.
18078             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18079                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18080 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18081                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18082 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18083                 wxUSE_MACOSX_SDK=yes
18084             fi
18085         else
18086             # Complain to user if he specified an argument to --enable-universal_binary
18087             # and also 1) specified --with-macosx-sdk using the default (yes) or
18088             # 2) specified --with-macosx-sdk using a path or 3) specified
18089             # --without-macosx-sdk (no).
18090             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18091                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18092 See \`config.log' for more details." >&5
18093 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18094 See \`config.log' for more details." >&2;}
18095    { (exit 1); exit 1; }; }
18096             else
18097                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18098                 # special-case the empty string because the below test simply
18099                 # converts "no" to the empty string anyway.
18100                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18101                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18102 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18103             fi
18104         fi
18105                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18106         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18107         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18108         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18109         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18110         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18111                                                                                                                 retest_macosx_linking=yes
18112
18113                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18114 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18115         bk_use_pch=no
18116     fi
18117 #fi
18118
18119 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18120     wxUSE_MACOSX_SDK=
18121 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18122     # TODO: Search for most recent SDK and use it.
18123     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18124 fi
18125
18126
18127 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18128     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18129 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18130     if ! test -d "$wxUSE_MACOSX_SDK"; then
18131         { { echo "$as_me:$LINENO: error: not found
18132 See \`config.log' for more details." >&5
18133 echo "$as_me: error: not found
18134 See \`config.log' for more details." >&2;}
18135    { (exit 1); exit 1; }; }
18136     else
18137         { echo "$as_me:$LINENO: result: exists" >&5
18138 echo "${ECHO_T}exists" >&6; }
18139     fi
18140     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18141     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18142     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18143     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18144     retest_macosx_linking=yes
18145             fi
18146
18147 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18148     wxUSE_MACOSX_VERSION_MIN=
18149 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18150     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18151         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18152 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18153
18154         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/'`
18155
18156         # If that failed, try again with the new key
18157         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18158
18159             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/'`
18160
18161         fi
18162
18163         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18164             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18165             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18166 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18167         else
18168             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18169 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18170             wxUSE_MACOSX_VERSION_MIN=
18171         fi
18172     else
18173         wxUSE_MACOSX_VERSION_MIN=
18174     fi
18175 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18176     if test "$wxUSE_MAC" = 1; then
18177         # otherwise configure stops on leopard for universal_binary
18178         wxUSE_MACOSX_VERSION_MIN=10.4
18179     fi
18180 fi
18181
18182 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18183     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18184     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18185     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18186     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18187     retest_macosx_linking=yes
18188 fi
18189
18190 if test "x$retest_macosx_linking" = "xyes"; then
18191     ac_ext=c
18192 ac_cpp='$CPP $CPPFLAGS'
18193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18196
18197     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18198 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18199     cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h.  */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h.  */
18205
18206 int
18207 main ()
18208 {
18209
18210   ;
18211   return 0;
18212 }
18213 _ACEOF
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218   *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221   (eval "$ac_link") 2>conftest.er1
18222   ac_status=$?
18223   grep -v '^ *+' conftest.er1 >conftest.err
18224   rm -f conftest.er1
18225   cat conftest.err >&5
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); } && {
18228          test -z "$ac_c_werror_flag" ||
18229          test ! -s conftest.err
18230        } && test -s conftest$ac_exeext &&
18231        $as_test_x conftest$ac_exeext; then
18232   { echo "$as_me:$LINENO: result: yes" >&5
18233 echo "${ECHO_T}yes" >&6; }
18234 else
18235   echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18239 See \`config.log' for more details." >&5
18240 echo "$as_me: error: no.  Try a different SDK
18241 See \`config.log' for more details." >&2;}
18242    { (exit 1); exit 1; }; }; exit 1
18243 fi
18244
18245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18246       conftest$ac_exeext conftest.$ac_ext
18247     ac_ext=c
18248 ac_cpp='$CPP $CPPFLAGS'
18249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18252
18253
18254     ac_ext=cpp
18255 ac_cpp='$CXXCPP $CPPFLAGS'
18256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18259
18260     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18261 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18262     cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h.  */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h.  */
18268
18269 int
18270 main ()
18271 {
18272
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 rm -f conftest.$ac_objext conftest$ac_exeext
18278 if { (ac_try="$ac_link"
18279 case "(($ac_try" in
18280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281   *) ac_try_echo=$ac_try;;
18282 esac
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284   (eval "$ac_link") 2>conftest.er1
18285   ac_status=$?
18286   grep -v '^ *+' conftest.er1 >conftest.err
18287   rm -f conftest.er1
18288   cat conftest.err >&5
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); } && {
18291          test -z "$ac_cxx_werror_flag" ||
18292          test ! -s conftest.err
18293        } && test -s conftest$ac_exeext &&
18294        $as_test_x conftest$ac_exeext; then
18295   { echo "$as_me:$LINENO: result: yes" >&5
18296 echo "${ECHO_T}yes" >&6; }
18297 else
18298   echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18300
18301         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18302 See \`config.log' for more details." >&5
18303 echo "$as_me: error: no.  Try a different SDK
18304 See \`config.log' for more details." >&2;}
18305    { (exit 1); exit 1; }; }; exit 1
18306 fi
18307
18308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18309       conftest$ac_exeext conftest.$ac_ext
18310     ac_ext=c
18311 ac_cpp='$CPP $CPPFLAGS'
18312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18315
18316 fi
18317
18318
18319 case "${host}" in
18320
18321                 *-*-darwin* )
18322         INSTALL_PROGRAM="cp -fp"
18323         INSTALL_DATA="cp -fp"
18324         ;;
18325     *)
18326         ;;
18327 esac
18328
18329
18330 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18331     CXXFLAGS="-qunique $CXXFLAGS"
18332 fi
18333
18334 case "${host}" in
18335   powerpc-*-darwin* )
18336     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18337 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18338     cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344
18345 int
18346 main ()
18347 {
18348 #ifndef __POWERPC__
18349         choke me for lack of PowerPC
18350 #endif
18351
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 rm -f conftest.$ac_objext
18357 if { (ac_try="$ac_compile"
18358 case "(($ac_try" in
18359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360   *) ac_try_echo=$ac_try;;
18361 esac
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363   (eval "$ac_compile") 2>conftest.er1
18364   ac_status=$?
18365   grep -v '^ *+' conftest.er1 >conftest.err
18366   rm -f conftest.er1
18367   cat conftest.err >&5
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); } && {
18370          test -z "$ac_c_werror_flag" ||
18371          test ! -s conftest.err
18372        } && test -s conftest.$ac_objext; then
18373   { echo "$as_me:$LINENO: result: yes" >&5
18374 echo "${ECHO_T}yes" >&6; }
18375 else
18376   echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379         { echo "$as_me:$LINENO: result: no" >&5
18380 echo "${ECHO_T}no" >&6; }
18381         cat >>confdefs.h <<\_ACEOF
18382 #define __POWERPC__ 1
18383 _ACEOF
18384
18385
18386 fi
18387
18388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18389   ;;
18390 esac
18391
18392 case "${host}" in
18393   *-*-darwin* )
18394     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18395 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18396     cat >conftest.$ac_ext <<_ACEOF
18397 /* confdefs.h.  */
18398 _ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h.  */
18402 #include <CoreFoundation/CFBase.h>
18403
18404 int
18405 main ()
18406 {
18407
18408   ;
18409   return 0;
18410 }
18411 _ACEOF
18412 rm -f conftest.$ac_objext
18413 if { (ac_try="$ac_compile"
18414 case "(($ac_try" in
18415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416   *) ac_try_echo=$ac_try;;
18417 esac
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419   (eval "$ac_compile") 2>conftest.er1
18420   ac_status=$?
18421   grep -v '^ *+' conftest.er1 >conftest.err
18422   rm -f conftest.er1
18423   cat conftest.err >&5
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); } && {
18426          test -z "$ac_c_werror_flag" ||
18427          test ! -s conftest.err
18428        } && test -s conftest.$ac_objext; then
18429   { echo "$as_me:$LINENO: result: yes" >&5
18430 echo "${ECHO_T}yes" >&6; }
18431 else
18432   echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435         { echo "$as_me:$LINENO: result: no" >&5
18436 echo "${ECHO_T}no" >&6; }
18437         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18438 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18439         cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h.  */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h.  */
18445 #define __CF_USE_FRAMEWORK_INCLUDES__
18446 #include <CoreFoundation/CFBase.h>
18447
18448 int
18449 main ()
18450 {
18451
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (ac_try="$ac_compile"
18458 case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463   (eval "$ac_compile") 2>conftest.er1
18464   ac_status=$?
18465   grep -v '^ *+' conftest.er1 >conftest.err
18466   rm -f conftest.er1
18467   cat conftest.err >&5
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); } && {
18470          test -z "$ac_c_werror_flag" ||
18471          test ! -s conftest.err
18472        } && test -s conftest.$ac_objext; then
18473   { echo "$as_me:$LINENO: result: yes" >&5
18474 echo "${ECHO_T}yes" >&6; }
18475                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18476 else
18477   echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18481 See \`config.log' for more details." >&5
18482 echo "$as_me: error: no.  CoreFoundation not available.
18483 See \`config.log' for more details." >&2;}
18484    { (exit 1); exit 1; }; }
18485
18486 fi
18487
18488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18489
18490
18491 fi
18492
18493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18494   ;;
18495 esac
18496
18497 wants_win32=0
18498 doesnt_want_win32=0
18499 case "${host}" in
18500   *-*-cygwin*)
18501       if test "$wxUSE_MSW" = 1 ; then
18502         wants_win32=1
18503       else
18504                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18505 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18506 if test "${wx_cv_nocygwin+set}" = set; then
18507   echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509
18510                 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h.  */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h.  */
18516
18517 int
18518 main ()
18519 {
18520
18521                         #ifdef __MINGW32__
18522                             choke me
18523                         #endif
18524
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_compile") 2>conftest.er1
18537   ac_status=$?
18538   grep -v '^ *+' conftest.er1 >conftest.err
18539   rm -f conftest.er1
18540   cat conftest.err >&5
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); } && {
18543          test -z "$ac_c_werror_flag" ||
18544          test ! -s conftest.err
18545        } && test -s conftest.$ac_objext; then
18546   wx_cv_nocygwin=no
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         wx_cv_nocygwin=yes
18552
18553 fi
18554
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556
18557
18558 fi
18559 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18560 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18561
18562         if test "$wx_cv_nocygwin" = "yes"; then
18563             wants_win32=1
18564         else
18565             doesnt_want_win32=1
18566         fi
18567       fi
18568       if test "$wants_win32" = 1 ; then
18569         BAKEFILE_FORCE_PLATFORM=win32
18570       fi
18571   ;;
18572   *-*-mingw*)
18573       wants_win32=1
18574   ;;
18575 esac
18576
18577 if test "$wxUSE_WINE" = "yes"; then
18578     wants_win32=1
18579     LDFLAGS_GUI="-mwindows"
18580 fi
18581
18582 if test "$wants_win32" = 1 ; then
18583     USE_UNIX=0
18584     USE_WIN32=1
18585     cat >>confdefs.h <<\_ACEOF
18586 #define __WIN32__ 1
18587 _ACEOF
18588
18589     cat >>confdefs.h <<\_ACEOF
18590 #define __WIN95__ 1
18591 _ACEOF
18592
18593     cat >>confdefs.h <<\_ACEOF
18594 #define __WINDOWS__ 1
18595 _ACEOF
18596
18597     cat >>confdefs.h <<\_ACEOF
18598 #define __GNUWIN32__ 1
18599 _ACEOF
18600
18601     cat >>confdefs.h <<\_ACEOF
18602 #define STRICT 1
18603 _ACEOF
18604
18605 fi
18606 if test "$doesnt_want_win32" = 1 ; then
18607     USE_UNIX=1
18608     USE_WIN32=0
18609 fi
18610
18611 if test "$USE_UNIX" = 1 ; then
18612     wxUSE_UNIX=yes
18613     cat >>confdefs.h <<\_ACEOF
18614 #define __UNIX__ 1
18615 _ACEOF
18616
18617 fi
18618
18619 case "${host}" in
18620   *-pc-os2_emx | *-pc-os2-emx )
18621                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18622                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18623 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18624 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18625   echo $ECHO_N "(cached) $ECHO_C" >&6
18626 else
18627   ac_check_lib_save_LIBS=$LIBS
18628 LIBS="-lcExt  $LIBS"
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h.  */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h.  */
18635
18636 /* Override any GCC internal prototype to avoid an error.
18637    Use char because int might match the return type of a GCC
18638    builtin and then its argument prototype would still apply.  */
18639 #ifdef __cplusplus
18640 extern "C"
18641 #endif
18642 char drand48 ();
18643 int
18644 main ()
18645 {
18646 return drand48 ();
18647   ;
18648   return 0;
18649 }
18650 _ACEOF
18651 rm -f conftest.$ac_objext conftest$ac_exeext
18652 if { (ac_try="$ac_link"
18653 case "(($ac_try" in
18654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655   *) ac_try_echo=$ac_try;;
18656 esac
18657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18658   (eval "$ac_link") 2>conftest.er1
18659   ac_status=$?
18660   grep -v '^ *+' conftest.er1 >conftest.err
18661   rm -f conftest.er1
18662   cat conftest.err >&5
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); } && {
18665          test -z "$ac_c_werror_flag" ||
18666          test ! -s conftest.err
18667        } && test -s conftest$ac_exeext &&
18668        $as_test_x conftest$ac_exeext; then
18669   ac_cv_lib_cExt_drand48=yes
18670 else
18671   echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18673
18674         ac_cv_lib_cExt_drand48=no
18675 fi
18676
18677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18678       conftest$ac_exeext conftest.$ac_ext
18679 LIBS=$ac_check_lib_save_LIBS
18680 fi
18681 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18682 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18683 if test $ac_cv_lib_cExt_drand48 = yes; then
18684   LIBS="$LIBS -lcExt"
18685 fi
18686
18687       else
18688                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18689       fi
18690                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18691 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18692 if test "${wx_cv_gccversion+set}" = set; then
18693   echo $ECHO_N "(cached) $ECHO_C" >&6
18694 else
18695
18696           if test "$cross_compiling" = yes; then
18697                 wx_cv_gccversion="EMX2"
18698
18699 else
18700   cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h.  */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h.  */
18706
18707                   #include <stdio.h>
18708
18709                   int main()
18710                   {
18711                       FILE *f=fopen("conftestval", "w");
18712                       if (!f) exit(1);
18713                       fprintf(f,
18714                   #if (__GNUC__ < 3)
18715                               "EMX2"
18716                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18717                               "EMX3"
18718                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18719                               "Innotek5"
18720                   #else
18721                               "Innotek6"
18722                   #endif
18723                       );
18724                       exit(0);
18725                   }
18726
18727 _ACEOF
18728 rm -f conftest$ac_exeext
18729 if { (ac_try="$ac_link"
18730 case "(($ac_try" in
18731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732   *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735   (eval "$ac_link") 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18739   { (case "(($ac_try" in
18740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741   *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744   (eval "$ac_try") 2>&5
18745   ac_status=$?
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); }; }; then
18748   wx_cv_gccversion=`cat conftestval`
18749 else
18750   echo "$as_me: program exited with status $ac_status" >&5
18751 echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754 ( exit $ac_status )
18755 wx_cv_gccversion="EMX2"
18756 fi
18757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18758 fi
18759
18760
18761
18762 fi
18763 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18764 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18765       if test "$wx_cv_gccversion" = "EMX2"; then
18766           LIBS="$LIBS -lstdcpp"
18767           LDFLAGS="$LDFLAGS -Zsysv-signals"
18768       else
18769           if test "$wx_cv_gccversion" = "EMX3"; then
18770               LIBS="$LIBS -lstdcxx -lgcc"
18771               LDFLAGS="$LDFLAGS -Zsysv-signals"
18772           else
18773               LIBS="$LIBS -lstdc++"
18774           fi
18775       fi
18776       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18777         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18778 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18779         wxUSE_OMF=yes
18780         enable_omf=yes
18781       fi
18782         ;;
18783   *)
18784
18785       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18786 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18787 if test "${ac_cv_string_strcasecmp+set}" = set; then
18788   echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790
18791           cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797
18798               #include <string.h>
18799
18800 int
18801 main ()
18802 {
18803
18804                   strcasecmp("foo", "bar");
18805
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817   (eval "$ac_link") 2>conftest.er1
18818   ac_status=$?
18819   grep -v '^ *+' conftest.er1 >conftest.err
18820   rm -f conftest.er1
18821   cat conftest.err >&5
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); } && {
18824          test -z "$ac_c_werror_flag" ||
18825          test ! -s conftest.err
18826        } && test -s conftest$ac_exeext &&
18827        $as_test_x conftest$ac_exeext; then
18828   ac_cv_string_strcasecmp=yes
18829 else
18830   echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833         ac_cv_string_strcasecmp=no
18834
18835 fi
18836
18837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18838       conftest$ac_exeext conftest.$ac_ext
18839
18840 fi
18841 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18842 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18843
18844       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18845           cat >>confdefs.h <<\_ACEOF
18846 #define HAVE_STRCASECMP_IN_STRING_H 1
18847 _ACEOF
18848
18849       else
18850           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18851 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18852 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18853   echo $ECHO_N "(cached) $ECHO_C" >&6
18854 else
18855
18856               cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862
18863                   #include <strings.h>
18864
18865 int
18866 main ()
18867 {
18868
18869                       strcasecmp("foo", "bar");
18870
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext conftest$ac_exeext
18876 if { (ac_try="$ac_link"
18877 case "(($ac_try" in
18878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879   *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882   (eval "$ac_link") 2>conftest.er1
18883   ac_status=$?
18884   grep -v '^ *+' conftest.er1 >conftest.err
18885   rm -f conftest.er1
18886   cat conftest.err >&5
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); } && {
18889          test -z "$ac_c_werror_flag" ||
18890          test ! -s conftest.err
18891        } && test -s conftest$ac_exeext &&
18892        $as_test_x conftest$ac_exeext; then
18893   ac_cv_strings_strcasecmp=yes
18894 else
18895   echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18897
18898         ac_cv_strings_strcasecmp=no
18899
18900 fi
18901
18902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903       conftest$ac_exeext conftest.$ac_ext
18904
18905 fi
18906 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18907 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18908
18909           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18910               cat >>confdefs.h <<\_ACEOF
18911 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18912 _ACEOF
18913
18914           else
18915               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18916 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18917    { (exit 1); exit 1; }; }
18918           fi
18919       fi
18920
18921         ;;
18922 esac
18923
18924
18925 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18926 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18927 if test "${ac_cv_header_stdc+set}" = set; then
18928   echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930   cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936 #include <stdlib.h>
18937 #include <stdarg.h>
18938 #include <string.h>
18939 #include <float.h>
18940
18941 int
18942 main ()
18943 {
18944
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext
18950 if { (ac_try="$ac_compile"
18951 case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_compile") 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } && {
18963          test -z "$ac_c_werror_flag" ||
18964          test ! -s conftest.err
18965        } && test -s conftest.$ac_objext; then
18966   ac_cv_header_stdc=yes
18967 else
18968   echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971         ac_cv_header_stdc=no
18972 fi
18973
18974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18975
18976 if test $ac_cv_header_stdc = yes; then
18977   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18978   cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h.  */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h.  */
18984 #include <string.h>
18985
18986 _ACEOF
18987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18988   $EGREP "memchr" >/dev/null 2>&1; then
18989   :
18990 else
18991   ac_cv_header_stdc=no
18992 fi
18993 rm -f conftest*
18994
18995 fi
18996
18997 if test $ac_cv_header_stdc = yes; then
18998   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18999   cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005 #include <stdlib.h>
19006
19007 _ACEOF
19008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19009   $EGREP "free" >/dev/null 2>&1; then
19010   :
19011 else
19012   ac_cv_header_stdc=no
19013 fi
19014 rm -f conftest*
19015
19016 fi
19017
19018 if test $ac_cv_header_stdc = yes; then
19019   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19020   if test "$cross_compiling" = yes; then
19021   :
19022 else
19023   cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029 #include <ctype.h>
19030 #include <stdlib.h>
19031 #if ((' ' & 0x0FF) == 0x020)
19032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19034 #else
19035 # define ISLOWER(c) \
19036                    (('a' <= (c) && (c) <= 'i') \
19037                      || ('j' <= (c) && (c) <= 'r') \
19038                      || ('s' <= (c) && (c) <= 'z'))
19039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19040 #endif
19041
19042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19043 int
19044 main ()
19045 {
19046   int i;
19047   for (i = 0; i < 256; i++)
19048     if (XOR (islower (i), ISLOWER (i))
19049         || toupper (i) != TOUPPER (i))
19050       return 2;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest$ac_exeext
19055 if { (ac_try="$ac_link"
19056 case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_link") 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19065   { (case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070   (eval "$ac_try") 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); }; }; then
19074   :
19075 else
19076   echo "$as_me: program exited with status $ac_status" >&5
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ( exit $ac_status )
19081 ac_cv_header_stdc=no
19082 fi
19083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19084 fi
19085
19086
19087 fi
19088 fi
19089 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19090 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19091 if test $ac_cv_header_stdc = yes; then
19092
19093 cat >>confdefs.h <<\_ACEOF
19094 #define STDC_HEADERS 1
19095 _ACEOF
19096
19097 fi
19098
19099 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19110                   inttypes.h stdint.h unistd.h
19111 do
19112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19116   echo $ECHO_N "(cached) $ECHO_C" >&6
19117 else
19118   cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h.  */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h.  */
19124 $ac_includes_default
19125
19126 #include <$ac_header>
19127 _ACEOF
19128 rm -f conftest.$ac_objext
19129 if { (ac_try="$ac_compile"
19130 case "(($ac_try" in
19131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132   *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135   (eval "$ac_compile") 2>conftest.er1
19136   ac_status=$?
19137   grep -v '^ *+' conftest.er1 >conftest.err
19138   rm -f conftest.er1
19139   cat conftest.err >&5
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); } && {
19142          test -z "$ac_c_werror_flag" ||
19143          test ! -s conftest.err
19144        } && test -s conftest.$ac_objext; then
19145   eval "$as_ac_Header=yes"
19146 else
19147   echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150         eval "$as_ac_Header=no"
19151 fi
19152
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154 fi
19155 ac_res=`eval echo '${'$as_ac_Header'}'`
19156                { echo "$as_me:$LINENO: result: $ac_res" >&5
19157 echo "${ECHO_T}$ac_res" >&6; }
19158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19159   cat >>confdefs.h <<_ACEOF
19160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19161 _ACEOF
19162
19163 fi
19164
19165 done
19166
19167
19168
19169
19170 for ac_header in langinfo.h wchar.h
19171 do
19172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19176   echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178   cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h.  */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h.  */
19184 $ac_includes_default
19185
19186 #include <$ac_header>
19187 _ACEOF
19188 rm -f conftest.$ac_objext
19189 if { (ac_try="$ac_compile"
19190 case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_compile") 2>conftest.er1
19196   ac_status=$?
19197   grep -v '^ *+' conftest.er1 >conftest.err
19198   rm -f conftest.er1
19199   cat conftest.err >&5
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); } && {
19202          test -z "$ac_c_werror_flag" ||
19203          test ! -s conftest.err
19204        } && test -s conftest.$ac_objext; then
19205   eval "$as_ac_Header=yes"
19206 else
19207   echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210         eval "$as_ac_Header=no"
19211 fi
19212
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 fi
19215 ac_res=`eval echo '${'$as_ac_Header'}'`
19216                { echo "$as_me:$LINENO: result: $ac_res" >&5
19217 echo "${ECHO_T}$ac_res" >&6; }
19218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19219   cat >>confdefs.h <<_ACEOF
19220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19221 _ACEOF
19222
19223 fi
19224
19225 done
19226
19227
19228 if test "$ac_cv_header_wchar_h" != "yes"; then
19229
19230 for ac_header in wcstr.h
19231 do
19232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19236   echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238   cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 $ac_includes_default
19245
19246 #include <$ac_header>
19247 _ACEOF
19248 rm -f conftest.$ac_objext
19249 if { (ac_try="$ac_compile"
19250 case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_compile") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } && {
19262          test -z "$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        } && test -s conftest.$ac_objext; then
19265   eval "$as_ac_Header=yes"
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270         eval "$as_ac_Header=no"
19271 fi
19272
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274 fi
19275 ac_res=`eval echo '${'$as_ac_Header'}'`
19276                { echo "$as_me:$LINENO: result: $ac_res" >&5
19277 echo "${ECHO_T}$ac_res" >&6; }
19278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19279   cat >>confdefs.h <<_ACEOF
19280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19281 _ACEOF
19282
19283 fi
19284
19285 done
19286
19287 fi
19288
19289 case "${host}" in
19290   *-pc-os2_emx | *-pc-os2-emx )
19291                   if test $ac_cv_header_langinfo_h = "yes" \
19292                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19293                      -o "$wx_cv_gccversion" = "EMX3" \
19294                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19295           LIBS="$LIBS -lintl"
19296       fi
19297   ;;
19298 esac
19299
19300 if test "$USE_UNIX" = 1 ; then
19301
19302 for ac_header in sys/select.h
19303 do
19304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316 $ac_includes_default
19317
19318 #include <$ac_header>
19319 _ACEOF
19320 rm -f conftest.$ac_objext
19321 if { (ac_try="$ac_compile"
19322 case "(($ac_try" in
19323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324   *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327   (eval "$ac_compile") 2>conftest.er1
19328   ac_status=$?
19329   grep -v '^ *+' conftest.er1 >conftest.err
19330   rm -f conftest.er1
19331   cat conftest.err >&5
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); } && {
19334          test -z "$ac_c_werror_flag" ||
19335          test ! -s conftest.err
19336        } && test -s conftest.$ac_objext; then
19337   eval "$as_ac_Header=yes"
19338 else
19339   echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342         eval "$as_ac_Header=no"
19343 fi
19344
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 fi
19347 ac_res=`eval echo '${'$as_ac_Header'}'`
19348                { echo "$as_me:$LINENO: result: $ac_res" >&5
19349 echo "${ECHO_T}$ac_res" >&6; }
19350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19351   cat >>confdefs.h <<_ACEOF
19352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19353 _ACEOF
19354
19355 fi
19356
19357 done
19358
19359 fi
19360
19361
19362 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19363 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19364 if test "${ac_cv_c_const+set}" = set; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373
19374 int
19375 main ()
19376 {
19377 /* FIXME: Include the comments suggested by Paul. */
19378 #ifndef __cplusplus
19379   /* Ultrix mips cc rejects this.  */
19380   typedef int charset[2];
19381   const charset cs;
19382   /* SunOS 4.1.1 cc rejects this.  */
19383   char const *const *pcpcc;
19384   char **ppc;
19385   /* NEC SVR4.0.2 mips cc rejects this.  */
19386   struct point {int x, y;};
19387   static struct point const zero = {0,0};
19388   /* AIX XL C 1.02.0.0 rejects this.
19389      It does not let you subtract one const X* pointer from another in
19390      an arm of an if-expression whose if-part is not a constant
19391      expression */
19392   const char *g = "string";
19393   pcpcc = &g + (g ? g-g : 0);
19394   /* HPUX 7.0 cc rejects these. */
19395   ++pcpcc;
19396   ppc = (char**) pcpcc;
19397   pcpcc = (char const *const *) ppc;
19398   { /* SCO 3.2v4 cc rejects this.  */
19399     char *t;
19400     char const *s = 0 ? (char *) 0 : (char const *) 0;
19401
19402     *t++ = 0;
19403     if (s) return 0;
19404   }
19405   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19406     int x[] = {25, 17};
19407     const int *foo = &x[0];
19408     ++foo;
19409   }
19410   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19411     typedef const int *iptr;
19412     iptr p = 0;
19413     ++p;
19414   }
19415   { /* AIX XL C 1.02.0.0 rejects this saying
19416        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19417     struct s { int j; const int *ap[3]; };
19418     struct s *b; b->j = 5;
19419   }
19420   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19421     const int foo = 10;
19422     if (!foo) return 0;
19423   }
19424   return !cs[0] && !zero.x;
19425 #endif
19426
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext
19432 if { (ac_try="$ac_compile"
19433 case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438   (eval "$ac_compile") 2>conftest.er1
19439   ac_status=$?
19440   grep -v '^ *+' conftest.er1 >conftest.err
19441   rm -f conftest.er1
19442   cat conftest.err >&5
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); } && {
19445          test -z "$ac_c_werror_flag" ||
19446          test ! -s conftest.err
19447        } && test -s conftest.$ac_objext; then
19448   ac_cv_c_const=yes
19449 else
19450   echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453         ac_cv_c_const=no
19454 fi
19455
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 fi
19458 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19459 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19460 if test $ac_cv_c_const = no; then
19461
19462 cat >>confdefs.h <<\_ACEOF
19463 #define const
19464 _ACEOF
19465
19466 fi
19467
19468 { echo "$as_me:$LINENO: checking for inline" >&5
19469 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19470 if test "${ac_cv_c_inline+set}" = set; then
19471   echo $ECHO_N "(cached) $ECHO_C" >&6
19472 else
19473   ac_cv_c_inline=no
19474 for ac_kw in inline __inline__ __inline; do
19475   cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h.  */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h.  */
19481 #ifndef __cplusplus
19482 typedef int foo_t;
19483 static $ac_kw foo_t static_foo () {return 0; }
19484 $ac_kw foo_t foo () {return 0; }
19485 #endif
19486
19487 _ACEOF
19488 rm -f conftest.$ac_objext
19489 if { (ac_try="$ac_compile"
19490 case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495   (eval "$ac_compile") 2>conftest.er1
19496   ac_status=$?
19497   grep -v '^ *+' conftest.er1 >conftest.err
19498   rm -f conftest.er1
19499   cat conftest.err >&5
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); } && {
19502          test -z "$ac_c_werror_flag" ||
19503          test ! -s conftest.err
19504        } && test -s conftest.$ac_objext; then
19505   ac_cv_c_inline=$ac_kw
19506 else
19507   echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510
19511 fi
19512
19513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19514   test "$ac_cv_c_inline" != no && break
19515 done
19516
19517 fi
19518 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19519 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19520
19521
19522 case $ac_cv_c_inline in
19523   inline | yes) ;;
19524   *)
19525     case $ac_cv_c_inline in
19526       no) ac_val=;;
19527       *) ac_val=$ac_cv_c_inline;;
19528     esac
19529     cat >>confdefs.h <<_ACEOF
19530 #ifndef __cplusplus
19531 #define inline $ac_val
19532 #endif
19533 _ACEOF
19534     ;;
19535 esac
19536
19537
19538 { echo "$as_me:$LINENO: checking for short" >&5
19539 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19540 if test "${ac_cv_type_short+set}" = set; then
19541   echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543   cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h.  */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h.  */
19549 $ac_includes_default
19550 typedef short ac__type_new_;
19551 int
19552 main ()
19553 {
19554 if ((ac__type_new_ *) 0)
19555   return 0;
19556 if (sizeof (ac__type_new_))
19557   return 0;
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext
19563 if { (ac_try="$ac_compile"
19564 case "(($ac_try" in
19565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566   *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569   (eval "$ac_compile") 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } && {
19576          test -z "$ac_c_werror_flag" ||
19577          test ! -s conftest.err
19578        } && test -s conftest.$ac_objext; then
19579   ac_cv_type_short=yes
19580 else
19581   echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584         ac_cv_type_short=no
19585 fi
19586
19587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19588 fi
19589 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19590 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19591
19592 # The cast to long int works around a bug in the HP C Compiler
19593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19595 # This bug is HP SR number 8606223364.
19596 { echo "$as_me:$LINENO: checking size of short" >&5
19597 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19598 if test "${ac_cv_sizeof_short+set}" = set; then
19599   echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601   if test "$cross_compiling" = yes; then
19602   # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
19610    typedef short ac__type_sizeof_;
19611 int
19612 main ()
19613 {
19614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19615 test_array [0] = 0
19616
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (ac_try="$ac_compile"
19623 case "(($ac_try" in
19624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625   *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628   (eval "$ac_compile") 2>conftest.er1
19629   ac_status=$?
19630   grep -v '^ *+' conftest.er1 >conftest.err
19631   rm -f conftest.er1
19632   cat conftest.err >&5
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); } && {
19635          test -z "$ac_c_werror_flag" ||
19636          test ! -s conftest.err
19637        } && test -s conftest.$ac_objext; then
19638   ac_lo=0 ac_mid=0
19639   while :; do
19640     cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h.  */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h.  */
19646 $ac_includes_default
19647    typedef short ac__type_sizeof_;
19648 int
19649 main ()
19650 {
19651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19652 test_array [0] = 0
19653
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662   *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665   (eval "$ac_compile") 2>conftest.er1
19666   ac_status=$?
19667   grep -v '^ *+' conftest.er1 >conftest.err
19668   rm -f conftest.er1
19669   cat conftest.err >&5
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } && {
19672          test -z "$ac_c_werror_flag" ||
19673          test ! -s conftest.err
19674        } && test -s conftest.$ac_objext; then
19675   ac_hi=$ac_mid; break
19676 else
19677   echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680         ac_lo=`expr $ac_mid + 1`
19681                         if test $ac_lo -le $ac_mid; then
19682                           ac_lo= ac_hi=
19683                           break
19684                         fi
19685                         ac_mid=`expr 2 '*' $ac_mid + 1`
19686 fi
19687
19688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19689   done
19690 else
19691   echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694         cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700 $ac_includes_default
19701    typedef short ac__type_sizeof_;
19702 int
19703 main ()
19704 {
19705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19706 test_array [0] = 0
19707
19708   ;
19709   return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716   *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719   (eval "$ac_compile") 2>conftest.er1
19720   ac_status=$?
19721   grep -v '^ *+' conftest.er1 >conftest.err
19722   rm -f conftest.er1
19723   cat conftest.err >&5
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } && {
19726          test -z "$ac_c_werror_flag" ||
19727          test ! -s conftest.err
19728        } && test -s conftest.$ac_objext; then
19729   ac_hi=-1 ac_mid=-1
19730   while :; do
19731     cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737 $ac_includes_default
19738    typedef short ac__type_sizeof_;
19739 int
19740 main ()
19741 {
19742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19743 test_array [0] = 0
19744
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (ac_try="$ac_compile"
19751 case "(($ac_try" in
19752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753   *) ac_try_echo=$ac_try;;
19754 esac
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756   (eval "$ac_compile") 2>conftest.er1
19757   ac_status=$?
19758   grep -v '^ *+' conftest.er1 >conftest.err
19759   rm -f conftest.er1
19760   cat conftest.err >&5
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); } && {
19763          test -z "$ac_c_werror_flag" ||
19764          test ! -s conftest.err
19765        } && test -s conftest.$ac_objext; then
19766   ac_lo=$ac_mid; break
19767 else
19768   echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19770
19771         ac_hi=`expr '(' $ac_mid ')' - 1`
19772                         if test $ac_mid -le $ac_hi; then
19773                           ac_lo= ac_hi=
19774                           break
19775                         fi
19776                         ac_mid=`expr 2 '*' $ac_mid`
19777 fi
19778
19779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19780   done
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785         ac_lo= ac_hi=
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 fi
19790
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 # Binary search between lo and hi bounds.
19793 while test "x$ac_lo" != "x$ac_hi"; do
19794   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19795   cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801 $ac_includes_default
19802    typedef short ac__type_sizeof_;
19803 int
19804 main ()
19805 {
19806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19807 test_array [0] = 0
19808
19809   ;
19810   return 0;
19811 }
19812 _ACEOF
19813 rm -f conftest.$ac_objext
19814 if { (ac_try="$ac_compile"
19815 case "(($ac_try" in
19816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817   *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820   (eval "$ac_compile") 2>conftest.er1
19821   ac_status=$?
19822   grep -v '^ *+' conftest.er1 >conftest.err
19823   rm -f conftest.er1
19824   cat conftest.err >&5
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); } && {
19827          test -z "$ac_c_werror_flag" ||
19828          test ! -s conftest.err
19829        } && test -s conftest.$ac_objext; then
19830   ac_hi=$ac_mid
19831 else
19832   echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835         ac_lo=`expr '(' $ac_mid ')' + 1`
19836 fi
19837
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839 done
19840 case $ac_lo in
19841 ?*) ac_cv_sizeof_short=$ac_lo;;
19842 '') if test "$ac_cv_type_short" = yes; then
19843      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19844 See \`config.log' for more details." >&5
19845 echo "$as_me: error: cannot compute sizeof (short)
19846 See \`config.log' for more details." >&2;}
19847    { (exit 77); exit 77; }; }
19848    else
19849      ac_cv_sizeof_short=0
19850    fi ;;
19851 esac
19852 else
19853   cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859 $ac_includes_default
19860    typedef short ac__type_sizeof_;
19861 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19862 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19863 #include <stdio.h>
19864 #include <stdlib.h>
19865 int
19866 main ()
19867 {
19868
19869   FILE *f = fopen ("conftest.val", "w");
19870   if (! f)
19871     return 1;
19872   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19873     {
19874       long int i = longval ();
19875       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19876         return 1;
19877       fprintf (f, "%ld\n", i);
19878     }
19879   else
19880     {
19881       unsigned long int i = ulongval ();
19882       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19883         return 1;
19884       fprintf (f, "%lu\n", i);
19885     }
19886   return ferror (f) || fclose (f) != 0;
19887
19888   ;
19889   return 0;
19890 }
19891 _ACEOF
19892 rm -f conftest$ac_exeext
19893 if { (ac_try="$ac_link"
19894 case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_link") 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19903   { (case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908   (eval "$ac_try") 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; }; then
19912   ac_cv_sizeof_short=`cat conftest.val`
19913 else
19914   echo "$as_me: program exited with status $ac_status" >&5
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19917
19918 ( exit $ac_status )
19919 if test "$ac_cv_type_short" = yes; then
19920      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19921 See \`config.log' for more details." >&5
19922 echo "$as_me: error: cannot compute sizeof (short)
19923 See \`config.log' for more details." >&2;}
19924    { (exit 77); exit 77; }; }
19925    else
19926      ac_cv_sizeof_short=0
19927    fi
19928 fi
19929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19930 fi
19931 rm -f conftest.val
19932 fi
19933 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19934 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19935
19936
19937
19938 cat >>confdefs.h <<_ACEOF
19939 #define SIZEOF_SHORT $ac_cv_sizeof_short
19940 _ACEOF
19941
19942
19943 { echo "$as_me:$LINENO: checking for void *" >&5
19944 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19945 if test "${ac_cv_type_void_p+set}" = set; then
19946   echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948   cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 $ac_includes_default
19955 typedef void * ac__type_new_;
19956 int
19957 main ()
19958 {
19959 if ((ac__type_new_ *) 0)
19960   return 0;
19961 if (sizeof (ac__type_new_))
19962   return 0;
19963   ;
19964   return 0;
19965 }
19966 _ACEOF
19967 rm -f conftest.$ac_objext
19968 if { (ac_try="$ac_compile"
19969 case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974   (eval "$ac_compile") 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } && {
19981          test -z "$ac_c_werror_flag" ||
19982          test ! -s conftest.err
19983        } && test -s conftest.$ac_objext; then
19984   ac_cv_type_void_p=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989         ac_cv_type_void_p=no
19990 fi
19991
19992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993 fi
19994 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19995 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19996
19997 # The cast to long int works around a bug in the HP C Compiler
19998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20000 # This bug is HP SR number 8606223364.
20001 { echo "$as_me:$LINENO: checking size of void *" >&5
20002 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20003 if test "${ac_cv_sizeof_void_p+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   if test "$cross_compiling" = yes; then
20007   # Depending upon the size, compute the lo and hi bounds.
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h.  */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h.  */
20014 $ac_includes_default
20015    typedef void * ac__type_sizeof_;
20016 int
20017 main ()
20018 {
20019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20020 test_array [0] = 0
20021
20022   ;
20023   return 0;
20024 }
20025 _ACEOF
20026 rm -f conftest.$ac_objext
20027 if { (ac_try="$ac_compile"
20028 case "(($ac_try" in
20029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030   *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033   (eval "$ac_compile") 2>conftest.er1
20034   ac_status=$?
20035   grep -v '^ *+' conftest.er1 >conftest.err
20036   rm -f conftest.er1
20037   cat conftest.err >&5
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); } && {
20040          test -z "$ac_c_werror_flag" ||
20041          test ! -s conftest.err
20042        } && test -s conftest.$ac_objext; then
20043   ac_lo=0 ac_mid=0
20044   while :; do
20045     cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 $ac_includes_default
20052    typedef void * ac__type_sizeof_;
20053 int
20054 main ()
20055 {
20056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20057 test_array [0] = 0
20058
20059   ;
20060   return 0;
20061 }
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (ac_try="$ac_compile"
20065 case "(($ac_try" in
20066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067   *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070   (eval "$ac_compile") 2>conftest.er1
20071   ac_status=$?
20072   grep -v '^ *+' conftest.er1 >conftest.err
20073   rm -f conftest.er1
20074   cat conftest.err >&5
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } && {
20077          test -z "$ac_c_werror_flag" ||
20078          test ! -s conftest.err
20079        } && test -s conftest.$ac_objext; then
20080   ac_hi=$ac_mid; break
20081 else
20082   echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20084
20085         ac_lo=`expr $ac_mid + 1`
20086                         if test $ac_lo -le $ac_mid; then
20087                           ac_lo= ac_hi=
20088                           break
20089                         fi
20090                         ac_mid=`expr 2 '*' $ac_mid + 1`
20091 fi
20092
20093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20094   done
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099         cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 $ac_includes_default
20106    typedef void * ac__type_sizeof_;
20107 int
20108 main ()
20109 {
20110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20111 test_array [0] = 0
20112
20113   ;
20114   return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (ac_try="$ac_compile"
20119 case "(($ac_try" in
20120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121   *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124   (eval "$ac_compile") 2>conftest.er1
20125   ac_status=$?
20126   grep -v '^ *+' conftest.er1 >conftest.err
20127   rm -f conftest.er1
20128   cat conftest.err >&5
20129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130   (exit $ac_status); } && {
20131          test -z "$ac_c_werror_flag" ||
20132          test ! -s conftest.err
20133        } && test -s conftest.$ac_objext; then
20134   ac_hi=-1 ac_mid=-1
20135   while :; do
20136     cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h.  */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h.  */
20142 $ac_includes_default
20143    typedef void * ac__type_sizeof_;
20144 int
20145 main ()
20146 {
20147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20148 test_array [0] = 0
20149
20150   ;
20151   return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_compile") 2>conftest.er1
20162   ac_status=$?
20163   grep -v '^ *+' conftest.er1 >conftest.err
20164   rm -f conftest.er1
20165   cat conftest.err >&5
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); } && {
20168          test -z "$ac_c_werror_flag" ||
20169          test ! -s conftest.err
20170        } && test -s conftest.$ac_objext; then
20171   ac_lo=$ac_mid; break
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176         ac_hi=`expr '(' $ac_mid ')' - 1`
20177                         if test $ac_mid -le $ac_hi; then
20178                           ac_lo= ac_hi=
20179                           break
20180                         fi
20181                         ac_mid=`expr 2 '*' $ac_mid`
20182 fi
20183
20184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185   done
20186 else
20187   echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20189
20190         ac_lo= ac_hi=
20191 fi
20192
20193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20194 fi
20195
20196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197 # Binary search between lo and hi bounds.
20198 while test "x$ac_lo" != "x$ac_hi"; do
20199   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20200   cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206 $ac_includes_default
20207    typedef void * ac__type_sizeof_;
20208 int
20209 main ()
20210 {
20211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20212 test_array [0] = 0
20213
20214   ;
20215   return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_compile") 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } && {
20232          test -z "$ac_c_werror_flag" ||
20233          test ! -s conftest.err
20234        } && test -s conftest.$ac_objext; then
20235   ac_hi=$ac_mid
20236 else
20237   echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20239
20240         ac_lo=`expr '(' $ac_mid ')' + 1`
20241 fi
20242
20243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20244 done
20245 case $ac_lo in
20246 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20247 '') if test "$ac_cv_type_void_p" = yes; then
20248      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20249 See \`config.log' for more details." >&5
20250 echo "$as_me: error: cannot compute sizeof (void *)
20251 See \`config.log' for more details." >&2;}
20252    { (exit 77); exit 77; }; }
20253    else
20254      ac_cv_sizeof_void_p=0
20255    fi ;;
20256 esac
20257 else
20258   cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h.  */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h.  */
20264 $ac_includes_default
20265    typedef void * ac__type_sizeof_;
20266 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20267 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20268 #include <stdio.h>
20269 #include <stdlib.h>
20270 int
20271 main ()
20272 {
20273
20274   FILE *f = fopen ("conftest.val", "w");
20275   if (! f)
20276     return 1;
20277   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20278     {
20279       long int i = longval ();
20280       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20281         return 1;
20282       fprintf (f, "%ld\n", i);
20283     }
20284   else
20285     {
20286       unsigned long int i = ulongval ();
20287       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20288         return 1;
20289       fprintf (f, "%lu\n", i);
20290     }
20291   return ferror (f) || fclose (f) != 0;
20292
20293   ;
20294   return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301   *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304   (eval "$ac_link") 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20308   { (case "(($ac_try" in
20309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310   *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313   (eval "$ac_try") 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); }; }; then
20317   ac_cv_sizeof_void_p=`cat conftest.val`
20318 else
20319   echo "$as_me: program exited with status $ac_status" >&5
20320 echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20322
20323 ( exit $ac_status )
20324 if test "$ac_cv_type_void_p" = yes; then
20325      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20326 See \`config.log' for more details." >&5
20327 echo "$as_me: error: cannot compute sizeof (void *)
20328 See \`config.log' for more details." >&2;}
20329    { (exit 77); exit 77; }; }
20330    else
20331      ac_cv_sizeof_void_p=0
20332    fi
20333 fi
20334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20335 fi
20336 rm -f conftest.val
20337 fi
20338 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20339 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20340
20341
20342
20343 cat >>confdefs.h <<_ACEOF
20344 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20345 _ACEOF
20346
20347
20348 { echo "$as_me:$LINENO: checking for int" >&5
20349 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20350 if test "${ac_cv_type_int+set}" = set; then
20351   echo $ECHO_N "(cached) $ECHO_C" >&6
20352 else
20353   cat >conftest.$ac_ext <<_ACEOF
20354 /* confdefs.h.  */
20355 _ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h.  */
20359 $ac_includes_default
20360 typedef int ac__type_new_;
20361 int
20362 main ()
20363 {
20364 if ((ac__type_new_ *) 0)
20365   return 0;
20366 if (sizeof (ac__type_new_))
20367   return 0;
20368   ;
20369   return 0;
20370 }
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (ac_try="$ac_compile"
20374 case "(($ac_try" in
20375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376   *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379   (eval "$ac_compile") 2>conftest.er1
20380   ac_status=$?
20381   grep -v '^ *+' conftest.er1 >conftest.err
20382   rm -f conftest.er1
20383   cat conftest.err >&5
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); } && {
20386          test -z "$ac_c_werror_flag" ||
20387          test ! -s conftest.err
20388        } && test -s conftest.$ac_objext; then
20389   ac_cv_type_int=yes
20390 else
20391   echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394         ac_cv_type_int=no
20395 fi
20396
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398 fi
20399 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20400 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20401
20402 # The cast to long int works around a bug in the HP C Compiler
20403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20405 # This bug is HP SR number 8606223364.
20406 { echo "$as_me:$LINENO: checking size of int" >&5
20407 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20408 if test "${ac_cv_sizeof_int+set}" = set; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   if test "$cross_compiling" = yes; then
20412   # Depending upon the size, compute the lo and hi bounds.
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419 $ac_includes_default
20420    typedef int ac__type_sizeof_;
20421 int
20422 main ()
20423 {
20424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20425 test_array [0] = 0
20426
20427   ;
20428   return 0;
20429 }
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (ac_try="$ac_compile"
20433 case "(($ac_try" in
20434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435   *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438   (eval "$ac_compile") 2>conftest.er1
20439   ac_status=$?
20440   grep -v '^ *+' conftest.er1 >conftest.err
20441   rm -f conftest.er1
20442   cat conftest.err >&5
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); } && {
20445          test -z "$ac_c_werror_flag" ||
20446          test ! -s conftest.err
20447        } && test -s conftest.$ac_objext; then
20448   ac_lo=0 ac_mid=0
20449   while :; do
20450     cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456 $ac_includes_default
20457    typedef int ac__type_sizeof_;
20458 int
20459 main ()
20460 {
20461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20462 test_array [0] = 0
20463
20464   ;
20465   return 0;
20466 }
20467 _ACEOF
20468 rm -f conftest.$ac_objext
20469 if { (ac_try="$ac_compile"
20470 case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_compile") 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } && {
20482          test -z "$ac_c_werror_flag" ||
20483          test ! -s conftest.err
20484        } && test -s conftest.$ac_objext; then
20485   ac_hi=$ac_mid; break
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490         ac_lo=`expr $ac_mid + 1`
20491                         if test $ac_lo -le $ac_mid; then
20492                           ac_lo= ac_hi=
20493                           break
20494                         fi
20495                         ac_mid=`expr 2 '*' $ac_mid + 1`
20496 fi
20497
20498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20499   done
20500 else
20501   echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20503
20504         cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 $ac_includes_default
20511    typedef int ac__type_sizeof_;
20512 int
20513 main ()
20514 {
20515 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20516 test_array [0] = 0
20517
20518   ;
20519   return 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext
20523 if { (ac_try="$ac_compile"
20524 case "(($ac_try" in
20525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526   *) ac_try_echo=$ac_try;;
20527 esac
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529   (eval "$ac_compile") 2>conftest.er1
20530   ac_status=$?
20531   grep -v '^ *+' conftest.er1 >conftest.err
20532   rm -f conftest.er1
20533   cat conftest.err >&5
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); } && {
20536          test -z "$ac_c_werror_flag" ||
20537          test ! -s conftest.err
20538        } && test -s conftest.$ac_objext; then
20539   ac_hi=-1 ac_mid=-1
20540   while :; do
20541     cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547 $ac_includes_default
20548    typedef int ac__type_sizeof_;
20549 int
20550 main ()
20551 {
20552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20553 test_array [0] = 0
20554
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_compile") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest.$ac_objext; then
20576   ac_lo=$ac_mid; break
20577 else
20578   echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581         ac_hi=`expr '(' $ac_mid ')' - 1`
20582                         if test $ac_mid -le $ac_hi; then
20583                           ac_lo= ac_hi=
20584                           break
20585                         fi
20586                         ac_mid=`expr 2 '*' $ac_mid`
20587 fi
20588
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590   done
20591 else
20592   echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595         ac_lo= ac_hi=
20596 fi
20597
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602 # Binary search between lo and hi bounds.
20603 while test "x$ac_lo" != "x$ac_hi"; do
20604   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20605   cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h.  */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h.  */
20611 $ac_includes_default
20612    typedef int ac__type_sizeof_;
20613 int
20614 main ()
20615 {
20616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20617 test_array [0] = 0
20618
20619   ;
20620   return 0;
20621 }
20622 _ACEOF
20623 rm -f conftest.$ac_objext
20624 if { (ac_try="$ac_compile"
20625 case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_compile") 2>conftest.er1
20631   ac_status=$?
20632   grep -v '^ *+' conftest.er1 >conftest.err
20633   rm -f conftest.er1
20634   cat conftest.err >&5
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); } && {
20637          test -z "$ac_c_werror_flag" ||
20638          test ! -s conftest.err
20639        } && test -s conftest.$ac_objext; then
20640   ac_hi=$ac_mid
20641 else
20642   echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20644
20645         ac_lo=`expr '(' $ac_mid ')' + 1`
20646 fi
20647
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649 done
20650 case $ac_lo in
20651 ?*) ac_cv_sizeof_int=$ac_lo;;
20652 '') if test "$ac_cv_type_int" = yes; then
20653      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20654 See \`config.log' for more details." >&5
20655 echo "$as_me: error: cannot compute sizeof (int)
20656 See \`config.log' for more details." >&2;}
20657    { (exit 77); exit 77; }; }
20658    else
20659      ac_cv_sizeof_int=0
20660    fi ;;
20661 esac
20662 else
20663   cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h.  */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h.  */
20669 $ac_includes_default
20670    typedef int ac__type_sizeof_;
20671 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20672 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20673 #include <stdio.h>
20674 #include <stdlib.h>
20675 int
20676 main ()
20677 {
20678
20679   FILE *f = fopen ("conftest.val", "w");
20680   if (! f)
20681     return 1;
20682   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20683     {
20684       long int i = longval ();
20685       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20686         return 1;
20687       fprintf (f, "%ld\n", i);
20688     }
20689   else
20690     {
20691       unsigned long int i = ulongval ();
20692       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20693         return 1;
20694       fprintf (f, "%lu\n", i);
20695     }
20696   return ferror (f) || fclose (f) != 0;
20697
20698   ;
20699   return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest$ac_exeext
20703 if { (ac_try="$ac_link"
20704 case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_link") 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20713   { (case "(($ac_try" in
20714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715   *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718   (eval "$ac_try") 2>&5
20719   ac_status=$?
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); }; }; then
20722   ac_cv_sizeof_int=`cat conftest.val`
20723 else
20724   echo "$as_me: program exited with status $ac_status" >&5
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728 ( exit $ac_status )
20729 if test "$ac_cv_type_int" = yes; then
20730      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20731 See \`config.log' for more details." >&5
20732 echo "$as_me: error: cannot compute sizeof (int)
20733 See \`config.log' for more details." >&2;}
20734    { (exit 77); exit 77; }; }
20735    else
20736      ac_cv_sizeof_int=0
20737    fi
20738 fi
20739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20740 fi
20741 rm -f conftest.val
20742 fi
20743 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20744 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20745
20746
20747
20748 cat >>confdefs.h <<_ACEOF
20749 #define SIZEOF_INT $ac_cv_sizeof_int
20750 _ACEOF
20751
20752
20753 { echo "$as_me:$LINENO: checking for long" >&5
20754 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20755 if test "${ac_cv_type_long+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 $ac_includes_default
20765 typedef long ac__type_new_;
20766 int
20767 main ()
20768 {
20769 if ((ac__type_new_ *) 0)
20770   return 0;
20771 if (sizeof (ac__type_new_))
20772   return 0;
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_compile") 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } && {
20791          test -z "$ac_c_werror_flag" ||
20792          test ! -s conftest.err
20793        } && test -s conftest.$ac_objext; then
20794   ac_cv_type_long=yes
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799         ac_cv_type_long=no
20800 fi
20801
20802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803 fi
20804 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20805 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20806
20807 # The cast to long int works around a bug in the HP C Compiler
20808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20810 # This bug is HP SR number 8606223364.
20811 { echo "$as_me:$LINENO: checking size of long" >&5
20812 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20813 if test "${ac_cv_sizeof_long+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   if test "$cross_compiling" = yes; then
20817   # Depending upon the size, compute the lo and hi bounds.
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 $ac_includes_default
20825    typedef long ac__type_sizeof_;
20826 int
20827 main ()
20828 {
20829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20830 test_array [0] = 0
20831
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840   *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843   (eval "$ac_compile") 2>conftest.er1
20844   ac_status=$?
20845   grep -v '^ *+' conftest.er1 >conftest.err
20846   rm -f conftest.er1
20847   cat conftest.err >&5
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } && {
20850          test -z "$ac_c_werror_flag" ||
20851          test ! -s conftest.err
20852        } && test -s conftest.$ac_objext; then
20853   ac_lo=0 ac_mid=0
20854   while :; do
20855     cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 $ac_includes_default
20862    typedef long ac__type_sizeof_;
20863 int
20864 main ()
20865 {
20866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20867 test_array [0] = 0
20868
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_compile") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } && {
20887          test -z "$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        } && test -s conftest.$ac_objext; then
20890   ac_hi=$ac_mid; break
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895         ac_lo=`expr $ac_mid + 1`
20896                         if test $ac_lo -le $ac_mid; then
20897                           ac_lo= ac_hi=
20898                           break
20899                         fi
20900                         ac_mid=`expr 2 '*' $ac_mid + 1`
20901 fi
20902
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904   done
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 $ac_includes_default
20916    typedef long ac__type_sizeof_;
20917 int
20918 main ()
20919 {
20920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20921 test_array [0] = 0
20922
20923   ;
20924   return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (ac_try="$ac_compile"
20929 case "(($ac_try" in
20930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931   *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934   (eval "$ac_compile") 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } && {
20941          test -z "$ac_c_werror_flag" ||
20942          test ! -s conftest.err
20943        } && test -s conftest.$ac_objext; then
20944   ac_hi=-1 ac_mid=-1
20945   while :; do
20946     cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 $ac_includes_default
20953    typedef long ac__type_sizeof_;
20954 int
20955 main ()
20956 {
20957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20958 test_array [0] = 0
20959
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968   *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971   (eval "$ac_compile") 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } && {
20978          test -z "$ac_c_werror_flag" ||
20979          test ! -s conftest.err
20980        } && test -s conftest.$ac_objext; then
20981   ac_lo=$ac_mid; break
20982 else
20983   echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986         ac_hi=`expr '(' $ac_mid ')' - 1`
20987                         if test $ac_mid -le $ac_hi; then
20988                           ac_lo= ac_hi=
20989                           break
20990                         fi
20991                         ac_mid=`expr 2 '*' $ac_mid`
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995   done
20996 else
20997   echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000         ac_lo= ac_hi=
21001 fi
21002
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 fi
21005
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 # Binary search between lo and hi bounds.
21008 while test "x$ac_lo" != "x$ac_hi"; do
21009   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21010   cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016 $ac_includes_default
21017    typedef long ac__type_sizeof_;
21018 int
21019 main ()
21020 {
21021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21022 test_array [0] = 0
21023
21024   ;
21025   return 0;
21026 }
21027 _ACEOF
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_compile") 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } && {
21042          test -z "$ac_c_werror_flag" ||
21043          test ! -s conftest.err
21044        } && test -s conftest.$ac_objext; then
21045   ac_hi=$ac_mid
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050         ac_lo=`expr '(' $ac_mid ')' + 1`
21051 fi
21052
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 done
21055 case $ac_lo in
21056 ?*) ac_cv_sizeof_long=$ac_lo;;
21057 '') if test "$ac_cv_type_long" = yes; then
21058      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21059 See \`config.log' for more details." >&5
21060 echo "$as_me: error: cannot compute sizeof (long)
21061 See \`config.log' for more details." >&2;}
21062    { (exit 77); exit 77; }; }
21063    else
21064      ac_cv_sizeof_long=0
21065    fi ;;
21066 esac
21067 else
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 $ac_includes_default
21075    typedef long ac__type_sizeof_;
21076 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21077 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21078 #include <stdio.h>
21079 #include <stdlib.h>
21080 int
21081 main ()
21082 {
21083
21084   FILE *f = fopen ("conftest.val", "w");
21085   if (! f)
21086     return 1;
21087   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21088     {
21089       long int i = longval ();
21090       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21091         return 1;
21092       fprintf (f, "%ld\n", i);
21093     }
21094   else
21095     {
21096       unsigned long int i = ulongval ();
21097       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21098         return 1;
21099       fprintf (f, "%lu\n", i);
21100     }
21101   return ferror (f) || fclose (f) != 0;
21102
21103   ;
21104   return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest$ac_exeext
21108 if { (ac_try="$ac_link"
21109 case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114   (eval "$ac_link") 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21118   { (case "(($ac_try" in
21119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120   *) ac_try_echo=$ac_try;;
21121 esac
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123   (eval "$ac_try") 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; }; then
21127   ac_cv_sizeof_long=`cat conftest.val`
21128 else
21129   echo "$as_me: program exited with status $ac_status" >&5
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 ( exit $ac_status )
21134 if test "$ac_cv_type_long" = yes; then
21135      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21136 See \`config.log' for more details." >&5
21137 echo "$as_me: error: cannot compute sizeof (long)
21138 See \`config.log' for more details." >&2;}
21139    { (exit 77); exit 77; }; }
21140    else
21141      ac_cv_sizeof_long=0
21142    fi
21143 fi
21144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21145 fi
21146 rm -f conftest.val
21147 fi
21148 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21149 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21150
21151
21152
21153 cat >>confdefs.h <<_ACEOF
21154 #define SIZEOF_LONG $ac_cv_sizeof_long
21155 _ACEOF
21156
21157
21158 { echo "$as_me:$LINENO: checking for size_t" >&5
21159 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21160 if test "${ac_cv_type_size_t+set}" = set; then
21161   echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163   cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h.  */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h.  */
21169 $ac_includes_default
21170 typedef size_t ac__type_new_;
21171 int
21172 main ()
21173 {
21174 if ((ac__type_new_ *) 0)
21175   return 0;
21176 if (sizeof (ac__type_new_))
21177   return 0;
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext
21183 if { (ac_try="$ac_compile"
21184 case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189   (eval "$ac_compile") 2>conftest.er1
21190   ac_status=$?
21191   grep -v '^ *+' conftest.er1 >conftest.err
21192   rm -f conftest.er1
21193   cat conftest.err >&5
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); } && {
21196          test -z "$ac_c_werror_flag" ||
21197          test ! -s conftest.err
21198        } && test -s conftest.$ac_objext; then
21199   ac_cv_type_size_t=yes
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204         ac_cv_type_size_t=no
21205 fi
21206
21207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21208 fi
21209 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21210 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21211
21212 # The cast to long int works around a bug in the HP C Compiler
21213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21215 # This bug is HP SR number 8606223364.
21216 { echo "$as_me:$LINENO: checking size of size_t" >&5
21217 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21218 if test "${ac_cv_sizeof_size_t+set}" = set; then
21219   echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221   if test "$cross_compiling" = yes; then
21222   # Depending upon the size, compute the lo and hi bounds.
21223 cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 $ac_includes_default
21230    typedef size_t ac__type_sizeof_;
21231 int
21232 main ()
21233 {
21234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21235 test_array [0] = 0
21236
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245   *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248   (eval "$ac_compile") 2>conftest.er1
21249   ac_status=$?
21250   grep -v '^ *+' conftest.er1 >conftest.err
21251   rm -f conftest.er1
21252   cat conftest.err >&5
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } && {
21255          test -z "$ac_c_werror_flag" ||
21256          test ! -s conftest.err
21257        } && test -s conftest.$ac_objext; then
21258   ac_lo=0 ac_mid=0
21259   while :; do
21260     cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h.  */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h.  */
21266 $ac_includes_default
21267    typedef size_t ac__type_sizeof_;
21268 int
21269 main ()
21270 {
21271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21272 test_array [0] = 0
21273
21274   ;
21275   return 0;
21276 }
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_compile") 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } && {
21292          test -z "$ac_c_werror_flag" ||
21293          test ! -s conftest.err
21294        } && test -s conftest.$ac_objext; then
21295   ac_hi=$ac_mid; break
21296 else
21297   echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300         ac_lo=`expr $ac_mid + 1`
21301                         if test $ac_lo -le $ac_mid; then
21302                           ac_lo= ac_hi=
21303                           break
21304                         fi
21305                         ac_mid=`expr 2 '*' $ac_mid + 1`
21306 fi
21307
21308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309   done
21310 else
21311   echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314         cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 $ac_includes_default
21321    typedef size_t ac__type_sizeof_;
21322 int
21323 main ()
21324 {
21325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21326 test_array [0] = 0
21327
21328   ;
21329   return 0;
21330 }
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336   *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339   (eval "$ac_compile") 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } && {
21346          test -z "$ac_c_werror_flag" ||
21347          test ! -s conftest.err
21348        } && test -s conftest.$ac_objext; then
21349   ac_hi=-1 ac_mid=-1
21350   while :; do
21351     cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357 $ac_includes_default
21358    typedef size_t ac__type_sizeof_;
21359 int
21360 main ()
21361 {
21362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21363 test_array [0] = 0
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373   *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376   (eval "$ac_compile") 2>conftest.er1
21377   ac_status=$?
21378   grep -v '^ *+' conftest.er1 >conftest.err
21379   rm -f conftest.er1
21380   cat conftest.err >&5
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); } && {
21383          test -z "$ac_c_werror_flag" ||
21384          test ! -s conftest.err
21385        } && test -s conftest.$ac_objext; then
21386   ac_lo=$ac_mid; break
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391         ac_hi=`expr '(' $ac_mid ')' - 1`
21392                         if test $ac_mid -le $ac_hi; then
21393                           ac_lo= ac_hi=
21394                           break
21395                         fi
21396                         ac_mid=`expr 2 '*' $ac_mid`
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400   done
21401 else
21402   echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405         ac_lo= ac_hi=
21406 fi
21407
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 fi
21410
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 # Binary search between lo and hi bounds.
21413 while test "x$ac_lo" != "x$ac_hi"; do
21414   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21415   cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421 $ac_includes_default
21422    typedef size_t ac__type_sizeof_;
21423 int
21424 main ()
21425 {
21426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21427 test_array [0] = 0
21428
21429   ;
21430   return 0;
21431 }
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437   *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440   (eval "$ac_compile") 2>conftest.er1
21441   ac_status=$?
21442   grep -v '^ *+' conftest.er1 >conftest.err
21443   rm -f conftest.er1
21444   cat conftest.err >&5
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); } && {
21447          test -z "$ac_c_werror_flag" ||
21448          test ! -s conftest.err
21449        } && test -s conftest.$ac_objext; then
21450   ac_hi=$ac_mid
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455         ac_lo=`expr '(' $ac_mid ')' + 1`
21456 fi
21457
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459 done
21460 case $ac_lo in
21461 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21462 '') if test "$ac_cv_type_size_t" = yes; then
21463      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21464 See \`config.log' for more details." >&5
21465 echo "$as_me: error: cannot compute sizeof (size_t)
21466 See \`config.log' for more details." >&2;}
21467    { (exit 77); exit 77; }; }
21468    else
21469      ac_cv_sizeof_size_t=0
21470    fi ;;
21471 esac
21472 else
21473   cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 $ac_includes_default
21480    typedef size_t ac__type_sizeof_;
21481 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21482 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21483 #include <stdio.h>
21484 #include <stdlib.h>
21485 int
21486 main ()
21487 {
21488
21489   FILE *f = fopen ("conftest.val", "w");
21490   if (! f)
21491     return 1;
21492   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21493     {
21494       long int i = longval ();
21495       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21496         return 1;
21497       fprintf (f, "%ld\n", i);
21498     }
21499   else
21500     {
21501       unsigned long int i = ulongval ();
21502       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21503         return 1;
21504       fprintf (f, "%lu\n", i);
21505     }
21506   return ferror (f) || fclose (f) != 0;
21507
21508   ;
21509   return 0;
21510 }
21511 _ACEOF
21512 rm -f conftest$ac_exeext
21513 if { (ac_try="$ac_link"
21514 case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519   (eval "$ac_link") 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21523   { (case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_try") 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; }; then
21532   ac_cv_sizeof_size_t=`cat conftest.val`
21533 else
21534   echo "$as_me: program exited with status $ac_status" >&5
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 ( exit $ac_status )
21539 if test "$ac_cv_type_size_t" = yes; then
21540      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21541 See \`config.log' for more details." >&5
21542 echo "$as_me: error: cannot compute sizeof (size_t)
21543 See \`config.log' for more details." >&2;}
21544    { (exit 77); exit 77; }; }
21545    else
21546      ac_cv_sizeof_size_t=0
21547    fi
21548 fi
21549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21550 fi
21551 rm -f conftest.val
21552 fi
21553 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21554 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21555
21556
21557
21558 cat >>confdefs.h <<_ACEOF
21559 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21560 _ACEOF
21561
21562
21563
21564 case "${host}" in
21565     arm-*-linux* )
21566         { echo "$as_me:$LINENO: checking for long long" >&5
21567 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21568 if test "${ac_cv_type_long_long+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 $ac_includes_default
21578 typedef long long ac__type_new_;
21579 int
21580 main ()
21581 {
21582 if ((ac__type_new_ *) 0)
21583   return 0;
21584 if (sizeof (ac__type_new_))
21585   return 0;
21586   ;
21587   return 0;
21588 }
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594   *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597   (eval "$ac_compile") 2>conftest.er1
21598   ac_status=$?
21599   grep -v '^ *+' conftest.er1 >conftest.err
21600   rm -f conftest.er1
21601   cat conftest.err >&5
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } && {
21604          test -z "$ac_c_werror_flag" ||
21605          test ! -s conftest.err
21606        } && test -s conftest.$ac_objext; then
21607   ac_cv_type_long_long=yes
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612         ac_cv_type_long_long=no
21613 fi
21614
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 fi
21617 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21618 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21619
21620 # The cast to long int works around a bug in the HP C Compiler
21621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21623 # This bug is HP SR number 8606223364.
21624 { echo "$as_me:$LINENO: checking size of long long" >&5
21625 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21626 if test "${ac_cv_sizeof_long_long+set}" = set; then
21627   echo $ECHO_N "(cached) $ECHO_C" >&6
21628 else
21629   if test "$cross_compiling" = yes; then
21630   # Depending upon the size, compute the lo and hi bounds.
21631 cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h.  */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h.  */
21637 $ac_includes_default
21638    typedef long long ac__type_sizeof_;
21639 int
21640 main ()
21641 {
21642 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21643 test_array [0] = 0
21644
21645   ;
21646   return 0;
21647 }
21648 _ACEOF
21649 rm -f conftest.$ac_objext
21650 if { (ac_try="$ac_compile"
21651 case "(($ac_try" in
21652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653   *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656   (eval "$ac_compile") 2>conftest.er1
21657   ac_status=$?
21658   grep -v '^ *+' conftest.er1 >conftest.err
21659   rm -f conftest.er1
21660   cat conftest.err >&5
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); } && {
21663          test -z "$ac_c_werror_flag" ||
21664          test ! -s conftest.err
21665        } && test -s conftest.$ac_objext; then
21666   ac_lo=0 ac_mid=0
21667   while :; do
21668     cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 $ac_includes_default
21675    typedef long long ac__type_sizeof_;
21676 int
21677 main ()
21678 {
21679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21680 test_array [0] = 0
21681
21682   ;
21683   return 0;
21684 }
21685 _ACEOF
21686 rm -f conftest.$ac_objext
21687 if { (ac_try="$ac_compile"
21688 case "(($ac_try" in
21689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690   *) ac_try_echo=$ac_try;;
21691 esac
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693   (eval "$ac_compile") 2>conftest.er1
21694   ac_status=$?
21695   grep -v '^ *+' conftest.er1 >conftest.err
21696   rm -f conftest.er1
21697   cat conftest.err >&5
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); } && {
21700          test -z "$ac_c_werror_flag" ||
21701          test ! -s conftest.err
21702        } && test -s conftest.$ac_objext; then
21703   ac_hi=$ac_mid; break
21704 else
21705   echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708         ac_lo=`expr $ac_mid + 1`
21709                         if test $ac_lo -le $ac_mid; then
21710                           ac_lo= ac_hi=
21711                           break
21712                         fi
21713                         ac_mid=`expr 2 '*' $ac_mid + 1`
21714 fi
21715
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717   done
21718 else
21719   echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722         cat >conftest.$ac_ext <<_ACEOF
21723 /* confdefs.h.  */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h.  */
21728 $ac_includes_default
21729    typedef long long ac__type_sizeof_;
21730 int
21731 main ()
21732 {
21733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21734 test_array [0] = 0
21735
21736   ;
21737   return 0;
21738 }
21739 _ACEOF
21740 rm -f conftest.$ac_objext
21741 if { (ac_try="$ac_compile"
21742 case "(($ac_try" in
21743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744   *) ac_try_echo=$ac_try;;
21745 esac
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747   (eval "$ac_compile") 2>conftest.er1
21748   ac_status=$?
21749   grep -v '^ *+' conftest.er1 >conftest.err
21750   rm -f conftest.er1
21751   cat conftest.err >&5
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); } && {
21754          test -z "$ac_c_werror_flag" ||
21755          test ! -s conftest.err
21756        } && test -s conftest.$ac_objext; then
21757   ac_hi=-1 ac_mid=-1
21758   while :; do
21759     cat >conftest.$ac_ext <<_ACEOF
21760 /* confdefs.h.  */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h.  */
21765 $ac_includes_default
21766    typedef long long ac__type_sizeof_;
21767 int
21768 main ()
21769 {
21770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21771 test_array [0] = 0
21772
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext
21778 if { (ac_try="$ac_compile"
21779 case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_compile") 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } && {
21791          test -z "$ac_c_werror_flag" ||
21792          test ! -s conftest.err
21793        } && test -s conftest.$ac_objext; then
21794   ac_lo=$ac_mid; break
21795 else
21796   echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21798
21799         ac_hi=`expr '(' $ac_mid ')' - 1`
21800                         if test $ac_mid -le $ac_hi; then
21801                           ac_lo= ac_hi=
21802                           break
21803                         fi
21804                         ac_mid=`expr 2 '*' $ac_mid`
21805 fi
21806
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808   done
21809 else
21810   echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813         ac_lo= ac_hi=
21814 fi
21815
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 fi
21818
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 # Binary search between lo and hi bounds.
21821 while test "x$ac_lo" != "x$ac_hi"; do
21822   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21823   cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h.  */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h.  */
21829 $ac_includes_default
21830    typedef long long ac__type_sizeof_;
21831 int
21832 main ()
21833 {
21834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21835 test_array [0] = 0
21836
21837   ;
21838   return 0;
21839 }
21840 _ACEOF
21841 rm -f conftest.$ac_objext
21842 if { (ac_try="$ac_compile"
21843 case "(($ac_try" in
21844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845   *) ac_try_echo=$ac_try;;
21846 esac
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848   (eval "$ac_compile") 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } && {
21855          test -z "$ac_c_werror_flag" ||
21856          test ! -s conftest.err
21857        } && test -s conftest.$ac_objext; then
21858   ac_hi=$ac_mid
21859 else
21860   echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21862
21863         ac_lo=`expr '(' $ac_mid ')' + 1`
21864 fi
21865
21866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21867 done
21868 case $ac_lo in
21869 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21870 '') if test "$ac_cv_type_long_long" = yes; then
21871      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21872 See \`config.log' for more details." >&5
21873 echo "$as_me: error: cannot compute sizeof (long long)
21874 See \`config.log' for more details." >&2;}
21875    { (exit 77); exit 77; }; }
21876    else
21877      ac_cv_sizeof_long_long=0
21878    fi ;;
21879 esac
21880 else
21881   cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h.  */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h.  */
21887 $ac_includes_default
21888    typedef long long ac__type_sizeof_;
21889 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21890 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21891 #include <stdio.h>
21892 #include <stdlib.h>
21893 int
21894 main ()
21895 {
21896
21897   FILE *f = fopen ("conftest.val", "w");
21898   if (! f)
21899     return 1;
21900   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21901     {
21902       long int i = longval ();
21903       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21904         return 1;
21905       fprintf (f, "%ld\n", i);
21906     }
21907   else
21908     {
21909       unsigned long int i = ulongval ();
21910       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21911         return 1;
21912       fprintf (f, "%lu\n", i);
21913     }
21914   return ferror (f) || fclose (f) != 0;
21915
21916   ;
21917   return 0;
21918 }
21919 _ACEOF
21920 rm -f conftest$ac_exeext
21921 if { (ac_try="$ac_link"
21922 case "(($ac_try" in
21923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924   *) ac_try_echo=$ac_try;;
21925 esac
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927   (eval "$ac_link") 2>&5
21928   ac_status=$?
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21937   ac_status=$?
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); }; }; then
21940   ac_cv_sizeof_long_long=`cat conftest.val`
21941 else
21942   echo "$as_me: program exited with status $ac_status" >&5
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21945
21946 ( exit $ac_status )
21947 if test "$ac_cv_type_long_long" = yes; then
21948      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21949 See \`config.log' for more details." >&5
21950 echo "$as_me: error: cannot compute sizeof (long long)
21951 See \`config.log' for more details." >&2;}
21952    { (exit 77); exit 77; }; }
21953    else
21954      ac_cv_sizeof_long_long=0
21955    fi
21956 fi
21957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21958 fi
21959 rm -f conftest.val
21960 fi
21961 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21962 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21963
21964
21965
21966 cat >>confdefs.h <<_ACEOF
21967 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21968 _ACEOF
21969
21970
21971     ;;
21972     *-hp-hpux* )
21973         { echo "$as_me:$LINENO: checking for long long" >&5
21974 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21975 if test "${ac_cv_type_long_long+set}" = set; then
21976   echo $ECHO_N "(cached) $ECHO_C" >&6
21977 else
21978   cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h.  */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h.  */
21984 $ac_includes_default
21985 typedef long long ac__type_new_;
21986 int
21987 main ()
21988 {
21989 if ((ac__type_new_ *) 0)
21990   return 0;
21991 if (sizeof (ac__type_new_))
21992   return 0;
21993   ;
21994   return 0;
21995 }
21996 _ACEOF
21997 rm -f conftest.$ac_objext
21998 if { (ac_try="$ac_compile"
21999 case "(($ac_try" in
22000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001   *) ac_try_echo=$ac_try;;
22002 esac
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004   (eval "$ac_compile") 2>conftest.er1
22005   ac_status=$?
22006   grep -v '^ *+' conftest.er1 >conftest.err
22007   rm -f conftest.er1
22008   cat conftest.err >&5
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); } && {
22011          test -z "$ac_c_werror_flag" ||
22012          test ! -s conftest.err
22013        } && test -s conftest.$ac_objext; then
22014   ac_cv_type_long_long=yes
22015 else
22016   echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019         ac_cv_type_long_long=no
22020 fi
22021
22022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023 fi
22024 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22025 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22026
22027 # The cast to long int works around a bug in the HP C Compiler
22028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22030 # This bug is HP SR number 8606223364.
22031 { echo "$as_me:$LINENO: checking size of long long" >&5
22032 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22033 if test "${ac_cv_sizeof_long_long+set}" = set; then
22034   echo $ECHO_N "(cached) $ECHO_C" >&6
22035 else
22036   if test "$cross_compiling" = yes; then
22037   # Depending upon the size, compute the lo and hi bounds.
22038 cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044 $ac_includes_default
22045    typedef long long ac__type_sizeof_;
22046 int
22047 main ()
22048 {
22049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22050 test_array [0] = 0
22051
22052   ;
22053   return 0;
22054 }
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060   *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063   (eval "$ac_compile") 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } && {
22070          test -z "$ac_c_werror_flag" ||
22071          test ! -s conftest.err
22072        } && test -s conftest.$ac_objext; then
22073   ac_lo=0 ac_mid=0
22074   while :; do
22075     cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081 $ac_includes_default
22082    typedef long long ac__type_sizeof_;
22083 int
22084 main ()
22085 {
22086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22087 test_array [0] = 0
22088
22089   ;
22090   return 0;
22091 }
22092 _ACEOF
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_compile") 2>conftest.er1
22101   ac_status=$?
22102   grep -v '^ *+' conftest.er1 >conftest.err
22103   rm -f conftest.er1
22104   cat conftest.err >&5
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } && {
22107          test -z "$ac_c_werror_flag" ||
22108          test ! -s conftest.err
22109        } && test -s conftest.$ac_objext; then
22110   ac_hi=$ac_mid; break
22111 else
22112   echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115         ac_lo=`expr $ac_mid + 1`
22116                         if test $ac_lo -le $ac_mid; then
22117                           ac_lo= ac_hi=
22118                           break
22119                         fi
22120                         ac_mid=`expr 2 '*' $ac_mid + 1`
22121 fi
22122
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124   done
22125 else
22126   echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22128
22129         cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h.  */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h.  */
22135 $ac_includes_default
22136    typedef long long ac__type_sizeof_;
22137 int
22138 main ()
22139 {
22140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22141 test_array [0] = 0
22142
22143   ;
22144   return 0;
22145 }
22146 _ACEOF
22147 rm -f conftest.$ac_objext
22148 if { (ac_try="$ac_compile"
22149 case "(($ac_try" in
22150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151   *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154   (eval "$ac_compile") 2>conftest.er1
22155   ac_status=$?
22156   grep -v '^ *+' conftest.er1 >conftest.err
22157   rm -f conftest.er1
22158   cat conftest.err >&5
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); } && {
22161          test -z "$ac_c_werror_flag" ||
22162          test ! -s conftest.err
22163        } && test -s conftest.$ac_objext; then
22164   ac_hi=-1 ac_mid=-1
22165   while :; do
22166     cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172 $ac_includes_default
22173    typedef long long ac__type_sizeof_;
22174 int
22175 main ()
22176 {
22177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22178 test_array [0] = 0
22179
22180   ;
22181   return 0;
22182 }
22183 _ACEOF
22184 rm -f conftest.$ac_objext
22185 if { (ac_try="$ac_compile"
22186 case "(($ac_try" in
22187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188   *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191   (eval "$ac_compile") 2>conftest.er1
22192   ac_status=$?
22193   grep -v '^ *+' conftest.er1 >conftest.err
22194   rm -f conftest.er1
22195   cat conftest.err >&5
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } && {
22198          test -z "$ac_c_werror_flag" ||
22199          test ! -s conftest.err
22200        } && test -s conftest.$ac_objext; then
22201   ac_lo=$ac_mid; break
22202 else
22203   echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22205
22206         ac_hi=`expr '(' $ac_mid ')' - 1`
22207                         if test $ac_mid -le $ac_hi; then
22208                           ac_lo= ac_hi=
22209                           break
22210                         fi
22211                         ac_mid=`expr 2 '*' $ac_mid`
22212 fi
22213
22214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22215   done
22216 else
22217   echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22219
22220         ac_lo= ac_hi=
22221 fi
22222
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 fi
22225
22226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227 # Binary search between lo and hi bounds.
22228 while test "x$ac_lo" != "x$ac_hi"; do
22229   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22230   cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h.  */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h.  */
22236 $ac_includes_default
22237    typedef long long ac__type_sizeof_;
22238 int
22239 main ()
22240 {
22241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22242 test_array [0] = 0
22243
22244   ;
22245   return 0;
22246 }
22247 _ACEOF
22248 rm -f conftest.$ac_objext
22249 if { (ac_try="$ac_compile"
22250 case "(($ac_try" in
22251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252   *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255   (eval "$ac_compile") 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } && {
22262          test -z "$ac_c_werror_flag" ||
22263          test ! -s conftest.err
22264        } && test -s conftest.$ac_objext; then
22265   ac_hi=$ac_mid
22266 else
22267   echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270         ac_lo=`expr '(' $ac_mid ')' + 1`
22271 fi
22272
22273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 done
22275 case $ac_lo in
22276 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22277 '') if test "$ac_cv_type_long_long" = yes; then
22278      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22279 See \`config.log' for more details." >&5
22280 echo "$as_me: error: cannot compute sizeof (long long)
22281 See \`config.log' for more details." >&2;}
22282    { (exit 77); exit 77; }; }
22283    else
22284      ac_cv_sizeof_long_long=0
22285    fi ;;
22286 esac
22287 else
22288   cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294 $ac_includes_default
22295    typedef long long ac__type_sizeof_;
22296 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22297 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22298 #include <stdio.h>
22299 #include <stdlib.h>
22300 int
22301 main ()
22302 {
22303
22304   FILE *f = fopen ("conftest.val", "w");
22305   if (! f)
22306     return 1;
22307   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22308     {
22309       long int i = longval ();
22310       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22311         return 1;
22312       fprintf (f, "%ld\n", i);
22313     }
22314   else
22315     {
22316       unsigned long int i = ulongval ();
22317       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22318         return 1;
22319       fprintf (f, "%lu\n", i);
22320     }
22321   return ferror (f) || fclose (f) != 0;
22322
22323   ;
22324   return 0;
22325 }
22326 _ACEOF
22327 rm -f conftest$ac_exeext
22328 if { (ac_try="$ac_link"
22329 case "(($ac_try" in
22330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331   *) ac_try_echo=$ac_try;;
22332 esac
22333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334   (eval "$ac_link") 2>&5
22335   ac_status=$?
22336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22338   { (case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_try") 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); }; }; then
22347   ac_cv_sizeof_long_long=`cat conftest.val`
22348 else
22349   echo "$as_me: program exited with status $ac_status" >&5
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353 ( exit $ac_status )
22354 if test "$ac_cv_type_long_long" = yes; then
22355      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22356 See \`config.log' for more details." >&5
22357 echo "$as_me: error: cannot compute sizeof (long long)
22358 See \`config.log' for more details." >&2;}
22359    { (exit 77); exit 77; }; }
22360    else
22361      ac_cv_sizeof_long_long=0
22362    fi
22363 fi
22364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22365 fi
22366 rm -f conftest.val
22367 fi
22368 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22369 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22370
22371
22372
22373 cat >>confdefs.h <<_ACEOF
22374 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22375 _ACEOF
22376
22377
22378         if test "$ac_cv_sizeof_long_long" != 0; then
22379                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22380         fi
22381     ;;
22382     * )
22383         { echo "$as_me:$LINENO: checking for long long" >&5
22384 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22385 if test "${ac_cv_type_long_long+set}" = set; then
22386   echo $ECHO_N "(cached) $ECHO_C" >&6
22387 else
22388   cat >conftest.$ac_ext <<_ACEOF
22389 /* confdefs.h.  */
22390 _ACEOF
22391 cat confdefs.h >>conftest.$ac_ext
22392 cat >>conftest.$ac_ext <<_ACEOF
22393 /* end confdefs.h.  */
22394 $ac_includes_default
22395 typedef long long ac__type_new_;
22396 int
22397 main ()
22398 {
22399 if ((ac__type_new_ *) 0)
22400   return 0;
22401 if (sizeof (ac__type_new_))
22402   return 0;
22403   ;
22404   return 0;
22405 }
22406 _ACEOF
22407 rm -f conftest.$ac_objext
22408 if { (ac_try="$ac_compile"
22409 case "(($ac_try" in
22410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411   *) ac_try_echo=$ac_try;;
22412 esac
22413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414   (eval "$ac_compile") 2>conftest.er1
22415   ac_status=$?
22416   grep -v '^ *+' conftest.er1 >conftest.err
22417   rm -f conftest.er1
22418   cat conftest.err >&5
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); } && {
22421          test -z "$ac_c_werror_flag" ||
22422          test ! -s conftest.err
22423        } && test -s conftest.$ac_objext; then
22424   ac_cv_type_long_long=yes
22425 else
22426   echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22428
22429         ac_cv_type_long_long=no
22430 fi
22431
22432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22433 fi
22434 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22435 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22436
22437 # The cast to long int works around a bug in the HP C Compiler
22438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22440 # This bug is HP SR number 8606223364.
22441 { echo "$as_me:$LINENO: checking size of long long" >&5
22442 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22443 if test "${ac_cv_sizeof_long_long+set}" = set; then
22444   echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446   if test "$cross_compiling" = yes; then
22447   # Depending upon the size, compute the lo and hi bounds.
22448 cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h.  */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h.  */
22454 $ac_includes_default
22455    typedef long long ac__type_sizeof_;
22456 int
22457 main ()
22458 {
22459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22460 test_array [0] = 0
22461
22462   ;
22463   return 0;
22464 }
22465 _ACEOF
22466 rm -f conftest.$ac_objext
22467 if { (ac_try="$ac_compile"
22468 case "(($ac_try" in
22469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470   *) ac_try_echo=$ac_try;;
22471 esac
22472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22473   (eval "$ac_compile") 2>conftest.er1
22474   ac_status=$?
22475   grep -v '^ *+' conftest.er1 >conftest.err
22476   rm -f conftest.er1
22477   cat conftest.err >&5
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); } && {
22480          test -z "$ac_c_werror_flag" ||
22481          test ! -s conftest.err
22482        } && test -s conftest.$ac_objext; then
22483   ac_lo=0 ac_mid=0
22484   while :; do
22485     cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491 $ac_includes_default
22492    typedef long long ac__type_sizeof_;
22493 int
22494 main ()
22495 {
22496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22497 test_array [0] = 0
22498
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext
22504 if { (ac_try="$ac_compile"
22505 case "(($ac_try" in
22506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507   *) ac_try_echo=$ac_try;;
22508 esac
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510   (eval "$ac_compile") 2>conftest.er1
22511   ac_status=$?
22512   grep -v '^ *+' conftest.er1 >conftest.err
22513   rm -f conftest.er1
22514   cat conftest.err >&5
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); } && {
22517          test -z "$ac_c_werror_flag" ||
22518          test ! -s conftest.err
22519        } && test -s conftest.$ac_objext; then
22520   ac_hi=$ac_mid; break
22521 else
22522   echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22524
22525         ac_lo=`expr $ac_mid + 1`
22526                         if test $ac_lo -le $ac_mid; then
22527                           ac_lo= ac_hi=
22528                           break
22529                         fi
22530                         ac_mid=`expr 2 '*' $ac_mid + 1`
22531 fi
22532
22533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534   done
22535 else
22536   echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22538
22539         cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h.  */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h.  */
22545 $ac_includes_default
22546    typedef long long ac__type_sizeof_;
22547 int
22548 main ()
22549 {
22550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22551 test_array [0] = 0
22552
22553   ;
22554   return 0;
22555 }
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561   *) ac_try_echo=$ac_try;;
22562 esac
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564   (eval "$ac_compile") 2>conftest.er1
22565   ac_status=$?
22566   grep -v '^ *+' conftest.er1 >conftest.err
22567   rm -f conftest.er1
22568   cat conftest.err >&5
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } && {
22571          test -z "$ac_c_werror_flag" ||
22572          test ! -s conftest.err
22573        } && test -s conftest.$ac_objext; then
22574   ac_hi=-1 ac_mid=-1
22575   while :; do
22576     cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h.  */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h.  */
22582 $ac_includes_default
22583    typedef long long ac__type_sizeof_;
22584 int
22585 main ()
22586 {
22587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22588 test_array [0] = 0
22589
22590   ;
22591   return 0;
22592 }
22593 _ACEOF
22594 rm -f conftest.$ac_objext
22595 if { (ac_try="$ac_compile"
22596 case "(($ac_try" in
22597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598   *) ac_try_echo=$ac_try;;
22599 esac
22600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601   (eval "$ac_compile") 2>conftest.er1
22602   ac_status=$?
22603   grep -v '^ *+' conftest.er1 >conftest.err
22604   rm -f conftest.er1
22605   cat conftest.err >&5
22606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); } && {
22608          test -z "$ac_c_werror_flag" ||
22609          test ! -s conftest.err
22610        } && test -s conftest.$ac_objext; then
22611   ac_lo=$ac_mid; break
22612 else
22613   echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616         ac_hi=`expr '(' $ac_mid ')' - 1`
22617                         if test $ac_mid -le $ac_hi; then
22618                           ac_lo= ac_hi=
22619                           break
22620                         fi
22621                         ac_mid=`expr 2 '*' $ac_mid`
22622 fi
22623
22624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22625   done
22626 else
22627   echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22629
22630         ac_lo= ac_hi=
22631 fi
22632
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 fi
22635
22636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 # Binary search between lo and hi bounds.
22638 while test "x$ac_lo" != "x$ac_hi"; do
22639   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22640   cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646 $ac_includes_default
22647    typedef long long ac__type_sizeof_;
22648 int
22649 main ()
22650 {
22651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22652 test_array [0] = 0
22653
22654   ;
22655   return 0;
22656 }
22657 _ACEOF
22658 rm -f conftest.$ac_objext
22659 if { (ac_try="$ac_compile"
22660 case "(($ac_try" in
22661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662   *) ac_try_echo=$ac_try;;
22663 esac
22664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22665   (eval "$ac_compile") 2>conftest.er1
22666   ac_status=$?
22667   grep -v '^ *+' conftest.er1 >conftest.err
22668   rm -f conftest.er1
22669   cat conftest.err >&5
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } && {
22672          test -z "$ac_c_werror_flag" ||
22673          test ! -s conftest.err
22674        } && test -s conftest.$ac_objext; then
22675   ac_hi=$ac_mid
22676 else
22677   echo "$as_me: failed program was:" >&5
22678 sed 's/^/| /' conftest.$ac_ext >&5
22679
22680         ac_lo=`expr '(' $ac_mid ')' + 1`
22681 fi
22682
22683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22684 done
22685 case $ac_lo in
22686 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22687 '') if test "$ac_cv_type_long_long" = yes; then
22688      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22689 See \`config.log' for more details." >&5
22690 echo "$as_me: error: cannot compute sizeof (long long)
22691 See \`config.log' for more details." >&2;}
22692    { (exit 77); exit 77; }; }
22693    else
22694      ac_cv_sizeof_long_long=0
22695    fi ;;
22696 esac
22697 else
22698   cat >conftest.$ac_ext <<_ACEOF
22699 /* confdefs.h.  */
22700 _ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h.  */
22704 $ac_includes_default
22705    typedef long long ac__type_sizeof_;
22706 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22707 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22708 #include <stdio.h>
22709 #include <stdlib.h>
22710 int
22711 main ()
22712 {
22713
22714   FILE *f = fopen ("conftest.val", "w");
22715   if (! f)
22716     return 1;
22717   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22718     {
22719       long int i = longval ();
22720       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22721         return 1;
22722       fprintf (f, "%ld\n", i);
22723     }
22724   else
22725     {
22726       unsigned long int i = ulongval ();
22727       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22728         return 1;
22729       fprintf (f, "%lu\n", i);
22730     }
22731   return ferror (f) || fclose (f) != 0;
22732
22733   ;
22734   return 0;
22735 }
22736 _ACEOF
22737 rm -f conftest$ac_exeext
22738 if { (ac_try="$ac_link"
22739 case "(($ac_try" in
22740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741   *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744   (eval "$ac_link") 2>&5
22745   ac_status=$?
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22748   { (case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753   (eval "$ac_try") 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); }; }; then
22757   ac_cv_sizeof_long_long=`cat conftest.val`
22758 else
22759   echo "$as_me: program exited with status $ac_status" >&5
22760 echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22762
22763 ( exit $ac_status )
22764 if test "$ac_cv_type_long_long" = yes; then
22765      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22766 See \`config.log' for more details." >&5
22767 echo "$as_me: error: cannot compute sizeof (long long)
22768 See \`config.log' for more details." >&2;}
22769    { (exit 77); exit 77; }; }
22770    else
22771      ac_cv_sizeof_long_long=0
22772    fi
22773 fi
22774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22775 fi
22776 rm -f conftest.val
22777 fi
22778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22779 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22780
22781
22782
22783 cat >>confdefs.h <<_ACEOF
22784 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22785 _ACEOF
22786
22787
22788 esac
22789
22790 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22791 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22792 if test "${ac_cv_type_wchar_t+set}" = set; then
22793   echo $ECHO_N "(cached) $ECHO_C" >&6
22794 else
22795   cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801
22802         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22803         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22804         #  error "fake wchar_t"
22805         #endif
22806         #ifdef HAVE_WCHAR_H
22807         #  ifdef __CYGWIN__
22808         #    include <stddef.h>
22809         #  endif
22810         #  include <wchar.h>
22811         #endif
22812         #ifdef HAVE_STDLIB_H
22813         #  include <stdlib.h>
22814         #endif
22815         #include <stdio.h>
22816
22817
22818
22819 typedef wchar_t ac__type_new_;
22820 int
22821 main ()
22822 {
22823 if ((ac__type_new_ *) 0)
22824   return 0;
22825 if (sizeof (ac__type_new_))
22826   return 0;
22827   ;
22828   return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext
22832 if { (ac_try="$ac_compile"
22833 case "(($ac_try" in
22834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835   *) ac_try_echo=$ac_try;;
22836 esac
22837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22838   (eval "$ac_compile") 2>conftest.er1
22839   ac_status=$?
22840   grep -v '^ *+' conftest.er1 >conftest.err
22841   rm -f conftest.er1
22842   cat conftest.err >&5
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); } && {
22845          test -z "$ac_c_werror_flag" ||
22846          test ! -s conftest.err
22847        } && test -s conftest.$ac_objext; then
22848   ac_cv_type_wchar_t=yes
22849 else
22850   echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22852
22853         ac_cv_type_wchar_t=no
22854 fi
22855
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857 fi
22858 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22859 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22860
22861 # The cast to long int works around a bug in the HP C Compiler
22862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22864 # This bug is HP SR number 8606223364.
22865 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22866 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22867 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22868   echo $ECHO_N "(cached) $ECHO_C" >&6
22869 else
22870   if test "$cross_compiling" = yes; then
22871   # Depending upon the size, compute the lo and hi bounds.
22872 cat >conftest.$ac_ext <<_ACEOF
22873 /* confdefs.h.  */
22874 _ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h.  */
22878
22879         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22880         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22881         #  error "fake wchar_t"
22882         #endif
22883         #ifdef HAVE_WCHAR_H
22884         #  ifdef __CYGWIN__
22885         #    include <stddef.h>
22886         #  endif
22887         #  include <wchar.h>
22888         #endif
22889         #ifdef HAVE_STDLIB_H
22890         #  include <stdlib.h>
22891         #endif
22892         #include <stdio.h>
22893
22894
22895
22896    typedef wchar_t ac__type_sizeof_;
22897 int
22898 main ()
22899 {
22900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22901 test_array [0] = 0
22902
22903   ;
22904   return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext
22908 if { (ac_try="$ac_compile"
22909 case "(($ac_try" in
22910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911   *) ac_try_echo=$ac_try;;
22912 esac
22913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914   (eval "$ac_compile") 2>conftest.er1
22915   ac_status=$?
22916   grep -v '^ *+' conftest.er1 >conftest.err
22917   rm -f conftest.er1
22918   cat conftest.err >&5
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); } && {
22921          test -z "$ac_c_werror_flag" ||
22922          test ! -s conftest.err
22923        } && test -s conftest.$ac_objext; then
22924   ac_lo=0 ac_mid=0
22925   while :; do
22926     cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h.  */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h.  */
22932
22933         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22934         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22935         #  error "fake wchar_t"
22936         #endif
22937         #ifdef HAVE_WCHAR_H
22938         #  ifdef __CYGWIN__
22939         #    include <stddef.h>
22940         #  endif
22941         #  include <wchar.h>
22942         #endif
22943         #ifdef HAVE_STDLIB_H
22944         #  include <stdlib.h>
22945         #endif
22946         #include <stdio.h>
22947
22948
22949
22950    typedef wchar_t ac__type_sizeof_;
22951 int
22952 main ()
22953 {
22954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22955 test_array [0] = 0
22956
22957   ;
22958   return 0;
22959 }
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965   *) ac_try_echo=$ac_try;;
22966 esac
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968   (eval "$ac_compile") 2>conftest.er1
22969   ac_status=$?
22970   grep -v '^ *+' conftest.er1 >conftest.err
22971   rm -f conftest.er1
22972   cat conftest.err >&5
22973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974   (exit $ac_status); } && {
22975          test -z "$ac_c_werror_flag" ||
22976          test ! -s conftest.err
22977        } && test -s conftest.$ac_objext; then
22978   ac_hi=$ac_mid; break
22979 else
22980   echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22982
22983         ac_lo=`expr $ac_mid + 1`
22984                         if test $ac_lo -le $ac_mid; then
22985                           ac_lo= ac_hi=
22986                           break
22987                         fi
22988                         ac_mid=`expr 2 '*' $ac_mid + 1`
22989 fi
22990
22991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992   done
22993 else
22994   echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22996
22997         cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003
23004         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23005         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23006         #  error "fake wchar_t"
23007         #endif
23008         #ifdef HAVE_WCHAR_H
23009         #  ifdef __CYGWIN__
23010         #    include <stddef.h>
23011         #  endif
23012         #  include <wchar.h>
23013         #endif
23014         #ifdef HAVE_STDLIB_H
23015         #  include <stdlib.h>
23016         #endif
23017         #include <stdio.h>
23018
23019
23020
23021    typedef wchar_t ac__type_sizeof_;
23022 int
23023 main ()
23024 {
23025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23026 test_array [0] = 0
23027
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 rm -f conftest.$ac_objext
23033 if { (ac_try="$ac_compile"
23034 case "(($ac_try" in
23035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036   *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039   (eval "$ac_compile") 2>conftest.er1
23040   ac_status=$?
23041   grep -v '^ *+' conftest.er1 >conftest.err
23042   rm -f conftest.er1
23043   cat conftest.err >&5
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); } && {
23046          test -z "$ac_c_werror_flag" ||
23047          test ! -s conftest.err
23048        } && test -s conftest.$ac_objext; then
23049   ac_hi=-1 ac_mid=-1
23050   while :; do
23051     cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h.  */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h.  */
23057
23058         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23059         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23060         #  error "fake wchar_t"
23061         #endif
23062         #ifdef HAVE_WCHAR_H
23063         #  ifdef __CYGWIN__
23064         #    include <stddef.h>
23065         #  endif
23066         #  include <wchar.h>
23067         #endif
23068         #ifdef HAVE_STDLIB_H
23069         #  include <stdlib.h>
23070         #endif
23071         #include <stdio.h>
23072
23073
23074
23075    typedef wchar_t ac__type_sizeof_;
23076 int
23077 main ()
23078 {
23079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23080 test_array [0] = 0
23081
23082   ;
23083   return 0;
23084 }
23085 _ACEOF
23086 rm -f conftest.$ac_objext
23087 if { (ac_try="$ac_compile"
23088 case "(($ac_try" in
23089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090   *) ac_try_echo=$ac_try;;
23091 esac
23092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23093   (eval "$ac_compile") 2>conftest.er1
23094   ac_status=$?
23095   grep -v '^ *+' conftest.er1 >conftest.err
23096   rm -f conftest.er1
23097   cat conftest.err >&5
23098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099   (exit $ac_status); } && {
23100          test -z "$ac_c_werror_flag" ||
23101          test ! -s conftest.err
23102        } && test -s conftest.$ac_objext; then
23103   ac_lo=$ac_mid; break
23104 else
23105   echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108         ac_hi=`expr '(' $ac_mid ')' - 1`
23109                         if test $ac_mid -le $ac_hi; then
23110                           ac_lo= ac_hi=
23111                           break
23112                         fi
23113                         ac_mid=`expr 2 '*' $ac_mid`
23114 fi
23115
23116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117   done
23118 else
23119   echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23121
23122         ac_lo= ac_hi=
23123 fi
23124
23125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23126 fi
23127
23128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129 # Binary search between lo and hi bounds.
23130 while test "x$ac_lo" != "x$ac_hi"; do
23131   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23132   cat >conftest.$ac_ext <<_ACEOF
23133 /* confdefs.h.  */
23134 _ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h.  */
23138
23139         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23140         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23141         #  error "fake wchar_t"
23142         #endif
23143         #ifdef HAVE_WCHAR_H
23144         #  ifdef __CYGWIN__
23145         #    include <stddef.h>
23146         #  endif
23147         #  include <wchar.h>
23148         #endif
23149         #ifdef HAVE_STDLIB_H
23150         #  include <stdlib.h>
23151         #endif
23152         #include <stdio.h>
23153
23154
23155
23156    typedef wchar_t ac__type_sizeof_;
23157 int
23158 main ()
23159 {
23160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23161 test_array [0] = 0
23162
23163   ;
23164   return 0;
23165 }
23166 _ACEOF
23167 rm -f conftest.$ac_objext
23168 if { (ac_try="$ac_compile"
23169 case "(($ac_try" in
23170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171   *) ac_try_echo=$ac_try;;
23172 esac
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174   (eval "$ac_compile") 2>conftest.er1
23175   ac_status=$?
23176   grep -v '^ *+' conftest.er1 >conftest.err
23177   rm -f conftest.er1
23178   cat conftest.err >&5
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); } && {
23181          test -z "$ac_c_werror_flag" ||
23182          test ! -s conftest.err
23183        } && test -s conftest.$ac_objext; then
23184   ac_hi=$ac_mid
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189         ac_lo=`expr '(' $ac_mid ')' + 1`
23190 fi
23191
23192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23193 done
23194 case $ac_lo in
23195 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23196 '') if test "$ac_cv_type_wchar_t" = yes; then
23197      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23198 See \`config.log' for more details." >&5
23199 echo "$as_me: error: cannot compute sizeof (wchar_t)
23200 See \`config.log' for more details." >&2;}
23201    { (exit 77); exit 77; }; }
23202    else
23203      ac_cv_sizeof_wchar_t=0
23204    fi ;;
23205 esac
23206 else
23207   cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213
23214         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23215         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23216         #  error "fake wchar_t"
23217         #endif
23218         #ifdef HAVE_WCHAR_H
23219         #  ifdef __CYGWIN__
23220         #    include <stddef.h>
23221         #  endif
23222         #  include <wchar.h>
23223         #endif
23224         #ifdef HAVE_STDLIB_H
23225         #  include <stdlib.h>
23226         #endif
23227         #include <stdio.h>
23228
23229
23230
23231    typedef wchar_t ac__type_sizeof_;
23232 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23233 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23234 #include <stdio.h>
23235 #include <stdlib.h>
23236 int
23237 main ()
23238 {
23239
23240   FILE *f = fopen ("conftest.val", "w");
23241   if (! f)
23242     return 1;
23243   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23244     {
23245       long int i = longval ();
23246       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23247         return 1;
23248       fprintf (f, "%ld\n", i);
23249     }
23250   else
23251     {
23252       unsigned long int i = ulongval ();
23253       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23254         return 1;
23255       fprintf (f, "%lu\n", i);
23256     }
23257   return ferror (f) || fclose (f) != 0;
23258
23259   ;
23260   return 0;
23261 }
23262 _ACEOF
23263 rm -f conftest$ac_exeext
23264 if { (ac_try="$ac_link"
23265 case "(($ac_try" in
23266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267   *) ac_try_echo=$ac_try;;
23268 esac
23269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23270   (eval "$ac_link") 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23274   { (case "(($ac_try" in
23275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276   *) ac_try_echo=$ac_try;;
23277 esac
23278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23279   (eval "$ac_try") 2>&5
23280   ac_status=$?
23281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282   (exit $ac_status); }; }; then
23283   ac_cv_sizeof_wchar_t=`cat conftest.val`
23284 else
23285   echo "$as_me: program exited with status $ac_status" >&5
23286 echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289 ( exit $ac_status )
23290 if test "$ac_cv_type_wchar_t" = yes; then
23291      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23292 See \`config.log' for more details." >&5
23293 echo "$as_me: error: cannot compute sizeof (wchar_t)
23294 See \`config.log' for more details." >&2;}
23295    { (exit 77); exit 77; }; }
23296    else
23297      ac_cv_sizeof_wchar_t=0
23298    fi
23299 fi
23300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23301 fi
23302 rm -f conftest.val
23303 fi
23304 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23305 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23306
23307
23308
23309 cat >>confdefs.h <<_ACEOF
23310 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23311 _ACEOF
23312
23313
23314 if test "$ac_cv_sizeof_wchar_t" != 0; then
23315     wxUSE_WCHAR_T=yes
23316 else
23317     wxUSE_WCHAR_T=no
23318 fi
23319
23320 { echo "$as_me:$LINENO: checking for va_copy" >&5
23321 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23322 if test "${wx_cv_func_va_copy+set}" = set; then
23323   echo $ECHO_N "(cached) $ECHO_C" >&6
23324 else
23325
23326         ac_ext=cpp
23327 ac_cpp='$CXXCPP $CPPFLAGS'
23328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23331
23332         cat >conftest.$ac_ext <<_ACEOF
23333
23334             #include <stdarg.h>
23335             void foo(char *f, ...)
23336             {
23337                 va_list ap1, ap2;
23338                 va_start(ap1, f);
23339                 va_copy(ap2, ap1);
23340                 va_end(ap2);
23341                 va_end(ap1);
23342             }
23343             int main()
23344             {
23345                 foo("hi", 17);
23346                 return 0;
23347             }
23348 _ACEOF
23349 rm -f conftest.$ac_objext conftest$ac_exeext
23350 if { (ac_try="$ac_link"
23351 case "(($ac_try" in
23352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353   *) ac_try_echo=$ac_try;;
23354 esac
23355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23356   (eval "$ac_link") 2>conftest.er1
23357   ac_status=$?
23358   grep -v '^ *+' conftest.er1 >conftest.err
23359   rm -f conftest.er1
23360   cat conftest.err >&5
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); } && {
23363          test -z "$ac_cxx_werror_flag" ||
23364          test ! -s conftest.err
23365        } && test -s conftest$ac_exeext &&
23366        $as_test_x conftest$ac_exeext; then
23367   wx_cv_func_va_copy=yes
23368 else
23369   echo "$as_me: failed program was:" >&5
23370 sed 's/^/| /' conftest.$ac_ext >&5
23371
23372         wx_cv_func_va_copy=no
23373
23374 fi
23375
23376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23377       conftest$ac_exeext conftest.$ac_ext
23378         ac_ext=c
23379 ac_cpp='$CPP $CPPFLAGS'
23380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23383
23384
23385
23386 fi
23387 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23388 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23389
23390 if test $wx_cv_func_va_copy = "yes"; then
23391     cat >>confdefs.h <<\_ACEOF
23392 #define HAVE_VA_COPY 1
23393 _ACEOF
23394
23395 else
23396         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23397 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23398 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23399   echo $ECHO_N "(cached) $ECHO_C" >&6
23400 else
23401
23402             if test "$cross_compiling" = yes; then
23403                   wx_cv_type_va_list_lvalue=yes
23404
23405 else
23406   cat >conftest.$ac_ext <<_ACEOF
23407
23408                 #include <stdarg.h>
23409                 int foo(char *f, ...)
23410                 {
23411                     va_list ap1, ap2;
23412                     va_start(ap1, f);
23413                     ap2 = ap1;
23414                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23415                         return 1;
23416                     va_end(ap2);
23417                     va_end(ap1);
23418                     return 0;
23419                 }
23420                 int main()
23421                 {
23422                     return foo("hi", 17);
23423                 }
23424 _ACEOF
23425 rm -f conftest$ac_exeext
23426 if { (ac_try="$ac_link"
23427 case "(($ac_try" in
23428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429   *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432   (eval "$ac_link") 2>&5
23433   ac_status=$?
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23436   { (case "(($ac_try" in
23437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438   *) ac_try_echo=$ac_try;;
23439 esac
23440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23441   (eval "$ac_try") 2>&5
23442   ac_status=$?
23443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); }; }; then
23445   wx_cv_type_va_list_lvalue=yes
23446 else
23447   echo "$as_me: program exited with status $ac_status" >&5
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23450
23451 ( exit $ac_status )
23452 wx_cv_type_va_list_lvalue=no
23453 fi
23454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23455 fi
23456
23457
23458
23459
23460 fi
23461 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23462 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23463
23464     if test $wx_cv_type_va_list_lvalue != "yes"; then
23465                         cat >>confdefs.h <<\_ACEOF
23466 #define VA_LIST_IS_ARRAY 1
23467 _ACEOF
23468
23469     fi
23470 fi
23471
23472 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23473
23474 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23475 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23476 if test "${wx_cv_have_variadic_macros+set}" = set; then
23477   echo $ECHO_N "(cached) $ECHO_C" >&6
23478 else
23479
23480                         ac_ext=cpp
23481 ac_cpp='$CXXCPP $CPPFLAGS'
23482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23485
23486         cat >conftest.$ac_ext <<_ACEOF
23487 /* confdefs.h.  */
23488 _ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h.  */
23492
23493                     #include <stdio.h>
23494                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23495
23496 int
23497 main ()
23498 {
23499
23500                     test("%s %d %p", "test", 1, 0);
23501
23502
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext
23508 if { (ac_try="$ac_compile"
23509 case "(($ac_try" in
23510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511   *) ac_try_echo=$ac_try;;
23512 esac
23513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514   (eval "$ac_compile") 2>conftest.er1
23515   ac_status=$?
23516   grep -v '^ *+' conftest.er1 >conftest.err
23517   rm -f conftest.er1
23518   cat conftest.err >&5
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); } && {
23521          test -z "$ac_cxx_werror_flag" ||
23522          test ! -s conftest.err
23523        } && test -s conftest.$ac_objext; then
23524   wx_cv_have_variadic_macros=yes
23525 else
23526   echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529         wx_cv_have_variadic_macros=no
23530
23531 fi
23532
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534         ac_ext=c
23535 ac_cpp='$CPP $CPPFLAGS'
23536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23539
23540
23541
23542 fi
23543 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23544 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23545
23546 if test $wx_cv_have_variadic_macros = "yes"; then
23547     cat >>confdefs.h <<\_ACEOF
23548 #define HAVE_VARIADIC_MACROS 1
23549 _ACEOF
23550
23551 fi
23552
23553 fi
23554
23555 LARGEFILE_CPPFLAGS=
23556 # Check whether --enable-largefile was given.
23557 if test "${enable_largefile+set}" = set; then
23558   enableval=$enable_largefile;
23559 fi
23560
23561 if test "$enable_largefile" != no; then
23562             wx_largefile=no
23563
23564     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23565 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23566 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23567   echo $ECHO_N "(cached) $ECHO_C" >&6
23568 else
23569
23570           cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h.  */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h.  */
23576 #define _FILE_OFFSET_BITS 64
23577                           #include <sys/types.h>
23578 int
23579 main ()
23580 {
23581 typedef struct {
23582     unsigned int field: sizeof(off_t) == 8;
23583 } wxlf;
23584
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593   *) ac_try_echo=$ac_try;;
23594 esac
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596   (eval "$ac_compile") 2>conftest.er1
23597   ac_status=$?
23598   grep -v '^ *+' conftest.er1 >conftest.err
23599   rm -f conftest.er1
23600   cat conftest.err >&5
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); } && {
23603          test -z "$ac_c_werror_flag" ||
23604          test ! -s conftest.err
23605        } && test -s conftest.$ac_objext; then
23606   ac_cv_sys_file_offset_bits=64
23607 else
23608   echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23610
23611         ac_cv_sys_file_offset_bits=no
23612 fi
23613
23614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23615
23616
23617 fi
23618 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23619 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23620
23621     if test "$ac_cv_sys_file_offset_bits" != no; then
23622         wx_largefile=yes
23623         cat >>confdefs.h <<_ACEOF
23624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23625 _ACEOF
23626
23627     fi
23628
23629     if test "x$wx_largefile" != "xyes"; then
23630
23631     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23632 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23633 if test "${ac_cv_sys_large_files+set}" = set; then
23634   echo $ECHO_N "(cached) $ECHO_C" >&6
23635 else
23636
23637           cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643 #define _LARGE_FILES 1
23644                           #include <sys/types.h>
23645 int
23646 main ()
23647 {
23648 typedef struct {
23649     unsigned int field: sizeof(off_t) == 8;
23650 } wxlf;
23651
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_compile") 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } && {
23670          test -z "$ac_c_werror_flag" ||
23671          test ! -s conftest.err
23672        } && test -s conftest.$ac_objext; then
23673   ac_cv_sys_large_files=1
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678         ac_cv_sys_large_files=no
23679 fi
23680
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682
23683
23684 fi
23685 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23686 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23687
23688     if test "$ac_cv_sys_large_files" != no; then
23689         wx_largefile=yes
23690         cat >>confdefs.h <<_ACEOF
23691 #define _LARGE_FILES $ac_cv_sys_large_files
23692 _ACEOF
23693
23694     fi
23695
23696     fi
23697
23698     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23699 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23700     if test "x$wx_largefile" = "xyes"; then
23701         cat >>confdefs.h <<\_ACEOF
23702 #define HAVE_LARGEFILE_SUPPORT 1
23703 _ACEOF
23704
23705     fi
23706     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23707 echo "${ECHO_T}$wx_largefile" >&6; }
23708 fi
23709
23710 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23711     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23712 elif test "$ac_cv_sys_large_files" = 1; then
23713     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23714 fi
23715
23716 if test -n "$LARGEFILE_CPPFLAGS"; then
23717     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23718
23719                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23720         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23721 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23722 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23723   echo $ECHO_N "(cached) $ECHO_C" >&6
23724 else
23725
23726                 ac_ext=cpp
23727 ac_cpp='$CXXCPP $CPPFLAGS'
23728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23731
23732                 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738
23739 int
23740 main ()
23741 {
23742
23743                         #ifndef __STDC_EXT__
23744                             choke me
23745                         #endif
23746
23747   ;
23748   return 0;
23749 }
23750 _ACEOF
23751 rm -f conftest.$ac_objext
23752 if { (ac_try="$ac_compile"
23753 case "(($ac_try" in
23754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755   *) ac_try_echo=$ac_try;;
23756 esac
23757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23758   (eval "$ac_compile") 2>conftest.er1
23759   ac_status=$?
23760   grep -v '^ *+' conftest.er1 >conftest.err
23761   rm -f conftest.er1
23762   cat conftest.err >&5
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); } && {
23765          test -z "$ac_cxx_werror_flag" ||
23766          test ! -s conftest.err
23767        } && test -s conftest.$ac_objext; then
23768   wx_cv_STDC_EXT_required=no
23769 else
23770   echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23772
23773         wx_cv_STDC_EXT_required=yes
23774
23775 fi
23776
23777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778                 ac_ext=c
23779 ac_cpp='$CPP $CPPFLAGS'
23780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23783
23784
23785
23786 fi
23787 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23788 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23789         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23790             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23791         fi
23792     fi
23793 fi
23794
23795 ac_ext=cpp
23796 ac_cpp='$CXXCPP $CPPFLAGS'
23797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23800
23801 old_CPPFLAGS="$CPPFLAGS"
23802 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23803 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23804 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23805 if test "${ac_cv_sys_largefile_source+set}" = set; then
23806   echo $ECHO_N "(cached) $ECHO_C" >&6
23807 else
23808   while :; do
23809   cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815 #include <sys/types.h> /* for off_t */
23816      #include <stdio.h>
23817 int
23818 main ()
23819 {
23820 int (*fp) (FILE *, off_t, int) = fseeko;
23821      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23822   ;
23823   return 0;
23824 }
23825 _ACEOF
23826 rm -f conftest.$ac_objext conftest$ac_exeext
23827 if { (ac_try="$ac_link"
23828 case "(($ac_try" in
23829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830   *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833   (eval "$ac_link") 2>conftest.er1
23834   ac_status=$?
23835   grep -v '^ *+' conftest.er1 >conftest.err
23836   rm -f conftest.er1
23837   cat conftest.err >&5
23838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839   (exit $ac_status); } && {
23840          test -z "$ac_cxx_werror_flag" ||
23841          test ! -s conftest.err
23842        } && test -s conftest$ac_exeext &&
23843        $as_test_x conftest$ac_exeext; then
23844   ac_cv_sys_largefile_source=no; break
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849
23850 fi
23851
23852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23853       conftest$ac_exeext conftest.$ac_ext
23854   cat >conftest.$ac_ext <<_ACEOF
23855 /* confdefs.h.  */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h.  */
23860 #define _LARGEFILE_SOURCE 1
23861 #include <sys/types.h> /* for off_t */
23862      #include <stdio.h>
23863 int
23864 main ()
23865 {
23866 int (*fp) (FILE *, off_t, int) = fseeko;
23867      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23868   ;
23869   return 0;
23870 }
23871 _ACEOF
23872 rm -f conftest.$ac_objext conftest$ac_exeext
23873 if { (ac_try="$ac_link"
23874 case "(($ac_try" in
23875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23876   *) ac_try_echo=$ac_try;;
23877 esac
23878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23879   (eval "$ac_link") 2>conftest.er1
23880   ac_status=$?
23881   grep -v '^ *+' conftest.er1 >conftest.err
23882   rm -f conftest.er1
23883   cat conftest.err >&5
23884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885   (exit $ac_status); } && {
23886          test -z "$ac_cxx_werror_flag" ||
23887          test ! -s conftest.err
23888        } && test -s conftest$ac_exeext &&
23889        $as_test_x conftest$ac_exeext; then
23890   ac_cv_sys_largefile_source=1; break
23891 else
23892   echo "$as_me: failed program was:" >&5
23893 sed 's/^/| /' conftest.$ac_ext >&5
23894
23895
23896 fi
23897
23898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23899       conftest$ac_exeext conftest.$ac_ext
23900   ac_cv_sys_largefile_source=unknown
23901   break
23902 done
23903 fi
23904 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23905 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23906 case $ac_cv_sys_largefile_source in #(
23907   no | unknown) ;;
23908   *)
23909 cat >>confdefs.h <<_ACEOF
23910 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23911 _ACEOF
23912 ;;
23913 esac
23914 rm -f conftest*
23915
23916 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23917 # in glibc 2.1.3, but that breaks too many other things.
23918 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23919 if test $ac_cv_sys_largefile_source != unknown; then
23920
23921 cat >>confdefs.h <<\_ACEOF
23922 #define HAVE_FSEEKO 1
23923 _ACEOF
23924
23925 fi
23926
23927 CPPFLAGS="$old_CPPFLAGS"
23928 ac_ext=c
23929 ac_cpp='$CPP $CPPFLAGS'
23930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23933
23934 if test "$ac_cv_sys_largefile_source" != no; then
23935     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23936 fi
23937
23938 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23939 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23940 if test "${ac_cv_c_bigendian+set}" = set; then
23941   echo $ECHO_N "(cached) $ECHO_C" >&6
23942 else
23943   ac_cv_c_bigendian=unknown
23944 # See if sys/param.h defines the BYTE_ORDER macro.
23945 cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h.  */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h.  */
23951 #include <sys/types.h>
23952 #include <sys/param.h>
23953 int
23954 main ()
23955 {
23956
23957 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23958  bogus endian macros
23959 #endif
23960   ;
23961   return 0;
23962 }
23963 _ACEOF
23964 rm -f conftest.$ac_objext
23965 if { (ac_try="$ac_compile"
23966 case "(($ac_try" in
23967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968   *) ac_try_echo=$ac_try;;
23969 esac
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971   (eval "$ac_compile") 2>conftest.er1
23972   ac_status=$?
23973   grep -v '^ *+' conftest.er1 >conftest.err
23974   rm -f conftest.er1
23975   cat conftest.err >&5
23976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977   (exit $ac_status); } && {
23978          test -z "$ac_c_werror_flag" ||
23979          test ! -s conftest.err
23980        } && test -s conftest.$ac_objext; then
23981   # It does; now see whether it defined to BIG_ENDIAN or not.
23982 cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h.  */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h.  */
23988 #include <sys/types.h>
23989 #include <sys/param.h>
23990 int
23991 main ()
23992 {
23993
23994 #if BYTE_ORDER != BIG_ENDIAN
23995  not big endian
23996 #endif
23997   ;
23998   return 0;
23999 }
24000 _ACEOF
24001 rm -f conftest.$ac_objext
24002 if { (ac_try="$ac_compile"
24003 case "(($ac_try" in
24004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005   *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008   (eval "$ac_compile") 2>conftest.er1
24009   ac_status=$?
24010   grep -v '^ *+' conftest.er1 >conftest.err
24011   rm -f conftest.er1
24012   cat conftest.err >&5
24013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014   (exit $ac_status); } && {
24015          test -z "$ac_c_werror_flag" ||
24016          test ! -s conftest.err
24017        } && test -s conftest.$ac_objext; then
24018   ac_cv_c_bigendian=yes
24019 else
24020   echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023         ac_cv_c_bigendian=no
24024 fi
24025
24026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24027 else
24028   echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24030
24031
24032 fi
24033
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 if test $ac_cv_c_bigendian = unknown; then
24036 if test "$cross_compiling" = yes; then
24037   ac_cv_c_bigendian=unknown
24038 else
24039   cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h.  */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h.  */
24045 main () {
24046   /* Are we little or big endian?  From Harbison&Steele.  */
24047   union
24048   {
24049     long l;
24050     char c[sizeof (long)];
24051   } u;
24052   u.l = 1;
24053   exit (u.c[sizeof (long) - 1] == 1);
24054 }
24055 _ACEOF
24056 rm -f conftest$ac_exeext
24057 if { (ac_try="$ac_link"
24058 case "(($ac_try" in
24059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060   *) ac_try_echo=$ac_try;;
24061 esac
24062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24063   (eval "$ac_link") 2>&5
24064   ac_status=$?
24065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24067   { (case "(($ac_try" in
24068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069   *) ac_try_echo=$ac_try;;
24070 esac
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072   (eval "$ac_try") 2>&5
24073   ac_status=$?
24074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075   (exit $ac_status); }; }; then
24076   ac_cv_c_bigendian=no
24077 else
24078   echo "$as_me: program exited with status $ac_status" >&5
24079 echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24081
24082 ( exit $ac_status )
24083 ac_cv_c_bigendian=yes
24084 fi
24085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24086 fi
24087
24088
24089 fi
24090 fi
24091 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24092 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24093 if test $ac_cv_c_bigendian = unknown; then
24094   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
24095 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
24096 fi
24097 if test $ac_cv_c_bigendian = yes; then
24098   cat >>confdefs.h <<\_ACEOF
24099 #define WORDS_BIGENDIAN 1
24100 _ACEOF
24101
24102 fi
24103
24104
24105
24106
24107     ac_ext=cpp
24108 ac_cpp='$CXXCPP $CPPFLAGS'
24109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24112
24113
24114
24115 for ac_header in iostream
24116 do
24117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24121   echo $ECHO_N "(cached) $ECHO_C" >&6
24122 else
24123   cat >conftest.$ac_ext <<_ACEOF
24124 /* confdefs.h.  */
24125 _ACEOF
24126 cat confdefs.h >>conftest.$ac_ext
24127 cat >>conftest.$ac_ext <<_ACEOF
24128 /* end confdefs.h.  */
24129
24130
24131 #include <$ac_header>
24132 _ACEOF
24133 rm -f conftest.$ac_objext
24134 if { (ac_try="$ac_compile"
24135 case "(($ac_try" in
24136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137   *) ac_try_echo=$ac_try;;
24138 esac
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140   (eval "$ac_compile") 2>conftest.er1
24141   ac_status=$?
24142   grep -v '^ *+' conftest.er1 >conftest.err
24143   rm -f conftest.er1
24144   cat conftest.err >&5
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); } && {
24147          test -z "$ac_cxx_werror_flag" ||
24148          test ! -s conftest.err
24149        } && test -s conftest.$ac_objext; then
24150   eval "$as_ac_Header=yes"
24151 else
24152   echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24154
24155         eval "$as_ac_Header=no"
24156 fi
24157
24158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159 fi
24160 ac_res=`eval echo '${'$as_ac_Header'}'`
24161                { echo "$as_me:$LINENO: result: $ac_res" >&5
24162 echo "${ECHO_T}$ac_res" >&6; }
24163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24164   cat >>confdefs.h <<_ACEOF
24165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24166 _ACEOF
24167
24168 fi
24169
24170 done
24171
24172
24173     if test "$ac_cv_header_iostream" = "yes" ; then
24174       :
24175     else
24176       cat >>confdefs.h <<\_ACEOF
24177 #define wxUSE_IOSTREAMH 1
24178 _ACEOF
24179
24180     fi
24181
24182     ac_ext=c
24183 ac_cpp='$CPP $CPPFLAGS'
24184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24187
24188
24189
24190
24191   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24192 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24193 if test "${wx_cv_explicit+set}" = set; then
24194   echo $ECHO_N "(cached) $ECHO_C" >&6
24195 else
24196
24197
24198     ac_ext=cpp
24199 ac_cpp='$CXXCPP $CPPFLAGS'
24200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24203
24204
24205             cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h.  */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h.  */
24211
24212         class Foo { public: explicit Foo(int) {} };
24213
24214 int
24215 main ()
24216 {
24217
24218         return 0;
24219
24220   ;
24221   return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest.$ac_objext
24225 if { (ac_try="$ac_compile"
24226 case "(($ac_try" in
24227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228   *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231   (eval "$ac_compile") 2>conftest.er1
24232   ac_status=$?
24233   grep -v '^ *+' conftest.er1 >conftest.err
24234   rm -f conftest.er1
24235   cat conftest.err >&5
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } && {
24238          test -z "$ac_cxx_werror_flag" ||
24239          test ! -s conftest.err
24240        } && test -s conftest.$ac_objext; then
24241
24242         cat >conftest.$ac_ext <<_ACEOF
24243 /* confdefs.h.  */
24244 _ACEOF
24245 cat confdefs.h >>conftest.$ac_ext
24246 cat >>conftest.$ac_ext <<_ACEOF
24247 /* end confdefs.h.  */
24248
24249                 class Foo { public: explicit Foo(int) {} };
24250                 static void TakeFoo(const Foo& foo) { }
24251
24252 int
24253 main ()
24254 {
24255
24256                 TakeFoo(17);
24257                 return 0;
24258
24259   ;
24260   return 0;
24261 }
24262 _ACEOF
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267   *) ac_try_echo=$ac_try;;
24268 esac
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270   (eval "$ac_compile") 2>conftest.er1
24271   ac_status=$?
24272   grep -v '^ *+' conftest.er1 >conftest.err
24273   rm -f conftest.er1
24274   cat conftest.err >&5
24275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276   (exit $ac_status); } && {
24277          test -z "$ac_cxx_werror_flag" ||
24278          test ! -s conftest.err
24279        } && test -s conftest.$ac_objext; then
24280   wx_cv_explicit=no
24281 else
24282   echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.$ac_ext >&5
24284
24285         wx_cv_explicit=yes
24286
24287 fi
24288
24289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290
24291 else
24292   echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24294
24295         wx_cv_explicit=no
24296
24297 fi
24298
24299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24300
24301     ac_ext=c
24302 ac_cpp='$CPP $CPPFLAGS'
24303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24306
24307
24308 fi
24309 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24310 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24311
24312   if test "$wx_cv_explicit" = "yes"; then
24313     cat >>confdefs.h <<\_ACEOF
24314 #define HAVE_EXPLICIT 1
24315 _ACEOF
24316
24317   fi
24318
24319
24320 if test "x$SUNCXX" = xyes; then
24321     CXXFLAGS="-features=tmplife $CXXFLAGS"
24322 fi
24323
24324 if test "x$SUNCC" = xyes; then
24325     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24326 fi
24327
24328 if test "x$SGICC" = "xyes"; then
24329     CFLAGS="-woff 3970 $CFLAGS"
24330 fi
24331 if test "x$SGICXX" = "xyes"; then
24332     CXXFLAGS="-woff 3970 $CXXFLAGS"
24333 fi
24334
24335 if test "x$HPCC" = "xyes"; then
24336                     CFLAGS="+W 2011,2450 $CFLAGS"
24337 fi
24338 if test "x$HPCXX" = "xyes"; then
24339                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24340 fi
24341
24342 if test "x$COMPAQCXX" = "xyes"; then
24343                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24344 fi
24345
24346 ac_ext=cpp
24347 ac_cpp='$CXXCPP $CPPFLAGS'
24348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24351
24352
24353 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24354     if test "$wxUSE_UNICODE" = "yes"; then
24355         std_string="std::wstring"
24356         char_type="wchar_t"
24357     else
24358         std_string="std::string"
24359         char_type="char"
24360     fi
24361
24362         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24363 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24364 if test "${wx_cv_class_stdstring+set}" = set; then
24365   echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367
24368             cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h.  */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h.  */
24374 #include <string>
24375 int
24376 main ()
24377 {
24378 $std_string foo;
24379   ;
24380   return 0;
24381 }
24382 _ACEOF
24383 rm -f conftest.$ac_objext
24384 if { (ac_try="$ac_compile"
24385 case "(($ac_try" in
24386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387   *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390   (eval "$ac_compile") 2>conftest.er1
24391   ac_status=$?
24392   grep -v '^ *+' conftest.er1 >conftest.err
24393   rm -f conftest.er1
24394   cat conftest.err >&5
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } && {
24397          test -z "$ac_cxx_werror_flag" ||
24398          test ! -s conftest.err
24399        } && test -s conftest.$ac_objext; then
24400   wx_cv_class_stdstring=yes
24401 else
24402   echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24404
24405         wx_cv_class_stdstring=no
24406
24407 fi
24408
24409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24410
24411
24412 fi
24413 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24414 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24415
24416     if test "$wx_cv_class_stdstring" = yes; then
24417         if test "$wxUSE_UNICODE" = "yes"; then
24418             cat >>confdefs.h <<\_ACEOF
24419 #define HAVE_STD_WSTRING 1
24420 _ACEOF
24421
24422         fi
24423                     else
24424         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24425 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24426 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24427   echo $ECHO_N "(cached) $ECHO_C" >&6
24428 else
24429
24430                 cat >conftest.$ac_ext <<_ACEOF
24431 /* confdefs.h.  */
24432 _ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h.  */
24436
24437                     #ifdef HAVE_WCHAR_H
24438                     #  ifdef __CYGWIN__
24439                     #    include <stddef.h>
24440                     #  endif
24441                     #  include <wchar.h>
24442                     #endif
24443                     #ifdef HAVE_STDLIB_H
24444                     #  include <stdlib.h>
24445                     #endif
24446                     #include <stdio.h>
24447                     #include <string>
24448
24449 int
24450 main ()
24451 {
24452 std::basic_string<$char_type> foo;
24453                      const $char_type* dummy = foo.c_str();
24454   ;
24455   return 0;
24456 }
24457 _ACEOF
24458 rm -f conftest.$ac_objext
24459 if { (ac_try="$ac_compile"
24460 case "(($ac_try" in
24461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24462   *) ac_try_echo=$ac_try;;
24463 esac
24464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24465   (eval "$ac_compile") 2>conftest.er1
24466   ac_status=$?
24467   grep -v '^ *+' conftest.er1 >conftest.err
24468   rm -f conftest.er1
24469   cat conftest.err >&5
24470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471   (exit $ac_status); } && {
24472          test -z "$ac_cxx_werror_flag" ||
24473          test ! -s conftest.err
24474        } && test -s conftest.$ac_objext; then
24475   wx_cv_class_stdbasicstring=yes
24476 else
24477   echo "$as_me: failed program was:" >&5
24478 sed 's/^/| /' conftest.$ac_ext >&5
24479
24480         wx_cv_class_stdbasicstring=no
24481
24482 fi
24483
24484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24485
24486
24487 fi
24488 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24489 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24490
24491         if test "$wx_cv_class_stdbasicstring" != yes; then
24492             if test "$wxUSE_STL" = "yes"; then
24493                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24494 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24495    { (exit 1); exit 1; }; }
24496             elif test "$wxUSE_STD_STRING" = "yes"; then
24497                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24498 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24499    { (exit 1); exit 1; }; }
24500             else
24501                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24502 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24503                 wxUSE_STD_STRING=no
24504             fi
24505         fi
24506     fi
24507 fi
24508
24509 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24510     { echo "$as_me:$LINENO: checking for std::istream" >&5
24511 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24512 if test "${ac_cv_type_std__istream+set}" = set; then
24513   echo $ECHO_N "(cached) $ECHO_C" >&6
24514 else
24515   cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h.  */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h.  */
24521 #include <iostream>
24522
24523 typedef std::istream ac__type_new_;
24524 int
24525 main ()
24526 {
24527 if ((ac__type_new_ *) 0)
24528   return 0;
24529 if (sizeof (ac__type_new_))
24530   return 0;
24531   ;
24532   return 0;
24533 }
24534 _ACEOF
24535 rm -f conftest.$ac_objext
24536 if { (ac_try="$ac_compile"
24537 case "(($ac_try" in
24538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539   *) ac_try_echo=$ac_try;;
24540 esac
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542   (eval "$ac_compile") 2>conftest.er1
24543   ac_status=$?
24544   grep -v '^ *+' conftest.er1 >conftest.err
24545   rm -f conftest.er1
24546   cat conftest.err >&5
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); } && {
24549          test -z "$ac_cxx_werror_flag" ||
24550          test ! -s conftest.err
24551        } && test -s conftest.$ac_objext; then
24552   ac_cv_type_std__istream=yes
24553 else
24554   echo "$as_me: failed program was:" >&5
24555 sed 's/^/| /' conftest.$ac_ext >&5
24556
24557         ac_cv_type_std__istream=no
24558 fi
24559
24560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24561 fi
24562 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24563 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24564 if test $ac_cv_type_std__istream = yes; then
24565
24566 cat >>confdefs.h <<_ACEOF
24567 #define HAVE_STD__ISTREAM 1
24568 _ACEOF
24569
24570
24571 else
24572   wxUSE_STD_IOSTREAM=no
24573 fi
24574 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24575 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24576 if test "${ac_cv_type_std__ostream+set}" = set; then
24577   echo $ECHO_N "(cached) $ECHO_C" >&6
24578 else
24579   cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h.  */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h.  */
24585 #include <iostream>
24586
24587 typedef std::ostream ac__type_new_;
24588 int
24589 main ()
24590 {
24591 if ((ac__type_new_ *) 0)
24592   return 0;
24593 if (sizeof (ac__type_new_))
24594   return 0;
24595   ;
24596   return 0;
24597 }
24598 _ACEOF
24599 rm -f conftest.$ac_objext
24600 if { (ac_try="$ac_compile"
24601 case "(($ac_try" in
24602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603   *) ac_try_echo=$ac_try;;
24604 esac
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606   (eval "$ac_compile") 2>conftest.er1
24607   ac_status=$?
24608   grep -v '^ *+' conftest.er1 >conftest.err
24609   rm -f conftest.er1
24610   cat conftest.err >&5
24611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612   (exit $ac_status); } && {
24613          test -z "$ac_cxx_werror_flag" ||
24614          test ! -s conftest.err
24615        } && test -s conftest.$ac_objext; then
24616   ac_cv_type_std__ostream=yes
24617 else
24618   echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24620
24621         ac_cv_type_std__ostream=no
24622 fi
24623
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24625 fi
24626 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24627 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24628 if test $ac_cv_type_std__ostream = yes; then
24629
24630 cat >>confdefs.h <<_ACEOF
24631 #define HAVE_STD__OSTREAM 1
24632 _ACEOF
24633
24634
24635 else
24636   wxUSE_STD_IOSTREAM=no
24637 fi
24638
24639
24640     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24641         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24642             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24643 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24644    { (exit 1); exit 1; }; }
24645         else
24646             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24647 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24648         fi
24649     fi
24650 fi
24651
24652 if test "$wxUSE_STL" = "yes"; then
24653         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24654 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24655 if test "${wx_cv_lib_stl+set}" = set; then
24656   echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658   cat >conftest.$ac_ext <<_ACEOF
24659 /* confdefs.h.  */
24660 _ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h.  */
24664 #include <string>
24665             #include <functional>
24666             #include <algorithm>
24667             #include <vector>
24668             #include <list>
24669 int
24670 main ()
24671 {
24672 std::vector<int> moo;
24673              std::list<int> foo;
24674              std::vector<int>::iterator it =
24675                  std::find_if(moo.begin(), moo.end(),
24676                               std::bind2nd(std::less<int>(), 3));
24677   ;
24678   return 0;
24679 }
24680 _ACEOF
24681 rm -f conftest.$ac_objext
24682 if { (ac_try="$ac_compile"
24683 case "(($ac_try" in
24684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685   *) ac_try_echo=$ac_try;;
24686 esac
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688   (eval "$ac_compile") 2>conftest.er1
24689   ac_status=$?
24690   grep -v '^ *+' conftest.er1 >conftest.err
24691   rm -f conftest.er1
24692   cat conftest.err >&5
24693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694   (exit $ac_status); } && {
24695          test -z "$ac_cxx_werror_flag" ||
24696          test ! -s conftest.err
24697        } && test -s conftest.$ac_objext; then
24698   wx_cv_lib_stl=yes
24699 else
24700   echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24702
24703         wx_cv_lib_stl=no
24704
24705 fi
24706
24707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24708
24709 fi
24710 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24711 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24712
24713     if test "$wx_cv_lib_stl" != yes; then
24714          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24715 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24716    { (exit 1); exit 1; }; }
24717     fi
24718
24719         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24720 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24721 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24722   echo $ECHO_N "(cached) $ECHO_C" >&6
24723 else
24724   cat >conftest.$ac_ext <<_ACEOF
24725 /* confdefs.h.  */
24726 _ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h.  */
24730 #include <string>
24731 int
24732 main ()
24733 {
24734 std::string foo, bar;
24735             foo.compare(bar);
24736             foo.compare(1, 1, bar);
24737             foo.compare(1, 1, bar, 1, 1);
24738             foo.compare("");
24739             foo.compare(1, 1, "");
24740             foo.compare(1, 1, "", 2);
24741   ;
24742   return 0;
24743 }
24744 _ACEOF
24745 rm -f conftest.$ac_objext
24746 if { (ac_try="$ac_compile"
24747 case "(($ac_try" in
24748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749   *) ac_try_echo=$ac_try;;
24750 esac
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752   (eval "$ac_compile") 2>conftest.er1
24753   ac_status=$?
24754   grep -v '^ *+' conftest.er1 >conftest.err
24755   rm -f conftest.er1
24756   cat conftest.err >&5
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); } && {
24759          test -z "$ac_cxx_werror_flag" ||
24760          test ! -s conftest.err
24761        } && test -s conftest.$ac_objext; then
24762   wx_cv_func_stdstring_compare=yes
24763 else
24764   echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24766
24767         wx_cv_func_stdstring_compare=no
24768
24769 fi
24770
24771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24772
24773 fi
24774 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24775 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24776
24777     if test "$wx_cv_func_stdstring_compare" = yes; then
24778         cat >>confdefs.h <<\_ACEOF
24779 #define HAVE_STD_STRING_COMPARE 1
24780 _ACEOF
24781
24782     fi
24783
24784     if test "$wx_cv_class_gnuhashmapset" = yes; then
24785          cat >>confdefs.h <<\_ACEOF
24786 #define HAVE_EXT_HASH_MAP 1
24787 _ACEOF
24788
24789          cat >>confdefs.h <<\_ACEOF
24790 #define HAVE_GNU_CXX_HASH_MAP 1
24791 _ACEOF
24792
24793     fi
24794
24795     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24796 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24797 if test "${ac_cv_header_unordered_map+set}" = set; then
24798   echo $ECHO_N "(cached) $ECHO_C" >&6
24799 else
24800   cat >conftest.$ac_ext <<_ACEOF
24801 /* confdefs.h.  */
24802 _ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h.  */
24806
24807
24808
24809 #include <unordered_map>
24810 _ACEOF
24811 rm -f conftest.$ac_objext
24812 if { (ac_try="$ac_compile"
24813 case "(($ac_try" in
24814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24815   *) ac_try_echo=$ac_try;;
24816 esac
24817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24818   (eval "$ac_compile") 2>conftest.er1
24819   ac_status=$?
24820   grep -v '^ *+' conftest.er1 >conftest.err
24821   rm -f conftest.er1
24822   cat conftest.err >&5
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); } && {
24825          test -z "$ac_cxx_werror_flag" ||
24826          test ! -s conftest.err
24827        } && test -s conftest.$ac_objext; then
24828   ac_cv_header_unordered_map=yes
24829 else
24830   echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833         ac_cv_header_unordered_map=no
24834 fi
24835
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 fi
24838 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24839 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24840 if test $ac_cv_header_unordered_map = yes; then
24841   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24842 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24843 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24844   echo $ECHO_N "(cached) $ECHO_C" >&6
24845 else
24846   cat >conftest.$ac_ext <<_ACEOF
24847 /* confdefs.h.  */
24848 _ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h.  */
24852 #include <unordered_map>
24853                 #include <unordered_set>
24854 int
24855 main ()
24856 {
24857 std::unordered_map<double*, char*> test1;
24858                  std::unordered_set<char*> test2;
24859   ;
24860   return 0;
24861 }
24862 _ACEOF
24863 rm -f conftest.$ac_objext
24864 if { (ac_try="$ac_compile"
24865 case "(($ac_try" in
24866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867   *) ac_try_echo=$ac_try;;
24868 esac
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870   (eval "$ac_compile") 2>conftest.er1
24871   ac_status=$?
24872   grep -v '^ *+' conftest.er1 >conftest.err
24873   rm -f conftest.er1
24874   cat conftest.err >&5
24875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876   (exit $ac_status); } && {
24877          test -z "$ac_cxx_werror_flag" ||
24878          test ! -s conftest.err
24879        } && test -s conftest.$ac_objext; then
24880   wx_cv_class_stdunorderedmapset=yes
24881 else
24882   echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24884
24885         wx_cv_class_stdunorderedmapset=no
24886 fi
24887
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889
24890
24891 fi
24892 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24893 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24894 fi
24895
24896
24897
24898     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24899          cat >>confdefs.h <<\_ACEOF
24900 #define HAVE_STD_UNORDERED_MAP 1
24901 _ACEOF
24902
24903          cat >>confdefs.h <<\_ACEOF
24904 #define HAVE_STD_UNORDERED_SET 1
24905 _ACEOF
24906
24907     else
24908         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24909 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24910 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24911   echo $ECHO_N "(cached) $ECHO_C" >&6
24912 else
24913   cat >conftest.$ac_ext <<_ACEOF
24914 /* confdefs.h.  */
24915 _ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h.  */
24919
24920
24921
24922 #include <tr1/unordered_map>
24923 _ACEOF
24924 rm -f conftest.$ac_objext
24925 if { (ac_try="$ac_compile"
24926 case "(($ac_try" in
24927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928   *) ac_try_echo=$ac_try;;
24929 esac
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931   (eval "$ac_compile") 2>conftest.er1
24932   ac_status=$?
24933   grep -v '^ *+' conftest.er1 >conftest.err
24934   rm -f conftest.er1
24935   cat conftest.err >&5
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); } && {
24938          test -z "$ac_cxx_werror_flag" ||
24939          test ! -s conftest.err
24940        } && test -s conftest.$ac_objext; then
24941   ac_cv_header_tr1_unordered_map=yes
24942 else
24943   echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24945
24946         ac_cv_header_tr1_unordered_map=no
24947 fi
24948
24949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 fi
24951 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24952 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24953 if test $ac_cv_header_tr1_unordered_map = yes; then
24954   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24955 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24956 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24957   echo $ECHO_N "(cached) $ECHO_C" >&6
24958 else
24959   cat >conftest.$ac_ext <<_ACEOF
24960 /* confdefs.h.  */
24961 _ACEOF
24962 cat confdefs.h >>conftest.$ac_ext
24963 cat >>conftest.$ac_ext <<_ACEOF
24964 /* end confdefs.h.  */
24965 #include <tr1/unordered_map>
24966                     #include <tr1/unordered_set>
24967 int
24968 main ()
24969 {
24970 std::tr1::unordered_map<double*, char*> test1;
24971                      std::tr1::unordered_set<char*> test2;
24972             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24973             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24974             #endif
24975   ;
24976   return 0;
24977 }
24978 _ACEOF
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983   *) ac_try_echo=$ac_try;;
24984 esac
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986   (eval "$ac_compile") 2>conftest.er1
24987   ac_status=$?
24988   grep -v '^ *+' conftest.er1 >conftest.err
24989   rm -f conftest.er1
24990   cat conftest.err >&5
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } && {
24993          test -z "$ac_cxx_werror_flag" ||
24994          test ! -s conftest.err
24995        } && test -s conftest.$ac_objext; then
24996   wx_cv_class_tr1unorderedmapset=yes
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001         wx_cv_class_tr1unorderedmapset=no
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005
25006
25007 fi
25008 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25009 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25010 fi
25011
25012
25013
25014         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25015             cat >>confdefs.h <<\_ACEOF
25016 #define HAVE_TR1_UNORDERED_MAP 1
25017 _ACEOF
25018
25019             cat >>confdefs.h <<\_ACEOF
25020 #define HAVE_TR1_UNORDERED_SET 1
25021 _ACEOF
25022
25023         else
25024                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25025 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25026 if test "${ac_cv_header_hash_map+set}" = set; then
25027   echo $ECHO_N "(cached) $ECHO_C" >&6
25028 else
25029   cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h.  */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h.  */
25035
25036
25037
25038 #include <hash_map>
25039 _ACEOF
25040 rm -f conftest.$ac_objext
25041 if { (ac_try="$ac_compile"
25042 case "(($ac_try" in
25043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044   *) ac_try_echo=$ac_try;;
25045 esac
25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047   (eval "$ac_compile") 2>conftest.er1
25048   ac_status=$?
25049   grep -v '^ *+' conftest.er1 >conftest.err
25050   rm -f conftest.er1
25051   cat conftest.err >&5
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); } && {
25054          test -z "$ac_cxx_werror_flag" ||
25055          test ! -s conftest.err
25056        } && test -s conftest.$ac_objext; then
25057   ac_cv_header_hash_map=yes
25058 else
25059   echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25061
25062         ac_cv_header_hash_map=no
25063 fi
25064
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 fi
25067 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25068 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25069 if test $ac_cv_header_hash_map = yes; then
25070   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25071 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25072 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25073   echo $ECHO_N "(cached) $ECHO_C" >&6
25074 else
25075   cat >conftest.$ac_ext <<_ACEOF
25076 /* confdefs.h.  */
25077 _ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h.  */
25081 #include <hash_map>
25082                         #include <hash_set>
25083 int
25084 main ()
25085 {
25086 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25087                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25088   ;
25089   return 0;
25090 }
25091 _ACEOF
25092 rm -f conftest.$ac_objext
25093 if { (ac_try="$ac_compile"
25094 case "(($ac_try" in
25095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096   *) ac_try_echo=$ac_try;;
25097 esac
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099   (eval "$ac_compile") 2>conftest.er1
25100   ac_status=$?
25101   grep -v '^ *+' conftest.er1 >conftest.err
25102   rm -f conftest.er1
25103   cat conftest.err >&5
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); } && {
25106          test -z "$ac_cxx_werror_flag" ||
25107          test ! -s conftest.err
25108        } && test -s conftest.$ac_objext; then
25109   wx_cv_class_stdhashmapset=yes
25110 else
25111   echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25113
25114         wx_cv_class_stdhashmapset=no
25115 fi
25116
25117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25118
25119
25120 fi
25121 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25122 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25123 fi
25124
25125
25126
25127             if test "$wx_cv_class_stdhashmapset" = yes; then
25128                 cat >>confdefs.h <<\_ACEOF
25129 #define HAVE_HASH_MAP 1
25130 _ACEOF
25131
25132                 cat >>confdefs.h <<\_ACEOF
25133 #define HAVE_STD_HASH_MAP 1
25134 _ACEOF
25135
25136             fi
25137
25138             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25139 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25140 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25141   echo $ECHO_N "(cached) $ECHO_C" >&6
25142 else
25143   cat >conftest.$ac_ext <<_ACEOF
25144 /* confdefs.h.  */
25145 _ACEOF
25146 cat confdefs.h >>conftest.$ac_ext
25147 cat >>conftest.$ac_ext <<_ACEOF
25148 /* end confdefs.h.  */
25149
25150
25151
25152 #include <ext/hash_map>
25153 _ACEOF
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158   *) ac_try_echo=$ac_try;;
25159 esac
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161   (eval "$ac_compile") 2>conftest.er1
25162   ac_status=$?
25163   grep -v '^ *+' conftest.er1 >conftest.err
25164   rm -f conftest.er1
25165   cat conftest.err >&5
25166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); } && {
25168          test -z "$ac_cxx_werror_flag" ||
25169          test ! -s conftest.err
25170        } && test -s conftest.$ac_objext; then
25171   ac_cv_header_ext_hash_map=yes
25172 else
25173   echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176         ac_cv_header_ext_hash_map=no
25177 fi
25178
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 fi
25181 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25182 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25183 if test $ac_cv_header_ext_hash_map = yes; then
25184   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25185 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25186 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25187   echo $ECHO_N "(cached) $ECHO_C" >&6
25188 else
25189   cat >conftest.$ac_ext <<_ACEOF
25190 /* confdefs.h.  */
25191 _ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h.  */
25195 #include <ext/hash_map>
25196                         #include <ext/hash_set>
25197 int
25198 main ()
25199 {
25200 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25201                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25202   ;
25203   return 0;
25204 }
25205 _ACEOF
25206 rm -f conftest.$ac_objext
25207 if { (ac_try="$ac_compile"
25208 case "(($ac_try" in
25209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210   *) ac_try_echo=$ac_try;;
25211 esac
25212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213   (eval "$ac_compile") 2>conftest.er1
25214   ac_status=$?
25215   grep -v '^ *+' conftest.er1 >conftest.err
25216   rm -f conftest.er1
25217   cat conftest.err >&5
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); } && {
25220          test -z "$ac_cxx_werror_flag" ||
25221          test ! -s conftest.err
25222        } && test -s conftest.$ac_objext; then
25223   wx_cv_class_gnuhashmapset=yes
25224 else
25225   echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25227
25228         wx_cv_class_gnuhashmapset=no
25229 fi
25230
25231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25232
25233
25234 fi
25235 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25236 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25237 fi
25238
25239
25240
25241         fi
25242     fi
25243 fi
25244
25245
25246
25247   if test -n "$GCC"; then
25248     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25249 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25250     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25251   echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253
25254       cat >conftest.$ac_ext <<_ACEOF
25255 /* confdefs.h.  */
25256 _ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h.  */
25260
25261 int
25262 main ()
25263 {
25264
25265           unsigned int value=0;
25266           /* wxAtomicInc doesn't use return value here */
25267           __sync_fetch_and_add(&value, 2);
25268           __sync_sub_and_fetch(&value, 1);
25269           /* but wxAtomicDec does, so mimic that: */
25270           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25271
25272   ;
25273   return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext conftest$ac_exeext
25277 if { (ac_try="$ac_link"
25278 case "(($ac_try" in
25279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280   *) ac_try_echo=$ac_try;;
25281 esac
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283   (eval "$ac_link") 2>conftest.er1
25284   ac_status=$?
25285   grep -v '^ *+' conftest.er1 >conftest.err
25286   rm -f conftest.er1
25287   cat conftest.err >&5
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); } && {
25290          test -z "$ac_cxx_werror_flag" ||
25291          test ! -s conftest.err
25292        } && test -s conftest$ac_exeext &&
25293        $as_test_x conftest$ac_exeext; then
25294   wx_cv_cc_gcc_atomic_builtins=yes
25295 else
25296   echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25298
25299         wx_cv_cc_gcc_atomic_builtins=no
25300 fi
25301
25302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25303       conftest$ac_exeext conftest.$ac_ext
25304
25305 fi
25306
25307     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25308 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25309     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25310       cat >>confdefs.h <<\_ACEOF
25311 #define HAVE_GCC_ATOMIC_BUILTINS 1
25312 _ACEOF
25313
25314     fi
25315   fi
25316
25317
25318 ac_ext=c
25319 ac_cpp='$CPP $CPPFLAGS'
25320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25323
25324
25325
25326 SEARCH_INCLUDE="\
25327     /usr/local/include        \
25328     /usr/local/X11/include    \
25329     /usr/local/include/X11    \
25330     /usr/local/X11R6/include  \
25331     /usr/local/include/X11R6  \
25332                               \
25333     /usr/Motif-2.1/include    \
25334     /usr/Motif-1.2/include    \
25335     /usr/include/Motif1.2     \
25336                               \
25337     /usr/dt/include           \
25338     /usr/openwin/include      \
25339                               \
25340     /usr/include/Xm           \
25341                               \
25342     /usr/X11R6/include        \
25343     /usr/X11R6.4/include      \
25344                               \
25345     /usr/include/X11R6        \
25346                               \
25347     /usr/X11/include          \
25348     /usr/include/X11          \
25349                               \
25350     /usr/XFree86/include/X11  \
25351     /usr/pkg/include          \
25352                               \
25353     /usr/local/X1R5/include  \
25354     /usr/local/include/X11R5  \
25355     /usr/X11R5/include        \
25356     /usr/include/X11R5        \
25357                               \
25358     /usr/local/X11R4/include  \
25359     /usr/local/include/X11R4  \
25360     /usr/X11R4/include        \
25361     /usr/include/X11R4        \
25362                               \
25363     /usr/openwin/share/include"
25364
25365 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25366 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25367
25368 case "${host}" in
25369     *-*-irix6* )
25370         if test "${wx_cv_std_libpath+set}" = set; then
25371   echo $ECHO_N "(cached) $ECHO_C" >&6
25372 else
25373
25374                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25375                     for e in a so sl dylib dll.a; do
25376                         libc="$d/libc.$e"
25377                         if test -f $libc; then
25378                             save_LIBS="$LIBS"
25379                             LIBS="$libc"
25380                             cat >conftest.$ac_ext <<_ACEOF
25381 int main() { return 0; }
25382 _ACEOF
25383 rm -f conftest.$ac_objext conftest$ac_exeext
25384 if { (ac_try="$ac_link"
25385 case "(($ac_try" in
25386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25387   *) ac_try_echo=$ac_try;;
25388 esac
25389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25390   (eval "$ac_link") 2>conftest.er1
25391   ac_status=$?
25392   grep -v '^ *+' conftest.er1 >conftest.err
25393   rm -f conftest.er1
25394   cat conftest.err >&5
25395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396   (exit $ac_status); } && {
25397          test -z "$ac_c_werror_flag" ||
25398          test ! -s conftest.err
25399        } && test -s conftest$ac_exeext &&
25400        $as_test_x conftest$ac_exeext; then
25401   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25402 else
25403   echo "$as_me: failed program was:" >&5
25404 sed 's/^/| /' conftest.$ac_ext >&5
25405
25406
25407 fi
25408
25409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25410       conftest$ac_exeext conftest.$ac_ext
25411                             LIBS="$save_LIBS"
25412                             if test "x$wx_cv_std_libpath" != "x"; then
25413                                 break 2
25414                             fi
25415                         fi
25416                     done
25417                 done
25418                 if test "x$wx_cv_std_libpath" = "x"; then
25419                     wx_cv_std_libpath="lib"
25420                 fi
25421
25422
25423 fi
25424
25425         ;;
25426
25427     *-*-solaris2* )
25428                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25429             wx_cv_std_libpath="lib/64"
25430         else
25431             wx_cv_std_libpath="lib"
25432         fi
25433         ;;
25434
25435     *-*-linux* )
25436                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25437                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25438             wx_cv_std_libpath="lib64"
25439         else
25440             wx_cv_std_libpath="lib"
25441         fi
25442         ;;
25443
25444     *)
25445         wx_cv_std_libpath="lib";
25446         ;;
25447 esac
25448
25449 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25450 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25451
25452 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25453
25454 if test "$build" != "$host" -a "$GCC" = yes; then
25455                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25456         cross_root=`dirname $cross_root`
25457         cross_root=`dirname $cross_root`
25458
25459                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25460         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25461         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25462
25463                 if test -z "$PKG_CONFIG_PATH"; then
25464             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25465             export PKG_CONFIG_PATH
25466         fi
25467
25468                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25469
25470 ac_find_includes=
25471 for ac_dir in $SEARCH_INCLUDE /usr/include;
25472   do
25473     if test -f "$ac_dir/X11/Intrinsic.h"; then
25474       ac_find_includes=$ac_dir
25475       break
25476     fi
25477   done
25478
25479             x_includes=$ac_find_includes
25480         fi
25481         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25482
25483   ac_find_libraries=
25484   for ac_dir in $SEARCH_LIB;
25485   do
25486     for ac_extension in a so sl dylib dll.a; do
25487       if test -f "$ac_dir/libXt.$ac_extension"; then
25488         ac_find_libraries=$ac_dir
25489         break 2
25490       fi
25491     done
25492   done
25493
25494             x_libraries=$ac_find_libraries
25495         fi
25496     fi
25497 fi
25498
25499
25500 cat >confcache <<\_ACEOF
25501 # This file is a shell script that caches the results of configure
25502 # tests run on this system so they can be shared between configure
25503 # scripts and configure runs, see configure's option --config-cache.
25504 # It is not useful on other systems.  If it contains results you don't
25505 # want to keep, you may remove or edit it.
25506 #
25507 # config.status only pays attention to the cache file if you give it
25508 # the --recheck option to rerun configure.
25509 #
25510 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25511 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25512 # following values.
25513
25514 _ACEOF
25515
25516 # The following way of writing the cache mishandles newlines in values,
25517 # but we know of no workaround that is simple, portable, and efficient.
25518 # So, we kill variables containing newlines.
25519 # Ultrix sh set writes to stderr and can't be redirected directly,
25520 # and sets the high bit in the cache file unless we assign to the vars.
25521 (
25522   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25523     eval ac_val=\$$ac_var
25524     case $ac_val in #(
25525     *${as_nl}*)
25526       case $ac_var in #(
25527       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25528 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25529       esac
25530       case $ac_var in #(
25531       _ | IFS | as_nl) ;; #(
25532       *) $as_unset $ac_var ;;
25533       esac ;;
25534     esac
25535   done
25536
25537   (set) 2>&1 |
25538     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25539     *${as_nl}ac_space=\ *)
25540       # `set' does not quote correctly, so add quotes (double-quote
25541       # substitution turns \\\\ into \\, and sed turns \\ into \).
25542       sed -n \
25543         "s/'/'\\\\''/g;
25544           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25545       ;; #(
25546     *)
25547       # `set' quotes correctly as required by POSIX, so do not add quotes.
25548       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25549       ;;
25550     esac |
25551     sort
25552 ) |
25553   sed '
25554      /^ac_cv_env_/b end
25555      t clear
25556      :clear
25557      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25558      t end
25559      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25560      :end' >>confcache
25561 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25562   if test -w "$cache_file"; then
25563     test "x$cache_file" != "x/dev/null" &&
25564       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25565 echo "$as_me: updating cache $cache_file" >&6;}
25566     cat confcache >$cache_file
25567   else
25568     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25569 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25570   fi
25571 fi
25572 rm -f confcache
25573
25574 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25575     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25576 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25577 if test "${wx_cv_lib_glibc21+set}" = set; then
25578   echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580
25581         cat >conftest.$ac_ext <<_ACEOF
25582 /* confdefs.h.  */
25583 _ACEOF
25584 cat confdefs.h >>conftest.$ac_ext
25585 cat >>conftest.$ac_ext <<_ACEOF
25586 /* end confdefs.h.  */
25587 #include <features.h>
25588 int
25589 main ()
25590 {
25591
25592                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25593                 not glibc 2.1
25594                 #endif
25595
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 rm -f conftest.$ac_objext
25601 if { (ac_try="$ac_compile"
25602 case "(($ac_try" in
25603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604   *) ac_try_echo=$ac_try;;
25605 esac
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607   (eval "$ac_compile") 2>conftest.er1
25608   ac_status=$?
25609   grep -v '^ *+' conftest.er1 >conftest.err
25610   rm -f conftest.er1
25611   cat conftest.err >&5
25612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613   (exit $ac_status); } && {
25614          test -z "$ac_c_werror_flag" ||
25615          test ! -s conftest.err
25616        } && test -s conftest.$ac_objext; then
25617
25618                 wx_cv_lib_glibc21=yes
25619
25620 else
25621   echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25623
25624
25625                 wx_cv_lib_glibc21=no
25626
25627
25628 fi
25629
25630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25631
25632 fi
25633 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25634 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25635     if test "$wx_cv_lib_glibc21" = "yes"; then
25636         cat >>confdefs.h <<\_ACEOF
25637 #define wxHAVE_GLIBC2 1
25638 _ACEOF
25639
25640     fi
25641 fi
25642
25643 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25644     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25645         cat >>confdefs.h <<\_ACEOF
25646 #define _GNU_SOURCE 1
25647 _ACEOF
25648
25649     fi
25650 fi
25651
25652 have_cos=0
25653 have_floor=0
25654
25655 for ac_func in cos
25656 do
25657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25661   echo $ECHO_N "(cached) $ECHO_C" >&6
25662 else
25663   cat >conftest.$ac_ext <<_ACEOF
25664 /* confdefs.h.  */
25665 _ACEOF
25666 cat confdefs.h >>conftest.$ac_ext
25667 cat >>conftest.$ac_ext <<_ACEOF
25668 /* end confdefs.h.  */
25669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25671 #define $ac_func innocuous_$ac_func
25672
25673 /* System header to define __stub macros and hopefully few prototypes,
25674     which can conflict with char $ac_func (); below.
25675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25676     <limits.h> exists even on freestanding compilers.  */
25677
25678 #ifdef __STDC__
25679 # include <limits.h>
25680 #else
25681 # include <assert.h>
25682 #endif
25683
25684 #undef $ac_func
25685
25686 /* Override any GCC internal prototype to avoid an error.
25687    Use char because int might match the return type of a GCC
25688    builtin and then its argument prototype would still apply.  */
25689 #ifdef __cplusplus
25690 extern "C"
25691 #endif
25692 char $ac_func ();
25693 /* The GNU C library defines this for functions which it implements
25694     to always fail with ENOSYS.  Some functions are actually named
25695     something starting with __ and the normal name is an alias.  */
25696 #if defined __stub_$ac_func || defined __stub___$ac_func
25697 choke me
25698 #endif
25699
25700 int
25701 main ()
25702 {
25703 return $ac_func ();
25704   ;
25705   return 0;
25706 }
25707 _ACEOF
25708 rm -f conftest.$ac_objext conftest$ac_exeext
25709 if { (ac_try="$ac_link"
25710 case "(($ac_try" in
25711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25712   *) ac_try_echo=$ac_try;;
25713 esac
25714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25715   (eval "$ac_link") 2>conftest.er1
25716   ac_status=$?
25717   grep -v '^ *+' conftest.er1 >conftest.err
25718   rm -f conftest.er1
25719   cat conftest.err >&5
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); } && {
25722          test -z "$ac_c_werror_flag" ||
25723          test ! -s conftest.err
25724        } && test -s conftest$ac_exeext &&
25725        $as_test_x conftest$ac_exeext; then
25726   eval "$as_ac_var=yes"
25727 else
25728   echo "$as_me: failed program was:" >&5
25729 sed 's/^/| /' conftest.$ac_ext >&5
25730
25731         eval "$as_ac_var=no"
25732 fi
25733
25734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25735       conftest$ac_exeext conftest.$ac_ext
25736 fi
25737 ac_res=`eval echo '${'$as_ac_var'}'`
25738                { echo "$as_me:$LINENO: result: $ac_res" >&5
25739 echo "${ECHO_T}$ac_res" >&6; }
25740 if test `eval echo '${'$as_ac_var'}'` = yes; then
25741   cat >>confdefs.h <<_ACEOF
25742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25743 _ACEOF
25744  have_cos=1
25745 fi
25746 done
25747
25748
25749 for ac_func in floor
25750 do
25751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25755   echo $ECHO_N "(cached) $ECHO_C" >&6
25756 else
25757   cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25765 #define $ac_func innocuous_$ac_func
25766
25767 /* System header to define __stub macros and hopefully few prototypes,
25768     which can conflict with char $ac_func (); below.
25769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25770     <limits.h> exists even on freestanding compilers.  */
25771
25772 #ifdef __STDC__
25773 # include <limits.h>
25774 #else
25775 # include <assert.h>
25776 #endif
25777
25778 #undef $ac_func
25779
25780 /* Override any GCC internal prototype to avoid an error.
25781    Use char because int might match the return type of a GCC
25782    builtin and then its argument prototype would still apply.  */
25783 #ifdef __cplusplus
25784 extern "C"
25785 #endif
25786 char $ac_func ();
25787 /* The GNU C library defines this for functions which it implements
25788     to always fail with ENOSYS.  Some functions are actually named
25789     something starting with __ and the normal name is an alias.  */
25790 #if defined __stub_$ac_func || defined __stub___$ac_func
25791 choke me
25792 #endif
25793
25794 int
25795 main ()
25796 {
25797 return $ac_func ();
25798   ;
25799   return 0;
25800 }
25801 _ACEOF
25802 rm -f conftest.$ac_objext conftest$ac_exeext
25803 if { (ac_try="$ac_link"
25804 case "(($ac_try" in
25805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806   *) ac_try_echo=$ac_try;;
25807 esac
25808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25809   (eval "$ac_link") 2>conftest.er1
25810   ac_status=$?
25811   grep -v '^ *+' conftest.er1 >conftest.err
25812   rm -f conftest.er1
25813   cat conftest.err >&5
25814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815   (exit $ac_status); } && {
25816          test -z "$ac_c_werror_flag" ||
25817          test ! -s conftest.err
25818        } && test -s conftest$ac_exeext &&
25819        $as_test_x conftest$ac_exeext; then
25820   eval "$as_ac_var=yes"
25821 else
25822   echo "$as_me: failed program was:" >&5
25823 sed 's/^/| /' conftest.$ac_ext >&5
25824
25825         eval "$as_ac_var=no"
25826 fi
25827
25828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25829       conftest$ac_exeext conftest.$ac_ext
25830 fi
25831 ac_res=`eval echo '${'$as_ac_var'}'`
25832                { echo "$as_me:$LINENO: result: $ac_res" >&5
25833 echo "${ECHO_T}$ac_res" >&6; }
25834 if test `eval echo '${'$as_ac_var'}'` = yes; then
25835   cat >>confdefs.h <<_ACEOF
25836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25837 _ACEOF
25838  have_floor=1
25839 fi
25840 done
25841
25842 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25843 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25844 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25845     { echo "$as_me:$LINENO: result: yes" >&5
25846 echo "${ECHO_T}yes" >&6; }
25847 else
25848     { echo "$as_me:$LINENO: result: no" >&5
25849 echo "${ECHO_T}no" >&6; }
25850     LIBS="$LIBS -lm"
25851     # use different functions to avoid configure caching
25852     have_sin=0
25853     have_ceil=0
25854
25855 for ac_func in sin
25856 do
25857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25861   echo $ECHO_N "(cached) $ECHO_C" >&6
25862 else
25863   cat >conftest.$ac_ext <<_ACEOF
25864 /* confdefs.h.  */
25865 _ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h.  */
25869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25871 #define $ac_func innocuous_$ac_func
25872
25873 /* System header to define __stub macros and hopefully few prototypes,
25874     which can conflict with char $ac_func (); below.
25875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25876     <limits.h> exists even on freestanding compilers.  */
25877
25878 #ifdef __STDC__
25879 # include <limits.h>
25880 #else
25881 # include <assert.h>
25882 #endif
25883
25884 #undef $ac_func
25885
25886 /* Override any GCC internal prototype to avoid an error.
25887    Use char because int might match the return type of a GCC
25888    builtin and then its argument prototype would still apply.  */
25889 #ifdef __cplusplus
25890 extern "C"
25891 #endif
25892 char $ac_func ();
25893 /* The GNU C library defines this for functions which it implements
25894     to always fail with ENOSYS.  Some functions are actually named
25895     something starting with __ and the normal name is an alias.  */
25896 #if defined __stub_$ac_func || defined __stub___$ac_func
25897 choke me
25898 #endif
25899
25900 int
25901 main ()
25902 {
25903 return $ac_func ();
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (ac_try="$ac_link"
25910 case "(($ac_try" in
25911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912   *) ac_try_echo=$ac_try;;
25913 esac
25914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25915   (eval "$ac_link") 2>conftest.er1
25916   ac_status=$?
25917   grep -v '^ *+' conftest.er1 >conftest.err
25918   rm -f conftest.er1
25919   cat conftest.err >&5
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); } && {
25922          test -z "$ac_c_werror_flag" ||
25923          test ! -s conftest.err
25924        } && test -s conftest$ac_exeext &&
25925        $as_test_x conftest$ac_exeext; then
25926   eval "$as_ac_var=yes"
25927 else
25928   echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25930
25931         eval "$as_ac_var=no"
25932 fi
25933
25934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25935       conftest$ac_exeext conftest.$ac_ext
25936 fi
25937 ac_res=`eval echo '${'$as_ac_var'}'`
25938                { echo "$as_me:$LINENO: result: $ac_res" >&5
25939 echo "${ECHO_T}$ac_res" >&6; }
25940 if test `eval echo '${'$as_ac_var'}'` = yes; then
25941   cat >>confdefs.h <<_ACEOF
25942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25943 _ACEOF
25944  have_sin=1
25945 fi
25946 done
25947
25948
25949 for ac_func in ceil
25950 do
25951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25955   echo $ECHO_N "(cached) $ECHO_C" >&6
25956 else
25957   cat >conftest.$ac_ext <<_ACEOF
25958 /* confdefs.h.  */
25959 _ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h.  */
25963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25965 #define $ac_func innocuous_$ac_func
25966
25967 /* System header to define __stub macros and hopefully few prototypes,
25968     which can conflict with char $ac_func (); below.
25969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25970     <limits.h> exists even on freestanding compilers.  */
25971
25972 #ifdef __STDC__
25973 # include <limits.h>
25974 #else
25975 # include <assert.h>
25976 #endif
25977
25978 #undef $ac_func
25979
25980 /* Override any GCC internal prototype to avoid an error.
25981    Use char because int might match the return type of a GCC
25982    builtin and then its argument prototype would still apply.  */
25983 #ifdef __cplusplus
25984 extern "C"
25985 #endif
25986 char $ac_func ();
25987 /* The GNU C library defines this for functions which it implements
25988     to always fail with ENOSYS.  Some functions are actually named
25989     something starting with __ and the normal name is an alias.  */
25990 #if defined __stub_$ac_func || defined __stub___$ac_func
25991 choke me
25992 #endif
25993
25994 int
25995 main ()
25996 {
25997 return $ac_func ();
25998   ;
25999   return 0;
26000 }
26001 _ACEOF
26002 rm -f conftest.$ac_objext conftest$ac_exeext
26003 if { (ac_try="$ac_link"
26004 case "(($ac_try" in
26005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26006   *) ac_try_echo=$ac_try;;
26007 esac
26008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26009   (eval "$ac_link") 2>conftest.er1
26010   ac_status=$?
26011   grep -v '^ *+' conftest.er1 >conftest.err
26012   rm -f conftest.er1
26013   cat conftest.err >&5
26014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015   (exit $ac_status); } && {
26016          test -z "$ac_c_werror_flag" ||
26017          test ! -s conftest.err
26018        } && test -s conftest$ac_exeext &&
26019        $as_test_x conftest$ac_exeext; then
26020   eval "$as_ac_var=yes"
26021 else
26022   echo "$as_me: failed program was:" >&5
26023 sed 's/^/| /' conftest.$ac_ext >&5
26024
26025         eval "$as_ac_var=no"
26026 fi
26027
26028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26029       conftest$ac_exeext conftest.$ac_ext
26030 fi
26031 ac_res=`eval echo '${'$as_ac_var'}'`
26032                { echo "$as_me:$LINENO: result: $ac_res" >&5
26033 echo "${ECHO_T}$ac_res" >&6; }
26034 if test `eval echo '${'$as_ac_var'}'` = yes; then
26035   cat >>confdefs.h <<_ACEOF
26036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26037 _ACEOF
26038  have_ceil=1
26039 fi
26040 done
26041
26042     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26043 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26044     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26045         { echo "$as_me:$LINENO: result: yes" >&5
26046 echo "${ECHO_T}yes" >&6; }
26047     else
26048         { echo "$as_me:$LINENO: result: no" >&5
26049 echo "${ECHO_T}no" >&6; }
26050         # not sure we should warn the user, crash, etc.
26051     fi
26052 fi
26053
26054 ac_ext=cpp
26055 ac_cpp='$CXXCPP $CPPFLAGS'
26056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26059
26060 if test "wxUSE_UNICODE" = "yes"; then
26061
26062   for wx_func in wcstoull
26063   do
26064     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26065 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26066 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26067   echo $ECHO_N "(cached) $ECHO_C" >&6
26068 else
26069
26070         cat >conftest.$ac_ext <<_ACEOF
26071
26072             /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077
26078
26079                 $ac_includes_default
26080
26081 int
26082 main ()
26083 {
26084
26085                 #ifndef $wx_func
26086                   &$wx_func;
26087                 #endif
26088
26089
26090   ;
26091   return 0;
26092 }
26093
26094 _ACEOF
26095 rm -f conftest.$ac_objext conftest$ac_exeext
26096 if { (ac_try="$ac_link"
26097 case "(($ac_try" in
26098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26099   *) ac_try_echo=$ac_try;;
26100 esac
26101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26102   (eval "$ac_link") 2>conftest.er1
26103   ac_status=$?
26104   grep -v '^ *+' conftest.er1 >conftest.err
26105   rm -f conftest.er1
26106   cat conftest.err >&5
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); } && {
26109          test -z "$ac_cxx_werror_flag" ||
26110          test ! -s conftest.err
26111        } && test -s conftest$ac_exeext &&
26112        $as_test_x conftest$ac_exeext; then
26113   eval wx_cv_func_$wx_func=yes
26114 else
26115   echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118         eval wx_cv_func_$wx_func=no
26119 fi
26120
26121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26122       conftest$ac_exeext conftest.$ac_ext
26123
26124 fi
26125 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26126                { echo "$as_me:$LINENO: result: $ac_res" >&5
26127 echo "${ECHO_T}$ac_res" >&6; }
26128
26129     if eval test \$wx_cv_func_$wx_func = yes
26130     then
26131       cat >>confdefs.h <<_ACEOF
26132 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26133 _ACEOF
26134
26135
26136     else
26137       :
26138
26139     fi
26140   done
26141
26142 else
26143
26144   for wx_func in strtoull
26145   do
26146     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26147 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26148 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26149   echo $ECHO_N "(cached) $ECHO_C" >&6
26150 else
26151
26152         cat >conftest.$ac_ext <<_ACEOF
26153
26154             /* confdefs.h.  */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h.  */
26159
26160
26161                 $ac_includes_default
26162
26163 int
26164 main ()
26165 {
26166
26167                 #ifndef $wx_func
26168                   &$wx_func;
26169                 #endif
26170
26171
26172   ;
26173   return 0;
26174 }
26175
26176 _ACEOF
26177 rm -f conftest.$ac_objext conftest$ac_exeext
26178 if { (ac_try="$ac_link"
26179 case "(($ac_try" in
26180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181   *) ac_try_echo=$ac_try;;
26182 esac
26183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26184   (eval "$ac_link") 2>conftest.er1
26185   ac_status=$?
26186   grep -v '^ *+' conftest.er1 >conftest.err
26187   rm -f conftest.er1
26188   cat conftest.err >&5
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); } && {
26191          test -z "$ac_cxx_werror_flag" ||
26192          test ! -s conftest.err
26193        } && test -s conftest$ac_exeext &&
26194        $as_test_x conftest$ac_exeext; then
26195   eval wx_cv_func_$wx_func=yes
26196 else
26197   echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26199
26200         eval wx_cv_func_$wx_func=no
26201 fi
26202
26203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26204       conftest$ac_exeext conftest.$ac_ext
26205
26206 fi
26207 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26208                { echo "$as_me:$LINENO: result: $ac_res" >&5
26209 echo "${ECHO_T}$ac_res" >&6; }
26210
26211     if eval test \$wx_cv_func_$wx_func = yes
26212     then
26213       cat >>confdefs.h <<_ACEOF
26214 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26215 _ACEOF
26216
26217
26218     else
26219       :
26220
26221     fi
26222   done
26223
26224 fi
26225 ac_ext=c
26226 ac_cpp='$CPP $CPPFLAGS'
26227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26230
26231
26232
26233
26234 if test "$wxUSE_REGEX" != "no"; then
26235     cat >>confdefs.h <<\_ACEOF
26236 #define wxUSE_REGEX 1
26237 _ACEOF
26238
26239
26240     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26241         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26242 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26243         wxUSE_REGEX=builtin
26244     fi
26245
26246     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26247                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26248 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26249 if test "${ac_cv_header_regex_h+set}" = set; then
26250   echo $ECHO_N "(cached) $ECHO_C" >&6
26251 else
26252   cat >conftest.$ac_ext <<_ACEOF
26253 /* confdefs.h.  */
26254 _ACEOF
26255 cat confdefs.h >>conftest.$ac_ext
26256 cat >>conftest.$ac_ext <<_ACEOF
26257 /* end confdefs.h.  */
26258
26259
26260 #include <regex.h>
26261 _ACEOF
26262 rm -f conftest.$ac_objext
26263 if { (ac_try="$ac_compile"
26264 case "(($ac_try" in
26265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266   *) ac_try_echo=$ac_try;;
26267 esac
26268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26269   (eval "$ac_compile") 2>conftest.er1
26270   ac_status=$?
26271   grep -v '^ *+' conftest.er1 >conftest.err
26272   rm -f conftest.er1
26273   cat conftest.err >&5
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); } && {
26276          test -z "$ac_c_werror_flag" ||
26277          test ! -s conftest.err
26278        } && test -s conftest.$ac_objext; then
26279   ac_cv_header_regex_h=yes
26280 else
26281   echo "$as_me: failed program was:" >&5
26282 sed 's/^/| /' conftest.$ac_ext >&5
26283
26284         ac_cv_header_regex_h=no
26285 fi
26286
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288 fi
26289 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26290 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26291 if test $ac_cv_header_regex_h = yes; then
26292
26293
26294 for ac_func in regcomp re_search
26295 do
26296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26300   echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302   cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h.  */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h.  */
26308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26310 #define $ac_func innocuous_$ac_func
26311
26312 /* System header to define __stub macros and hopefully few prototypes,
26313     which can conflict with char $ac_func (); below.
26314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26315     <limits.h> exists even on freestanding compilers.  */
26316
26317 #ifdef __STDC__
26318 # include <limits.h>
26319 #else
26320 # include <assert.h>
26321 #endif
26322
26323 #undef $ac_func
26324
26325 /* Override any GCC internal prototype to avoid an error.
26326    Use char because int might match the return type of a GCC
26327    builtin and then its argument prototype would still apply.  */
26328 #ifdef __cplusplus
26329 extern "C"
26330 #endif
26331 char $ac_func ();
26332 /* The GNU C library defines this for functions which it implements
26333     to always fail with ENOSYS.  Some functions are actually named
26334     something starting with __ and the normal name is an alias.  */
26335 #if defined __stub_$ac_func || defined __stub___$ac_func
26336 choke me
26337 #endif
26338
26339 int
26340 main ()
26341 {
26342 return $ac_func ();
26343   ;
26344   return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (ac_try="$ac_link"
26349 case "(($ac_try" in
26350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351   *) ac_try_echo=$ac_try;;
26352 esac
26353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26354   (eval "$ac_link") 2>conftest.er1
26355   ac_status=$?
26356   grep -v '^ *+' conftest.er1 >conftest.err
26357   rm -f conftest.er1
26358   cat conftest.err >&5
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } && {
26361          test -z "$ac_c_werror_flag" ||
26362          test ! -s conftest.err
26363        } && test -s conftest$ac_exeext &&
26364        $as_test_x conftest$ac_exeext; then
26365   eval "$as_ac_var=yes"
26366 else
26367   echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26369
26370         eval "$as_ac_var=no"
26371 fi
26372
26373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26374       conftest$ac_exeext conftest.$ac_ext
26375 fi
26376 ac_res=`eval echo '${'$as_ac_var'}'`
26377                { echo "$as_me:$LINENO: result: $ac_res" >&5
26378 echo "${ECHO_T}$ac_res" >&6; }
26379 if test `eval echo '${'$as_ac_var'}'` = yes; then
26380   cat >>confdefs.h <<_ACEOF
26381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26382 _ACEOF
26383
26384 fi
26385 done
26386
26387 fi
26388
26389
26390
26391         if test "x$ac_cv_func_regcomp" != "xyes"; then
26392             if test "$wxUSE_REGEX" = "sys" ; then
26393                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26394 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26395    { (exit 1); exit 1; }; }
26396             else
26397                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26398 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26399                 wxUSE_REGEX=builtin
26400             fi
26401         else
26402                         wxUSE_REGEX=sys
26403                         cat >>confdefs.h <<\_ACEOF
26404 #define WX_NO_REGEX_ADVANCED 1
26405 _ACEOF
26406
26407         fi
26408     fi
26409 fi
26410
26411
26412 ZLIB_LINK=
26413 if test "$wxUSE_ZLIB" != "no" ; then
26414     cat >>confdefs.h <<\_ACEOF
26415 #define wxUSE_ZLIB 1
26416 _ACEOF
26417
26418
26419     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26420                                                 if test "$USE_DARWIN" = 1; then
26421             system_zlib_h_ok="yes"
26422         else
26423                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26424 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26425 if test "${ac_cv_header_zlib_h+set}" = set; then
26426   echo $ECHO_N "(cached) $ECHO_C" >&6
26427 else
26428   if test "$cross_compiling" = yes; then
26429                       unset ac_cv_header_zlib_h
26430
26431 else
26432   cat >conftest.$ac_ext <<_ACEOF
26433 /* confdefs.h.  */
26434 _ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h.  */
26438
26439                         #include <zlib.h>
26440                         #include <stdio.h>
26441
26442                         int main()
26443                         {
26444                             FILE *f=fopen("conftestval", "w");
26445                             if (!f) exit(1);
26446                             fprintf(f, "%s",
26447                                     ZLIB_VERSION[0] == '1' &&
26448                                     (ZLIB_VERSION[2] > '1' ||
26449                                     (ZLIB_VERSION[2] == '1' &&
26450                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26451                             exit(0);
26452                         }
26453
26454 _ACEOF
26455 rm -f conftest$ac_exeext
26456 if { (ac_try="$ac_link"
26457 case "(($ac_try" in
26458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459   *) ac_try_echo=$ac_try;;
26460 esac
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462   (eval "$ac_link") 2>&5
26463   ac_status=$?
26464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26466   { (case "(($ac_try" in
26467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468   *) ac_try_echo=$ac_try;;
26469 esac
26470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26471   (eval "$ac_try") 2>&5
26472   ac_status=$?
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); }; }; then
26475   ac_cv_header_zlib_h=`cat conftestval`
26476 else
26477   echo "$as_me: program exited with status $ac_status" >&5
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 ( exit $ac_status )
26482 ac_cv_header_zlib_h=no
26483 fi
26484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26485 fi
26486
26487
26488
26489 fi
26490 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26491 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26492                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26493 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26494 if test "${ac_cv_header_zlib_h+set}" = set; then
26495   echo $ECHO_N "(cached) $ECHO_C" >&6
26496 else
26497   cat >conftest.$ac_ext <<_ACEOF
26498 /* confdefs.h.  */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h.  */
26503
26504
26505 #include <zlib.h>
26506 _ACEOF
26507 rm -f conftest.$ac_objext
26508 if { (ac_try="$ac_compile"
26509 case "(($ac_try" in
26510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26511   *) ac_try_echo=$ac_try;;
26512 esac
26513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26514   (eval "$ac_compile") 2>conftest.er1
26515   ac_status=$?
26516   grep -v '^ *+' conftest.er1 >conftest.err
26517   rm -f conftest.er1
26518   cat conftest.err >&5
26519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520   (exit $ac_status); } && {
26521          test -z "$ac_c_werror_flag" ||
26522          test ! -s conftest.err
26523        } && test -s conftest.$ac_objext; then
26524   ac_cv_header_zlib_h=yes
26525 else
26526   echo "$as_me: failed program was:" >&5
26527 sed 's/^/| /' conftest.$ac_ext >&5
26528
26529         ac_cv_header_zlib_h=no
26530 fi
26531
26532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26533 fi
26534 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26535 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26536
26537
26538
26539             system_zlib_h_ok=$ac_cv_header_zlib_h
26540         fi
26541
26542         if test "$system_zlib_h_ok" = "yes"; then
26543             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26544 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26545 if test "${ac_cv_lib_z_deflate+set}" = set; then
26546   echo $ECHO_N "(cached) $ECHO_C" >&6
26547 else
26548   ac_check_lib_save_LIBS=$LIBS
26549 LIBS="-lz  $LIBS"
26550 cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h.  */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h.  */
26556
26557 /* Override any GCC internal prototype to avoid an error.
26558    Use char because int might match the return type of a GCC
26559    builtin and then its argument prototype would still apply.  */
26560 #ifdef __cplusplus
26561 extern "C"
26562 #endif
26563 char deflate ();
26564 int
26565 main ()
26566 {
26567 return deflate ();
26568   ;
26569   return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest.$ac_objext conftest$ac_exeext
26573 if { (ac_try="$ac_link"
26574 case "(($ac_try" in
26575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576   *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579   (eval "$ac_link") 2>conftest.er1
26580   ac_status=$?
26581   grep -v '^ *+' conftest.er1 >conftest.err
26582   rm -f conftest.er1
26583   cat conftest.err >&5
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } && {
26586          test -z "$ac_c_werror_flag" ||
26587          test ! -s conftest.err
26588        } && test -s conftest$ac_exeext &&
26589        $as_test_x conftest$ac_exeext; then
26590   ac_cv_lib_z_deflate=yes
26591 else
26592   echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26594
26595         ac_cv_lib_z_deflate=no
26596 fi
26597
26598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26599       conftest$ac_exeext conftest.$ac_ext
26600 LIBS=$ac_check_lib_save_LIBS
26601 fi
26602 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26603 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26604 if test $ac_cv_lib_z_deflate = yes; then
26605   ZLIB_LINK=" -lz"
26606 fi
26607
26608         fi
26609
26610         if test "x$ZLIB_LINK" = "x" ; then
26611             if test "$wxUSE_ZLIB" = "sys" ; then
26612                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26613 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26614    { (exit 1); exit 1; }; }
26615             else
26616                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26617 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26618                 wxUSE_ZLIB=builtin
26619             fi
26620         else
26621                         wxUSE_ZLIB=sys
26622         fi
26623     fi
26624 fi
26625
26626
26627 PNG_LINK=
26628 if test "$wxUSE_LIBPNG" != "no" ; then
26629     cat >>confdefs.h <<\_ACEOF
26630 #define wxUSE_LIBPNG 1
26631 _ACEOF
26632
26633
26634     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26635         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26636 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26637         wxUSE_LIBPNG=sys
26638     fi
26639
26640                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26641         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26642 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26643         wxUSE_LIBPNG=builtin
26644     fi
26645
26646     if test "$wxUSE_MGL" != 1 ; then
26647                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26648                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26649 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26650 if test "${ac_cv_header_png_h+set}" = set; then
26651   echo $ECHO_N "(cached) $ECHO_C" >&6
26652 else
26653   if test "$cross_compiling" = yes; then
26654                       unset ac_cv_header_png_h
26655
26656 else
26657   cat >conftest.$ac_ext <<_ACEOF
26658 /* confdefs.h.  */
26659 _ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h.  */
26663
26664                         #include <png.h>
26665                         #include <stdio.h>
26666
26667                         int main()
26668                         {
26669                             FILE *f=fopen("conftestval", "w");
26670                             if (!f) exit(1);
26671                             fprintf(f, "%s",
26672                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26673                             exit(0);
26674                         }
26675
26676 _ACEOF
26677 rm -f conftest$ac_exeext
26678 if { (ac_try="$ac_link"
26679 case "(($ac_try" in
26680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681   *) ac_try_echo=$ac_try;;
26682 esac
26683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26684   (eval "$ac_link") 2>&5
26685   ac_status=$?
26686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26688   { (case "(($ac_try" in
26689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690   *) ac_try_echo=$ac_try;;
26691 esac
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693   (eval "$ac_try") 2>&5
26694   ac_status=$?
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); }; }; then
26697   ac_cv_header_png_h=`cat conftestval`
26698 else
26699   echo "$as_me: program exited with status $ac_status" >&5
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26702
26703 ( exit $ac_status )
26704 ac_cv_header_png_h=no
26705 fi
26706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26707 fi
26708
26709
26710
26711 fi
26712 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26713 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26714             { echo "$as_me:$LINENO: checking for png.h" >&5
26715 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26716 if test "${ac_cv_header_png_h+set}" = set; then
26717   echo $ECHO_N "(cached) $ECHO_C" >&6
26718 else
26719   cat >conftest.$ac_ext <<_ACEOF
26720 /* confdefs.h.  */
26721 _ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h.  */
26725
26726
26727 #include <png.h>
26728 _ACEOF
26729 rm -f conftest.$ac_objext
26730 if { (ac_try="$ac_compile"
26731 case "(($ac_try" in
26732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733   *) ac_try_echo=$ac_try;;
26734 esac
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736   (eval "$ac_compile") 2>conftest.er1
26737   ac_status=$?
26738   grep -v '^ *+' conftest.er1 >conftest.err
26739   rm -f conftest.er1
26740   cat conftest.err >&5
26741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742   (exit $ac_status); } && {
26743          test -z "$ac_c_werror_flag" ||
26744          test ! -s conftest.err
26745        } && test -s conftest.$ac_objext; then
26746   ac_cv_header_png_h=yes
26747 else
26748   echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26750
26751         ac_cv_header_png_h=no
26752 fi
26753
26754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26755 fi
26756 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26757 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26758
26759
26760
26761             if test "$ac_cv_header_png_h" = "yes"; then
26762                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26763 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26764 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26765   echo $ECHO_N "(cached) $ECHO_C" >&6
26766 else
26767   ac_check_lib_save_LIBS=$LIBS
26768 LIBS="-lpng -lz -lm $LIBS"
26769 cat >conftest.$ac_ext <<_ACEOF
26770 /* confdefs.h.  */
26771 _ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h.  */
26775
26776 /* Override any GCC internal prototype to avoid an error.
26777    Use char because int might match the return type of a GCC
26778    builtin and then its argument prototype would still apply.  */
26779 #ifdef __cplusplus
26780 extern "C"
26781 #endif
26782 char png_check_sig ();
26783 int
26784 main ()
26785 {
26786 return png_check_sig ();
26787   ;
26788   return 0;
26789 }
26790 _ACEOF
26791 rm -f conftest.$ac_objext conftest$ac_exeext
26792 if { (ac_try="$ac_link"
26793 case "(($ac_try" in
26794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26795   *) ac_try_echo=$ac_try;;
26796 esac
26797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26798   (eval "$ac_link") 2>conftest.er1
26799   ac_status=$?
26800   grep -v '^ *+' conftest.er1 >conftest.err
26801   rm -f conftest.er1
26802   cat conftest.err >&5
26803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804   (exit $ac_status); } && {
26805          test -z "$ac_c_werror_flag" ||
26806          test ! -s conftest.err
26807        } && test -s conftest$ac_exeext &&
26808        $as_test_x conftest$ac_exeext; then
26809   ac_cv_lib_png_png_check_sig=yes
26810 else
26811   echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26813
26814         ac_cv_lib_png_png_check_sig=no
26815 fi
26816
26817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26818       conftest$ac_exeext conftest.$ac_ext
26819 LIBS=$ac_check_lib_save_LIBS
26820 fi
26821 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26822 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26823 if test $ac_cv_lib_png_png_check_sig = yes; then
26824   PNG_LINK=" -lpng -lz"
26825 fi
26826
26827             fi
26828
26829             if test "x$PNG_LINK" = "x" ; then
26830                 if test "$wxUSE_LIBPNG" = "sys" ; then
26831                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26832 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26833    { (exit 1); exit 1; }; }
26834                 else
26835                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26836 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26837                     wxUSE_LIBPNG=builtin
26838                 fi
26839             else
26840                                 wxUSE_LIBPNG=sys
26841             fi
26842         fi
26843     fi
26844 fi
26845
26846
26847 JPEG_LINK=
26848 if test "$wxUSE_LIBJPEG" != "no" ; then
26849     cat >>confdefs.h <<\_ACEOF
26850 #define wxUSE_LIBJPEG 1
26851 _ACEOF
26852
26853
26854     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26855         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26856 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26857         wxUSE_LIBJPEG=sys
26858     fi
26859
26860     if test "$wxUSE_MGL" != 1 ; then
26861                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26862                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26863 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26864             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26865   echo $ECHO_N "(cached) $ECHO_C" >&6
26866 else
26867   cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h.  */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h.  */
26873
26874                         #undef HAVE_STDLIB_H
26875                         #include <stdio.h>
26876                         #include <jpeglib.h>
26877
26878 int
26879 main ()
26880 {
26881
26882
26883   ;
26884   return 0;
26885 }
26886 _ACEOF
26887 rm -f conftest.$ac_objext
26888 if { (ac_try="$ac_compile"
26889 case "(($ac_try" in
26890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891   *) ac_try_echo=$ac_try;;
26892 esac
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894   (eval "$ac_compile") 2>conftest.er1
26895   ac_status=$?
26896   grep -v '^ *+' conftest.er1 >conftest.err
26897   rm -f conftest.er1
26898   cat conftest.err >&5
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); } && {
26901          test -z "$ac_c_werror_flag" ||
26902          test ! -s conftest.err
26903        } && test -s conftest.$ac_objext; then
26904   ac_cv_header_jpeglib_h=yes
26905 else
26906   echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26908
26909         ac_cv_header_jpeglib_h=no
26910
26911 fi
26912
26913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26914
26915 fi
26916
26917             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26918 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26919
26920             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26921                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26922 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26923 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26924   echo $ECHO_N "(cached) $ECHO_C" >&6
26925 else
26926   ac_check_lib_save_LIBS=$LIBS
26927 LIBS="-ljpeg  $LIBS"
26928 cat >conftest.$ac_ext <<_ACEOF
26929 /* confdefs.h.  */
26930 _ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h.  */
26934
26935 /* Override any GCC internal prototype to avoid an error.
26936    Use char because int might match the return type of a GCC
26937    builtin and then its argument prototype would still apply.  */
26938 #ifdef __cplusplus
26939 extern "C"
26940 #endif
26941 char jpeg_read_header ();
26942 int
26943 main ()
26944 {
26945 return jpeg_read_header ();
26946   ;
26947   return 0;
26948 }
26949 _ACEOF
26950 rm -f conftest.$ac_objext conftest$ac_exeext
26951 if { (ac_try="$ac_link"
26952 case "(($ac_try" in
26953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954   *) ac_try_echo=$ac_try;;
26955 esac
26956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957   (eval "$ac_link") 2>conftest.er1
26958   ac_status=$?
26959   grep -v '^ *+' conftest.er1 >conftest.err
26960   rm -f conftest.er1
26961   cat conftest.err >&5
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); } && {
26964          test -z "$ac_c_werror_flag" ||
26965          test ! -s conftest.err
26966        } && test -s conftest$ac_exeext &&
26967        $as_test_x conftest$ac_exeext; then
26968   ac_cv_lib_jpeg_jpeg_read_header=yes
26969 else
26970   echo "$as_me: failed program was:" >&5
26971 sed 's/^/| /' conftest.$ac_ext >&5
26972
26973         ac_cv_lib_jpeg_jpeg_read_header=no
26974 fi
26975
26976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26977       conftest$ac_exeext conftest.$ac_ext
26978 LIBS=$ac_check_lib_save_LIBS
26979 fi
26980 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26981 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26982 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26983   JPEG_LINK=" -ljpeg"
26984 fi
26985
26986             fi
26987
26988             if test "x$JPEG_LINK" = "x" ; then
26989                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26990                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26991 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26992    { (exit 1); exit 1; }; }
26993                 else
26994                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26995 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26996                     wxUSE_LIBJPEG=builtin
26997                 fi
26998             else
26999                                 wxUSE_LIBJPEG=sys
27000
27001                 if test "$wxUSE_MSW" = 1; then
27002                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27003 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27004 if test "${ac_cv_type_boolean+set}" = set; then
27005   echo $ECHO_N "(cached) $ECHO_C" >&6
27006 else
27007   cat >conftest.$ac_ext <<_ACEOF
27008 /* confdefs.h.  */
27009 _ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h.  */
27013 #include <windows.h>
27014
27015 typedef boolean ac__type_new_;
27016 int
27017 main ()
27018 {
27019 if ((ac__type_new_ *) 0)
27020   return 0;
27021 if (sizeof (ac__type_new_))
27022   return 0;
27023   ;
27024   return 0;
27025 }
27026 _ACEOF
27027 rm -f conftest.$ac_objext
27028 if { (ac_try="$ac_compile"
27029 case "(($ac_try" in
27030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031   *) ac_try_echo=$ac_try;;
27032 esac
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034   (eval "$ac_compile") 2>conftest.er1
27035   ac_status=$?
27036   grep -v '^ *+' conftest.er1 >conftest.err
27037   rm -f conftest.er1
27038   cat conftest.err >&5
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); } && {
27041          test -z "$ac_c_werror_flag" ||
27042          test ! -s conftest.err
27043        } && test -s conftest.$ac_objext; then
27044   ac_cv_type_boolean=yes
27045 else
27046   echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049         ac_cv_type_boolean=no
27050 fi
27051
27052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27053 fi
27054 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27055 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27056 if test $ac_cv_type_boolean = yes; then
27057
27058 cat >>confdefs.h <<_ACEOF
27059 #define HAVE_BOOLEAN 1
27060 _ACEOF
27061
27062
27063                             { echo "$as_me:$LINENO: checking for boolean" >&5
27064 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27065 if test "${ac_cv_type_boolean+set}" = set; then
27066   echo $ECHO_N "(cached) $ECHO_C" >&6
27067 else
27068   cat >conftest.$ac_ext <<_ACEOF
27069 /* confdefs.h.  */
27070 _ACEOF
27071 cat confdefs.h >>conftest.$ac_ext
27072 cat >>conftest.$ac_ext <<_ACEOF
27073 /* end confdefs.h.  */
27074
27075                                     #undef HAVE_BOOLEAN
27076                                     #include <stdio.h>
27077                                     #include <jpeglib.h>
27078
27079
27080 typedef boolean ac__type_new_;
27081 int
27082 main ()
27083 {
27084 if ((ac__type_new_ *) 0)
27085   return 0;
27086 if (sizeof (ac__type_new_))
27087   return 0;
27088   ;
27089   return 0;
27090 }
27091 _ACEOF
27092 rm -f conftest.$ac_objext
27093 if { (ac_try="$ac_compile"
27094 case "(($ac_try" in
27095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27096   *) ac_try_echo=$ac_try;;
27097 esac
27098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27099   (eval "$ac_compile") 2>conftest.er1
27100   ac_status=$?
27101   grep -v '^ *+' conftest.er1 >conftest.err
27102   rm -f conftest.er1
27103   cat conftest.err >&5
27104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105   (exit $ac_status); } && {
27106          test -z "$ac_c_werror_flag" ||
27107          test ! -s conftest.err
27108        } && test -s conftest.$ac_objext; then
27109   ac_cv_type_boolean=yes
27110 else
27111   echo "$as_me: failed program was:" >&5
27112 sed 's/^/| /' conftest.$ac_ext >&5
27113
27114         ac_cv_type_boolean=no
27115 fi
27116
27117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27118 fi
27119 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27120 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27121
27122 # The cast to long int works around a bug in the HP C Compiler
27123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27125 # This bug is HP SR number 8606223364.
27126 { echo "$as_me:$LINENO: checking size of boolean" >&5
27127 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27128 if test "${ac_cv_sizeof_boolean+set}" = set; then
27129   echo $ECHO_N "(cached) $ECHO_C" >&6
27130 else
27131   if test "$cross_compiling" = yes; then
27132   # Depending upon the size, compute the lo and hi bounds.
27133 cat >conftest.$ac_ext <<_ACEOF
27134 /* confdefs.h.  */
27135 _ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h.  */
27139
27140                                     #undef HAVE_BOOLEAN
27141                                     #include <stdio.h>
27142                                     #include <jpeglib.h>
27143
27144
27145    typedef boolean ac__type_sizeof_;
27146 int
27147 main ()
27148 {
27149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27150 test_array [0] = 0
27151
27152   ;
27153   return 0;
27154 }
27155 _ACEOF
27156 rm -f conftest.$ac_objext
27157 if { (ac_try="$ac_compile"
27158 case "(($ac_try" in
27159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160   *) ac_try_echo=$ac_try;;
27161 esac
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163   (eval "$ac_compile") 2>conftest.er1
27164   ac_status=$?
27165   grep -v '^ *+' conftest.er1 >conftest.err
27166   rm -f conftest.er1
27167   cat conftest.err >&5
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); } && {
27170          test -z "$ac_c_werror_flag" ||
27171          test ! -s conftest.err
27172        } && test -s conftest.$ac_objext; then
27173   ac_lo=0 ac_mid=0
27174   while :; do
27175     cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h.  */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h.  */
27181
27182                                     #undef HAVE_BOOLEAN
27183                                     #include <stdio.h>
27184                                     #include <jpeglib.h>
27185
27186
27187    typedef boolean ac__type_sizeof_;
27188 int
27189 main ()
27190 {
27191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27192 test_array [0] = 0
27193
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 rm -f conftest.$ac_objext
27199 if { (ac_try="$ac_compile"
27200 case "(($ac_try" in
27201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202   *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205   (eval "$ac_compile") 2>conftest.er1
27206   ac_status=$?
27207   grep -v '^ *+' conftest.er1 >conftest.err
27208   rm -f conftest.er1
27209   cat conftest.err >&5
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); } && {
27212          test -z "$ac_c_werror_flag" ||
27213          test ! -s conftest.err
27214        } && test -s conftest.$ac_objext; then
27215   ac_hi=$ac_mid; break
27216 else
27217   echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27219
27220         ac_lo=`expr $ac_mid + 1`
27221                         if test $ac_lo -le $ac_mid; then
27222                           ac_lo= ac_hi=
27223                           break
27224                         fi
27225                         ac_mid=`expr 2 '*' $ac_mid + 1`
27226 fi
27227
27228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27229   done
27230 else
27231   echo "$as_me: failed program was:" >&5
27232 sed 's/^/| /' conftest.$ac_ext >&5
27233
27234         cat >conftest.$ac_ext <<_ACEOF
27235 /* confdefs.h.  */
27236 _ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h.  */
27240
27241                                     #undef HAVE_BOOLEAN
27242                                     #include <stdio.h>
27243                                     #include <jpeglib.h>
27244
27245
27246    typedef boolean ac__type_sizeof_;
27247 int
27248 main ()
27249 {
27250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27251 test_array [0] = 0
27252
27253   ;
27254   return 0;
27255 }
27256 _ACEOF
27257 rm -f conftest.$ac_objext
27258 if { (ac_try="$ac_compile"
27259 case "(($ac_try" in
27260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261   *) ac_try_echo=$ac_try;;
27262 esac
27263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264   (eval "$ac_compile") 2>conftest.er1
27265   ac_status=$?
27266   grep -v '^ *+' conftest.er1 >conftest.err
27267   rm -f conftest.er1
27268   cat conftest.err >&5
27269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270   (exit $ac_status); } && {
27271          test -z "$ac_c_werror_flag" ||
27272          test ! -s conftest.err
27273        } && test -s conftest.$ac_objext; then
27274   ac_hi=-1 ac_mid=-1
27275   while :; do
27276     cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282
27283                                     #undef HAVE_BOOLEAN
27284                                     #include <stdio.h>
27285                                     #include <jpeglib.h>
27286
27287
27288    typedef boolean ac__type_sizeof_;
27289 int
27290 main ()
27291 {
27292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27293 test_array [0] = 0
27294
27295   ;
27296   return 0;
27297 }
27298 _ACEOF
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306   (eval "$ac_compile") 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } && {
27313          test -z "$ac_c_werror_flag" ||
27314          test ! -s conftest.err
27315        } && test -s conftest.$ac_objext; then
27316   ac_lo=$ac_mid; break
27317 else
27318   echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27320
27321         ac_hi=`expr '(' $ac_mid ')' - 1`
27322                         if test $ac_mid -le $ac_hi; then
27323                           ac_lo= ac_hi=
27324                           break
27325                         fi
27326                         ac_mid=`expr 2 '*' $ac_mid`
27327 fi
27328
27329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27330   done
27331 else
27332   echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27334
27335         ac_lo= ac_hi=
27336 fi
27337
27338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27339 fi
27340
27341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27342 # Binary search between lo and hi bounds.
27343 while test "x$ac_lo" != "x$ac_hi"; do
27344   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27345   cat >conftest.$ac_ext <<_ACEOF
27346 /* confdefs.h.  */
27347 _ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h.  */
27351
27352                                     #undef HAVE_BOOLEAN
27353                                     #include <stdio.h>
27354                                     #include <jpeglib.h>
27355
27356
27357    typedef boolean ac__type_sizeof_;
27358 int
27359 main ()
27360 {
27361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27362 test_array [0] = 0
27363
27364   ;
27365   return 0;
27366 }
27367 _ACEOF
27368 rm -f conftest.$ac_objext
27369 if { (ac_try="$ac_compile"
27370 case "(($ac_try" in
27371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27372   *) ac_try_echo=$ac_try;;
27373 esac
27374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27375   (eval "$ac_compile") 2>conftest.er1
27376   ac_status=$?
27377   grep -v '^ *+' conftest.er1 >conftest.err
27378   rm -f conftest.er1
27379   cat conftest.err >&5
27380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } && {
27382          test -z "$ac_c_werror_flag" ||
27383          test ! -s conftest.err
27384        } && test -s conftest.$ac_objext; then
27385   ac_hi=$ac_mid
27386 else
27387   echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27389
27390         ac_lo=`expr '(' $ac_mid ')' + 1`
27391 fi
27392
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27394 done
27395 case $ac_lo in
27396 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27397 '') if test "$ac_cv_type_boolean" = yes; then
27398      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27399 See \`config.log' for more details." >&5
27400 echo "$as_me: error: cannot compute sizeof (boolean)
27401 See \`config.log' for more details." >&2;}
27402    { (exit 77); exit 77; }; }
27403    else
27404      ac_cv_sizeof_boolean=0
27405    fi ;;
27406 esac
27407 else
27408   cat >conftest.$ac_ext <<_ACEOF
27409 /* confdefs.h.  */
27410 _ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h.  */
27414
27415                                     #undef HAVE_BOOLEAN
27416                                     #include <stdio.h>
27417                                     #include <jpeglib.h>
27418
27419
27420    typedef boolean ac__type_sizeof_;
27421 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27422 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27423 #include <stdio.h>
27424 #include <stdlib.h>
27425 int
27426 main ()
27427 {
27428
27429   FILE *f = fopen ("conftest.val", "w");
27430   if (! f)
27431     return 1;
27432   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27433     {
27434       long int i = longval ();
27435       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27436         return 1;
27437       fprintf (f, "%ld\n", i);
27438     }
27439   else
27440     {
27441       unsigned long int i = ulongval ();
27442       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27443         return 1;
27444       fprintf (f, "%lu\n", i);
27445     }
27446   return ferror (f) || fclose (f) != 0;
27447
27448   ;
27449   return 0;
27450 }
27451 _ACEOF
27452 rm -f conftest$ac_exeext
27453 if { (ac_try="$ac_link"
27454 case "(($ac_try" in
27455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456   *) ac_try_echo=$ac_try;;
27457 esac
27458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459   (eval "$ac_link") 2>&5
27460   ac_status=$?
27461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27463   { (case "(($ac_try" in
27464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465   *) ac_try_echo=$ac_try;;
27466 esac
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468   (eval "$ac_try") 2>&5
27469   ac_status=$?
27470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471   (exit $ac_status); }; }; then
27472   ac_cv_sizeof_boolean=`cat conftest.val`
27473 else
27474   echo "$as_me: program exited with status $ac_status" >&5
27475 echo "$as_me: failed program was:" >&5
27476 sed 's/^/| /' conftest.$ac_ext >&5
27477
27478 ( exit $ac_status )
27479 if test "$ac_cv_type_boolean" = yes; then
27480      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27481 See \`config.log' for more details." >&5
27482 echo "$as_me: error: cannot compute sizeof (boolean)
27483 See \`config.log' for more details." >&2;}
27484    { (exit 77); exit 77; }; }
27485    else
27486      ac_cv_sizeof_boolean=0
27487    fi
27488 fi
27489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27490 fi
27491 rm -f conftest.val
27492 fi
27493 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27494 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27495
27496
27497
27498 cat >>confdefs.h <<_ACEOF
27499 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27500 _ACEOF
27501
27502
27503                             cat >>confdefs.h <<_ACEOF
27504 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27505 _ACEOF
27506
27507
27508 fi
27509
27510                 fi
27511             fi
27512         fi
27513     fi
27514 fi
27515
27516
27517 TIFF_LINK=
27518 TIFF_PREREQ_LINKS=-lm
27519 if test "$wxUSE_LIBTIFF" != "no" ; then
27520     cat >>confdefs.h <<\_ACEOF
27521 #define wxUSE_LIBTIFF 1
27522 _ACEOF
27523
27524
27525     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27526                         if test "$wxUSE_LIBJPEG" = "sys"; then
27527             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27528         fi
27529         if test "$wxUSE_ZLIB" = "sys"; then
27530             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27531         fi
27532         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27533 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27534 if test "${ac_cv_header_tiffio_h+set}" = set; then
27535   echo $ECHO_N "(cached) $ECHO_C" >&6
27536 else
27537   cat >conftest.$ac_ext <<_ACEOF
27538 /* confdefs.h.  */
27539 _ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h.  */
27543
27544
27545
27546 #include <tiffio.h>
27547 _ACEOF
27548 rm -f conftest.$ac_objext
27549 if { (ac_try="$ac_compile"
27550 case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555   (eval "$ac_compile") 2>conftest.er1
27556   ac_status=$?
27557   grep -v '^ *+' conftest.er1 >conftest.err
27558   rm -f conftest.er1
27559   cat conftest.err >&5
27560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561   (exit $ac_status); } && {
27562          test -z "$ac_c_werror_flag" ||
27563          test ! -s conftest.err
27564        } && test -s conftest.$ac_objext; then
27565   ac_cv_header_tiffio_h=yes
27566 else
27567   echo "$as_me: failed program was:" >&5
27568 sed 's/^/| /' conftest.$ac_ext >&5
27569
27570         ac_cv_header_tiffio_h=no
27571 fi
27572
27573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27574 fi
27575 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27576 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27577 if test $ac_cv_header_tiffio_h = yes; then
27578
27579                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27580 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27581 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27582   echo $ECHO_N "(cached) $ECHO_C" >&6
27583 else
27584   ac_check_lib_save_LIBS=$LIBS
27585 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27586 cat >conftest.$ac_ext <<_ACEOF
27587 /* confdefs.h.  */
27588 _ACEOF
27589 cat confdefs.h >>conftest.$ac_ext
27590 cat >>conftest.$ac_ext <<_ACEOF
27591 /* end confdefs.h.  */
27592
27593 /* Override any GCC internal prototype to avoid an error.
27594    Use char because int might match the return type of a GCC
27595    builtin and then its argument prototype would still apply.  */
27596 #ifdef __cplusplus
27597 extern "C"
27598 #endif
27599 char TIFFError ();
27600 int
27601 main ()
27602 {
27603 return TIFFError ();
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   ac_cv_lib_tiff_TIFFError=yes
27627 else
27628   echo "$as_me: failed program was:" >&5
27629 sed 's/^/| /' conftest.$ac_ext >&5
27630
27631         ac_cv_lib_tiff_TIFFError=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 LIBS=$ac_check_lib_save_LIBS
27637 fi
27638 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27639 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27640 if test $ac_cv_lib_tiff_TIFFError = yes; then
27641   TIFF_LINK=" -ltiff"
27642 fi
27643
27644
27645 fi
27646
27647
27648
27649         if test "x$TIFF_LINK" = "x" ; then
27650             if test "$wxUSE_LIBTIFF" = "sys" ; then
27651                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27652 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27653    { (exit 1); exit 1; }; }
27654             else
27655                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27656 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27657                 wxUSE_LIBTIFF=builtin
27658             fi
27659         else
27660                         wxUSE_LIBTIFF=sys
27661         fi
27662     fi
27663     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27664         if test "$wxUSE_LIBJPEG" = "no"; then
27665                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27666         fi
27667         subdirs="$subdirs src/tiff"
27668
27669     fi
27670 fi
27671
27672
27673 if test "$wxUSE_WCHAR_T" != "yes"; then
27674     if test "$wxUSE_EXPAT" != "no"; then
27675         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27676 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27677         wxUSE_EXPAT=no
27678     fi
27679     if test "$wxUSE_XML" != "no"; then
27680         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27681 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27682         wxUSE_XML=no
27683     fi
27684 fi
27685
27686 if test "$wxUSE_EXPAT" != "no"; then
27687     wxUSE_XML=yes
27688     cat >>confdefs.h <<\_ACEOF
27689 #define wxUSE_EXPAT 1
27690 _ACEOF
27691
27692     cat >>confdefs.h <<\_ACEOF
27693 #define wxUSE_XML 1
27694 _ACEOF
27695
27696
27697     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27698         { echo "$as_me:$LINENO: checking for expat.h" >&5
27699 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27700 if test "${ac_cv_header_expat_h+set}" = set; then
27701   echo $ECHO_N "(cached) $ECHO_C" >&6
27702 else
27703   cat >conftest.$ac_ext <<_ACEOF
27704 /* confdefs.h.  */
27705 _ACEOF
27706 cat confdefs.h >>conftest.$ac_ext
27707 cat >>conftest.$ac_ext <<_ACEOF
27708 /* end confdefs.h.  */
27709
27710
27711 #include <expat.h>
27712 _ACEOF
27713 rm -f conftest.$ac_objext
27714 if { (ac_try="$ac_compile"
27715 case "(($ac_try" in
27716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717   *) ac_try_echo=$ac_try;;
27718 esac
27719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720   (eval "$ac_compile") 2>conftest.er1
27721   ac_status=$?
27722   grep -v '^ *+' conftest.er1 >conftest.err
27723   rm -f conftest.er1
27724   cat conftest.err >&5
27725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726   (exit $ac_status); } && {
27727          test -z "$ac_c_werror_flag" ||
27728          test ! -s conftest.err
27729        } && test -s conftest.$ac_objext; then
27730   ac_cv_header_expat_h=yes
27731 else
27732   echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27734
27735         ac_cv_header_expat_h=no
27736 fi
27737
27738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27739 fi
27740 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27741 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27742 if test $ac_cv_header_expat_h = yes; then
27743   found_expat_h=1
27744 fi
27745
27746
27747         if test "x$found_expat_h" = "x1"; then
27748                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27749 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27750 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27751   echo $ECHO_N "(cached) $ECHO_C" >&6
27752 else
27753
27754                 ac_ext=cpp
27755 ac_cpp='$CXXCPP $CPPFLAGS'
27756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27759
27760                 cat >conftest.$ac_ext <<_ACEOF
27761 /* confdefs.h.  */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h.  */
27766 #include <expat.h>
27767 int
27768 main ()
27769 {
27770
27771   ;
27772   return 0;
27773 }
27774 _ACEOF
27775 rm -f conftest.$ac_objext
27776 if { (ac_try="$ac_compile"
27777 case "(($ac_try" in
27778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779   *) ac_try_echo=$ac_try;;
27780 esac
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782   (eval "$ac_compile") 2>conftest.er1
27783   ac_status=$?
27784   grep -v '^ *+' conftest.er1 >conftest.err
27785   rm -f conftest.er1
27786   cat conftest.err >&5
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); } && {
27789          test -z "$ac_cxx_werror_flag" ||
27790          test ! -s conftest.err
27791        } && test -s conftest.$ac_objext; then
27792   wx_cv_expat_is_not_broken=yes
27793 else
27794   echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27796
27797         wx_cv_expat_is_not_broken=no
27798
27799 fi
27800
27801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27802                 ac_ext=c
27803 ac_cpp='$CPP $CPPFLAGS'
27804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27807
27808
27809
27810 fi
27811 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27812 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27813             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27814                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27815 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27816 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27817   echo $ECHO_N "(cached) $ECHO_C" >&6
27818 else
27819   ac_check_lib_save_LIBS=$LIBS
27820 LIBS="-lexpat  $LIBS"
27821 cat >conftest.$ac_ext <<_ACEOF
27822 /* confdefs.h.  */
27823 _ACEOF
27824 cat confdefs.h >>conftest.$ac_ext
27825 cat >>conftest.$ac_ext <<_ACEOF
27826 /* end confdefs.h.  */
27827
27828 /* Override any GCC internal prototype to avoid an error.
27829    Use char because int might match the return type of a GCC
27830    builtin and then its argument prototype would still apply.  */
27831 #ifdef __cplusplus
27832 extern "C"
27833 #endif
27834 char XML_ParserCreate ();
27835 int
27836 main ()
27837 {
27838 return XML_ParserCreate ();
27839   ;
27840   return 0;
27841 }
27842 _ACEOF
27843 rm -f conftest.$ac_objext conftest$ac_exeext
27844 if { (ac_try="$ac_link"
27845 case "(($ac_try" in
27846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847   *) ac_try_echo=$ac_try;;
27848 esac
27849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850   (eval "$ac_link") 2>conftest.er1
27851   ac_status=$?
27852   grep -v '^ *+' conftest.er1 >conftest.err
27853   rm -f conftest.er1
27854   cat conftest.err >&5
27855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856   (exit $ac_status); } && {
27857          test -z "$ac_c_werror_flag" ||
27858          test ! -s conftest.err
27859        } && test -s conftest$ac_exeext &&
27860        $as_test_x conftest$ac_exeext; then
27861   ac_cv_lib_expat_XML_ParserCreate=yes
27862 else
27863   echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27865
27866         ac_cv_lib_expat_XML_ParserCreate=no
27867 fi
27868
27869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27870       conftest$ac_exeext conftest.$ac_ext
27871 LIBS=$ac_check_lib_save_LIBS
27872 fi
27873 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27874 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27875 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27876   EXPAT_LINK=" -lexpat"
27877 fi
27878
27879             fi
27880         fi
27881         if test "x$EXPAT_LINK" = "x" ; then
27882             if test "$wxUSE_EXPAT" = "sys" ; then
27883                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27884 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27885    { (exit 1); exit 1; }; }
27886             else
27887                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27888 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27889                 wxUSE_EXPAT=builtin
27890             fi
27891         else
27892                         wxUSE_EXPAT=sys
27893         fi
27894     fi
27895     if test "$wxUSE_EXPAT" = "builtin" ; then
27896                 subdirs="$subdirs src/expat"
27897
27898     fi
27899 fi
27900
27901
27902
27903 if test "$wxUSE_LIBMSPACK" != "no"; then
27904     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27905 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27906 if test "${ac_cv_header_mspack_h+set}" = set; then
27907   echo $ECHO_N "(cached) $ECHO_C" >&6
27908 else
27909   cat >conftest.$ac_ext <<_ACEOF
27910 /* confdefs.h.  */
27911 _ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h.  */
27915
27916
27917 #include <mspack.h>
27918 _ACEOF
27919 rm -f conftest.$ac_objext
27920 if { (ac_try="$ac_compile"
27921 case "(($ac_try" in
27922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27923   *) ac_try_echo=$ac_try;;
27924 esac
27925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27926   (eval "$ac_compile") 2>conftest.er1
27927   ac_status=$?
27928   grep -v '^ *+' conftest.er1 >conftest.err
27929   rm -f conftest.er1
27930   cat conftest.err >&5
27931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932   (exit $ac_status); } && {
27933          test -z "$ac_c_werror_flag" ||
27934          test ! -s conftest.err
27935        } && test -s conftest.$ac_objext; then
27936   ac_cv_header_mspack_h=yes
27937 else
27938   echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27940
27941         ac_cv_header_mspack_h=no
27942 fi
27943
27944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27945 fi
27946 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27947 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27948 if test $ac_cv_header_mspack_h = yes; then
27949   found_mspack_h=1
27950 fi
27951
27952
27953     if test "x$found_mspack_h" = "x1"; then
27954         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27955 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27956 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27957   echo $ECHO_N "(cached) $ECHO_C" >&6
27958 else
27959   ac_check_lib_save_LIBS=$LIBS
27960 LIBS="-lmspack  $LIBS"
27961 cat >conftest.$ac_ext <<_ACEOF
27962 /* confdefs.h.  */
27963 _ACEOF
27964 cat confdefs.h >>conftest.$ac_ext
27965 cat >>conftest.$ac_ext <<_ACEOF
27966 /* end confdefs.h.  */
27967
27968 /* Override any GCC internal prototype to avoid an error.
27969    Use char because int might match the return type of a GCC
27970    builtin and then its argument prototype would still apply.  */
27971 #ifdef __cplusplus
27972 extern "C"
27973 #endif
27974 char mspack_create_chm_decompressor ();
27975 int
27976 main ()
27977 {
27978 return mspack_create_chm_decompressor ();
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest.$ac_objext conftest$ac_exeext
27984 if { (ac_try="$ac_link"
27985 case "(($ac_try" in
27986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987   *) ac_try_echo=$ac_try;;
27988 esac
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990   (eval "$ac_link") 2>conftest.er1
27991   ac_status=$?
27992   grep -v '^ *+' conftest.er1 >conftest.err
27993   rm -f conftest.er1
27994   cat conftest.err >&5
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); } && {
27997          test -z "$ac_c_werror_flag" ||
27998          test ! -s conftest.err
27999        } && test -s conftest$ac_exeext &&
28000        $as_test_x conftest$ac_exeext; then
28001   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28002 else
28003   echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28005
28006         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28007 fi
28008
28009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28010       conftest$ac_exeext conftest.$ac_ext
28011 LIBS=$ac_check_lib_save_LIBS
28012 fi
28013 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28014 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28015 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28016   MSPACK_LINK=" -lmspack"
28017 fi
28018
28019     fi
28020     if test "x$MSPACK_LINK" = "x" ; then
28021         wxUSE_LIBMSPACK=no
28022     fi
28023 fi
28024
28025 if test "$wxUSE_LIBMSPACK" != "no"; then
28026     cat >>confdefs.h <<\_ACEOF
28027 #define wxUSE_LIBMSPACK 1
28028 _ACEOF
28029
28030 fi
28031
28032
28033
28034 AFMINSTALL=
28035 WIN32INSTALL=
28036
28037 TOOLKIT=
28038 TOOLKIT_INCLUDE=
28039 WIDGET_SET=
28040
28041 if test "$USE_WIN32" = 1 ; then
28042
28043 for ac_header in w32api.h
28044 do
28045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28049   echo $ECHO_N "(cached) $ECHO_C" >&6
28050 else
28051   cat >conftest.$ac_ext <<_ACEOF
28052 /* confdefs.h.  */
28053 _ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h.  */
28057
28058
28059 #include <$ac_header>
28060 _ACEOF
28061 rm -f conftest.$ac_objext
28062 if { (ac_try="$ac_compile"
28063 case "(($ac_try" in
28064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065   *) ac_try_echo=$ac_try;;
28066 esac
28067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068   (eval "$ac_compile") 2>conftest.er1
28069   ac_status=$?
28070   grep -v '^ *+' conftest.er1 >conftest.err
28071   rm -f conftest.er1
28072   cat conftest.err >&5
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); } && {
28075          test -z "$ac_c_werror_flag" ||
28076          test ! -s conftest.err
28077        } && test -s conftest.$ac_objext; then
28078   eval "$as_ac_Header=yes"
28079 else
28080   echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28082
28083         eval "$as_ac_Header=no"
28084 fi
28085
28086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28087 fi
28088 ac_res=`eval echo '${'$as_ac_Header'}'`
28089                { echo "$as_me:$LINENO: result: $ac_res" >&5
28090 echo "${ECHO_T}$ac_res" >&6; }
28091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28092   cat >>confdefs.h <<_ACEOF
28093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28094 _ACEOF
28095
28096 fi
28097
28098 done
28099
28100     { echo "$as_me:$LINENO: checking for windows.h" >&5
28101 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28102 if test "${ac_cv_header_windows_h+set}" = set; then
28103   echo $ECHO_N "(cached) $ECHO_C" >&6
28104 else
28105   cat >conftest.$ac_ext <<_ACEOF
28106 /* confdefs.h.  */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h.  */
28111
28112
28113 #include <windows.h>
28114 _ACEOF
28115 rm -f conftest.$ac_objext
28116 if { (ac_try="$ac_compile"
28117 case "(($ac_try" in
28118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119   *) ac_try_echo=$ac_try;;
28120 esac
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122   (eval "$ac_compile") 2>conftest.er1
28123   ac_status=$?
28124   grep -v '^ *+' conftest.er1 >conftest.err
28125   rm -f conftest.er1
28126   cat conftest.err >&5
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); } && {
28129          test -z "$ac_c_werror_flag" ||
28130          test ! -s conftest.err
28131        } && test -s conftest.$ac_objext; then
28132   ac_cv_header_windows_h=yes
28133 else
28134   echo "$as_me: failed program was:" >&5
28135 sed 's/^/| /' conftest.$ac_ext >&5
28136
28137         ac_cv_header_windows_h=no
28138 fi
28139
28140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28141 fi
28142 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28143 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28144 if test $ac_cv_header_windows_h = yes; then
28145   :
28146 else
28147
28148         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28149 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28150    { (exit 1); exit 1; }; }
28151
28152 fi
28153
28154
28155
28156             case "${host}" in
28157         x86_64-*-mingw32* )
28158                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28159         ;;
28160         * )
28161             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28162         ;;
28163     esac
28164     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28165         LIBS="$LIBS -loleacc"
28166     fi
28167
28168     case "${host}" in
28169         *-*-cygwin* )
28170                         LIBS="$LIBS -lkernel32 -luser32"
28171     esac
28172
28173         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28174     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28175
28176                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28177
28178         WIN32INSTALL=win32install
28179
28180         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28181 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28182 if test "${ac_cv_header_pbt_h+set}" = set; then
28183   echo $ECHO_N "(cached) $ECHO_C" >&6
28184 else
28185   cat >conftest.$ac_ext <<_ACEOF
28186 /* confdefs.h.  */
28187 _ACEOF
28188 cat confdefs.h >>conftest.$ac_ext
28189 cat >>conftest.$ac_ext <<_ACEOF
28190 /* end confdefs.h.  */
28191
28192
28193 #include <pbt.h>
28194 _ACEOF
28195 rm -f conftest.$ac_objext
28196 if { (ac_try="$ac_compile"
28197 case "(($ac_try" in
28198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199   *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202   (eval "$ac_compile") 2>conftest.er1
28203   ac_status=$?
28204   grep -v '^ *+' conftest.er1 >conftest.err
28205   rm -f conftest.er1
28206   cat conftest.err >&5
28207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208   (exit $ac_status); } && {
28209          test -z "$ac_c_werror_flag" ||
28210          test ! -s conftest.err
28211        } && test -s conftest.$ac_objext; then
28212   ac_cv_header_pbt_h=yes
28213 else
28214   echo "$as_me: failed program was:" >&5
28215 sed 's/^/| /' conftest.$ac_ext >&5
28216
28217         ac_cv_header_pbt_h=no
28218 fi
28219
28220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28221 fi
28222 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28223 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28224 if test $ac_cv_header_pbt_h = yes; then
28225   :
28226 else
28227   cat >>confdefs.h <<\_ACEOF
28228 #define NEED_PBT_H 1
28229 _ACEOF
28230
28231 fi
28232
28233
28234 fi
28235
28236 if test "$wxUSE_GUI" = "yes"; then
28237     USE_GUI=1
28238
28239     GUI_TK_LIBRARY=
28240
28241     WXGTK12=
28242     WXGTK127=
28243     WXGTK2=
28244     WXGPE=
28245
28246     if test "$wxUSE_COCOA" = 1 ; then
28247         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28248             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28249 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28250             wxUSE_PRINTING_ARCHITECTURE=no
28251         fi
28252         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28253             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28254 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28255             wxUSE_DRAG_AND_DROP=no
28256         fi
28257         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28258             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28259 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28260             wxUSE_DRAGIMAGE=no
28261         fi
28262     fi
28263
28264     if test "$wxUSE_MSW" = 1 ; then
28265         TOOLKIT=MSW
28266         GUIDIST=MSW_DIST
28267
28268                 case "${host}" in
28269             *-*-mingw32* )
28270                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28271         esac
28272     fi
28273
28274     if test "$wxUSE_GTK" = 1; then
28275                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28276 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28277
28278         gtk_version_cached=1
28279         if test "${wx_cv_lib_gtk+set}" = set; then
28280   echo $ECHO_N "(cached) $ECHO_C" >&6
28281 else
28282
28283                                                 gtk_version_cached=0
28284                 { echo "$as_me:$LINENO: result: " >&5
28285 echo "${ECHO_T}" >&6; }
28286
28287                                                 GTK_MODULES=
28288                 if test "$wxUSE_THREADS" = "yes"; then
28289                     GTK_MODULES=gthread
28290                 fi
28291
28292                                 wx_cv_lib_gtk=
28293                 if test "x$wxGTK_VERSION" != "x1"
28294                 then
28295                                                                                 case "${host}" in
28296                         *-*-solaris2* )
28297                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28298                                 enable_gtktest=no
28299                             fi
28300                     esac
28301
28302                     # Check whether --enable-gtktest was given.
28303 if test "${enable_gtktest+set}" = set; then
28304   enableval=$enable_gtktest;
28305 else
28306   enable_gtktest=yes
28307 fi
28308
28309
28310   pkg_config_args=gtk+-2.0
28311   for module in . $GTK_MODULES
28312   do
28313       case "$module" in
28314          gthread)
28315              pkg_config_args="$pkg_config_args gthread-2.0"
28316          ;;
28317       esac
28318   done
28319
28320   no_gtk=""
28321
28322   # Extract the first word of "pkg-config", so it can be a program name with args.
28323 set dummy pkg-config; ac_word=$2
28324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28326 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28327   echo $ECHO_N "(cached) $ECHO_C" >&6
28328 else
28329   case $PKG_CONFIG in
28330   [\\/]* | ?:[\\/]*)
28331   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28332   ;;
28333   *)
28334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28335 for as_dir in $PATH
28336 do
28337   IFS=$as_save_IFS
28338   test -z "$as_dir" && as_dir=.
28339   for ac_exec_ext in '' $ac_executable_extensions; do
28340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28341     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28343     break 2
28344   fi
28345 done
28346 done
28347 IFS=$as_save_IFS
28348
28349   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28350   ;;
28351 esac
28352 fi
28353 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28354 if test -n "$PKG_CONFIG"; then
28355   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28356 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28357 else
28358   { echo "$as_me:$LINENO: result: no" >&5
28359 echo "${ECHO_T}no" >&6; }
28360 fi
28361
28362
28363
28364   if test x$PKG_CONFIG != xno ; then
28365     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28366       :
28367     else
28368       echo "*** pkg-config too old; version 0.7 or better required."
28369       no_gtk=yes
28370       PKG_CONFIG=no
28371     fi
28372   else
28373     no_gtk=yes
28374   fi
28375
28376   min_gtk_version=2.4.0
28377   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28378 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28379
28380   if test x$PKG_CONFIG != xno ; then
28381     ## don't try to run the test against uninstalled libtool libs
28382     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28383           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28384           enable_gtktest=no
28385     fi
28386
28387     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28388           :
28389     else
28390           no_gtk=yes
28391     fi
28392   fi
28393
28394   if test x"$no_gtk" = x ; then
28395     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28396     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28397     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28398            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28399     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28400            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28401     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28402            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28403     if test "x$enable_gtktest" = "xyes" ; then
28404       ac_save_CFLAGS="$CFLAGS"
28405       ac_save_LIBS="$LIBS"
28406       CFLAGS="$CFLAGS $GTK_CFLAGS"
28407       LIBS="$GTK_LIBS $LIBS"
28408       rm -f conf.gtktest
28409       if test "$cross_compiling" = yes; then
28410   echo $ac_n "cross compiling; assumed OK... $ac_c"
28411 else
28412   cat >conftest.$ac_ext <<_ACEOF
28413 /* confdefs.h.  */
28414 _ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h.  */
28418
28419 #include <gtk/gtk.h>
28420 #include <stdio.h>
28421 #include <stdlib.h>
28422
28423 int
28424 main ()
28425 {
28426   int major, minor, micro;
28427   char *tmp_version;
28428
28429   system ("touch conf.gtktest");
28430
28431   /* HP/UX 9 (%@#!) writes to sscanf strings */
28432   tmp_version = g_strdup("$min_gtk_version");
28433   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28434      printf("%s, bad version string\n", "$min_gtk_version");
28435      exit(1);
28436    }
28437
28438   if ((gtk_major_version != $gtk_config_major_version) ||
28439       (gtk_minor_version != $gtk_config_minor_version) ||
28440       (gtk_micro_version != $gtk_config_micro_version))
28441     {
28442       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28443              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28444              gtk_major_version, gtk_minor_version, gtk_micro_version);
28445       printf ("*** was found! If pkg-config was correct, then it is best\n");
28446       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28447       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28448       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28449       printf("*** required on your system.\n");
28450       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28451       printf("*** to point to the correct configuration files\n");
28452     }
28453   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28454            (gtk_minor_version != GTK_MINOR_VERSION) ||
28455            (gtk_micro_version != GTK_MICRO_VERSION))
28456     {
28457       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28458              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28459       printf("*** library (version %d.%d.%d)\n",
28460              gtk_major_version, gtk_minor_version, gtk_micro_version);
28461     }
28462   else
28463     {
28464       if ((gtk_major_version > major) ||
28465         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28466         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28467       {
28468         return 0;
28469        }
28470      else
28471       {
28472         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28473                gtk_major_version, gtk_minor_version, gtk_micro_version);
28474         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28475                major, minor, micro);
28476         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28477         printf("***\n");
28478         printf("*** If you have already installed a sufficiently new version, this error\n");
28479         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28480         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28481         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28482         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28483         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28484         printf("*** so that the correct libraries are found at run-time))\n");
28485       }
28486     }
28487   return 1;
28488 }
28489
28490 _ACEOF
28491 rm -f conftest$ac_exeext
28492 if { (ac_try="$ac_link"
28493 case "(($ac_try" in
28494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495   *) ac_try_echo=$ac_try;;
28496 esac
28497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498   (eval "$ac_link") 2>&5
28499   ac_status=$?
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28502   { (case "(($ac_try" in
28503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504   *) ac_try_echo=$ac_try;;
28505 esac
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507   (eval "$ac_try") 2>&5
28508   ac_status=$?
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); }; }; then
28511   :
28512 else
28513   echo "$as_me: program exited with status $ac_status" >&5
28514 echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28516
28517 ( exit $ac_status )
28518 no_gtk=yes
28519 fi
28520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28521 fi
28522
28523
28524        CFLAGS="$ac_save_CFLAGS"
28525        LIBS="$ac_save_LIBS"
28526      fi
28527   fi
28528   if test "x$no_gtk" = x ; then
28529      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28530 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28531      wx_cv_lib_gtk=2.0
28532   else
28533      { echo "$as_me:$LINENO: result: no" >&5
28534 echo "${ECHO_T}no" >&6; }
28535      if test "$PKG_CONFIG" = "no" ; then
28536        echo "*** A new enough version of pkg-config was not found."
28537        echo "*** See http://pkgconfig.sourceforge.net"
28538      else
28539        if test -f conf.gtktest ; then
28540         :
28541        else
28542           echo "*** Could not run GTK+ test program, checking why..."
28543           ac_save_CFLAGS="$CFLAGS"
28544           ac_save_LIBS="$LIBS"
28545           CFLAGS="$CFLAGS $GTK_CFLAGS"
28546           LIBS="$LIBS $GTK_LIBS"
28547           cat >conftest.$ac_ext <<_ACEOF
28548 /* confdefs.h.  */
28549 _ACEOF
28550 cat confdefs.h >>conftest.$ac_ext
28551 cat >>conftest.$ac_ext <<_ACEOF
28552 /* end confdefs.h.  */
28553
28554 #include <gtk/gtk.h>
28555 #include <stdio.h>
28556
28557 int
28558 main ()
28559 {
28560  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28561   ;
28562   return 0;
28563 }
28564 _ACEOF
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (ac_try="$ac_link"
28567 case "(($ac_try" in
28568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569   *) ac_try_echo=$ac_try;;
28570 esac
28571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28572   (eval "$ac_link") 2>conftest.er1
28573   ac_status=$?
28574   grep -v '^ *+' conftest.er1 >conftest.err
28575   rm -f conftest.er1
28576   cat conftest.err >&5
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); } && {
28579          test -z "$ac_c_werror_flag" ||
28580          test ! -s conftest.err
28581        } && test -s conftest$ac_exeext &&
28582        $as_test_x conftest$ac_exeext; then
28583    echo "*** The test program compiled, but did not run. This usually means"
28584           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28585           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28586           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28587           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28588           echo "*** is required on your system"
28589           echo "***"
28590           echo "*** If you have an old version installed, it is best to remove it, although"
28591           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28592 else
28593   echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28595
28596          echo "*** The test program failed to compile or link. See the file config.log for the"
28597           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28598 fi
28599
28600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28601       conftest$ac_exeext conftest.$ac_ext
28602           CFLAGS="$ac_save_CFLAGS"
28603           LIBS="$ac_save_LIBS"
28604        fi
28605      fi
28606      GTK_CFLAGS=""
28607      GTK_LIBS=""
28608      :
28609   fi
28610
28611
28612   rm -f conf.gtktest
28613
28614
28615                                         case "${host}" in
28616                         *-*-solaris2* )
28617                             if test "$wxUSE_SHARED" != "yes"; then
28618                                 GTK_LIBS="$GTK_LIBS -lX11"
28619                             fi
28620                     esac
28621                 fi
28622
28623                                 if test -z "$wx_cv_lib_gtk"; then
28624                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28625
28626 # Check whether --with-gtk-prefix was given.
28627 if test "${with_gtk_prefix+set}" = set; then
28628   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28629 else
28630   gtk_config_prefix=""
28631 fi
28632
28633
28634 # Check whether --with-gtk-exec-prefix was given.
28635 if test "${with_gtk_exec_prefix+set}" = set; then
28636   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28637 else
28638   gtk_config_exec_prefix=""
28639 fi
28640
28641 # Check whether --enable-gtktest was given.
28642 if test "${enable_gtktest+set}" = set; then
28643   enableval=$enable_gtktest;
28644 else
28645   enable_gtktest=yes
28646 fi
28647
28648
28649   for module in . $GTK_MODULES
28650   do
28651       case "$module" in
28652          gthread)
28653              gtk_config_args="$gtk_config_args gthread"
28654          ;;
28655       esac
28656   done
28657
28658   if test x$gtk_config_exec_prefix != x ; then
28659      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28660      if test x${GTK_CONFIG+set} != xset ; then
28661         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28662      fi
28663   fi
28664   if test x$gtk_config_prefix != x ; then
28665      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28666      if test x${GTK_CONFIG+set} != xset ; then
28667         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28668      fi
28669   fi
28670
28671   # Extract the first word of "gtk-config", so it can be a program name with args.
28672 set dummy gtk-config; ac_word=$2
28673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28675 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28676   echo $ECHO_N "(cached) $ECHO_C" >&6
28677 else
28678   case $GTK_CONFIG in
28679   [\\/]* | ?:[\\/]*)
28680   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28681   ;;
28682   *)
28683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28684 for as_dir in $PATH
28685 do
28686   IFS=$as_save_IFS
28687   test -z "$as_dir" && as_dir=.
28688   for ac_exec_ext in '' $ac_executable_extensions; do
28689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28690     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28692     break 2
28693   fi
28694 done
28695 done
28696 IFS=$as_save_IFS
28697
28698   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28699   ;;
28700 esac
28701 fi
28702 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28703 if test -n "$GTK_CONFIG"; then
28704   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28705 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28706 else
28707   { echo "$as_me:$LINENO: result: no" >&5
28708 echo "${ECHO_T}no" >&6; }
28709 fi
28710
28711
28712   min_gtk_version=1.2.7
28713   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28714 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28715   no_gtk=""
28716   if test "$GTK_CONFIG" = "no" ; then
28717     no_gtk=yes
28718   else
28719     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28720     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28721     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28722            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28723     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28724            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28725     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28726            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28727     if test "x$enable_gtktest" = "xyes" ; then
28728       ac_save_CFLAGS="$CFLAGS"
28729       ac_save_LIBS="$LIBS"
28730       CFLAGS="$CFLAGS $GTK_CFLAGS"
28731       LIBS="$GTK_LIBS $LIBS"
28732       rm -f conf.gtktest
28733       if test "$cross_compiling" = yes; then
28734   echo $ac_n "cross compiling; assumed OK... $ac_c"
28735 else
28736   cat >conftest.$ac_ext <<_ACEOF
28737 /* confdefs.h.  */
28738 _ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h.  */
28742
28743 #include <gtk/gtk.h>
28744 #include <stdio.h>
28745 #include <stdlib.h>
28746
28747 int
28748 main ()
28749 {
28750   int major, minor, micro;
28751   char *tmp_version;
28752
28753   system ("touch conf.gtktest");
28754
28755   /* HP/UX 9 (%@#!) writes to sscanf strings */
28756   tmp_version = g_strdup("$min_gtk_version");
28757   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28758      printf("%s, bad version string\n", "$min_gtk_version");
28759      exit(1);
28760    }
28761
28762   if ((gtk_major_version != $gtk_config_major_version) ||
28763       (gtk_minor_version != $gtk_config_minor_version) ||
28764       (gtk_micro_version != $gtk_config_micro_version))
28765     {
28766       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28767              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28768              gtk_major_version, gtk_minor_version, gtk_micro_version);
28769       printf ("*** was found! If gtk-config was correct, then it is best\n");
28770       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28771       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28772       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28773       printf("*** required on your system.\n");
28774       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28775       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28776       printf("*** before re-running configure\n");
28777     }
28778 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28779   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28780            (gtk_minor_version != GTK_MINOR_VERSION) ||
28781            (gtk_micro_version != GTK_MICRO_VERSION))
28782     {
28783       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28784              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28785       printf("*** library (version %d.%d.%d)\n",
28786              gtk_major_version, gtk_minor_version, gtk_micro_version);
28787     }
28788 #endif /* defined (GTK_MAJOR_VERSION) ... */
28789   else
28790     {
28791       if ((gtk_major_version > major) ||
28792         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28793         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28794       {
28795         return 0;
28796        }
28797      else
28798       {
28799         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28800                gtk_major_version, gtk_minor_version, gtk_micro_version);
28801         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28802                major, minor, micro);
28803         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28804         printf("***\n");
28805         printf("*** If you have already installed a sufficiently new version, this error\n");
28806         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28807         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28808         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28809         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28810         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28811         printf("*** so that the correct libraries are found at run-time))\n");
28812       }
28813     }
28814   return 1;
28815 }
28816
28817 _ACEOF
28818 rm -f conftest$ac_exeext
28819 if { (ac_try="$ac_link"
28820 case "(($ac_try" in
28821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822   *) ac_try_echo=$ac_try;;
28823 esac
28824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825   (eval "$ac_link") 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28829   { (case "(($ac_try" in
28830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831   *) ac_try_echo=$ac_try;;
28832 esac
28833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28834   (eval "$ac_try") 2>&5
28835   ac_status=$?
28836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837   (exit $ac_status); }; }; then
28838   :
28839 else
28840   echo "$as_me: program exited with status $ac_status" >&5
28841 echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28843
28844 ( exit $ac_status )
28845 no_gtk=yes
28846 fi
28847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28848 fi
28849
28850
28851        CFLAGS="$ac_save_CFLAGS"
28852        LIBS="$ac_save_LIBS"
28853      fi
28854   fi
28855   if test "x$no_gtk" = x ; then
28856      { echo "$as_me:$LINENO: result: yes" >&5
28857 echo "${ECHO_T}yes" >&6; }
28858      wx_cv_lib_gtk=1.2.7
28859   else
28860      { echo "$as_me:$LINENO: result: no" >&5
28861 echo "${ECHO_T}no" >&6; }
28862      if test "$GTK_CONFIG" = "no" ; then
28863        echo "*** The gtk-config script installed by GTK could not be found"
28864        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28865        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28866        echo "*** full path to gtk-config."
28867      else
28868        if test -f conf.gtktest ; then
28869         :
28870        else
28871           echo "*** Could not run GTK test program, checking why..."
28872           CFLAGS="$CFLAGS $GTK_CFLAGS"
28873           LIBS="$LIBS $GTK_LIBS"
28874           cat >conftest.$ac_ext <<_ACEOF
28875 /* confdefs.h.  */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h.  */
28880
28881 #include <gtk/gtk.h>
28882 #include <stdio.h>
28883
28884 int
28885 main ()
28886 {
28887  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28888   ;
28889   return 0;
28890 }
28891 _ACEOF
28892 rm -f conftest.$ac_objext conftest$ac_exeext
28893 if { (ac_try="$ac_link"
28894 case "(($ac_try" in
28895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896   *) ac_try_echo=$ac_try;;
28897 esac
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899   (eval "$ac_link") 2>conftest.er1
28900   ac_status=$?
28901   grep -v '^ *+' conftest.er1 >conftest.err
28902   rm -f conftest.er1
28903   cat conftest.err >&5
28904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905   (exit $ac_status); } && {
28906          test -z "$ac_c_werror_flag" ||
28907          test ! -s conftest.err
28908        } && test -s conftest$ac_exeext &&
28909        $as_test_x conftest$ac_exeext; then
28910    echo "*** The test program compiled, but did not run. This usually means"
28911           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28912           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28913           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28914           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28915           echo "*** is required on your system"
28916           echo "***"
28917           echo "*** If you have an old version installed, it is best to remove it, although"
28918           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28919           echo "***"
28920           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28921           echo "*** came with the system with the command"
28922           echo "***"
28923           echo "***    rpm --erase --nodeps gtk gtk-devel"
28924 else
28925   echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28927
28928          echo "*** The test program failed to compile or link. See the file config.log for the"
28929           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28930           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28931           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28932 fi
28933
28934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28935       conftest$ac_exeext conftest.$ac_ext
28936           CFLAGS="$ac_save_CFLAGS"
28937           LIBS="$ac_save_LIBS"
28938        fi
28939      fi
28940      GTK_CFLAGS=""
28941      GTK_LIBS=""
28942      :
28943   fi
28944
28945
28946   rm -f conf.gtktest
28947
28948
28949                         if test -z "$wx_cv_lib_gtk"; then
28950
28951 # Check whether --with-gtk-prefix was given.
28952 if test "${with_gtk_prefix+set}" = set; then
28953   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28954 else
28955   gtk_config_prefix=""
28956 fi
28957
28958
28959 # Check whether --with-gtk-exec-prefix was given.
28960 if test "${with_gtk_exec_prefix+set}" = set; then
28961   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28962 else
28963   gtk_config_exec_prefix=""
28964 fi
28965
28966 # Check whether --enable-gtktest was given.
28967 if test "${enable_gtktest+set}" = set; then
28968   enableval=$enable_gtktest;
28969 else
28970   enable_gtktest=yes
28971 fi
28972
28973
28974   for module in . $GTK_MODULES
28975   do
28976       case "$module" in
28977          gthread)
28978              gtk_config_args="$gtk_config_args gthread"
28979          ;;
28980       esac
28981   done
28982
28983   if test x$gtk_config_exec_prefix != x ; then
28984      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28985      if test x${GTK_CONFIG+set} != xset ; then
28986         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28987      fi
28988   fi
28989   if test x$gtk_config_prefix != x ; then
28990      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28991      if test x${GTK_CONFIG+set} != xset ; then
28992         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28993      fi
28994   fi
28995
28996   # Extract the first word of "gtk-config", so it can be a program name with args.
28997 set dummy gtk-config; ac_word=$2
28998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29000 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29001   echo $ECHO_N "(cached) $ECHO_C" >&6
29002 else
29003   case $GTK_CONFIG in
29004   [\\/]* | ?:[\\/]*)
29005   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29006   ;;
29007   *)
29008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29009 for as_dir in $PATH
29010 do
29011   IFS=$as_save_IFS
29012   test -z "$as_dir" && as_dir=.
29013   for ac_exec_ext in '' $ac_executable_extensions; do
29014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29015     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29017     break 2
29018   fi
29019 done
29020 done
29021 IFS=$as_save_IFS
29022
29023   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29024   ;;
29025 esac
29026 fi
29027 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29028 if test -n "$GTK_CONFIG"; then
29029   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29030 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29031 else
29032   { echo "$as_me:$LINENO: result: no" >&5
29033 echo "${ECHO_T}no" >&6; }
29034 fi
29035
29036
29037   min_gtk_version=1.2.3
29038   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29039 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29040   no_gtk=""
29041   if test "$GTK_CONFIG" = "no" ; then
29042     no_gtk=yes
29043   else
29044     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29045     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29046     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29047            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29048     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29049            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29050     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29051            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29052     if test "x$enable_gtktest" = "xyes" ; then
29053       ac_save_CFLAGS="$CFLAGS"
29054       ac_save_LIBS="$LIBS"
29055       CFLAGS="$CFLAGS $GTK_CFLAGS"
29056       LIBS="$GTK_LIBS $LIBS"
29057       rm -f conf.gtktest
29058       if test "$cross_compiling" = yes; then
29059   echo $ac_n "cross compiling; assumed OK... $ac_c"
29060 else
29061   cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h.  */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h.  */
29067
29068 #include <gtk/gtk.h>
29069 #include <stdio.h>
29070 #include <stdlib.h>
29071
29072 int
29073 main ()
29074 {
29075   int major, minor, micro;
29076   char *tmp_version;
29077
29078   system ("touch conf.gtktest");
29079
29080   /* HP/UX 9 (%@#!) writes to sscanf strings */
29081   tmp_version = g_strdup("$min_gtk_version");
29082   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29083      printf("%s, bad version string\n", "$min_gtk_version");
29084      exit(1);
29085    }
29086
29087   if ((gtk_major_version != $gtk_config_major_version) ||
29088       (gtk_minor_version != $gtk_config_minor_version) ||
29089       (gtk_micro_version != $gtk_config_micro_version))
29090     {
29091       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29092              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29093              gtk_major_version, gtk_minor_version, gtk_micro_version);
29094       printf ("*** was found! If gtk-config was correct, then it is best\n");
29095       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29096       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29097       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29098       printf("*** required on your system.\n");
29099       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29100       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29101       printf("*** before re-running configure\n");
29102     }
29103 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29104   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29105            (gtk_minor_version != GTK_MINOR_VERSION) ||
29106            (gtk_micro_version != GTK_MICRO_VERSION))
29107     {
29108       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29109              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29110       printf("*** library (version %d.%d.%d)\n",
29111              gtk_major_version, gtk_minor_version, gtk_micro_version);
29112     }
29113 #endif /* defined (GTK_MAJOR_VERSION) ... */
29114   else
29115     {
29116       if ((gtk_major_version > major) ||
29117         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29118         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29119       {
29120         return 0;
29121        }
29122      else
29123       {
29124         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29125                gtk_major_version, gtk_minor_version, gtk_micro_version);
29126         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29127                major, minor, micro);
29128         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29129         printf("***\n");
29130         printf("*** If you have already installed a sufficiently new version, this error\n");
29131         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29132         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29133         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29134         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29135         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29136         printf("*** so that the correct libraries are found at run-time))\n");
29137       }
29138     }
29139   return 1;
29140 }
29141
29142 _ACEOF
29143 rm -f conftest$ac_exeext
29144 if { (ac_try="$ac_link"
29145 case "(($ac_try" in
29146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147   *) ac_try_echo=$ac_try;;
29148 esac
29149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29150   (eval "$ac_link") 2>&5
29151   ac_status=$?
29152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29154   { (case "(($ac_try" in
29155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156   *) ac_try_echo=$ac_try;;
29157 esac
29158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29159   (eval "$ac_try") 2>&5
29160   ac_status=$?
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); }; }; then
29163   :
29164 else
29165   echo "$as_me: program exited with status $ac_status" >&5
29166 echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29168
29169 ( exit $ac_status )
29170 no_gtk=yes
29171 fi
29172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29173 fi
29174
29175
29176        CFLAGS="$ac_save_CFLAGS"
29177        LIBS="$ac_save_LIBS"
29178      fi
29179   fi
29180   if test "x$no_gtk" = x ; then
29181      { echo "$as_me:$LINENO: result: yes" >&5
29182 echo "${ECHO_T}yes" >&6; }
29183      wx_cv_lib_gtk=1.2.3
29184   else
29185      { echo "$as_me:$LINENO: result: no" >&5
29186 echo "${ECHO_T}no" >&6; }
29187      if test "$GTK_CONFIG" = "no" ; then
29188        echo "*** The gtk-config script installed by GTK could not be found"
29189        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29190        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29191        echo "*** full path to gtk-config."
29192      else
29193        if test -f conf.gtktest ; then
29194         :
29195        else
29196           echo "*** Could not run GTK test program, checking why..."
29197           CFLAGS="$CFLAGS $GTK_CFLAGS"
29198           LIBS="$LIBS $GTK_LIBS"
29199           cat >conftest.$ac_ext <<_ACEOF
29200 /* confdefs.h.  */
29201 _ACEOF
29202 cat confdefs.h >>conftest.$ac_ext
29203 cat >>conftest.$ac_ext <<_ACEOF
29204 /* end confdefs.h.  */
29205
29206 #include <gtk/gtk.h>
29207 #include <stdio.h>
29208
29209 int
29210 main ()
29211 {
29212  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29213   ;
29214   return 0;
29215 }
29216 _ACEOF
29217 rm -f conftest.$ac_objext conftest$ac_exeext
29218 if { (ac_try="$ac_link"
29219 case "(($ac_try" in
29220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221   *) ac_try_echo=$ac_try;;
29222 esac
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224   (eval "$ac_link") 2>conftest.er1
29225   ac_status=$?
29226   grep -v '^ *+' conftest.er1 >conftest.err
29227   rm -f conftest.er1
29228   cat conftest.err >&5
29229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230   (exit $ac_status); } && {
29231          test -z "$ac_c_werror_flag" ||
29232          test ! -s conftest.err
29233        } && test -s conftest$ac_exeext &&
29234        $as_test_x conftest$ac_exeext; then
29235    echo "*** The test program compiled, but did not run. This usually means"
29236           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29237           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29238           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29239           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29240           echo "*** is required on your system"
29241           echo "***"
29242           echo "*** If you have an old version installed, it is best to remove it, although"
29243           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29244           echo "***"
29245           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29246           echo "*** came with the system with the command"
29247           echo "***"
29248           echo "***    rpm --erase --nodeps gtk gtk-devel"
29249 else
29250   echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29252
29253          echo "*** The test program failed to compile or link. See the file config.log for the"
29254           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29255           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29256           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29257 fi
29258
29259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29260       conftest$ac_exeext conftest.$ac_ext
29261           CFLAGS="$ac_save_CFLAGS"
29262           LIBS="$ac_save_LIBS"
29263        fi
29264      fi
29265      GTK_CFLAGS=""
29266      GTK_LIBS=""
29267      :
29268   fi
29269
29270
29271   rm -f conf.gtktest
29272
29273                         fi
29274                     fi
29275                 fi
29276
29277                 if test -z "$wx_cv_lib_gtk"; then
29278                                         wx_cv_lib_gtk=none
29279                 else
29280                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29281                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29282                 fi
29283
29284
29285 fi
29286
29287
29288                         if test "$gtk_version_cached" = 1; then
29289             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29290 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29291         fi
29292
29293         case "$wx_cv_lib_gtk" in
29294             2.0)    WXGTK2=1
29295                     TOOLKIT_VERSION=2
29296                     ;;
29297             1.2.7)  WXGTK127=1
29298                     WXGTK12=1
29299                     ;;
29300             1.2.3)  WXGTK12=1
29301                     ;;
29302             *)      { { echo "$as_me:$LINENO: error:
29303 The development files for GTK+ were not found. For GTK+ 2, please
29304 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29305 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29306 and that the version is 1.2.3 or above. Also check that the
29307 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29308 --libs' are in the LD_LIBRARY_PATH or equivalent.
29309                             " >&5
29310 echo "$as_me: error:
29311 The development files for GTK+ were not found. For GTK+ 2, please
29312 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29313 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29314 and that the version is 1.2.3 or above. Also check that the
29315 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29316 --libs' are in the LD_LIBRARY_PATH or equivalent.
29317                             " >&2;}
29318    { (exit 1); exit 1; }; }
29319                     ;;
29320         esac
29321
29322         if test "$WXGTK2" = 1; then
29323             save_CFLAGS="$CFLAGS"
29324             save_LIBS="$LIBS"
29325             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29326             LIBS="$LIBS $wx_cv_libs_gtk"
29327
29328                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29329 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29330             cat >conftest.$ac_ext <<_ACEOF
29331 /* confdefs.h.  */
29332 _ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h.  */
29336
29337                             #include <gtk/gtk.h>
29338
29339 int
29340 main ()
29341 {
29342
29343                             #if !GTK_CHECK_VERSION(2,10,0)
29344                             Not GTK+ 2.10
29345                             #endif
29346
29347   ;
29348   return 0;
29349 }
29350 _ACEOF
29351 rm -f conftest.$ac_objext
29352 if { (ac_try="$ac_compile"
29353 case "(($ac_try" in
29354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355   *) ac_try_echo=$ac_try;;
29356 esac
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358   (eval "$ac_compile") 2>conftest.er1
29359   ac_status=$?
29360   grep -v '^ *+' conftest.er1 >conftest.err
29361   rm -f conftest.er1
29362   cat conftest.err >&5
29363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); } && {
29365          test -z "$ac_c_werror_flag" ||
29366          test ! -s conftest.err
29367        } && test -s conftest.$ac_objext; then
29368
29369                             cat >>confdefs.h <<\_ACEOF
29370 #define __WXGTK210__ 1
29371 _ACEOF
29372
29373                             cat >>confdefs.h <<\_ACEOF
29374 #define __WXGTK26__ 1
29375 _ACEOF
29376
29377                             { echo "$as_me:$LINENO: result: yes" >&5
29378 echo "${ECHO_T}yes" >&6; }
29379                             ac_wxgtk210=1
29380
29381 else
29382   echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29384
29385
29386                             { echo "$as_me:$LINENO: result: no" >&5
29387 echo "${ECHO_T}no" >&6; }
29388                             ac_wxgtk210=0
29389
29390 fi
29391
29392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29393
29394             if test "$ac_wxgtk210" = 0; then
29395                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29396 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29397                 cat >conftest.$ac_ext <<_ACEOF
29398 /* confdefs.h.  */
29399 _ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h.  */
29403
29404                                 #include <gtk/gtk.h>
29405
29406 int
29407 main ()
29408 {
29409
29410                                 #if !GTK_CHECK_VERSION(2,6,0)
29411                                 Not GTK+ 2.6
29412                                 #endif
29413
29414   ;
29415   return 0;
29416 }
29417 _ACEOF
29418 rm -f conftest.$ac_objext
29419 if { (ac_try="$ac_compile"
29420 case "(($ac_try" in
29421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29422   *) ac_try_echo=$ac_try;;
29423 esac
29424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29425   (eval "$ac_compile") 2>conftest.er1
29426   ac_status=$?
29427   grep -v '^ *+' conftest.er1 >conftest.err
29428   rm -f conftest.er1
29429   cat conftest.err >&5
29430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431   (exit $ac_status); } && {
29432          test -z "$ac_c_werror_flag" ||
29433          test ! -s conftest.err
29434        } && test -s conftest.$ac_objext; then
29435
29436                                 cat >>confdefs.h <<\_ACEOF
29437 #define __WXGTK26__ 1
29438 _ACEOF
29439
29440                                 { echo "$as_me:$LINENO: result: yes" >&5
29441 echo "${ECHO_T}yes" >&6; }
29442                                 ac_wxgtk26=1
29443
29444 else
29445   echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29447
29448
29449                                 { echo "$as_me:$LINENO: result: no" >&5
29450 echo "${ECHO_T}no" >&6; }
29451                                 ac_wxgtk26=0
29452
29453 fi
29454
29455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29456             fi
29457
29458             CFLAGS="$save_CFLAGS"
29459             LIBS="$save_LIBS"
29460         else
29461             if test "$wxUSE_UNICODE" = "yes"; then
29462                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29463 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29464                 wxUSE_UNICODE=no
29465             fi
29466
29467                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29468 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29469 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29470   echo $ECHO_N "(cached) $ECHO_C" >&6
29471 else
29472   ac_check_lib_save_LIBS=$LIBS
29473 LIBS="-lgdk  $LIBS"
29474 cat >conftest.$ac_ext <<_ACEOF
29475 /* confdefs.h.  */
29476 _ACEOF
29477 cat confdefs.h >>conftest.$ac_ext
29478 cat >>conftest.$ac_ext <<_ACEOF
29479 /* end confdefs.h.  */
29480
29481 /* Override any GCC internal prototype to avoid an error.
29482    Use char because int might match the return type of a GCC
29483    builtin and then its argument prototype would still apply.  */
29484 #ifdef __cplusplus
29485 extern "C"
29486 #endif
29487 char gdk_im_open ();
29488 int
29489 main ()
29490 {
29491 return gdk_im_open ();
29492   ;
29493   return 0;
29494 }
29495 _ACEOF
29496 rm -f conftest.$ac_objext conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500   *) ac_try_echo=$ac_try;;
29501 esac
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503   (eval "$ac_link") 2>conftest.er1
29504   ac_status=$?
29505   grep -v '^ *+' conftest.er1 >conftest.err
29506   rm -f conftest.er1
29507   cat conftest.err >&5
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); } && {
29510          test -z "$ac_c_werror_flag" ||
29511          test ! -s conftest.err
29512        } && test -s conftest$ac_exeext &&
29513        $as_test_x conftest$ac_exeext; then
29514   ac_cv_lib_gdk_gdk_im_open=yes
29515 else
29516   echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29518
29519         ac_cv_lib_gdk_gdk_im_open=no
29520 fi
29521
29522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29523       conftest$ac_exeext conftest.$ac_ext
29524 LIBS=$ac_check_lib_save_LIBS
29525 fi
29526 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29527 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29528 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29529   cat >>confdefs.h <<\_ACEOF
29530 #define HAVE_XIM 1
29531 _ACEOF
29532
29533 fi
29534
29535
29536                                     if test "$USE_DARWIN" != 1; then
29537
29538 for ac_func in poll
29539 do
29540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29544   echo $ECHO_N "(cached) $ECHO_C" >&6
29545 else
29546   cat >conftest.$ac_ext <<_ACEOF
29547 /* confdefs.h.  */
29548 _ACEOF
29549 cat confdefs.h >>conftest.$ac_ext
29550 cat >>conftest.$ac_ext <<_ACEOF
29551 /* end confdefs.h.  */
29552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29554 #define $ac_func innocuous_$ac_func
29555
29556 /* System header to define __stub macros and hopefully few prototypes,
29557     which can conflict with char $ac_func (); below.
29558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29559     <limits.h> exists even on freestanding compilers.  */
29560
29561 #ifdef __STDC__
29562 # include <limits.h>
29563 #else
29564 # include <assert.h>
29565 #endif
29566
29567 #undef $ac_func
29568
29569 /* Override any GCC internal prototype to avoid an error.
29570    Use char because int might match the return type of a GCC
29571    builtin and then its argument prototype would still apply.  */
29572 #ifdef __cplusplus
29573 extern "C"
29574 #endif
29575 char $ac_func ();
29576 /* The GNU C library defines this for functions which it implements
29577     to always fail with ENOSYS.  Some functions are actually named
29578     something starting with __ and the normal name is an alias.  */
29579 #if defined __stub_$ac_func || defined __stub___$ac_func
29580 choke me
29581 #endif
29582
29583 int
29584 main ()
29585 {
29586 return $ac_func ();
29587   ;
29588   return 0;
29589 }
29590 _ACEOF
29591 rm -f conftest.$ac_objext conftest$ac_exeext
29592 if { (ac_try="$ac_link"
29593 case "(($ac_try" in
29594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595   *) ac_try_echo=$ac_try;;
29596 esac
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598   (eval "$ac_link") 2>conftest.er1
29599   ac_status=$?
29600   grep -v '^ *+' conftest.er1 >conftest.err
29601   rm -f conftest.er1
29602   cat conftest.err >&5
29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); } && {
29605          test -z "$ac_c_werror_flag" ||
29606          test ! -s conftest.err
29607        } && test -s conftest$ac_exeext &&
29608        $as_test_x conftest$ac_exeext; then
29609   eval "$as_ac_var=yes"
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614         eval "$as_ac_var=no"
29615 fi
29616
29617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29618       conftest$ac_exeext conftest.$ac_ext
29619 fi
29620 ac_res=`eval echo '${'$as_ac_var'}'`
29621                { echo "$as_me:$LINENO: result: $ac_res" >&5
29622 echo "${ECHO_T}$ac_res" >&6; }
29623 if test `eval echo '${'$as_ac_var'}'` = yes; then
29624   cat >>confdefs.h <<_ACEOF
29625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29626 _ACEOF
29627
29628 fi
29629 done
29630
29631             fi
29632         fi
29633
29634         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29635         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29636
29637         AFMINSTALL=afminstall
29638         TOOLKIT=GTK
29639         GUIDIST=GTK_DIST
29640
29641                 if test "$wxUSE_GPE" = "yes"; then
29642             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29643 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29644
29645   ac_find_libraries=
29646   for ac_dir in $SEARCH_LIB;
29647   do
29648     for ac_extension in a so sl dylib dll.a; do
29649       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29650         ac_find_libraries=$ac_dir
29651         break 2
29652       fi
29653     done
29654   done
29655
29656             if test "$ac_find_libraries" != "" ; then
29657
29658     if test "$ac_find_libraries" = "default location"; then
29659     ac_path_to_link=""
29660   else
29661     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29662     result=$?
29663     if test $result = 0; then
29664       ac_path_to_link=""
29665     else
29666       ac_path_to_link=" -L$ac_find_libraries"
29667     fi
29668   fi
29669
29670                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29671                 WXGPE=1
29672                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29673 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29674             else
29675                 { echo "$as_me:$LINENO: result: not found" >&5
29676 echo "${ECHO_T}not found" >&6; }
29677             fi
29678
29679                                                                                                                     fi
29680     fi
29681
29682     if test "$wxUSE_MGL" = 1; then
29683        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29684 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29685         if test "x$MGL_ROOT" = x ; then
29686             { echo "$as_me:$LINENO: result: not found" >&5
29687 echo "${ECHO_T}not found" >&6; }
29688             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29689 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29690    { (exit 1); exit 1; }; }
29691         else
29692             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29693 echo "${ECHO_T}$MGL_ROOT" >&6; }
29694         fi
29695
29696         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29697 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29698                                 case "${host}" in
29699             *-*-linux* )
29700                                           if test "x$wxUSE_SHARED" = xyes ; then
29701                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29702               else
29703                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29704               fi
29705               ;;
29706             *-pc-msdosdjgpp )
29707               mgl_os_candidates="dos32/dj2"
29708               ;;
29709             *)
29710               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29711 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29712    { (exit 1); exit 1; }; }
29713         esac
29714
29715         mgl_lib_type=""
29716         mgl_os=""
29717
29718         for mgl_os_i in $mgl_os_candidates ; do
29719             if test "x$mgl_os" = x ; then
29720                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29721                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29722                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29723                         mgl_lib_type=debug
29724                         mgl_os=$mgl_os_i
29725                     fi
29726                 fi
29727                 if test "x$mgl_lib_type" = x ; then
29728                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29729                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29730                         mgl_lib_type=release
29731                         mgl_os=$mgl_os_i
29732                     fi
29733                 fi
29734             fi
29735         done
29736
29737         if test "x$mgl_os" = x ; then
29738             { echo "$as_me:$LINENO: result: not found" >&5
29739 echo "${ECHO_T}not found" >&6; }
29740             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29741 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29742    { (exit 1); exit 1; }; }
29743         fi
29744         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29745 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29746
29747         wxUSE_UNIVERSAL="yes"
29748
29749         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29750         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29751
29752         AFMINSTALL=afminstall
29753         TOOLKIT=MGL
29754         GUIDIST=MGL_DIST
29755     fi
29756
29757     if test "$wxUSE_DFB" = 1; then
29758
29759
29760 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29761         if test -n "$ac_tool_prefix"; then
29762   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29763 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29766 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29767   echo $ECHO_N "(cached) $ECHO_C" >&6
29768 else
29769   case $PKG_CONFIG in
29770   [\\/]* | ?:[\\/]*)
29771   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29772   ;;
29773   *)
29774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29775 for as_dir in $PATH
29776 do
29777   IFS=$as_save_IFS
29778   test -z "$as_dir" && as_dir=.
29779   for ac_exec_ext in '' $ac_executable_extensions; do
29780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29781     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29783     break 2
29784   fi
29785 done
29786 done
29787 IFS=$as_save_IFS
29788
29789   ;;
29790 esac
29791 fi
29792 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29793 if test -n "$PKG_CONFIG"; then
29794   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29795 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29796 else
29797   { echo "$as_me:$LINENO: result: no" >&5
29798 echo "${ECHO_T}no" >&6; }
29799 fi
29800
29801
29802 fi
29803 if test -z "$ac_cv_path_PKG_CONFIG"; then
29804   ac_pt_PKG_CONFIG=$PKG_CONFIG
29805   # Extract the first word of "pkg-config", so it can be a program name with args.
29806 set dummy pkg-config; ac_word=$2
29807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29809 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29810   echo $ECHO_N "(cached) $ECHO_C" >&6
29811 else
29812   case $ac_pt_PKG_CONFIG in
29813   [\\/]* | ?:[\\/]*)
29814   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29815   ;;
29816   *)
29817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29818 for as_dir in $PATH
29819 do
29820   IFS=$as_save_IFS
29821   test -z "$as_dir" && as_dir=.
29822   for ac_exec_ext in '' $ac_executable_extensions; do
29823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29824     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29826     break 2
29827   fi
29828 done
29829 done
29830 IFS=$as_save_IFS
29831
29832   ;;
29833 esac
29834 fi
29835 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29836 if test -n "$ac_pt_PKG_CONFIG"; then
29837   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29838 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29839 else
29840   { echo "$as_me:$LINENO: result: no" >&5
29841 echo "${ECHO_T}no" >&6; }
29842 fi
29843
29844   if test "x$ac_pt_PKG_CONFIG" = x; then
29845     PKG_CONFIG=""
29846   else
29847     case $cross_compiling:$ac_tool_warned in
29848 yes:)
29849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29850 whose name does not start with the host triplet.  If you think this
29851 configuration is useful to you, please write to autoconf@gnu.org." >&5
29852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29853 whose name does not start with the host triplet.  If you think this
29854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29855 ac_tool_warned=yes ;;
29856 esac
29857     PKG_CONFIG=$ac_pt_PKG_CONFIG
29858   fi
29859 else
29860   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29861 fi
29862
29863 fi
29864 if test -n "$PKG_CONFIG"; then
29865         _pkg_min_version=0.9.0
29866         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29867 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29868         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29869                 { echo "$as_me:$LINENO: result: yes" >&5
29870 echo "${ECHO_T}yes" >&6; }
29871         else
29872                 { echo "$as_me:$LINENO: result: no" >&5
29873 echo "${ECHO_T}no" >&6; }
29874                 PKG_CONFIG=""
29875         fi
29876
29877 fi
29878
29879
29880 pkg_failed=no
29881 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29882 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29883
29884 if test -n "$PKG_CONFIG"; then
29885     if test -n "$DIRECTFB_CFLAGS"; then
29886         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29887     else
29888         if test -n "$PKG_CONFIG" && \
29889     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29890   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29891   ac_status=$?
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); }; then
29894   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29895 else
29896   pkg_failed=yes
29897 fi
29898     fi
29899 else
29900         pkg_failed=untried
29901 fi
29902 if test -n "$PKG_CONFIG"; then
29903     if test -n "$DIRECTFB_LIBS"; then
29904         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29905     else
29906         if test -n "$PKG_CONFIG" && \
29907     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29908   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29909   ac_status=$?
29910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911   (exit $ac_status); }; then
29912   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29913 else
29914   pkg_failed=yes
29915 fi
29916     fi
29917 else
29918         pkg_failed=untried
29919 fi
29920
29921
29922
29923 if test $pkg_failed = yes; then
29924
29925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29926         _pkg_short_errors_supported=yes
29927 else
29928         _pkg_short_errors_supported=no
29929 fi
29930         if test $_pkg_short_errors_supported = yes; then
29931                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29932         else
29933                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29934         fi
29935         # Put the nasty error message in config.log where it belongs
29936         echo "$DIRECTFB_PKG_ERRORS" >&5
29937
29938
29939                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29940 echo "$as_me: error: DirectFB not found." >&2;}
29941    { (exit 1); exit 1; }; }
29942
29943
29944 elif test $pkg_failed = untried; then
29945
29946                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29947 echo "$as_me: error: DirectFB not found." >&2;}
29948    { (exit 1); exit 1; }; }
29949
29950
29951 else
29952         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29953         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29954         { echo "$as_me:$LINENO: result: yes" >&5
29955 echo "${ECHO_T}yes" >&6; }
29956
29957                            wxUSE_UNIVERSAL="yes"
29958                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29959                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29960                            TOOLKIT=DFB
29961                            GUIDIST=DFB_DIST
29962
29963 fi
29964     fi
29965
29966     if test "$wxUSE_MICROWIN" = 1; then
29967         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29968 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29969         if test "x$MICROWINDOWS" = x ; then
29970             { echo "$as_me:$LINENO: result: not found" >&5
29971 echo "${ECHO_T}not found" >&6; }
29972             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29973 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29974    { (exit 1); exit 1; }; }
29975         else
29976             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29977 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29978         fi
29979
29980         if test -f $MICROWINDOWS/lib/libmwin.a; then
29981             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29982 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29983         else
29984             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29985 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29986    { (exit 1); exit 1; }; }
29987         fi
29988
29989         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29990         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29991
29992         wxUSE_UNIVERSAL="yes"
29993
29994         AFMINSTALL=afminstall
29995         TOOLKIT=MICROWIN
29996         GUIDIST=MICROWIN_DIST
29997
29998         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29999     fi
30000
30001         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30002                                 { echo "$as_me:$LINENO: checking for X" >&5
30003 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30004
30005
30006 # Check whether --with-x was given.
30007 if test "${with_x+set}" = set; then
30008   withval=$with_x;
30009 fi
30010
30011 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30012 if test "x$with_x" = xno; then
30013   # The user explicitly disabled X.
30014   have_x=disabled
30015 else
30016   case $x_includes,$x_libraries in #(
30017     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30018 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30019    { (exit 1); exit 1; }; };; #(
30020     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30021   echo $ECHO_N "(cached) $ECHO_C" >&6
30022 else
30023   # One or both of the vars are not set, and there is no cached value.
30024 ac_x_includes=no ac_x_libraries=no
30025 rm -f -r conftest.dir
30026 if mkdir conftest.dir; then
30027   cd conftest.dir
30028   cat >Imakefile <<'_ACEOF'
30029 incroot:
30030         @echo incroot='${INCROOT}'
30031 usrlibdir:
30032         @echo usrlibdir='${USRLIBDIR}'
30033 libdir:
30034         @echo libdir='${LIBDIR}'
30035 _ACEOF
30036   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30037     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30038     for ac_var in incroot usrlibdir libdir; do
30039       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30040     done
30041     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30042     for ac_extension in a so sl; do
30043       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30044          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30045         ac_im_usrlibdir=$ac_im_libdir; break
30046       fi
30047     done
30048     # Screen out bogus values from the imake configuration.  They are
30049     # bogus both because they are the default anyway, and because
30050     # using them would break gcc on systems where it needs fixed includes.
30051     case $ac_im_incroot in
30052         /usr/include) ac_x_includes= ;;
30053         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30054     esac
30055     case $ac_im_usrlibdir in
30056         /usr/lib | /lib) ;;
30057         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30058     esac
30059   fi
30060   cd ..
30061   rm -f -r conftest.dir
30062 fi
30063
30064 # Standard set of common directories for X headers.
30065 # Check X11 before X11Rn because it is often a symlink to the current release.
30066 ac_x_header_dirs='
30067 /usr/X11/include
30068 /usr/X11R6/include
30069 /usr/X11R5/include
30070 /usr/X11R4/include
30071
30072 /usr/include/X11
30073 /usr/include/X11R6
30074 /usr/include/X11R5
30075 /usr/include/X11R4
30076
30077 /usr/local/X11/include
30078 /usr/local/X11R6/include
30079 /usr/local/X11R5/include
30080 /usr/local/X11R4/include
30081
30082 /usr/local/include/X11
30083 /usr/local/include/X11R6
30084 /usr/local/include/X11R5
30085 /usr/local/include/X11R4
30086
30087 /usr/X386/include
30088 /usr/x386/include
30089 /usr/XFree86/include/X11
30090
30091 /usr/include
30092 /usr/local/include
30093 /usr/unsupported/include
30094 /usr/athena/include
30095 /usr/local/x11r5/include
30096 /usr/lpp/Xamples/include
30097
30098 /usr/openwin/include
30099 /usr/openwin/share/include'
30100
30101 if test "$ac_x_includes" = no; then
30102   # Guess where to find include files, by looking for Xlib.h.
30103   # First, try using that file with no special directory specified.
30104   cat >conftest.$ac_ext <<_ACEOF
30105 /* confdefs.h.  */
30106 _ACEOF
30107 cat confdefs.h >>conftest.$ac_ext
30108 cat >>conftest.$ac_ext <<_ACEOF
30109 /* end confdefs.h.  */
30110 #include <X11/Xlib.h>
30111 _ACEOF
30112 if { (ac_try="$ac_cpp conftest.$ac_ext"
30113 case "(($ac_try" in
30114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115   *) ac_try_echo=$ac_try;;
30116 esac
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30119   ac_status=$?
30120   grep -v '^ *+' conftest.er1 >conftest.err
30121   rm -f conftest.er1
30122   cat conftest.err >&5
30123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124   (exit $ac_status); } >/dev/null && {
30125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30126          test ! -s conftest.err
30127        }; then
30128   # We can compile using X headers with no special include directory.
30129 ac_x_includes=
30130 else
30131   echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30133
30134   for ac_dir in $ac_x_header_dirs; do
30135   if test -r "$ac_dir/X11/Xlib.h"; then
30136     ac_x_includes=$ac_dir
30137     break
30138   fi
30139 done
30140 fi
30141
30142 rm -f conftest.err conftest.$ac_ext
30143 fi # $ac_x_includes = no
30144
30145 if test "$ac_x_libraries" = no; then
30146   # Check for the libraries.
30147   # See if we find them without any special options.
30148   # Don't add to $LIBS permanently.
30149   ac_save_LIBS=$LIBS
30150   LIBS="-lX11 $LIBS"
30151   cat >conftest.$ac_ext <<_ACEOF
30152 /* confdefs.h.  */
30153 _ACEOF
30154 cat confdefs.h >>conftest.$ac_ext
30155 cat >>conftest.$ac_ext <<_ACEOF
30156 /* end confdefs.h.  */
30157 #include <X11/Xlib.h>
30158 int
30159 main ()
30160 {
30161 XrmInitialize ()
30162   ;
30163   return 0;
30164 }
30165 _ACEOF
30166 rm -f conftest.$ac_objext conftest$ac_exeext
30167 if { (ac_try="$ac_link"
30168 case "(($ac_try" in
30169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170   *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173   (eval "$ac_link") 2>conftest.er1
30174   ac_status=$?
30175   grep -v '^ *+' conftest.er1 >conftest.err
30176   rm -f conftest.er1
30177   cat conftest.err >&5
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); } && {
30180          test -z "$ac_c_werror_flag" ||
30181          test ! -s conftest.err
30182        } && test -s conftest$ac_exeext &&
30183        $as_test_x conftest$ac_exeext; then
30184   LIBS=$ac_save_LIBS
30185 # We can link X programs with no special library path.
30186 ac_x_libraries=
30187 else
30188   echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30190
30191         LIBS=$ac_save_LIBS
30192 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30193 do
30194   # Don't even attempt the hair of trying to link an X program!
30195   for ac_extension in a so sl; do
30196     if test -r "$ac_dir/libX11.$ac_extension"; then
30197       ac_x_libraries=$ac_dir
30198       break 2
30199     fi
30200   done
30201 done
30202 fi
30203
30204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30205       conftest$ac_exeext conftest.$ac_ext
30206 fi # $ac_x_libraries = no
30207
30208 case $ac_x_includes,$ac_x_libraries in #(
30209   no,* | *,no | *\'*)
30210     # Didn't find X, or a directory has "'" in its name.
30211     ac_cv_have_x="have_x=no";; #(
30212   *)
30213     # Record where we found X for the cache.
30214     ac_cv_have_x="have_x=yes\
30215         ac_x_includes='$ac_x_includes'\
30216         ac_x_libraries='$ac_x_libraries'"
30217 esac
30218 fi
30219 ;; #(
30220     *) have_x=yes;;
30221   esac
30222   eval "$ac_cv_have_x"
30223 fi # $with_x != no
30224
30225 if test "$have_x" != yes; then
30226   { echo "$as_me:$LINENO: result: $have_x" >&5
30227 echo "${ECHO_T}$have_x" >&6; }
30228   no_x=yes
30229 else
30230   # If each of the values was on the command line, it overrides each guess.
30231   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30232   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30233   # Update the cache value to reflect the command line values.
30234   ac_cv_have_x="have_x=yes\
30235         ac_x_includes='$x_includes'\
30236         ac_x_libraries='$x_libraries'"
30237   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30238 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30239 fi
30240
30241 if test "$no_x" = yes; then
30242   # Not all programs may use this symbol, but it does not hurt to define it.
30243
30244 cat >>confdefs.h <<\_ACEOF
30245 #define X_DISPLAY_MISSING 1
30246 _ACEOF
30247
30248   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30249 else
30250   if test -n "$x_includes"; then
30251     X_CFLAGS="$X_CFLAGS -I$x_includes"
30252   fi
30253
30254   # It would also be nice to do this for all -L options, not just this one.
30255   if test -n "$x_libraries"; then
30256     X_LIBS="$X_LIBS -L$x_libraries"
30257     # For Solaris; some versions of Sun CC require a space after -R and
30258     # others require no space.  Words are not sufficient . . . .
30259     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30260 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30261     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30262     ac_xsave_c_werror_flag=$ac_c_werror_flag
30263     ac_c_werror_flag=yes
30264     cat >conftest.$ac_ext <<_ACEOF
30265 /* confdefs.h.  */
30266 _ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h.  */
30270
30271 int
30272 main ()
30273 {
30274
30275   ;
30276   return 0;
30277 }
30278 _ACEOF
30279 rm -f conftest.$ac_objext conftest$ac_exeext
30280 if { (ac_try="$ac_link"
30281 case "(($ac_try" in
30282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283   *) ac_try_echo=$ac_try;;
30284 esac
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286   (eval "$ac_link") 2>conftest.er1
30287   ac_status=$?
30288   grep -v '^ *+' conftest.er1 >conftest.err
30289   rm -f conftest.er1
30290   cat conftest.err >&5
30291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292   (exit $ac_status); } && {
30293          test -z "$ac_c_werror_flag" ||
30294          test ! -s conftest.err
30295        } && test -s conftest$ac_exeext &&
30296        $as_test_x conftest$ac_exeext; then
30297   { echo "$as_me:$LINENO: result: no" >&5
30298 echo "${ECHO_T}no" >&6; }
30299        X_LIBS="$X_LIBS -R$x_libraries"
30300 else
30301   echo "$as_me: failed program was:" >&5
30302 sed 's/^/| /' conftest.$ac_ext >&5
30303
30304         LIBS="$ac_xsave_LIBS -R $x_libraries"
30305        cat >conftest.$ac_ext <<_ACEOF
30306 /* confdefs.h.  */
30307 _ACEOF
30308 cat confdefs.h >>conftest.$ac_ext
30309 cat >>conftest.$ac_ext <<_ACEOF
30310 /* end confdefs.h.  */
30311
30312 int
30313 main ()
30314 {
30315
30316   ;
30317   return 0;
30318 }
30319 _ACEOF
30320 rm -f conftest.$ac_objext conftest$ac_exeext
30321 if { (ac_try="$ac_link"
30322 case "(($ac_try" in
30323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324   *) ac_try_echo=$ac_try;;
30325 esac
30326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30327   (eval "$ac_link") 2>conftest.er1
30328   ac_status=$?
30329   grep -v '^ *+' conftest.er1 >conftest.err
30330   rm -f conftest.er1
30331   cat conftest.err >&5
30332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333   (exit $ac_status); } && {
30334          test -z "$ac_c_werror_flag" ||
30335          test ! -s conftest.err
30336        } && test -s conftest$ac_exeext &&
30337        $as_test_x conftest$ac_exeext; then
30338   { echo "$as_me:$LINENO: result: yes" >&5
30339 echo "${ECHO_T}yes" >&6; }
30340           X_LIBS="$X_LIBS -R $x_libraries"
30341 else
30342   echo "$as_me: failed program was:" >&5
30343 sed 's/^/| /' conftest.$ac_ext >&5
30344
30345         { echo "$as_me:$LINENO: result: neither works" >&5
30346 echo "${ECHO_T}neither works" >&6; }
30347 fi
30348
30349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30350       conftest$ac_exeext conftest.$ac_ext
30351 fi
30352
30353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30354       conftest$ac_exeext conftest.$ac_ext
30355     ac_c_werror_flag=$ac_xsave_c_werror_flag
30356     LIBS=$ac_xsave_LIBS
30357   fi
30358
30359   # Check for system-dependent libraries X programs must link with.
30360   # Do this before checking for the system-independent R6 libraries
30361   # (-lICE), since we may need -lsocket or whatever for X linking.
30362
30363   if test "$ISC" = yes; then
30364     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30365   else
30366     # Martyn Johnson says this is needed for Ultrix, if the X
30367     # libraries were built with DECnet support.  And Karl Berry says
30368     # the Alpha needs dnet_stub (dnet does not exist).
30369     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30370     cat >conftest.$ac_ext <<_ACEOF
30371 /* confdefs.h.  */
30372 _ACEOF
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h.  */
30376
30377 /* Override any GCC internal prototype to avoid an error.
30378    Use char because int might match the return type of a GCC
30379    builtin and then its argument prototype would still apply.  */
30380 #ifdef __cplusplus
30381 extern "C"
30382 #endif
30383 char XOpenDisplay ();
30384 int
30385 main ()
30386 {
30387 return XOpenDisplay ();
30388   ;
30389   return 0;
30390 }
30391 _ACEOF
30392 rm -f conftest.$ac_objext conftest$ac_exeext
30393 if { (ac_try="$ac_link"
30394 case "(($ac_try" in
30395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396   *) ac_try_echo=$ac_try;;
30397 esac
30398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399   (eval "$ac_link") 2>conftest.er1
30400   ac_status=$?
30401   grep -v '^ *+' conftest.er1 >conftest.err
30402   rm -f conftest.er1
30403   cat conftest.err >&5
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); } && {
30406          test -z "$ac_c_werror_flag" ||
30407          test ! -s conftest.err
30408        } && test -s conftest$ac_exeext &&
30409        $as_test_x conftest$ac_exeext; then
30410   :
30411 else
30412   echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30414
30415         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30416 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30417 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30418   echo $ECHO_N "(cached) $ECHO_C" >&6
30419 else
30420   ac_check_lib_save_LIBS=$LIBS
30421 LIBS="-ldnet  $LIBS"
30422 cat >conftest.$ac_ext <<_ACEOF
30423 /* confdefs.h.  */
30424 _ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h.  */
30428
30429 /* Override any GCC internal prototype to avoid an error.
30430    Use char because int might match the return type of a GCC
30431    builtin and then its argument prototype would still apply.  */
30432 #ifdef __cplusplus
30433 extern "C"
30434 #endif
30435 char dnet_ntoa ();
30436 int
30437 main ()
30438 {
30439 return dnet_ntoa ();
30440   ;
30441   return 0;
30442 }
30443 _ACEOF
30444 rm -f conftest.$ac_objext conftest$ac_exeext
30445 if { (ac_try="$ac_link"
30446 case "(($ac_try" in
30447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448   *) ac_try_echo=$ac_try;;
30449 esac
30450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30451   (eval "$ac_link") 2>conftest.er1
30452   ac_status=$?
30453   grep -v '^ *+' conftest.er1 >conftest.err
30454   rm -f conftest.er1
30455   cat conftest.err >&5
30456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457   (exit $ac_status); } && {
30458          test -z "$ac_c_werror_flag" ||
30459          test ! -s conftest.err
30460        } && test -s conftest$ac_exeext &&
30461        $as_test_x conftest$ac_exeext; then
30462   ac_cv_lib_dnet_dnet_ntoa=yes
30463 else
30464   echo "$as_me: failed program was:" >&5
30465 sed 's/^/| /' conftest.$ac_ext >&5
30466
30467         ac_cv_lib_dnet_dnet_ntoa=no
30468 fi
30469
30470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30471       conftest$ac_exeext conftest.$ac_ext
30472 LIBS=$ac_check_lib_save_LIBS
30473 fi
30474 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30475 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30476 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30477   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30478 fi
30479
30480     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30481       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30482 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30483 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30484   echo $ECHO_N "(cached) $ECHO_C" >&6
30485 else
30486   ac_check_lib_save_LIBS=$LIBS
30487 LIBS="-ldnet_stub  $LIBS"
30488 cat >conftest.$ac_ext <<_ACEOF
30489 /* confdefs.h.  */
30490 _ACEOF
30491 cat confdefs.h >>conftest.$ac_ext
30492 cat >>conftest.$ac_ext <<_ACEOF
30493 /* end confdefs.h.  */
30494
30495 /* Override any GCC internal prototype to avoid an error.
30496    Use char because int might match the return type of a GCC
30497    builtin and then its argument prototype would still apply.  */
30498 #ifdef __cplusplus
30499 extern "C"
30500 #endif
30501 char dnet_ntoa ();
30502 int
30503 main ()
30504 {
30505 return dnet_ntoa ();
30506   ;
30507   return 0;
30508 }
30509 _ACEOF
30510 rm -f conftest.$ac_objext conftest$ac_exeext
30511 if { (ac_try="$ac_link"
30512 case "(($ac_try" in
30513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514   *) ac_try_echo=$ac_try;;
30515 esac
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517   (eval "$ac_link") 2>conftest.er1
30518   ac_status=$?
30519   grep -v '^ *+' conftest.er1 >conftest.err
30520   rm -f conftest.er1
30521   cat conftest.err >&5
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); } && {
30524          test -z "$ac_c_werror_flag" ||
30525          test ! -s conftest.err
30526        } && test -s conftest$ac_exeext &&
30527        $as_test_x conftest$ac_exeext; then
30528   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30529 else
30530   echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.$ac_ext >&5
30532
30533         ac_cv_lib_dnet_stub_dnet_ntoa=no
30534 fi
30535
30536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30537       conftest$ac_exeext conftest.$ac_ext
30538 LIBS=$ac_check_lib_save_LIBS
30539 fi
30540 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30541 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30542 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30543   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30544 fi
30545
30546     fi
30547 fi
30548
30549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30550       conftest$ac_exeext conftest.$ac_ext
30551     LIBS="$ac_xsave_LIBS"
30552
30553     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30554     # to get the SysV transport functions.
30555     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30556     # needs -lnsl.
30557     # The nsl library prevents programs from opening the X display
30558     # on Irix 5.2, according to T.E. Dickey.
30559     # The functions gethostbyname, getservbyname, and inet_addr are
30560     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30561     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30562 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30563 if test "${ac_cv_func_gethostbyname+set}" = set; then
30564   echo $ECHO_N "(cached) $ECHO_C" >&6
30565 else
30566   cat >conftest.$ac_ext <<_ACEOF
30567 /* confdefs.h.  */
30568 _ACEOF
30569 cat confdefs.h >>conftest.$ac_ext
30570 cat >>conftest.$ac_ext <<_ACEOF
30571 /* end confdefs.h.  */
30572 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30574 #define gethostbyname innocuous_gethostbyname
30575
30576 /* System header to define __stub macros and hopefully few prototypes,
30577     which can conflict with char gethostbyname (); below.
30578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30579     <limits.h> exists even on freestanding compilers.  */
30580
30581 #ifdef __STDC__
30582 # include <limits.h>
30583 #else
30584 # include <assert.h>
30585 #endif
30586
30587 #undef gethostbyname
30588
30589 /* Override any GCC internal prototype to avoid an error.
30590    Use char because int might match the return type of a GCC
30591    builtin and then its argument prototype would still apply.  */
30592 #ifdef __cplusplus
30593 extern "C"
30594 #endif
30595 char gethostbyname ();
30596 /* The GNU C library defines this for functions which it implements
30597     to always fail with ENOSYS.  Some functions are actually named
30598     something starting with __ and the normal name is an alias.  */
30599 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30600 choke me
30601 #endif
30602
30603 int
30604 main ()
30605 {
30606 return gethostbyname ();
30607   ;
30608   return 0;
30609 }
30610 _ACEOF
30611 rm -f conftest.$ac_objext conftest$ac_exeext
30612 if { (ac_try="$ac_link"
30613 case "(($ac_try" in
30614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30615   *) ac_try_echo=$ac_try;;
30616 esac
30617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30618   (eval "$ac_link") 2>conftest.er1
30619   ac_status=$?
30620   grep -v '^ *+' conftest.er1 >conftest.err
30621   rm -f conftest.er1
30622   cat conftest.err >&5
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); } && {
30625          test -z "$ac_c_werror_flag" ||
30626          test ! -s conftest.err
30627        } && test -s conftest$ac_exeext &&
30628        $as_test_x conftest$ac_exeext; then
30629   ac_cv_func_gethostbyname=yes
30630 else
30631   echo "$as_me: failed program was:" >&5
30632 sed 's/^/| /' conftest.$ac_ext >&5
30633
30634         ac_cv_func_gethostbyname=no
30635 fi
30636
30637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30638       conftest$ac_exeext conftest.$ac_ext
30639 fi
30640 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30641 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30642
30643     if test $ac_cv_func_gethostbyname = no; then
30644       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30645 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30646 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30647   echo $ECHO_N "(cached) $ECHO_C" >&6
30648 else
30649   ac_check_lib_save_LIBS=$LIBS
30650 LIBS="-lnsl  $LIBS"
30651 cat >conftest.$ac_ext <<_ACEOF
30652 /* confdefs.h.  */
30653 _ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h.  */
30657
30658 /* Override any GCC internal prototype to avoid an error.
30659    Use char because int might match the return type of a GCC
30660    builtin and then its argument prototype would still apply.  */
30661 #ifdef __cplusplus
30662 extern "C"
30663 #endif
30664 char gethostbyname ();
30665 int
30666 main ()
30667 {
30668 return gethostbyname ();
30669   ;
30670   return 0;
30671 }
30672 _ACEOF
30673 rm -f conftest.$ac_objext conftest$ac_exeext
30674 if { (ac_try="$ac_link"
30675 case "(($ac_try" in
30676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30677   *) ac_try_echo=$ac_try;;
30678 esac
30679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30680   (eval "$ac_link") 2>conftest.er1
30681   ac_status=$?
30682   grep -v '^ *+' conftest.er1 >conftest.err
30683   rm -f conftest.er1
30684   cat conftest.err >&5
30685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686   (exit $ac_status); } && {
30687          test -z "$ac_c_werror_flag" ||
30688          test ! -s conftest.err
30689        } && test -s conftest$ac_exeext &&
30690        $as_test_x conftest$ac_exeext; then
30691   ac_cv_lib_nsl_gethostbyname=yes
30692 else
30693   echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30695
30696         ac_cv_lib_nsl_gethostbyname=no
30697 fi
30698
30699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30700       conftest$ac_exeext conftest.$ac_ext
30701 LIBS=$ac_check_lib_save_LIBS
30702 fi
30703 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30704 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30705 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30706   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30707 fi
30708
30709       if test $ac_cv_lib_nsl_gethostbyname = no; then
30710         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30711 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30712 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30713   echo $ECHO_N "(cached) $ECHO_C" >&6
30714 else
30715   ac_check_lib_save_LIBS=$LIBS
30716 LIBS="-lbsd  $LIBS"
30717 cat >conftest.$ac_ext <<_ACEOF
30718 /* confdefs.h.  */
30719 _ACEOF
30720 cat confdefs.h >>conftest.$ac_ext
30721 cat >>conftest.$ac_ext <<_ACEOF
30722 /* end confdefs.h.  */
30723
30724 /* Override any GCC internal prototype to avoid an error.
30725    Use char because int might match the return type of a GCC
30726    builtin and then its argument prototype would still apply.  */
30727 #ifdef __cplusplus
30728 extern "C"
30729 #endif
30730 char gethostbyname ();
30731 int
30732 main ()
30733 {
30734 return gethostbyname ();
30735   ;
30736   return 0;
30737 }
30738 _ACEOF
30739 rm -f conftest.$ac_objext conftest$ac_exeext
30740 if { (ac_try="$ac_link"
30741 case "(($ac_try" in
30742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30743   *) ac_try_echo=$ac_try;;
30744 esac
30745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30746   (eval "$ac_link") 2>conftest.er1
30747   ac_status=$?
30748   grep -v '^ *+' conftest.er1 >conftest.err
30749   rm -f conftest.er1
30750   cat conftest.err >&5
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); } && {
30753          test -z "$ac_c_werror_flag" ||
30754          test ! -s conftest.err
30755        } && test -s conftest$ac_exeext &&
30756        $as_test_x conftest$ac_exeext; then
30757   ac_cv_lib_bsd_gethostbyname=yes
30758 else
30759   echo "$as_me: failed program was:" >&5
30760 sed 's/^/| /' conftest.$ac_ext >&5
30761
30762         ac_cv_lib_bsd_gethostbyname=no
30763 fi
30764
30765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30766       conftest$ac_exeext conftest.$ac_ext
30767 LIBS=$ac_check_lib_save_LIBS
30768 fi
30769 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30770 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30771 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30772   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30773 fi
30774
30775       fi
30776     fi
30777
30778     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30779     # socket/setsockopt and other routines are undefined under SCO ODT
30780     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30781     # on later versions), says Simon Leinen: it contains gethostby*
30782     # variants that don't use the name server (or something).  -lsocket
30783     # must be given before -lnsl if both are needed.  We assume that
30784     # if connect needs -lnsl, so does gethostbyname.
30785     { echo "$as_me:$LINENO: checking for connect" >&5
30786 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30787 if test "${ac_cv_func_connect+set}" = set; then
30788   echo $ECHO_N "(cached) $ECHO_C" >&6
30789 else
30790   cat >conftest.$ac_ext <<_ACEOF
30791 /* confdefs.h.  */
30792 _ACEOF
30793 cat confdefs.h >>conftest.$ac_ext
30794 cat >>conftest.$ac_ext <<_ACEOF
30795 /* end confdefs.h.  */
30796 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30798 #define connect innocuous_connect
30799
30800 /* System header to define __stub macros and hopefully few prototypes,
30801     which can conflict with char connect (); below.
30802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30803     <limits.h> exists even on freestanding compilers.  */
30804
30805 #ifdef __STDC__
30806 # include <limits.h>
30807 #else
30808 # include <assert.h>
30809 #endif
30810
30811 #undef connect
30812
30813 /* Override any GCC internal prototype to avoid an error.
30814    Use char because int might match the return type of a GCC
30815    builtin and then its argument prototype would still apply.  */
30816 #ifdef __cplusplus
30817 extern "C"
30818 #endif
30819 char connect ();
30820 /* The GNU C library defines this for functions which it implements
30821     to always fail with ENOSYS.  Some functions are actually named
30822     something starting with __ and the normal name is an alias.  */
30823 #if defined __stub_connect || defined __stub___connect
30824 choke me
30825 #endif
30826
30827 int
30828 main ()
30829 {
30830 return connect ();
30831   ;
30832   return 0;
30833 }
30834 _ACEOF
30835 rm -f conftest.$ac_objext conftest$ac_exeext
30836 if { (ac_try="$ac_link"
30837 case "(($ac_try" in
30838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30839   *) ac_try_echo=$ac_try;;
30840 esac
30841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30842   (eval "$ac_link") 2>conftest.er1
30843   ac_status=$?
30844   grep -v '^ *+' conftest.er1 >conftest.err
30845   rm -f conftest.er1
30846   cat conftest.err >&5
30847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848   (exit $ac_status); } && {
30849          test -z "$ac_c_werror_flag" ||
30850          test ! -s conftest.err
30851        } && test -s conftest$ac_exeext &&
30852        $as_test_x conftest$ac_exeext; then
30853   ac_cv_func_connect=yes
30854 else
30855   echo "$as_me: failed program was:" >&5
30856 sed 's/^/| /' conftest.$ac_ext >&5
30857
30858         ac_cv_func_connect=no
30859 fi
30860
30861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30862       conftest$ac_exeext conftest.$ac_ext
30863 fi
30864 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30865 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30866
30867     if test $ac_cv_func_connect = no; then
30868       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30869 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30870 if test "${ac_cv_lib_socket_connect+set}" = set; then
30871   echo $ECHO_N "(cached) $ECHO_C" >&6
30872 else
30873   ac_check_lib_save_LIBS=$LIBS
30874 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30875 cat >conftest.$ac_ext <<_ACEOF
30876 /* confdefs.h.  */
30877 _ACEOF
30878 cat confdefs.h >>conftest.$ac_ext
30879 cat >>conftest.$ac_ext <<_ACEOF
30880 /* end confdefs.h.  */
30881
30882 /* Override any GCC internal prototype to avoid an error.
30883    Use char because int might match the return type of a GCC
30884    builtin and then its argument prototype would still apply.  */
30885 #ifdef __cplusplus
30886 extern "C"
30887 #endif
30888 char connect ();
30889 int
30890 main ()
30891 {
30892 return connect ();
30893   ;
30894   return 0;
30895 }
30896 _ACEOF
30897 rm -f conftest.$ac_objext conftest$ac_exeext
30898 if { (ac_try="$ac_link"
30899 case "(($ac_try" in
30900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901   *) ac_try_echo=$ac_try;;
30902 esac
30903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904   (eval "$ac_link") 2>conftest.er1
30905   ac_status=$?
30906   grep -v '^ *+' conftest.er1 >conftest.err
30907   rm -f conftest.er1
30908   cat conftest.err >&5
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); } && {
30911          test -z "$ac_c_werror_flag" ||
30912          test ! -s conftest.err
30913        } && test -s conftest$ac_exeext &&
30914        $as_test_x conftest$ac_exeext; then
30915   ac_cv_lib_socket_connect=yes
30916 else
30917   echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30919
30920         ac_cv_lib_socket_connect=no
30921 fi
30922
30923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30924       conftest$ac_exeext conftest.$ac_ext
30925 LIBS=$ac_check_lib_save_LIBS
30926 fi
30927 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30928 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30929 if test $ac_cv_lib_socket_connect = yes; then
30930   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30931 fi
30932
30933     fi
30934
30935     # Guillermo Gomez says -lposix is necessary on A/UX.
30936     { echo "$as_me:$LINENO: checking for remove" >&5
30937 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30938 if test "${ac_cv_func_remove+set}" = set; then
30939   echo $ECHO_N "(cached) $ECHO_C" >&6
30940 else
30941   cat >conftest.$ac_ext <<_ACEOF
30942 /* confdefs.h.  */
30943 _ACEOF
30944 cat confdefs.h >>conftest.$ac_ext
30945 cat >>conftest.$ac_ext <<_ACEOF
30946 /* end confdefs.h.  */
30947 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30949 #define remove innocuous_remove
30950
30951 /* System header to define __stub macros and hopefully few prototypes,
30952     which can conflict with char remove (); below.
30953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30954     <limits.h> exists even on freestanding compilers.  */
30955
30956 #ifdef __STDC__
30957 # include <limits.h>
30958 #else
30959 # include <assert.h>
30960 #endif
30961
30962 #undef remove
30963
30964 /* Override any GCC internal prototype to avoid an error.
30965    Use char because int might match the return type of a GCC
30966    builtin and then its argument prototype would still apply.  */
30967 #ifdef __cplusplus
30968 extern "C"
30969 #endif
30970 char remove ();
30971 /* The GNU C library defines this for functions which it implements
30972     to always fail with ENOSYS.  Some functions are actually named
30973     something starting with __ and the normal name is an alias.  */
30974 #if defined __stub_remove || defined __stub___remove
30975 choke me
30976 #endif
30977
30978 int
30979 main ()
30980 {
30981 return remove ();
30982   ;
30983   return 0;
30984 }
30985 _ACEOF
30986 rm -f conftest.$ac_objext conftest$ac_exeext
30987 if { (ac_try="$ac_link"
30988 case "(($ac_try" in
30989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990   *) ac_try_echo=$ac_try;;
30991 esac
30992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993   (eval "$ac_link") 2>conftest.er1
30994   ac_status=$?
30995   grep -v '^ *+' conftest.er1 >conftest.err
30996   rm -f conftest.er1
30997   cat conftest.err >&5
30998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999   (exit $ac_status); } && {
31000          test -z "$ac_c_werror_flag" ||
31001          test ! -s conftest.err
31002        } && test -s conftest$ac_exeext &&
31003        $as_test_x conftest$ac_exeext; then
31004   ac_cv_func_remove=yes
31005 else
31006   echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31008
31009         ac_cv_func_remove=no
31010 fi
31011
31012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31013       conftest$ac_exeext conftest.$ac_ext
31014 fi
31015 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31016 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31017
31018     if test $ac_cv_func_remove = no; then
31019       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31020 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31021 if test "${ac_cv_lib_posix_remove+set}" = set; then
31022   echo $ECHO_N "(cached) $ECHO_C" >&6
31023 else
31024   ac_check_lib_save_LIBS=$LIBS
31025 LIBS="-lposix  $LIBS"
31026 cat >conftest.$ac_ext <<_ACEOF
31027 /* confdefs.h.  */
31028 _ACEOF
31029 cat confdefs.h >>conftest.$ac_ext
31030 cat >>conftest.$ac_ext <<_ACEOF
31031 /* end confdefs.h.  */
31032
31033 /* Override any GCC internal prototype to avoid an error.
31034    Use char because int might match the return type of a GCC
31035    builtin and then its argument prototype would still apply.  */
31036 #ifdef __cplusplus
31037 extern "C"
31038 #endif
31039 char remove ();
31040 int
31041 main ()
31042 {
31043 return remove ();
31044   ;
31045   return 0;
31046 }
31047 _ACEOF
31048 rm -f conftest.$ac_objext conftest$ac_exeext
31049 if { (ac_try="$ac_link"
31050 case "(($ac_try" in
31051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052   *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055   (eval "$ac_link") 2>conftest.er1
31056   ac_status=$?
31057   grep -v '^ *+' conftest.er1 >conftest.err
31058   rm -f conftest.er1
31059   cat conftest.err >&5
31060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061   (exit $ac_status); } && {
31062          test -z "$ac_c_werror_flag" ||
31063          test ! -s conftest.err
31064        } && test -s conftest$ac_exeext &&
31065        $as_test_x conftest$ac_exeext; then
31066   ac_cv_lib_posix_remove=yes
31067 else
31068   echo "$as_me: failed program was:" >&5
31069 sed 's/^/| /' conftest.$ac_ext >&5
31070
31071         ac_cv_lib_posix_remove=no
31072 fi
31073
31074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31075       conftest$ac_exeext conftest.$ac_ext
31076 LIBS=$ac_check_lib_save_LIBS
31077 fi
31078 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31079 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31080 if test $ac_cv_lib_posix_remove = yes; then
31081   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31082 fi
31083
31084     fi
31085
31086     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31087     { echo "$as_me:$LINENO: checking for shmat" >&5
31088 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31089 if test "${ac_cv_func_shmat+set}" = set; then
31090   echo $ECHO_N "(cached) $ECHO_C" >&6
31091 else
31092   cat >conftest.$ac_ext <<_ACEOF
31093 /* confdefs.h.  */
31094 _ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h.  */
31098 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31100 #define shmat innocuous_shmat
31101
31102 /* System header to define __stub macros and hopefully few prototypes,
31103     which can conflict with char shmat (); below.
31104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31105     <limits.h> exists even on freestanding compilers.  */
31106
31107 #ifdef __STDC__
31108 # include <limits.h>
31109 #else
31110 # include <assert.h>
31111 #endif
31112
31113 #undef shmat
31114
31115 /* Override any GCC internal prototype to avoid an error.
31116    Use char because int might match the return type of a GCC
31117    builtin and then its argument prototype would still apply.  */
31118 #ifdef __cplusplus
31119 extern "C"
31120 #endif
31121 char shmat ();
31122 /* The GNU C library defines this for functions which it implements
31123     to always fail with ENOSYS.  Some functions are actually named
31124     something starting with __ and the normal name is an alias.  */
31125 #if defined __stub_shmat || defined __stub___shmat
31126 choke me
31127 #endif
31128
31129 int
31130 main ()
31131 {
31132 return shmat ();
31133   ;
31134   return 0;
31135 }
31136 _ACEOF
31137 rm -f conftest.$ac_objext conftest$ac_exeext
31138 if { (ac_try="$ac_link"
31139 case "(($ac_try" in
31140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141   *) ac_try_echo=$ac_try;;
31142 esac
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144   (eval "$ac_link") 2>conftest.er1
31145   ac_status=$?
31146   grep -v '^ *+' conftest.er1 >conftest.err
31147   rm -f conftest.er1
31148   cat conftest.err >&5
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); } && {
31151          test -z "$ac_c_werror_flag" ||
31152          test ! -s conftest.err
31153        } && test -s conftest$ac_exeext &&
31154        $as_test_x conftest$ac_exeext; then
31155   ac_cv_func_shmat=yes
31156 else
31157   echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31159
31160         ac_cv_func_shmat=no
31161 fi
31162
31163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31164       conftest$ac_exeext conftest.$ac_ext
31165 fi
31166 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31167 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31168
31169     if test $ac_cv_func_shmat = no; then
31170       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31171 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31172 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31173   echo $ECHO_N "(cached) $ECHO_C" >&6
31174 else
31175   ac_check_lib_save_LIBS=$LIBS
31176 LIBS="-lipc  $LIBS"
31177 cat >conftest.$ac_ext <<_ACEOF
31178 /* confdefs.h.  */
31179 _ACEOF
31180 cat confdefs.h >>conftest.$ac_ext
31181 cat >>conftest.$ac_ext <<_ACEOF
31182 /* end confdefs.h.  */
31183
31184 /* Override any GCC internal prototype to avoid an error.
31185    Use char because int might match the return type of a GCC
31186    builtin and then its argument prototype would still apply.  */
31187 #ifdef __cplusplus
31188 extern "C"
31189 #endif
31190 char shmat ();
31191 int
31192 main ()
31193 {
31194 return shmat ();
31195   ;
31196   return 0;
31197 }
31198 _ACEOF
31199 rm -f conftest.$ac_objext conftest$ac_exeext
31200 if { (ac_try="$ac_link"
31201 case "(($ac_try" in
31202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203   *) ac_try_echo=$ac_try;;
31204 esac
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206   (eval "$ac_link") 2>conftest.er1
31207   ac_status=$?
31208   grep -v '^ *+' conftest.er1 >conftest.err
31209   rm -f conftest.er1
31210   cat conftest.err >&5
31211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); } && {
31213          test -z "$ac_c_werror_flag" ||
31214          test ! -s conftest.err
31215        } && test -s conftest$ac_exeext &&
31216        $as_test_x conftest$ac_exeext; then
31217   ac_cv_lib_ipc_shmat=yes
31218 else
31219   echo "$as_me: failed program was:" >&5
31220 sed 's/^/| /' conftest.$ac_ext >&5
31221
31222         ac_cv_lib_ipc_shmat=no
31223 fi
31224
31225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31226       conftest$ac_exeext conftest.$ac_ext
31227 LIBS=$ac_check_lib_save_LIBS
31228 fi
31229 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31230 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31231 if test $ac_cv_lib_ipc_shmat = yes; then
31232   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31233 fi
31234
31235     fi
31236   fi
31237
31238   # Check for libraries that X11R6 Xt/Xaw programs need.
31239   ac_save_LDFLAGS=$LDFLAGS
31240   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31241   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31242   # check for ICE first), but we must link in the order -lSM -lICE or
31243   # we get undefined symbols.  So assume we have SM if we have ICE.
31244   # These have to be linked with before -lX11, unlike the other
31245   # libraries we check for below, so use a different variable.
31246   # John Interrante, Karl Berry
31247   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31248 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31249 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31250   echo $ECHO_N "(cached) $ECHO_C" >&6
31251 else
31252   ac_check_lib_save_LIBS=$LIBS
31253 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31254 cat >conftest.$ac_ext <<_ACEOF
31255 /* confdefs.h.  */
31256 _ACEOF
31257 cat confdefs.h >>conftest.$ac_ext
31258 cat >>conftest.$ac_ext <<_ACEOF
31259 /* end confdefs.h.  */
31260
31261 /* Override any GCC internal prototype to avoid an error.
31262    Use char because int might match the return type of a GCC
31263    builtin and then its argument prototype would still apply.  */
31264 #ifdef __cplusplus
31265 extern "C"
31266 #endif
31267 char IceConnectionNumber ();
31268 int
31269 main ()
31270 {
31271 return IceConnectionNumber ();
31272   ;
31273   return 0;
31274 }
31275 _ACEOF
31276 rm -f conftest.$ac_objext conftest$ac_exeext
31277 if { (ac_try="$ac_link"
31278 case "(($ac_try" in
31279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280   *) ac_try_echo=$ac_try;;
31281 esac
31282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283   (eval "$ac_link") 2>conftest.er1
31284   ac_status=$?
31285   grep -v '^ *+' conftest.er1 >conftest.err
31286   rm -f conftest.er1
31287   cat conftest.err >&5
31288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289   (exit $ac_status); } && {
31290          test -z "$ac_c_werror_flag" ||
31291          test ! -s conftest.err
31292        } && test -s conftest$ac_exeext &&
31293        $as_test_x conftest$ac_exeext; then
31294   ac_cv_lib_ICE_IceConnectionNumber=yes
31295 else
31296   echo "$as_me: failed program was:" >&5
31297 sed 's/^/| /' conftest.$ac_ext >&5
31298
31299         ac_cv_lib_ICE_IceConnectionNumber=no
31300 fi
31301
31302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31303       conftest$ac_exeext conftest.$ac_ext
31304 LIBS=$ac_check_lib_save_LIBS
31305 fi
31306 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31307 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31308 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31309   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31310 fi
31311
31312   LDFLAGS=$ac_save_LDFLAGS
31313
31314 fi
31315
31316
31317         if test "$no_x" = "yes"; then
31318           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31319 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31320    { (exit 1); exit 1; }; }
31321         fi
31322
31323                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31324         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31325         AFMINSTALL=afminstall
31326         COMPILED_X_PROGRAM=0
31327
31328     fi
31329
31330     if test "$wxUSE_X11" = 1; then
31331         if test "$wxUSE_NANOX" = "yes"; then
31332             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31333 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31334             if test "x$MICROWIN" = x ; then
31335                 { echo "$as_me:$LINENO: result: not found" >&5
31336 echo "${ECHO_T}not found" >&6; }
31337                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31338 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31339    { (exit 1); exit 1; }; }
31340             else
31341                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31342 echo "${ECHO_T}$MICROWIN" >&6; }
31343                 cat >>confdefs.h <<\_ACEOF
31344 #define wxUSE_NANOX 1
31345 _ACEOF
31346
31347             fi
31348         fi
31349
31350         if test "$wxUSE_UNICODE" = "yes"; then
31351
31352
31353 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31354         if test -n "$ac_tool_prefix"; then
31355   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31356 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31359 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31360   echo $ECHO_N "(cached) $ECHO_C" >&6
31361 else
31362   case $PKG_CONFIG in
31363   [\\/]* | ?:[\\/]*)
31364   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31365   ;;
31366   *)
31367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31368 for as_dir in $PATH
31369 do
31370   IFS=$as_save_IFS
31371   test -z "$as_dir" && as_dir=.
31372   for ac_exec_ext in '' $ac_executable_extensions; do
31373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31374     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31376     break 2
31377   fi
31378 done
31379 done
31380 IFS=$as_save_IFS
31381
31382   ;;
31383 esac
31384 fi
31385 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31386 if test -n "$PKG_CONFIG"; then
31387   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31388 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31389 else
31390   { echo "$as_me:$LINENO: result: no" >&5
31391 echo "${ECHO_T}no" >&6; }
31392 fi
31393
31394
31395 fi
31396 if test -z "$ac_cv_path_PKG_CONFIG"; then
31397   ac_pt_PKG_CONFIG=$PKG_CONFIG
31398   # Extract the first word of "pkg-config", so it can be a program name with args.
31399 set dummy pkg-config; ac_word=$2
31400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31402 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31403   echo $ECHO_N "(cached) $ECHO_C" >&6
31404 else
31405   case $ac_pt_PKG_CONFIG in
31406   [\\/]* | ?:[\\/]*)
31407   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31408   ;;
31409   *)
31410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31411 for as_dir in $PATH
31412 do
31413   IFS=$as_save_IFS
31414   test -z "$as_dir" && as_dir=.
31415   for ac_exec_ext in '' $ac_executable_extensions; do
31416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31417     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31419     break 2
31420   fi
31421 done
31422 done
31423 IFS=$as_save_IFS
31424
31425   ;;
31426 esac
31427 fi
31428 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31429 if test -n "$ac_pt_PKG_CONFIG"; then
31430   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31431 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31432 else
31433   { echo "$as_me:$LINENO: result: no" >&5
31434 echo "${ECHO_T}no" >&6; }
31435 fi
31436
31437   if test "x$ac_pt_PKG_CONFIG" = x; then
31438     PKG_CONFIG=""
31439   else
31440     case $cross_compiling:$ac_tool_warned in
31441 yes:)
31442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31443 whose name does not start with the host triplet.  If you think this
31444 configuration is useful to you, please write to autoconf@gnu.org." >&5
31445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31446 whose name does not start with the host triplet.  If you think this
31447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31448 ac_tool_warned=yes ;;
31449 esac
31450     PKG_CONFIG=$ac_pt_PKG_CONFIG
31451   fi
31452 else
31453   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31454 fi
31455
31456 fi
31457 if test -n "$PKG_CONFIG"; then
31458         _pkg_min_version=0.9.0
31459         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31460 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31461         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31462                 { echo "$as_me:$LINENO: result: yes" >&5
31463 echo "${ECHO_T}yes" >&6; }
31464         else
31465                 { echo "$as_me:$LINENO: result: no" >&5
31466 echo "${ECHO_T}no" >&6; }
31467                 PKG_CONFIG=""
31468         fi
31469
31470 fi
31471
31472
31473 pkg_failed=no
31474 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31475 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31476
31477 if test -n "$PKG_CONFIG"; then
31478     if test -n "$PANGOX_CFLAGS"; then
31479         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31480     else
31481         if test -n "$PKG_CONFIG" && \
31482     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31483   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31484   ac_status=$?
31485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486   (exit $ac_status); }; then
31487   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31488 else
31489   pkg_failed=yes
31490 fi
31491     fi
31492 else
31493         pkg_failed=untried
31494 fi
31495 if test -n "$PKG_CONFIG"; then
31496     if test -n "$PANGOX_LIBS"; then
31497         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31498     else
31499         if test -n "$PKG_CONFIG" && \
31500     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31501   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31502   ac_status=$?
31503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504   (exit $ac_status); }; then
31505   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31506 else
31507   pkg_failed=yes
31508 fi
31509     fi
31510 else
31511         pkg_failed=untried
31512 fi
31513
31514
31515
31516 if test $pkg_failed = yes; then
31517
31518 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31519         _pkg_short_errors_supported=yes
31520 else
31521         _pkg_short_errors_supported=no
31522 fi
31523         if test $_pkg_short_errors_supported = yes; then
31524                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31525         else
31526                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31527         fi
31528         # Put the nasty error message in config.log where it belongs
31529         echo "$PANGOX_PKG_ERRORS" >&5
31530
31531
31532                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31533 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31534    { (exit 1); exit 1; }; }
31535
31536
31537 elif test $pkg_failed = untried; then
31538
31539                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31540 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31541    { (exit 1); exit 1; }; }
31542
31543
31544 else
31545         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31546         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31547         { echo "$as_me:$LINENO: result: yes" >&5
31548 echo "${ECHO_T}yes" >&6; }
31549
31550                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31551                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31552                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31553
31554 fi
31555
31556 pkg_failed=no
31557 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31558 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31559
31560 if test -n "$PKG_CONFIG"; then
31561     if test -n "$PANGOFT2_CFLAGS"; then
31562         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31563     else
31564         if test -n "$PKG_CONFIG" && \
31565     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31566   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31567   ac_status=$?
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); }; then
31570   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31571 else
31572   pkg_failed=yes
31573 fi
31574     fi
31575 else
31576         pkg_failed=untried
31577 fi
31578 if test -n "$PKG_CONFIG"; then
31579     if test -n "$PANGOFT2_LIBS"; then
31580         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31581     else
31582         if test -n "$PKG_CONFIG" && \
31583     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31584   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31585   ac_status=$?
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); }; then
31588   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31589 else
31590   pkg_failed=yes
31591 fi
31592     fi
31593 else
31594         pkg_failed=untried
31595 fi
31596
31597
31598
31599 if test $pkg_failed = yes; then
31600
31601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31602         _pkg_short_errors_supported=yes
31603 else
31604         _pkg_short_errors_supported=no
31605 fi
31606         if test $_pkg_short_errors_supported = yes; then
31607                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31608         else
31609                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31610         fi
31611         # Put the nasty error message in config.log where it belongs
31612         echo "$PANGOFT2_PKG_ERRORS" >&5
31613
31614
31615                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31616 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31617                     wxUSE_PRINTING_ARCHITECTURE="no"
31618
31619
31620 elif test $pkg_failed = untried; then
31621
31622                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31623 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31624                     wxUSE_PRINTING_ARCHITECTURE="no"
31625
31626
31627 else
31628         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31629         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31630         { echo "$as_me:$LINENO: result: yes" >&5
31631 echo "${ECHO_T}yes" >&6; }
31632
31633                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31634                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31635                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31636
31637 fi
31638
31639 pkg_failed=no
31640 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31641 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31642
31643 if test -n "$PKG_CONFIG"; then
31644     if test -n "$PANGOXFT_CFLAGS"; then
31645         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31646     else
31647         if test -n "$PKG_CONFIG" && \
31648     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31649   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31650   ac_status=$?
31651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652   (exit $ac_status); }; then
31653   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31654 else
31655   pkg_failed=yes
31656 fi
31657     fi
31658 else
31659         pkg_failed=untried
31660 fi
31661 if test -n "$PKG_CONFIG"; then
31662     if test -n "$PANGOXFT_LIBS"; then
31663         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31664     else
31665         if test -n "$PKG_CONFIG" && \
31666     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31667   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31668   ac_status=$?
31669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670   (exit $ac_status); }; then
31671   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31672 else
31673   pkg_failed=yes
31674 fi
31675     fi
31676 else
31677         pkg_failed=untried
31678 fi
31679
31680
31681
31682 if test $pkg_failed = yes; then
31683
31684 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31685         _pkg_short_errors_supported=yes
31686 else
31687         _pkg_short_errors_supported=no
31688 fi
31689         if test $_pkg_short_errors_supported = yes; then
31690                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31691         else
31692                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31693         fi
31694         # Put the nasty error message in config.log where it belongs
31695         echo "$PANGOXFT_PKG_ERRORS" >&5
31696
31697
31698                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31699 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31700
31701
31702 elif test $pkg_failed = untried; then
31703
31704                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31705 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31706
31707
31708 else
31709         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31710         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31711         { echo "$as_me:$LINENO: result: yes" >&5
31712 echo "${ECHO_T}yes" >&6; }
31713
31714                     cat >>confdefs.h <<\_ACEOF
31715 #define HAVE_PANGO_XFT 1
31716 _ACEOF
31717
31718                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31719                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31720                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31721
31722 fi
31723             save_LIBS="$LIBS"
31724             LIBS="$LIBS $PANGOX_LIBS"
31725
31726 for ac_func in pango_font_family_is_monospace
31727 do
31728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31732   echo $ECHO_N "(cached) $ECHO_C" >&6
31733 else
31734   cat >conftest.$ac_ext <<_ACEOF
31735 /* confdefs.h.  */
31736 _ACEOF
31737 cat confdefs.h >>conftest.$ac_ext
31738 cat >>conftest.$ac_ext <<_ACEOF
31739 /* end confdefs.h.  */
31740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31742 #define $ac_func innocuous_$ac_func
31743
31744 /* System header to define __stub macros and hopefully few prototypes,
31745     which can conflict with char $ac_func (); below.
31746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31747     <limits.h> exists even on freestanding compilers.  */
31748
31749 #ifdef __STDC__
31750 # include <limits.h>
31751 #else
31752 # include <assert.h>
31753 #endif
31754
31755 #undef $ac_func
31756
31757 /* Override any GCC internal prototype to avoid an error.
31758    Use char because int might match the return type of a GCC
31759    builtin and then its argument prototype would still apply.  */
31760 #ifdef __cplusplus
31761 extern "C"
31762 #endif
31763 char $ac_func ();
31764 /* The GNU C library defines this for functions which it implements
31765     to always fail with ENOSYS.  Some functions are actually named
31766     something starting with __ and the normal name is an alias.  */
31767 #if defined __stub_$ac_func || defined __stub___$ac_func
31768 choke me
31769 #endif
31770
31771 int
31772 main ()
31773 {
31774 return $ac_func ();
31775   ;
31776   return 0;
31777 }
31778 _ACEOF
31779 rm -f conftest.$ac_objext conftest$ac_exeext
31780 if { (ac_try="$ac_link"
31781 case "(($ac_try" in
31782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783   *) ac_try_echo=$ac_try;;
31784 esac
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786   (eval "$ac_link") 2>conftest.er1
31787   ac_status=$?
31788   grep -v '^ *+' conftest.er1 >conftest.err
31789   rm -f conftest.er1
31790   cat conftest.err >&5
31791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792   (exit $ac_status); } && {
31793          test -z "$ac_c_werror_flag" ||
31794          test ! -s conftest.err
31795        } && test -s conftest$ac_exeext &&
31796        $as_test_x conftest$ac_exeext; then
31797   eval "$as_ac_var=yes"
31798 else
31799   echo "$as_me: failed program was:" >&5
31800 sed 's/^/| /' conftest.$ac_ext >&5
31801
31802         eval "$as_ac_var=no"
31803 fi
31804
31805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31806       conftest$ac_exeext conftest.$ac_ext
31807 fi
31808 ac_res=`eval echo '${'$as_ac_var'}'`
31809                { echo "$as_me:$LINENO: result: $ac_res" >&5
31810 echo "${ECHO_T}$ac_res" >&6; }
31811 if test `eval echo '${'$as_ac_var'}'` = yes; then
31812   cat >>confdefs.h <<_ACEOF
31813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31814 _ACEOF
31815
31816 fi
31817 done
31818
31819             LIBS="$save_LIBS"
31820         fi
31821
31822         wxUSE_UNIVERSAL="yes"
31823
31824         if test "$wxUSE_NANOX" = "yes"; then
31825             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31826             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"
31827             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31828         else
31829             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31830         fi
31831
31832         TOOLKIT=X11
31833         GUIDIST=X11_DIST
31834     fi
31835
31836     if test "$wxUSE_MOTIF" = 1; then
31837         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31838 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31839
31840 ac_find_includes=
31841 for ac_dir in $SEARCH_INCLUDE /usr/include;
31842   do
31843     if test -f "$ac_dir/Xm/Xm.h"; then
31844       ac_find_includes=$ac_dir
31845       break
31846     fi
31847   done
31848
31849         if test "$ac_find_includes" != "" ; then
31850             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31851 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31852
31853     if test "x$ac_find_includes" = "x/usr/include"; then
31854     ac_path_to_include=""
31855   else
31856     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31857     result=$?
31858     if test $result = 0; then
31859       ac_path_to_include=""
31860     else
31861       ac_path_to_include=" -I$ac_find_includes"
31862     fi
31863   fi
31864
31865             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31866         else
31867             save_CFLAGS=$CFLAGS
31868             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31869
31870             cat >conftest.$ac_ext <<_ACEOF
31871 /* confdefs.h.  */
31872 _ACEOF
31873 cat confdefs.h >>conftest.$ac_ext
31874 cat >>conftest.$ac_ext <<_ACEOF
31875 /* end confdefs.h.  */
31876
31877                     #include <Xm/Xm.h>
31878
31879 int
31880 main ()
31881 {
31882
31883                     int version;
31884                     version = xmUseVersion;
31885
31886   ;
31887   return 0;
31888 }
31889 _ACEOF
31890 rm -f conftest.$ac_objext
31891 if { (ac_try="$ac_compile"
31892 case "(($ac_try" in
31893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894   *) ac_try_echo=$ac_try;;
31895 esac
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897   (eval "$ac_compile") 2>conftest.er1
31898   ac_status=$?
31899   grep -v '^ *+' conftest.er1 >conftest.err
31900   rm -f conftest.er1
31901   cat conftest.err >&5
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); } && {
31904          test -z "$ac_c_werror_flag" ||
31905          test ! -s conftest.err
31906        } && test -s conftest.$ac_objext; then
31907
31908                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31909 echo "${ECHO_T}found in default search path" >&6; }
31910                     COMPILED_X_PROGRAM=1
31911
31912 else
31913   echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31915
31916
31917                     { echo "$as_me:$LINENO: result: no" >&5
31918 echo "${ECHO_T}no" >&6; }
31919                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31920 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31921    { (exit 1); exit 1; }; }
31922
31923
31924 fi
31925
31926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31927
31928             CFLAGS=$save_CFLAGS
31929         fi
31930
31931
31932         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31933 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31934
31935   ac_find_libraries=
31936   for ac_dir in $SEARCH_LIB;
31937   do
31938     for ac_extension in a so sl dylib dll.a; do
31939       if test -f "$ac_dir/libXm.$ac_extension"; then
31940         ac_find_libraries=$ac_dir
31941         break 2
31942       fi
31943     done
31944   done
31945
31946
31947         if test "x$ac_find_libraries" != "x" ; then
31948             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31949 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31950
31951
31952     if test "$ac_find_libraries" = "default location"; then
31953     ac_path_to_link=""
31954   else
31955     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31956     result=$?
31957     if test $result = 0; then
31958       ac_path_to_link=""
31959     else
31960       ac_path_to_link=" -L$ac_find_libraries"
31961     fi
31962   fi
31963
31964             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31965         else
31966                                                 save_CFLAGS=$CFLAGS
31967             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31968             save_LIBS="$LIBS"
31969             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31970
31971             cat >conftest.$ac_ext <<_ACEOF
31972 /* confdefs.h.  */
31973 _ACEOF
31974 cat confdefs.h >>conftest.$ac_ext
31975 cat >>conftest.$ac_ext <<_ACEOF
31976 /* end confdefs.h.  */
31977
31978                     #include <Xm/Xm.h>
31979
31980 int
31981 main ()
31982 {
31983
31984                     int version;
31985                     version = xmUseVersion;
31986
31987   ;
31988   return 0;
31989 }
31990 _ACEOF
31991 rm -f conftest.$ac_objext conftest$ac_exeext
31992 if { (ac_try="$ac_link"
31993 case "(($ac_try" in
31994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995   *) ac_try_echo=$ac_try;;
31996 esac
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998   (eval "$ac_link") 2>conftest.er1
31999   ac_status=$?
32000   grep -v '^ *+' conftest.er1 >conftest.err
32001   rm -f conftest.er1
32002   cat conftest.err >&5
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); } && {
32005          test -z "$ac_c_werror_flag" ||
32006          test ! -s conftest.err
32007        } && test -s conftest$ac_exeext &&
32008        $as_test_x conftest$ac_exeext; then
32009
32010                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32011 echo "${ECHO_T}found in default search path" >&6; }
32012                     COMPILED_X_PROGRAM=1
32013
32014 else
32015   echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32017
32018
32019                     { echo "$as_me:$LINENO: result: no" >&5
32020 echo "${ECHO_T}no" >&6; }
32021                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32022 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32023    { (exit 1); exit 1; }; }
32024
32025
32026 fi
32027
32028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32029       conftest$ac_exeext conftest.$ac_ext
32030
32031             CFLAGS=$save_CFLAGS
32032             LIBS="$save_LIBS"
32033         fi
32034
32035         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32036 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32037         libp_link=""
32038         libsm_ice_link=""
32039         libs_found=0
32040         for libp in "" " -lXp"; do
32041             if test "$libs_found" = 0; then
32042                 for libsm_ice in "" " -lSM -lICE"; do
32043                     if test "$libs_found" = 0; then
32044                         save_LIBS="$LIBS"
32045                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32046                         save_CFLAGS=$CFLAGS
32047                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32048
32049                         cat >conftest.$ac_ext <<_ACEOF
32050 /* confdefs.h.  */
32051 _ACEOF
32052 cat confdefs.h >>conftest.$ac_ext
32053 cat >>conftest.$ac_ext <<_ACEOF
32054 /* end confdefs.h.  */
32055
32056                                 #include <Xm/Xm.h>
32057                                 #include <Xm/List.h>
32058
32059 int
32060 main ()
32061 {
32062
32063                                 XmString string = NULL;
32064                                 Widget w = NULL;
32065                                 int position = 0;
32066                                 XmListAddItem(w, string, position);
32067
32068   ;
32069   return 0;
32070 }
32071 _ACEOF
32072 rm -f conftest.$ac_objext conftest$ac_exeext
32073 if { (ac_try="$ac_link"
32074 case "(($ac_try" in
32075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076   *) ac_try_echo=$ac_try;;
32077 esac
32078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079   (eval "$ac_link") 2>conftest.er1
32080   ac_status=$?
32081   grep -v '^ *+' conftest.er1 >conftest.err
32082   rm -f conftest.er1
32083   cat conftest.err >&5
32084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085   (exit $ac_status); } && {
32086          test -z "$ac_c_werror_flag" ||
32087          test ! -s conftest.err
32088        } && test -s conftest$ac_exeext &&
32089        $as_test_x conftest$ac_exeext; then
32090
32091                                 libp_link="$libp"
32092                                 libsm_ice_link="$libsm_ice"
32093                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32094 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32095                                 libs_found=1
32096
32097 else
32098   echo "$as_me: failed program was:" >&5
32099 sed 's/^/| /' conftest.$ac_ext >&5
32100
32101
32102
32103 fi
32104
32105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32106       conftest$ac_exeext conftest.$ac_ext
32107
32108                         LIBS="$save_LIBS"
32109                         CFLAGS=$save_CFLAGS
32110                     fi
32111                 done
32112             fi
32113         done
32114
32115         if test "$libs_found" = 0; then
32116             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32117 echo "${ECHO_T}can't find the right libraries" >&6; }
32118             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32119 echo "$as_me: error: can't link a simple motif program" >&2;}
32120    { (exit 1); exit 1; }; }
32121         fi
32122
32123                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32124 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32125 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32126   echo $ECHO_N "(cached) $ECHO_C" >&6
32127 else
32128   ac_check_lib_save_LIBS=$LIBS
32129 LIBS="-lSgm  $LIBS"
32130 cat >conftest.$ac_ext <<_ACEOF
32131 /* confdefs.h.  */
32132 _ACEOF
32133 cat confdefs.h >>conftest.$ac_ext
32134 cat >>conftest.$ac_ext <<_ACEOF
32135 /* end confdefs.h.  */
32136
32137 /* Override any GCC internal prototype to avoid an error.
32138    Use char because int might match the return type of a GCC
32139    builtin and then its argument prototype would still apply.  */
32140 #ifdef __cplusplus
32141 extern "C"
32142 #endif
32143 char SgCreateList ();
32144 int
32145 main ()
32146 {
32147 return SgCreateList ();
32148   ;
32149   return 0;
32150 }
32151 _ACEOF
32152 rm -f conftest.$ac_objext conftest$ac_exeext
32153 if { (ac_try="$ac_link"
32154 case "(($ac_try" in
32155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156   *) ac_try_echo=$ac_try;;
32157 esac
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159   (eval "$ac_link") 2>conftest.er1
32160   ac_status=$?
32161   grep -v '^ *+' conftest.er1 >conftest.err
32162   rm -f conftest.er1
32163   cat conftest.err >&5
32164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165   (exit $ac_status); } && {
32166          test -z "$ac_c_werror_flag" ||
32167          test ! -s conftest.err
32168        } && test -s conftest$ac_exeext &&
32169        $as_test_x conftest$ac_exeext; then
32170   ac_cv_lib_Sgm_SgCreateList=yes
32171 else
32172   echo "$as_me: failed program was:" >&5
32173 sed 's/^/| /' conftest.$ac_ext >&5
32174
32175         ac_cv_lib_Sgm_SgCreateList=no
32176 fi
32177
32178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32179       conftest$ac_exeext conftest.$ac_ext
32180 LIBS=$ac_check_lib_save_LIBS
32181 fi
32182 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32183 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32184 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32185   libsgm_link=" -lSgm"
32186 fi
32187
32188
32189         save_CFLAGS=$CFLAGS
32190         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32191
32192         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32193 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32194 if test "${wx_cv_lib_motif2+set}" = set; then
32195   echo $ECHO_N "(cached) $ECHO_C" >&6
32196 else
32197   cat >conftest.$ac_ext <<_ACEOF
32198 /* confdefs.h.  */
32199 _ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h.  */
32203
32204                             #include <Xm/Xm.h>
32205
32206 int
32207 main ()
32208 {
32209
32210                             #if XmVersion < 2000
32211                             Not Motif 2
32212                             #endif
32213
32214   ;
32215   return 0;
32216 }
32217 _ACEOF
32218 rm -f conftest.$ac_objext
32219 if { (ac_try="$ac_compile"
32220 case "(($ac_try" in
32221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32222   *) ac_try_echo=$ac_try;;
32223 esac
32224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32225   (eval "$ac_compile") 2>conftest.er1
32226   ac_status=$?
32227   grep -v '^ *+' conftest.er1 >conftest.err
32228   rm -f conftest.er1
32229   cat conftest.err >&5
32230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231   (exit $ac_status); } && {
32232          test -z "$ac_c_werror_flag" ||
32233          test ! -s conftest.err
32234        } && test -s conftest.$ac_objext; then
32235   wx_cv_lib_motif2="yes"
32236 else
32237   echo "$as_me: failed program was:" >&5
32238 sed 's/^/| /' conftest.$ac_ext >&5
32239
32240         wx_cv_lib_motif2="no"
32241 fi
32242
32243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32244 fi
32245 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32246 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32247         if test "$wx_cv_lib_motif2" = "yes"; then
32248             cat >>confdefs.h <<\_ACEOF
32249 #define __WXMOTIF20__ 1
32250 _ACEOF
32251
32252         else
32253             cat >>confdefs.h <<\_ACEOF
32254 #define __WXMOTIF20__ 0
32255 _ACEOF
32256
32257         fi
32258
32259         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32260 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32261 if test "${wx_cv_lib_lesstif+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
32271                             #include <Xm/Xm.h>
32272
32273 int
32274 main ()
32275 {
32276
32277                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32278                             Not Lesstif
32279                             #endif
32280
32281   ;
32282   return 0;
32283 }
32284 _ACEOF
32285 rm -f conftest.$ac_objext
32286 if { (ac_try="$ac_compile"
32287 case "(($ac_try" in
32288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289   *) ac_try_echo=$ac_try;;
32290 esac
32291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32292   (eval "$ac_compile") 2>conftest.er1
32293   ac_status=$?
32294   grep -v '^ *+' conftest.er1 >conftest.err
32295   rm -f conftest.er1
32296   cat conftest.err >&5
32297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298   (exit $ac_status); } && {
32299          test -z "$ac_c_werror_flag" ||
32300          test ! -s conftest.err
32301        } && test -s conftest.$ac_objext; then
32302   wx_cv_lib_lesstif="yes"
32303 else
32304   echo "$as_me: failed program was:" >&5
32305 sed 's/^/| /' conftest.$ac_ext >&5
32306
32307         wx_cv_lib_lesstif="no"
32308 fi
32309
32310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311
32312 fi
32313 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32314 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32315         if test "$wx_cv_lib_lesstif" = "yes"; then
32316             cat >>confdefs.h <<\_ACEOF
32317 #define __WXLESSTIF__ 1
32318 _ACEOF
32319
32320         else
32321             cat >>confdefs.h <<\_ACEOF
32322 #define __WXLESSTIF__ 0
32323 _ACEOF
32324
32325         fi
32326
32327         CFLAGS=$save_CFLAGS
32328
32329         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32330         TOOLKIT=MOTIF
32331         GUIDIST=MOTIF_DIST
32332     fi
32333
32334         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32335                 if test "$wxUSE_LIBXPM" = "sys"; then
32336             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32337 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32338
32339   ac_find_libraries=
32340   for ac_dir in $SEARCH_LIB;
32341   do
32342     for ac_extension in a so sl dylib dll.a; do
32343       if test -f "$ac_dir/libXpm.$ac_extension"; then
32344         ac_find_libraries=$ac_dir
32345         break 2
32346       fi
32347     done
32348   done
32349
32350             if test "$ac_find_libraries" != "" ; then
32351
32352     if test "$ac_find_libraries" = "default location"; then
32353     ac_path_to_link=""
32354   else
32355     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32356     result=$?
32357     if test $result = 0; then
32358       ac_path_to_link=""
32359     else
32360       ac_path_to_link=" -L$ac_find_libraries"
32361     fi
32362   fi
32363
32364                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32365                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32366 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32367
32368                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32369 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32370 if test "${wx_cv_x11_xpm_h+set}" = set; then
32371   echo $ECHO_N "(cached) $ECHO_C" >&6
32372 else
32373
32374                         save_CFLAGS=$CFLAGS
32375                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32376
32377                         cat >conftest.$ac_ext <<_ACEOF
32378 /* confdefs.h.  */
32379 _ACEOF
32380 cat confdefs.h >>conftest.$ac_ext
32381 cat >>conftest.$ac_ext <<_ACEOF
32382 /* end confdefs.h.  */
32383
32384                                 #include <X11/xpm.h>
32385
32386 int
32387 main ()
32388 {
32389
32390                                 int version;
32391                                 version = XpmLibraryVersion();
32392
32393   ;
32394   return 0;
32395 }
32396 _ACEOF
32397 rm -f conftest.$ac_objext
32398 if { (ac_try="$ac_compile"
32399 case "(($ac_try" in
32400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401   *) ac_try_echo=$ac_try;;
32402 esac
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404   (eval "$ac_compile") 2>conftest.er1
32405   ac_status=$?
32406   grep -v '^ *+' conftest.er1 >conftest.err
32407   rm -f conftest.er1
32408   cat conftest.err >&5
32409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410   (exit $ac_status); } && {
32411          test -z "$ac_c_werror_flag" ||
32412          test ! -s conftest.err
32413        } && test -s conftest.$ac_objext; then
32414   wx_cv_x11_xpm_h=yes
32415 else
32416   echo "$as_me: failed program was:" >&5
32417 sed 's/^/| /' conftest.$ac_ext >&5
32418
32419         wx_cv_x11_xpm_h=no
32420
32421 fi
32422
32423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32424
32425                         CFLAGS=$save_CFLAGS
32426
32427
32428 fi
32429 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32430 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32431
32432                 if test $wx_cv_x11_xpm_h = "yes"; then
32433                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32434                     cat >>confdefs.h <<\_ACEOF
32435 #define wxHAVE_LIB_XPM 1
32436 _ACEOF
32437
32438                 else
32439                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32440 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32441                 fi
32442             fi
32443
32444         fi
32445
32446                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32447 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32448 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32449   echo $ECHO_N "(cached) $ECHO_C" >&6
32450 else
32451   ac_check_lib_save_LIBS=$LIBS
32452 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32453 cat >conftest.$ac_ext <<_ACEOF
32454 /* confdefs.h.  */
32455 _ACEOF
32456 cat confdefs.h >>conftest.$ac_ext
32457 cat >>conftest.$ac_ext <<_ACEOF
32458 /* end confdefs.h.  */
32459
32460 /* Override any GCC internal prototype to avoid an error.
32461    Use char because int might match the return type of a GCC
32462    builtin and then its argument prototype would still apply.  */
32463 #ifdef __cplusplus
32464 extern "C"
32465 #endif
32466 char XShapeQueryExtension ();
32467 int
32468 main ()
32469 {
32470 return XShapeQueryExtension ();
32471   ;
32472   return 0;
32473 }
32474 _ACEOF
32475 rm -f conftest.$ac_objext conftest$ac_exeext
32476 if { (ac_try="$ac_link"
32477 case "(($ac_try" in
32478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479   *) ac_try_echo=$ac_try;;
32480 esac
32481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482   (eval "$ac_link") 2>conftest.er1
32483   ac_status=$?
32484   grep -v '^ *+' conftest.er1 >conftest.err
32485   rm -f conftest.er1
32486   cat conftest.err >&5
32487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488   (exit $ac_status); } && {
32489          test -z "$ac_c_werror_flag" ||
32490          test ! -s conftest.err
32491        } && test -s conftest$ac_exeext &&
32492        $as_test_x conftest$ac_exeext; then
32493   ac_cv_lib_Xext_XShapeQueryExtension=yes
32494 else
32495   echo "$as_me: failed program was:" >&5
32496 sed 's/^/| /' conftest.$ac_ext >&5
32497
32498         ac_cv_lib_Xext_XShapeQueryExtension=no
32499 fi
32500
32501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32502       conftest$ac_exeext conftest.$ac_ext
32503 LIBS=$ac_check_lib_save_LIBS
32504 fi
32505 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32506 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32507 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32508
32509                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32510                       wxHAVE_XEXT_LIB=1
32511
32512 fi
32513
32514
32515         if test "$wxHAVE_XEXT_LIB" = 1; then
32516             save_CFLAGS="$CFLAGS"
32517             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32518
32519             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32520 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32521             cat >conftest.$ac_ext <<_ACEOF
32522 /* confdefs.h.  */
32523 _ACEOF
32524 cat confdefs.h >>conftest.$ac_ext
32525 cat >>conftest.$ac_ext <<_ACEOF
32526 /* end confdefs.h.  */
32527
32528                             #include <X11/Xlib.h>
32529                             #include <X11/extensions/shape.h>
32530
32531 int
32532 main ()
32533 {
32534
32535                             int dummy1, dummy2;
32536                             XShapeQueryExtension((Display*)NULL,
32537                                                  (int*)NULL, (int*)NULL);
32538
32539   ;
32540   return 0;
32541 }
32542 _ACEOF
32543 rm -f conftest.$ac_objext
32544 if { (ac_try="$ac_compile"
32545 case "(($ac_try" in
32546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547   *) ac_try_echo=$ac_try;;
32548 esac
32549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550   (eval "$ac_compile") 2>conftest.er1
32551   ac_status=$?
32552   grep -v '^ *+' conftest.er1 >conftest.err
32553   rm -f conftest.er1
32554   cat conftest.err >&5
32555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556   (exit $ac_status); } && {
32557          test -z "$ac_c_werror_flag" ||
32558          test ! -s conftest.err
32559        } && test -s conftest.$ac_objext; then
32560
32561                             cat >>confdefs.h <<\_ACEOF
32562 #define HAVE_XSHAPE 1
32563 _ACEOF
32564
32565                             { echo "$as_me:$LINENO: result: found" >&5
32566 echo "${ECHO_T}found" >&6; }
32567
32568 else
32569   echo "$as_me: failed program was:" >&5
32570 sed 's/^/| /' conftest.$ac_ext >&5
32571
32572
32573                             { echo "$as_me:$LINENO: result: not found" >&5
32574 echo "${ECHO_T}not found" >&6; }
32575
32576 fi
32577
32578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32579             CFLAGS="$save_CFLAGS"
32580
32581         fi
32582     fi
32583
32584     if test "$wxUSE_OSX_CARBON" = 1; then
32585         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32586 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32587         if test "$GCC" = yes; then
32588             { echo "$as_me:$LINENO: result: gcc" >&5
32589 echo "${ECHO_T}gcc" >&6; }
32590             CPPFLAGS_PASCAL="-fpascal-strings"
32591         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32592             { echo "$as_me:$LINENO: result: xlc" >&5
32593 echo "${ECHO_T}xlc" >&6; }
32594             CPPFLAGS_PASCAL="-qmacpstr"
32595         else
32596             { echo "$as_me:$LINENO: result: none" >&5
32597 echo "${ECHO_T}none" >&6; }
32598         fi
32599
32600         if test "x$wxUSE_UNIX" = "xyes"; then
32601             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32602         else
32603                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32604         fi
32605
32606         TOOLKIT=OSX_CARBON
32607                 GUIDIST=OSX_CARBON_DIST
32608                         WXBASEPORT="_carbon"
32609     fi
32610
32611     if test "$wxUSE_OSX_COCOA" = 1; then
32612         TOOLKIT=OSX_COCOA
32613         GUIDIST=OSX_COCOA_DIST
32614     fi
32615
32616     if test "$wxUSE_COCOA" = 1; then
32617         TOOLKIT=COCOA
32618         GUIDIST=COCOA_DIST
32619     fi
32620
32621     if test "$wxUSE_PM" = 1; then
32622         TOOLKIT=PM
32623         GUIDIST=PM_DIST
32624         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32625 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32626 if test "${wx_cv_spbcdata+set}" = set; then
32627   echo $ECHO_N "(cached) $ECHO_C" >&6
32628 else
32629
32630                 cat >conftest.$ac_ext <<_ACEOF
32631 /* confdefs.h.  */
32632 _ACEOF
32633 cat confdefs.h >>conftest.$ac_ext
32634 cat >>conftest.$ac_ext <<_ACEOF
32635 /* end confdefs.h.  */
32636
32637                         #define INCL_PM
32638                         #include <os2.h>
32639
32640 int
32641 main ()
32642 {
32643
32644                         SPBCDATA test;
32645
32646   ;
32647   return 0;
32648 }
32649 _ACEOF
32650 rm -f conftest.$ac_objext
32651 if { (ac_try="$ac_compile"
32652 case "(($ac_try" in
32653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654   *) ac_try_echo=$ac_try;;
32655 esac
32656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657   (eval "$ac_compile") 2>conftest.er1
32658   ac_status=$?
32659   grep -v '^ *+' conftest.er1 >conftest.err
32660   rm -f conftest.er1
32661   cat conftest.err >&5
32662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663   (exit $ac_status); } && {
32664          test -z "$ac_c_werror_flag" ||
32665          test ! -s conftest.err
32666        } && test -s conftest.$ac_objext; then
32667   wx_cv_spbcdata=yes
32668 else
32669   echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32671
32672         wx_cv_spbcdata=no
32673
32674 fi
32675
32676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32677
32678
32679 fi
32680 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32681 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32682
32683         if test $wx_cv_spbcdata = "yes"; then
32684             cat >>confdefs.h <<\_ACEOF
32685 #define HAVE_SPBCDATA 1
32686 _ACEOF
32687
32688         fi
32689     fi
32690
32691         if test "$TOOLKIT" = "PM" ; then
32692         TOOLKIT_DIR="os2"
32693     else
32694         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32695     fi
32696
32697     if test "$wxUSE_UNIVERSAL" = "yes"; then
32698         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32699         WIDGET_SET=univ
32700     fi
32701
32702         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32703     DISTDIR="wx\$(TOOLKIT)"
32704 else
32705     USE_GUI=0
32706
32707             TOOLKIT_DIR="base"
32708
32709         if test "$USE_WIN32" = 1 ; then
32710                         TOOLKIT="MSW"
32711     fi
32712
32713         GUIDIST="BASE_DIST"
32714     DISTDIR="wxBase"
32715 fi
32716
32717
32718
32719 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32720     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32721         wxUSE_UNICODE_UTF8=yes
32722     elif test "$USE_OS2" = 1 ; then
32723                                 wxUSE_UNICODE_UTF8=yes
32724     else
32725         wxUSE_UNICODE_UTF8=no
32726     fi
32727 fi
32728
32729
32730 if test "$wxUSE_GUI" = "yes"; then
32731     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32732
32733 for ac_header in X11/Xlib.h
32734 do
32735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32739   echo $ECHO_N "(cached) $ECHO_C" >&6
32740 else
32741   cat >conftest.$ac_ext <<_ACEOF
32742 /* confdefs.h.  */
32743 _ACEOF
32744 cat confdefs.h >>conftest.$ac_ext
32745 cat >>conftest.$ac_ext <<_ACEOF
32746 /* end confdefs.h.  */
32747
32748
32749 #include <$ac_header>
32750 _ACEOF
32751 rm -f conftest.$ac_objext
32752 if { (ac_try="$ac_compile"
32753 case "(($ac_try" in
32754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755   *) ac_try_echo=$ac_try;;
32756 esac
32757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758   (eval "$ac_compile") 2>conftest.er1
32759   ac_status=$?
32760   grep -v '^ *+' conftest.er1 >conftest.err
32761   rm -f conftest.er1
32762   cat conftest.err >&5
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); } && {
32765          test -z "$ac_c_werror_flag" ||
32766          test ! -s conftest.err
32767        } && test -s conftest.$ac_objext; then
32768   eval "$as_ac_Header=yes"
32769 else
32770   echo "$as_me: failed program was:" >&5
32771 sed 's/^/| /' conftest.$ac_ext >&5
32772
32773         eval "$as_ac_Header=no"
32774 fi
32775
32776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32777 fi
32778 ac_res=`eval echo '${'$as_ac_Header'}'`
32779                { echo "$as_me:$LINENO: result: $ac_res" >&5
32780 echo "${ECHO_T}$ac_res" >&6; }
32781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32782   cat >>confdefs.h <<_ACEOF
32783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32784 _ACEOF
32785
32786 fi
32787
32788 done
32789
32790
32791 for ac_header in X11/XKBlib.h
32792 do
32793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32797   echo $ECHO_N "(cached) $ECHO_C" >&6
32798 else
32799   cat >conftest.$ac_ext <<_ACEOF
32800 /* confdefs.h.  */
32801 _ACEOF
32802 cat confdefs.h >>conftest.$ac_ext
32803 cat >>conftest.$ac_ext <<_ACEOF
32804 /* end confdefs.h.  */
32805
32806                           #if HAVE_X11_XLIB_H
32807                             #include <X11/Xlib.h>
32808                           #endif
32809
32810
32811 #include <$ac_header>
32812 _ACEOF
32813 rm -f conftest.$ac_objext
32814 if { (ac_try="$ac_compile"
32815 case "(($ac_try" in
32816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32817   *) ac_try_echo=$ac_try;;
32818 esac
32819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32820   (eval "$ac_compile") 2>conftest.er1
32821   ac_status=$?
32822   grep -v '^ *+' conftest.er1 >conftest.err
32823   rm -f conftest.er1
32824   cat conftest.err >&5
32825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826   (exit $ac_status); } && {
32827          test -z "$ac_c_werror_flag" ||
32828          test ! -s conftest.err
32829        } && test -s conftest.$ac_objext; then
32830   eval "$as_ac_Header=yes"
32831 else
32832   echo "$as_me: failed program was:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32834
32835         eval "$as_ac_Header=no"
32836 fi
32837
32838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32839 fi
32840 ac_res=`eval echo '${'$as_ac_Header'}'`
32841                { echo "$as_me:$LINENO: result: $ac_res" >&5
32842 echo "${ECHO_T}$ac_res" >&6; }
32843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32844   cat >>confdefs.h <<_ACEOF
32845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32846 _ACEOF
32847
32848 fi
32849
32850 done
32851
32852     fi
32853 fi
32854
32855
32856
32857 if test "$wxUSE_DISPLAY" = "yes"; then
32858     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32859         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32860 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32861
32862   ac_find_libraries=
32863   for ac_dir in $SEARCH_LIB;
32864   do
32865     for ac_extension in a so sl dylib dll.a; do
32866       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32867         ac_find_libraries=$ac_dir
32868         break 2
32869       fi
32870     done
32871   done
32872
32873         if test "$ac_find_libraries" != "" ; then
32874
32875     if test "$ac_find_libraries" = "default location"; then
32876     ac_path_to_link=""
32877   else
32878     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32879     result=$?
32880     if test $result = 0; then
32881       ac_path_to_link=""
32882     else
32883       ac_path_to_link=" -L$ac_find_libraries"
32884     fi
32885   fi
32886
32887             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32888                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32889             fi
32890             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32891             { echo "$as_me:$LINENO: result: yes" >&5
32892 echo "${ECHO_T}yes" >&6; }
32893
32894             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32895 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32896
32897   ac_find_libraries=
32898   for ac_dir in $SEARCH_LIB;
32899   do
32900     for ac_extension in a so sl dylib dll.a; do
32901       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32902         ac_find_libraries=$ac_dir
32903         break 2
32904       fi
32905     done
32906   done
32907
32908             if test "$ac_find_libraries" != "" ; then
32909                 { echo "$as_me:$LINENO: result: yes" >&5
32910 echo "${ECHO_T}yes" >&6; }
32911
32912 for ac_header in X11/extensions/xf86vmode.h
32913 do
32914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32918   echo $ECHO_N "(cached) $ECHO_C" >&6
32919 else
32920   cat >conftest.$ac_ext <<_ACEOF
32921 /* confdefs.h.  */
32922 _ACEOF
32923 cat confdefs.h >>conftest.$ac_ext
32924 cat >>conftest.$ac_ext <<_ACEOF
32925 /* end confdefs.h.  */
32926
32927                                       #if HAVE_X11_XLIB_H
32928                                         #include <X11/Xlib.h>
32929                                       #endif
32930
32931
32932 #include <$ac_header>
32933 _ACEOF
32934 rm -f conftest.$ac_objext
32935 if { (ac_try="$ac_compile"
32936 case "(($ac_try" in
32937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938   *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941   (eval "$ac_compile") 2>conftest.er1
32942   ac_status=$?
32943   grep -v '^ *+' conftest.er1 >conftest.err
32944   rm -f conftest.er1
32945   cat conftest.err >&5
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); } && {
32948          test -z "$ac_c_werror_flag" ||
32949          test ! -s conftest.err
32950        } && test -s conftest.$ac_objext; then
32951   eval "$as_ac_Header=yes"
32952 else
32953   echo "$as_me: failed program was:" >&5
32954 sed 's/^/| /' conftest.$ac_ext >&5
32955
32956         eval "$as_ac_Header=no"
32957 fi
32958
32959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32960 fi
32961 ac_res=`eval echo '${'$as_ac_Header'}'`
32962                { echo "$as_me:$LINENO: result: $ac_res" >&5
32963 echo "${ECHO_T}$ac_res" >&6; }
32964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32965   cat >>confdefs.h <<_ACEOF
32966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32967 _ACEOF
32968
32969                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32970
32971 fi
32972
32973 done
32974
32975             else
32976                 { echo "$as_me:$LINENO: result: no" >&5
32977 echo "${ECHO_T}no" >&6; }
32978             fi
32979
32980         else
32981             { echo "$as_me:$LINENO: result: no" >&5
32982 echo "${ECHO_T}no" >&6; }
32983             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32984 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32985             wxUSE_DISPLAY="no"
32986         fi
32987     elif test "$wxUSE_MSW" = 1; then
32988         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32989 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32990 if test "${ac_cv_header_ddraw_h+set}" = set; then
32991   echo $ECHO_N "(cached) $ECHO_C" >&6
32992 else
32993   cat >conftest.$ac_ext <<_ACEOF
32994 /* confdefs.h.  */
32995 _ACEOF
32996 cat confdefs.h >>conftest.$ac_ext
32997 cat >>conftest.$ac_ext <<_ACEOF
32998 /* end confdefs.h.  */
32999 #include <windows.h>
33000
33001 #include <ddraw.h>
33002 _ACEOF
33003 rm -f conftest.$ac_objext
33004 if { (ac_try="$ac_compile"
33005 case "(($ac_try" in
33006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007   *) ac_try_echo=$ac_try;;
33008 esac
33009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33010   (eval "$ac_compile") 2>conftest.er1
33011   ac_status=$?
33012   grep -v '^ *+' conftest.er1 >conftest.err
33013   rm -f conftest.er1
33014   cat conftest.err >&5
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); } && {
33017          test -z "$ac_c_werror_flag" ||
33018          test ! -s conftest.err
33019        } && test -s conftest.$ac_objext; then
33020   ac_cv_header_ddraw_h=yes
33021 else
33022   echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33024
33025         ac_cv_header_ddraw_h=no
33026 fi
33027
33028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33029 fi
33030 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33031 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33032
33033
33034     fi
33035 fi
33036
33037 if test "$wxUSE_DETECT_SM" = "yes"; then
33038     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33039         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33040 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33041
33042   ac_find_libraries=
33043   for ac_dir in $SEARCH_LIB;
33044   do
33045     for ac_extension in a so sl dylib dll.a; do
33046       if test -f "$ac_dir/libSM.$ac_extension"; then
33047         ac_find_libraries=$ac_dir
33048         break 2
33049       fi
33050     done
33051   done
33052
33053         if test "$ac_find_libraries" != "" ; then
33054
33055     if test "$ac_find_libraries" = "default location"; then
33056     ac_path_to_link=""
33057   else
33058     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33059     result=$?
33060     if test $result = 0; then
33061       ac_path_to_link=""
33062     else
33063       ac_path_to_link=" -L$ac_find_libraries"
33064     fi
33065   fi
33066
33067             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33068                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33069             fi
33070             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33071             { echo "$as_me:$LINENO: result: yes" >&5
33072 echo "${ECHO_T}yes" >&6; }
33073         else
33074             { echo "$as_me:$LINENO: result: no" >&5
33075 echo "${ECHO_T}no" >&6; }
33076             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33077 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33078             wxUSE_DETECT_SM="no"
33079         fi
33080     else
33081         wxUSE_DETECT_SM="no"
33082     fi
33083 fi
33084
33085
33086
33087 USE_OPENGL=0
33088 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33089
33090
33091     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33092         OPENGL_LIBS="-framework OpenGL -framework AGL"
33093     elif test "$wxUSE_MSW" = 1; then
33094         OPENGL_LIBS="-lopengl32 -lglu32"
33095     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33096
33097                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33098 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33099
33100 ac_find_includes=
33101 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33102   do
33103     if test -f "$ac_dir/GL/gl.h"; then
33104       ac_find_includes=$ac_dir
33105       break
33106     fi
33107   done
33108
33109         if test "$ac_find_includes" != "" ; then
33110             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33111 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33112
33113     if test "x$ac_find_includes" = "x/usr/include"; then
33114     ac_path_to_include=""
33115   else
33116     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33117     result=$?
33118     if test $result = 0; then
33119       ac_path_to_include=""
33120     else
33121       ac_path_to_include=" -I$ac_find_includes"
33122     fi
33123   fi
33124
33125             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33126         else
33127             { echo "$as_me:$LINENO: result: not found" >&5
33128 echo "${ECHO_T}not found" >&6; }
33129         fi
33130
33131         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33132 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33133 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33134   echo $ECHO_N "(cached) $ECHO_C" >&6
33135 else
33136   cat >conftest.$ac_ext <<_ACEOF
33137 /* confdefs.h.  */
33138 _ACEOF
33139 cat confdefs.h >>conftest.$ac_ext
33140 cat >>conftest.$ac_ext <<_ACEOF
33141 /* end confdefs.h.  */
33142
33143
33144 #include <GL/gl.h>
33145 _ACEOF
33146 rm -f conftest.$ac_objext
33147 if { (ac_try="$ac_compile"
33148 case "(($ac_try" in
33149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150   *) ac_try_echo=$ac_try;;
33151 esac
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153   (eval "$ac_compile") 2>conftest.er1
33154   ac_status=$?
33155   grep -v '^ *+' conftest.er1 >conftest.err
33156   rm -f conftest.er1
33157   cat conftest.err >&5
33158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159   (exit $ac_status); } && {
33160          test -z "$ac_c_werror_flag" ||
33161          test ! -s conftest.err
33162        } && test -s conftest.$ac_objext; then
33163   ac_cv_header_GL_gl_h=yes
33164 else
33165   echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33167
33168         ac_cv_header_GL_gl_h=no
33169 fi
33170
33171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33172 fi
33173 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33174 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33175 if test $ac_cv_header_GL_gl_h = yes; then
33176
33177             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33178 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33179 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33180   echo $ECHO_N "(cached) $ECHO_C" >&6
33181 else
33182   cat >conftest.$ac_ext <<_ACEOF
33183 /* confdefs.h.  */
33184 _ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h.  */
33188
33189
33190 #include <GL/glu.h>
33191 _ACEOF
33192 rm -f conftest.$ac_objext
33193 if { (ac_try="$ac_compile"
33194 case "(($ac_try" in
33195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196   *) ac_try_echo=$ac_try;;
33197 esac
33198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199   (eval "$ac_compile") 2>conftest.er1
33200   ac_status=$?
33201   grep -v '^ *+' conftest.er1 >conftest.err
33202   rm -f conftest.er1
33203   cat conftest.err >&5
33204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205   (exit $ac_status); } && {
33206          test -z "$ac_c_werror_flag" ||
33207          test ! -s conftest.err
33208        } && test -s conftest.$ac_objext; then
33209   ac_cv_header_GL_glu_h=yes
33210 else
33211   echo "$as_me: failed program was:" >&5
33212 sed 's/^/| /' conftest.$ac_ext >&5
33213
33214         ac_cv_header_GL_glu_h=no
33215 fi
33216
33217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33218 fi
33219 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33220 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33221 if test $ac_cv_header_GL_glu_h = yes; then
33222
33223                 found_gl=0
33224
33225                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33226 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33227
33228   ac_find_libraries=
33229   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33230   do
33231     for ac_extension in a so sl dylib dll.a; do
33232       if test -f "$ac_dir/libGL.$ac_extension"; then
33233         ac_find_libraries=$ac_dir
33234         break 2
33235       fi
33236     done
33237   done
33238
33239                 if test "$ac_find_libraries" != "" ; then
33240                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33241 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33242
33243
33244     if test "$ac_find_libraries" = "default location"; then
33245     ac_path_to_link=""
33246   else
33247     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33248     result=$?
33249     if test $result = 0; then
33250       ac_path_to_link=""
33251     else
33252       ac_path_to_link=" -L$ac_find_libraries"
33253     fi
33254   fi
33255
33256                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33257                         LDFLAGS_GL="$ac_path_to_link"
33258                     fi
33259
33260                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33261 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33262
33263   ac_find_libraries=
33264   for ac_dir in $SEARCH_LIB;
33265   do
33266     for ac_extension in a so sl dylib dll.a; do
33267       if test -f "$ac_dir/libGLU.$ac_extension"; then
33268         ac_find_libraries=$ac_dir
33269         break 2
33270       fi
33271     done
33272   done
33273
33274                     if test "$ac_find_libraries" != "" ; then
33275
33276     if test "$ac_find_libraries" = "default location"; then
33277     ac_path_to_link=""
33278   else
33279     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33280     result=$?
33281     if test $result = 0; then
33282       ac_path_to_link=""
33283     else
33284       ac_path_to_link=" -L$ac_find_libraries"
33285     fi
33286   fi
33287
33288                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33289                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33290                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33291                         fi
33292
33293                         found_gl=1
33294                         OPENGL_LIBS="-lGL -lGLU"
33295                         { echo "$as_me:$LINENO: result: yes" >&5
33296 echo "${ECHO_T}yes" >&6; }
33297                     else
33298                         { echo "$as_me:$LINENO: result: no" >&5
33299 echo "${ECHO_T}no" >&6; }
33300                     fi
33301                 else
33302                     { echo "$as_me:$LINENO: result: no" >&5
33303 echo "${ECHO_T}no" >&6; }
33304                 fi
33305
33306                 if test "$found_gl" != 1; then
33307                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33308 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33309
33310   ac_find_libraries=
33311   for ac_dir in $SEARCH_LIB;
33312   do
33313     for ac_extension in a so sl dylib dll.a; do
33314       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33315         ac_find_libraries=$ac_dir
33316         break 2
33317       fi
33318     done
33319   done
33320
33321                     if test "$ac_find_libraries" != "" ; then
33322
33323     if test "$ac_find_libraries" = "default location"; then
33324     ac_path_to_link=""
33325   else
33326     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33327     result=$?
33328     if test $result = 0; then
33329       ac_path_to_link=""
33330     else
33331       ac_path_to_link=" -L$ac_find_libraries"
33332     fi
33333   fi
33334
33335                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33336                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33337                         { echo "$as_me:$LINENO: result: yes" >&5
33338 echo "${ECHO_T}yes" >&6; }
33339                     else
33340                         { echo "$as_me:$LINENO: result: no" >&5
33341 echo "${ECHO_T}no" >&6; }
33342                     fi
33343                 fi
33344
33345 fi
33346
33347
33348
33349 fi
33350
33351
33352
33353         if test "x$OPENGL_LIBS" = "x"; then
33354             if test "$wxUSE_OPENGL" = "yes"; then
33355                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33356 echo "$as_me: error: OpenGL libraries not available" >&2;}
33357    { (exit 1); exit 1; }; }
33358             else
33359                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33360 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
33361                 wxUSE_OPENGL=no
33362                 USE_OPENGL=0
33363             fi
33364         else
33365                         wxUSE_OPENGL=yes
33366         fi
33367     else
33368         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33369 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33370         wxUSE_OPENGL="no"
33371     fi
33372
33373     if test "$wxUSE_OPENGL" = "yes"; then
33374         USE_OPENGL=1
33375         cat >>confdefs.h <<\_ACEOF
33376 #define wxUSE_OPENGL 1
33377 _ACEOF
33378
33379         cat >>confdefs.h <<\_ACEOF
33380 #define wxUSE_GLCANVAS 1
33381 _ACEOF
33382
33383         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33384     fi
33385 fi
33386
33387
33388 if test -n "$TOOLKIT" ; then
33389     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33390 fi
33391
33392
33393
33394 if test "$wxUSE_SHARED" = "yes"; then
33395     case "${host}" in
33396       *-pc-msdosdjgpp )
33397                 wxUSE_SHARED=no
33398         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33399 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33400       ;;
33401     esac
33402 fi
33403
33404 if test "$wxUSE_SHARED" = "yes"; then
33405
33406
33407     case "${host}" in
33408         *-*-cygwin* | *-*-mingw* )
33409                                                                                                 wx_cv_version_script=no
33410             ;;
33411
33412         *)
33413             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33414 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33415 if test "${wx_cv_version_script+set}" = set; then
33416   echo $ECHO_N "(cached) $ECHO_C" >&6
33417 else
33418
33419                 echo "VER_1 { *; };" >conftest.sym
33420                 echo "int main() { return 0; }" >conftest.cpp
33421
33422                 if { ac_try='
33423                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33424                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426   (eval $ac_try) 2>&5
33427   ac_status=$?
33428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429   (exit $ac_status); }; } ; then
33430                   if test -s conftest.stderr ; then
33431                       wx_cv_version_script=no
33432                   else
33433                       wx_cv_version_script=yes
33434                   fi
33435                 else
33436                   wx_cv_version_script=no
33437                 fi
33438
33439                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33440                 then
33441                   echo "struct B { virtual ~B() { } }; \
33442                         struct D : public B { }; \
33443                         void F() { D d; }" > conftest.cpp
33444
33445                   if { ac_try='
33446                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33447                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33449   (eval $ac_try) 2>&5
33450   ac_status=$?
33451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452   (exit $ac_status); }; } &&
33453                      { ac_try='
33454                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33455                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33457   (eval $ac_try) 2>&5
33458   ac_status=$?
33459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460   (exit $ac_status); }; }
33461                   then
33462                     if { ac_try='
33463                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33464                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33466   (eval $ac_try) 2>&5
33467   ac_status=$?
33468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469   (exit $ac_status); }; }
33470                     then
33471                       wx_cv_version_script=yes
33472                     else
33473                       wx_cv_version_script=no
33474                     fi
33475                   fi
33476                 fi
33477
33478                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33479                 rm -f conftest1.output conftest2.output conftest3.output
33480
33481 fi
33482 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33483 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33484
33485             if test $wx_cv_version_script = yes ; then
33486                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33487             fi
33488             ;;
33489     esac
33490
33491
33492             if test "$wxUSE_VISIBILITY" != "no"; then
33493
33494
33495   if test -n "$GCC"; then
33496     CFLAGS_VISIBILITY="-fvisibility=hidden"
33497     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33498     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33499 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33500     if test "${wx_cv_cc_visibility+set}" = set; then
33501   echo $ECHO_N "(cached) $ECHO_C" >&6
33502 else
33503
33504       wx_save_CXXFLAGS="$CXXFLAGS"
33505       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33506       ac_ext=cpp
33507 ac_cpp='$CXXCPP $CPPFLAGS'
33508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33511
33512       cat >conftest.$ac_ext <<_ACEOF
33513 /* confdefs.h.  */
33514 _ACEOF
33515 cat confdefs.h >>conftest.$ac_ext
33516 cat >>conftest.$ac_ext <<_ACEOF
33517 /* end confdefs.h.  */
33518
33519          /* we need gcc >= 4.0, older versions with visibility support
33520             didn't have class visibility: */
33521          #if defined(__GNUC__) && __GNUC__ < 4
33522          error this gcc is too old;
33523          #endif
33524
33525          /* visibility only makes sense for ELF shared libs: */
33526          #if !defined(__ELF__) && !defined(__APPLE__)
33527          error this platform has no visibility;
33528          #endif
33529
33530          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33531          extern __attribute__((__visibility__("default"))) int exportedvar;
33532          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33533          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33534          class __attribute__((__visibility__("default"))) Foo {
33535            Foo() {}
33536          };
33537
33538 int
33539 main ()
33540 {
33541
33542   ;
33543   return 0;
33544 }
33545 _ACEOF
33546 rm -f conftest.$ac_objext
33547 if { (ac_try="$ac_compile"
33548 case "(($ac_try" in
33549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33550   *) ac_try_echo=$ac_try;;
33551 esac
33552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33553   (eval "$ac_compile") 2>conftest.er1
33554   ac_status=$?
33555   grep -v '^ *+' conftest.er1 >conftest.err
33556   rm -f conftest.er1
33557   cat conftest.err >&5
33558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559   (exit $ac_status); } && {
33560          test -z "$ac_cxx_werror_flag" ||
33561          test ! -s conftest.err
33562        } && test -s conftest.$ac_objext; then
33563   wx_cv_cc_visibility=yes
33564 else
33565   echo "$as_me: failed program was:" >&5
33566 sed 's/^/| /' conftest.$ac_ext >&5
33567
33568         wx_cv_cc_visibility=no
33569 fi
33570
33571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33572       ac_ext=c
33573 ac_cpp='$CPP $CPPFLAGS'
33574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33577
33578       CXXFLAGS="$wx_save_CXXFLAGS"
33579 fi
33580
33581     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33582 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33583     if test $wx_cv_cc_visibility = yes; then
33584                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33585 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33586       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33587   echo $ECHO_N "(cached) $ECHO_C" >&6
33588 else
33589
33590         wx_save_CXXFLAGS="$CXXFLAGS"
33591         wx_save_LDFLAGS="$LDFLAGS"
33592         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33593         LDFLAGS="$LDFLAGS -shared -fPIC"
33594         ac_ext=cpp
33595 ac_cpp='$CXXCPP $CPPFLAGS'
33596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33599
33600         cat >conftest.$ac_ext <<_ACEOF
33601 /* confdefs.h.  */
33602 _ACEOF
33603 cat confdefs.h >>conftest.$ac_ext
33604 cat >>conftest.$ac_ext <<_ACEOF
33605 /* end confdefs.h.  */
33606
33607             #include <string>
33608
33609 int
33610 main ()
33611 {
33612
33613             std::string s("hello");
33614             return s.length();
33615
33616   ;
33617   return 0;
33618 }
33619 _ACEOF
33620 rm -f conftest.$ac_objext conftest$ac_exeext
33621 if { (ac_try="$ac_link"
33622 case "(($ac_try" in
33623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624   *) ac_try_echo=$ac_try;;
33625 esac
33626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627   (eval "$ac_link") 2>conftest.er1
33628   ac_status=$?
33629   grep -v '^ *+' conftest.er1 >conftest.err
33630   rm -f conftest.er1
33631   cat conftest.err >&5
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); } && {
33634          test -z "$ac_cxx_werror_flag" ||
33635          test ! -s conftest.err
33636        } && test -s conftest$ac_exeext &&
33637        $as_test_x conftest$ac_exeext; then
33638   wx_cv_cc_broken_libstdcxx_visibility=no
33639 else
33640   echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33642
33643         wx_cv_cc_broken_libstdcxx_visibility=yes
33644 fi
33645
33646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33647       conftest$ac_exeext conftest.$ac_ext
33648         ac_ext=c
33649 ac_cpp='$CPP $CPPFLAGS'
33650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33653
33654         CXXFLAGS="$wx_save_CXXFLAGS"
33655         LDFLAGS="$wx_save_LDFLAGS"
33656 fi
33657
33658       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33659 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33660
33661       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33662         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33663 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33664         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33665   echo $ECHO_N "(cached) $ECHO_C" >&6
33666 else
33667
33668           ac_ext=cpp
33669 ac_cpp='$CXXCPP $CPPFLAGS'
33670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33673
33674           cat >conftest.$ac_ext <<_ACEOF
33675 /* confdefs.h.  */
33676 _ACEOF
33677 cat confdefs.h >>conftest.$ac_ext
33678 cat >>conftest.$ac_ext <<_ACEOF
33679 /* end confdefs.h.  */
33680
33681               #pragma GCC visibility push(default)
33682               #include <string>
33683               #pragma GCC visibility pop
33684
33685 int
33686 main ()
33687 {
33688
33689               std::string s("hello");
33690               return s.length();
33691
33692   ;
33693   return 0;
33694 }
33695 _ACEOF
33696 rm -f conftest.$ac_objext conftest$ac_exeext
33697 if { (ac_try="$ac_link"
33698 case "(($ac_try" in
33699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33700   *) ac_try_echo=$ac_try;;
33701 esac
33702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33703   (eval "$ac_link") 2>conftest.er1
33704   ac_status=$?
33705   grep -v '^ *+' conftest.er1 >conftest.err
33706   rm -f conftest.er1
33707   cat conftest.err >&5
33708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709   (exit $ac_status); } && {
33710          test -z "$ac_cxx_werror_flag" ||
33711          test ! -s conftest.err
33712        } && test -s conftest$ac_exeext &&
33713        $as_test_x conftest$ac_exeext; then
33714   wx_cv_cc_visibility_workaround=no
33715 else
33716   echo "$as_me: failed program was:" >&5
33717 sed 's/^/| /' conftest.$ac_ext >&5
33718
33719         wx_cv_cc_visibility_workaround=yes
33720 fi
33721
33722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33723       conftest$ac_exeext conftest.$ac_ext
33724           ac_ext=c
33725 ac_cpp='$CPP $CPPFLAGS'
33726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33729
33730
33731 fi
33732
33733         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33734 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33735
33736         if test $wx_cv_cc_visibility_workaround = no; then
33737                     wx_cv_cc_visibility=no
33738         fi
33739       fi
33740     fi
33741
33742     if test $wx_cv_cc_visibility = yes; then
33743       cat >>confdefs.h <<\_ACEOF
33744 #define HAVE_VISIBILITY 1
33745 _ACEOF
33746
33747       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33748         cat >>confdefs.h <<\_ACEOF
33749 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33750 _ACEOF
33751
33752       fi
33753     else
33754       CFLAGS_VISIBILITY=""
33755       CXXFLAGS_VISIBILITY=""
33756     fi
33757
33758
33759   fi
33760
33761     fi
33762
33763         if test "x$SUNCXX" = xyes; then
33764         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33765         WXCONFIG_RPATH="-R\$libdir"
33766     else
33767     case "${host}" in
33768       *-*-linux* | *-*-gnu* )
33769         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33770         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33771         ;;
33772
33773       *-*-solaris2* )
33774
33775                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33776
33777                         saveLdflags="$LDFLAGS"
33778         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33779         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33780 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33781         cat >conftest.$ac_ext <<_ACEOF
33782 /* confdefs.h.  */
33783 _ACEOF
33784 cat confdefs.h >>conftest.$ac_ext
33785 cat >>conftest.$ac_ext <<_ACEOF
33786 /* end confdefs.h.  */
33787
33788 int
33789 main ()
33790 {
33791
33792   ;
33793   return 0;
33794 }
33795 _ACEOF
33796 rm -f conftest.$ac_objext conftest$ac_exeext
33797 if { (ac_try="$ac_link"
33798 case "(($ac_try" in
33799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800   *) ac_try_echo=$ac_try;;
33801 esac
33802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33803   (eval "$ac_link") 2>conftest.er1
33804   ac_status=$?
33805   grep -v '^ *+' conftest.er1 >conftest.err
33806   rm -f conftest.er1
33807   cat conftest.err >&5
33808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809   (exit $ac_status); } && {
33810          test -z "$ac_c_werror_flag" ||
33811          test ! -s conftest.err
33812        } && test -s conftest$ac_exeext &&
33813        $as_test_x conftest$ac_exeext; then
33814
33815                 { echo "$as_me:$LINENO: result: yes" >&5
33816 echo "${ECHO_T}yes" >&6; }
33817                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33818                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33819
33820 else
33821   echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33823
33824
33825                 { echo "$as_me:$LINENO: result: no" >&5
33826 echo "${ECHO_T}no" >&6; }
33827                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33828 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33829                 LDFLAGS="$saveLdflags -Wl,-R,/"
33830                 cat >conftest.$ac_ext <<_ACEOF
33831 /* confdefs.h.  */
33832 _ACEOF
33833 cat confdefs.h >>conftest.$ac_ext
33834 cat >>conftest.$ac_ext <<_ACEOF
33835 /* end confdefs.h.  */
33836
33837 int
33838 main ()
33839 {
33840
33841   ;
33842   return 0;
33843 }
33844 _ACEOF
33845 rm -f conftest.$ac_objext conftest$ac_exeext
33846 if { (ac_try="$ac_link"
33847 case "(($ac_try" in
33848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33849   *) ac_try_echo=$ac_try;;
33850 esac
33851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33852   (eval "$ac_link") 2>conftest.er1
33853   ac_status=$?
33854   grep -v '^ *+' conftest.er1 >conftest.err
33855   rm -f conftest.er1
33856   cat conftest.err >&5
33857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858   (exit $ac_status); } && {
33859          test -z "$ac_c_werror_flag" ||
33860          test ! -s conftest.err
33861        } && test -s conftest$ac_exeext &&
33862        $as_test_x conftest$ac_exeext; then
33863
33864                         { echo "$as_me:$LINENO: result: yes" >&5
33865 echo "${ECHO_T}yes" >&6; }
33866                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33867                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33868
33869 else
33870   echo "$as_me: failed program was:" >&5
33871 sed 's/^/| /' conftest.$ac_ext >&5
33872
33873
33874                         { echo "$as_me:$LINENO: result: no" >&5
33875 echo "${ECHO_T}no" >&6; }
33876
33877 fi
33878
33879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33880       conftest$ac_exeext conftest.$ac_ext
33881
33882 fi
33883
33884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33885       conftest$ac_exeext conftest.$ac_ext
33886         LDFLAGS="$saveLdflags"
33887       ;;
33888
33889       *-*-darwin* )
33890         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
33891         if test "$install_name_tool" -a -x "$install_name_tool"; then
33892             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
33893             cat <<EOF >change-install-names
33894 #!/bin/sh
33895 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33896 for i in \${libnames} ; do
33897     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
33898     for dep in \${libnames} ; do
33899         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
33900     done
33901 done
33902 EOF
33903             chmod +x change-install-names
33904             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
33905         fi
33906
33907                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
33908       ;;
33909
33910       *-*-cygwin* | *-*-mingw32* )
33911         ;;
33912
33913       *-*-hpux* )
33914         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33915         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33916         ;;
33917
33918     esac
33919     fi
33920
33921             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33922
33923     if test $wxUSE_RPATH = "no"; then
33924         SAMPLES_RPATH_FLAG=''
33925         DYLIB_PATH_POSTLINK=''
33926         WXCONFIG_RPATH=''
33927     fi
33928
33929     SHARED=1
33930
33931 else
33932
33933     config_linkage_component="-static"
33934     SHARED=0
33935
33936 fi
33937
33938
33939 UNICODE=0
33940 lib_unicode_suffix=
33941 WX_CHARTYPE="ansi"
33942 if test "$wxUSE_UNICODE" = "yes"; then
33943     lib_unicode_suffix=u
33944     WX_CHARTYPE="unicode"
33945     UNICODE=1
33946 fi
33947
33948 lib_debug_suffix=
33949 WX_DEBUGTYPE="release"
33950 DEBUG_FLAG=0
33951 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33952     lib_debug_suffix=d
33953     WX_DEBUGTYPE="debug"
33954     DEBUG_FLAG=1
33955 fi
33956
33957 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33958 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33959
33960 DEBUG_INFO=0
33961 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33962     DEBUG_INFO=1
33963 fi
33964
33965 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33966
33967 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
33968
33969 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33970
33971
33972 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33973     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33974 else
33975     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33976 fi
33977 if test "${TOOLKIT_DIR}" = "os2"; then
33978     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33979 else
33980     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33981 fi
33982
33983
33984
33985 if test "$wxUSE_COCOA" = 1; then
33986
33987     ac_ext=c
33988 ac_cpp='$CPP $CPPFLAGS'
33989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33992
33993 ac_ext=m
33994
33995     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33996 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33997     cat >conftest.$ac_ext <<_ACEOF
33998 /* confdefs.h.  */
33999 _ACEOF
34000 cat confdefs.h >>conftest.$ac_ext
34001 cat >>conftest.$ac_ext <<_ACEOF
34002 /* end confdefs.h.  */
34003 #include <AppKit/NSEvent.h>
34004 #include <CoreFoundation/CoreFoundation.h>
34005
34006 int
34007 main ()
34008 {
34009
34010   ;
34011   return 0;
34012 }
34013 _ACEOF
34014 rm -f conftest.$ac_objext
34015 if { (ac_try="$ac_compile"
34016 case "(($ac_try" in
34017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018   *) ac_try_echo=$ac_try;;
34019 esac
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021   (eval "$ac_compile") 2>conftest.er1
34022   ac_status=$?
34023   grep -v '^ *+' conftest.er1 >conftest.err
34024   rm -f conftest.er1
34025   cat conftest.err >&5
34026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027   (exit $ac_status); } && {
34028          test -z "$ac_c_werror_flag" ||
34029          test ! -s conftest.err
34030        } && test -s conftest.$ac_objext; then
34031   { echo "$as_me:$LINENO: result: no" >&5
34032 echo "${ECHO_T}no" >&6; }
34033 else
34034   echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34036
34037         { echo "$as_me:$LINENO: result: yes" >&5
34038 echo "${ECHO_T}yes" >&6; }
34039         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34040 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34041         cat >conftest.$ac_ext <<_ACEOF
34042 /* confdefs.h.  */
34043 _ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h.  */
34047 #define __Point__ 1
34048 #include <AppKit/NSEvent.h>
34049 #include <CoreFoundation/CoreFoundation.h>
34050
34051 int
34052 main ()
34053 {
34054
34055   ;
34056   return 0;
34057 }
34058 _ACEOF
34059 rm -f conftest.$ac_objext
34060 if { (ac_try="$ac_compile"
34061 case "(($ac_try" in
34062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34063   *) ac_try_echo=$ac_try;;
34064 esac
34065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34066   (eval "$ac_compile") 2>conftest.er1
34067   ac_status=$?
34068   grep -v '^ *+' conftest.er1 >conftest.err
34069   rm -f conftest.er1
34070   cat conftest.err >&5
34071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072   (exit $ac_status); } && {
34073          test -z "$ac_c_werror_flag" ||
34074          test ! -s conftest.err
34075        } && test -s conftest.$ac_objext; then
34076   { echo "$as_me:$LINENO: result: yes" >&5
34077 echo "${ECHO_T}yes" >&6; }
34078             cat >>confdefs.h <<\_ACEOF
34079 #define __Point__ 1
34080 _ACEOF
34081
34082
34083 else
34084   echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34086
34087         { { echo "$as_me:$LINENO: error: no
34088 See \`config.log' for more details." >&5
34089 echo "$as_me: error: no
34090 See \`config.log' for more details." >&2;}
34091    { (exit 1); exit 1; }; }
34092
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096
34097 fi
34098
34099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34100     ac_ext=c
34101 ac_cpp='$CPP $CPPFLAGS'
34102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34105
34106 fi
34107
34108
34109 { echo "$as_me:$LINENO: checking for mode_t" >&5
34110 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34111 if test "${ac_cv_type_mode_t+set}" = set; then
34112   echo $ECHO_N "(cached) $ECHO_C" >&6
34113 else
34114   cat >conftest.$ac_ext <<_ACEOF
34115 /* confdefs.h.  */
34116 _ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h.  */
34120 $ac_includes_default
34121 typedef mode_t ac__type_new_;
34122 int
34123 main ()
34124 {
34125 if ((ac__type_new_ *) 0)
34126   return 0;
34127 if (sizeof (ac__type_new_))
34128   return 0;
34129   ;
34130   return 0;
34131 }
34132 _ACEOF
34133 rm -f conftest.$ac_objext
34134 if { (ac_try="$ac_compile"
34135 case "(($ac_try" in
34136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137   *) ac_try_echo=$ac_try;;
34138 esac
34139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34140   (eval "$ac_compile") 2>conftest.er1
34141   ac_status=$?
34142   grep -v '^ *+' conftest.er1 >conftest.err
34143   rm -f conftest.er1
34144   cat conftest.err >&5
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); } && {
34147          test -z "$ac_c_werror_flag" ||
34148          test ! -s conftest.err
34149        } && test -s conftest.$ac_objext; then
34150   ac_cv_type_mode_t=yes
34151 else
34152   echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34154
34155         ac_cv_type_mode_t=no
34156 fi
34157
34158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 fi
34160 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34161 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34162 if test $ac_cv_type_mode_t = yes; then
34163   :
34164 else
34165
34166 cat >>confdefs.h <<_ACEOF
34167 #define mode_t int
34168 _ACEOF
34169
34170 fi
34171
34172 { echo "$as_me:$LINENO: checking for off_t" >&5
34173 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34174 if test "${ac_cv_type_off_t+set}" = set; then
34175   echo $ECHO_N "(cached) $ECHO_C" >&6
34176 else
34177   cat >conftest.$ac_ext <<_ACEOF
34178 /* confdefs.h.  */
34179 _ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h.  */
34183 $ac_includes_default
34184 typedef off_t ac__type_new_;
34185 int
34186 main ()
34187 {
34188 if ((ac__type_new_ *) 0)
34189   return 0;
34190 if (sizeof (ac__type_new_))
34191   return 0;
34192   ;
34193   return 0;
34194 }
34195 _ACEOF
34196 rm -f conftest.$ac_objext
34197 if { (ac_try="$ac_compile"
34198 case "(($ac_try" in
34199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34200   *) ac_try_echo=$ac_try;;
34201 esac
34202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34203   (eval "$ac_compile") 2>conftest.er1
34204   ac_status=$?
34205   grep -v '^ *+' conftest.er1 >conftest.err
34206   rm -f conftest.er1
34207   cat conftest.err >&5
34208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209   (exit $ac_status); } && {
34210          test -z "$ac_c_werror_flag" ||
34211          test ! -s conftest.err
34212        } && test -s conftest.$ac_objext; then
34213   ac_cv_type_off_t=yes
34214 else
34215   echo "$as_me: failed program was:" >&5
34216 sed 's/^/| /' conftest.$ac_ext >&5
34217
34218         ac_cv_type_off_t=no
34219 fi
34220
34221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222 fi
34223 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34224 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34225 if test $ac_cv_type_off_t = yes; then
34226   :
34227 else
34228
34229 cat >>confdefs.h <<_ACEOF
34230 #define off_t long int
34231 _ACEOF
34232
34233 fi
34234
34235 { echo "$as_me:$LINENO: checking for pid_t" >&5
34236 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34237 if test "${ac_cv_type_pid_t+set}" = set; then
34238   echo $ECHO_N "(cached) $ECHO_C" >&6
34239 else
34240   cat >conftest.$ac_ext <<_ACEOF
34241 /* confdefs.h.  */
34242 _ACEOF
34243 cat confdefs.h >>conftest.$ac_ext
34244 cat >>conftest.$ac_ext <<_ACEOF
34245 /* end confdefs.h.  */
34246 $ac_includes_default
34247 typedef pid_t ac__type_new_;
34248 int
34249 main ()
34250 {
34251 if ((ac__type_new_ *) 0)
34252   return 0;
34253 if (sizeof (ac__type_new_))
34254   return 0;
34255   ;
34256   return 0;
34257 }
34258 _ACEOF
34259 rm -f conftest.$ac_objext
34260 if { (ac_try="$ac_compile"
34261 case "(($ac_try" in
34262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34263   *) ac_try_echo=$ac_try;;
34264 esac
34265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34266   (eval "$ac_compile") 2>conftest.er1
34267   ac_status=$?
34268   grep -v '^ *+' conftest.er1 >conftest.err
34269   rm -f conftest.er1
34270   cat conftest.err >&5
34271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272   (exit $ac_status); } && {
34273          test -z "$ac_c_werror_flag" ||
34274          test ! -s conftest.err
34275        } && test -s conftest.$ac_objext; then
34276   ac_cv_type_pid_t=yes
34277 else
34278   echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34280
34281         ac_cv_type_pid_t=no
34282 fi
34283
34284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34285 fi
34286 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34287 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34288 if test $ac_cv_type_pid_t = yes; then
34289   :
34290 else
34291
34292 cat >>confdefs.h <<_ACEOF
34293 #define pid_t int
34294 _ACEOF
34295
34296 fi
34297
34298 { echo "$as_me:$LINENO: checking for size_t" >&5
34299 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34300 if test "${ac_cv_type_size_t+set}" = set; then
34301   echo $ECHO_N "(cached) $ECHO_C" >&6
34302 else
34303   cat >conftest.$ac_ext <<_ACEOF
34304 /* confdefs.h.  */
34305 _ACEOF
34306 cat confdefs.h >>conftest.$ac_ext
34307 cat >>conftest.$ac_ext <<_ACEOF
34308 /* end confdefs.h.  */
34309 $ac_includes_default
34310 typedef size_t ac__type_new_;
34311 int
34312 main ()
34313 {
34314 if ((ac__type_new_ *) 0)
34315   return 0;
34316 if (sizeof (ac__type_new_))
34317   return 0;
34318   ;
34319   return 0;
34320 }
34321 _ACEOF
34322 rm -f conftest.$ac_objext
34323 if { (ac_try="$ac_compile"
34324 case "(($ac_try" in
34325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34326   *) ac_try_echo=$ac_try;;
34327 esac
34328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34329   (eval "$ac_compile") 2>conftest.er1
34330   ac_status=$?
34331   grep -v '^ *+' conftest.er1 >conftest.err
34332   rm -f conftest.er1
34333   cat conftest.err >&5
34334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335   (exit $ac_status); } && {
34336          test -z "$ac_c_werror_flag" ||
34337          test ! -s conftest.err
34338        } && test -s conftest.$ac_objext; then
34339   ac_cv_type_size_t=yes
34340 else
34341   echo "$as_me: failed program was:" >&5
34342 sed 's/^/| /' conftest.$ac_ext >&5
34343
34344         ac_cv_type_size_t=no
34345 fi
34346
34347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34348 fi
34349 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34350 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34351 if test $ac_cv_type_size_t = yes; then
34352   :
34353 else
34354
34355 cat >>confdefs.h <<_ACEOF
34356 #define size_t unsigned int
34357 _ACEOF
34358
34359 fi
34360
34361
34362 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34363 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34364 if test "${ac_cv_type_ssize_t+set}" = set; then
34365   echo $ECHO_N "(cached) $ECHO_C" >&6
34366 else
34367   cat >conftest.$ac_ext <<_ACEOF
34368 /* confdefs.h.  */
34369 _ACEOF
34370 cat confdefs.h >>conftest.$ac_ext
34371 cat >>conftest.$ac_ext <<_ACEOF
34372 /* end confdefs.h.  */
34373 $ac_includes_default
34374 typedef ssize_t ac__type_new_;
34375 int
34376 main ()
34377 {
34378 if ((ac__type_new_ *) 0)
34379   return 0;
34380 if (sizeof (ac__type_new_))
34381   return 0;
34382   ;
34383   return 0;
34384 }
34385 _ACEOF
34386 rm -f conftest.$ac_objext
34387 if { (ac_try="$ac_compile"
34388 case "(($ac_try" in
34389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390   *) ac_try_echo=$ac_try;;
34391 esac
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393   (eval "$ac_compile") 2>conftest.er1
34394   ac_status=$?
34395   grep -v '^ *+' conftest.er1 >conftest.err
34396   rm -f conftest.er1
34397   cat conftest.err >&5
34398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399   (exit $ac_status); } && {
34400          test -z "$ac_c_werror_flag" ||
34401          test ! -s conftest.err
34402        } && test -s conftest.$ac_objext; then
34403   ac_cv_type_ssize_t=yes
34404 else
34405   echo "$as_me: failed program was:" >&5
34406 sed 's/^/| /' conftest.$ac_ext >&5
34407
34408         ac_cv_type_ssize_t=no
34409 fi
34410
34411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34412 fi
34413 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34414 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34415 if test $ac_cv_type_ssize_t = yes; then
34416
34417 cat >>confdefs.h <<_ACEOF
34418 #define HAVE_SSIZE_T 1
34419 _ACEOF
34420
34421
34422 fi
34423
34424
34425 ac_ext=cpp
34426 ac_cpp='$CXXCPP $CPPFLAGS'
34427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34430  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34431 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34432 if test "${wx_cv_size_t_is_uint+set}" = set; then
34433   echo $ECHO_N "(cached) $ECHO_C" >&6
34434 else
34435
34436                             cat >conftest.$ac_ext <<_ACEOF
34437 /* confdefs.h.  */
34438 _ACEOF
34439 cat confdefs.h >>conftest.$ac_ext
34440 cat >>conftest.$ac_ext <<_ACEOF
34441 /* end confdefs.h.  */
34442 #include <stddef.h>
34443 int
34444 main ()
34445 {
34446
34447             return 0; }
34448
34449             struct Foo { void foo(size_t); void foo(unsigned int); };
34450
34451             int bar() {
34452
34453   ;
34454   return 0;
34455 }
34456 _ACEOF
34457 rm -f conftest.$ac_objext
34458 if { (ac_try="$ac_compile"
34459 case "(($ac_try" in
34460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34461   *) ac_try_echo=$ac_try;;
34462 esac
34463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34464   (eval "$ac_compile") 2>conftest.er1
34465   ac_status=$?
34466   grep -v '^ *+' conftest.er1 >conftest.err
34467   rm -f conftest.er1
34468   cat conftest.err >&5
34469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470   (exit $ac_status); } && {
34471          test -z "$ac_cxx_werror_flag" ||
34472          test ! -s conftest.err
34473        } && test -s conftest.$ac_objext; then
34474   wx_cv_size_t_is_uint=no
34475 else
34476   echo "$as_me: failed program was:" >&5
34477 sed 's/^/| /' conftest.$ac_ext >&5
34478
34479         wx_cv_size_t_is_uint=yes
34480
34481 fi
34482
34483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34484
34485
34486 fi
34487 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34488 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34489
34490 if test "$wx_cv_size_t_is_uint" = "yes"; then
34491     cat >>confdefs.h <<\_ACEOF
34492 #define wxSIZE_T_IS_UINT 1
34493 _ACEOF
34494
34495 else
34496     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34497 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34498 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34499   echo $ECHO_N "(cached) $ECHO_C" >&6
34500 else
34501   cat >conftest.$ac_ext <<_ACEOF
34502 /* confdefs.h.  */
34503 _ACEOF
34504 cat confdefs.h >>conftest.$ac_ext
34505 cat >>conftest.$ac_ext <<_ACEOF
34506 /* end confdefs.h.  */
34507 #include <stddef.h>
34508 int
34509 main ()
34510 {
34511
34512                 return 0; }
34513
34514                 struct Foo { void foo(size_t); void foo(unsigned long); };
34515
34516                 int bar() {
34517
34518   ;
34519   return 0;
34520 }
34521 _ACEOF
34522 rm -f conftest.$ac_objext
34523 if { (ac_try="$ac_compile"
34524 case "(($ac_try" in
34525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526   *) ac_try_echo=$ac_try;;
34527 esac
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529   (eval "$ac_compile") 2>conftest.er1
34530   ac_status=$?
34531   grep -v '^ *+' conftest.er1 >conftest.err
34532   rm -f conftest.er1
34533   cat conftest.err >&5
34534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535   (exit $ac_status); } && {
34536          test -z "$ac_cxx_werror_flag" ||
34537          test ! -s conftest.err
34538        } && test -s conftest.$ac_objext; then
34539   wx_cv_size_t_is_ulong=no
34540 else
34541   echo "$as_me: failed program was:" >&5
34542 sed 's/^/| /' conftest.$ac_ext >&5
34543
34544         wx_cv_size_t_is_ulong=yes
34545
34546 fi
34547
34548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34549
34550 fi
34551 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34552 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34553
34554     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34555         cat >>confdefs.h <<\_ACEOF
34556 #define wxSIZE_T_IS_ULONG 1
34557 _ACEOF
34558
34559     fi
34560 fi
34561
34562 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34563 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34564 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34565   echo $ECHO_N "(cached) $ECHO_C" >&6
34566 else
34567   cat >conftest.$ac_ext <<_ACEOF
34568 /* confdefs.h.  */
34569 _ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h.  */
34573 #include <wchar.h>
34574 int
34575 main ()
34576 {
34577
34578             return 0; }
34579
34580             struct Foo { void foo(wchar_t);
34581                          void foo(unsigned short);
34582                          void foo(unsigned int);
34583                          void foo(unsigned long); };
34584
34585             int bar() {
34586
34587   ;
34588   return 0;
34589 }
34590 _ACEOF
34591 rm -f conftest.$ac_objext
34592 if { (ac_try="$ac_compile"
34593 case "(($ac_try" in
34594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34595   *) ac_try_echo=$ac_try;;
34596 esac
34597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34598   (eval "$ac_compile") 2>conftest.er1
34599   ac_status=$?
34600   grep -v '^ *+' conftest.er1 >conftest.err
34601   rm -f conftest.er1
34602   cat conftest.err >&5
34603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604   (exit $ac_status); } && {
34605          test -z "$ac_cxx_werror_flag" ||
34606          test ! -s conftest.err
34607        } && test -s conftest.$ac_objext; then
34608   wx_cv_wchar_t_is_separate_type=yes
34609 else
34610   echo "$as_me: failed program was:" >&5
34611 sed 's/^/| /' conftest.$ac_ext >&5
34612
34613         wx_cv_wchar_t_is_separate_type=no
34614
34615 fi
34616
34617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34618
34619 fi
34620 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34621 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34622
34623 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34624     cat >>confdefs.h <<\_ACEOF
34625 #define wxWCHAR_T_IS_REAL_TYPE 1
34626 _ACEOF
34627
34628 else
34629     cat >>confdefs.h <<\_ACEOF
34630 #define wxWCHAR_T_IS_REAL_TYPE 0
34631 _ACEOF
34632
34633 fi
34634
34635 ac_ext=c
34636 ac_cpp='$CPP $CPPFLAGS'
34637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34640
34641
34642 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34643 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34644 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34645   echo $ECHO_N "(cached) $ECHO_C" >&6
34646 else
34647
34648         cat >conftest.$ac_ext <<_ACEOF
34649 /* confdefs.h.  */
34650 _ACEOF
34651 cat confdefs.h >>conftest.$ac_ext
34652 cat >>conftest.$ac_ext <<_ACEOF
34653 /* end confdefs.h.  */
34654 #include <pwd.h>
34655 int
34656 main ()
34657 {
34658
34659                 char *p;
34660                 struct passwd *pw;
34661                 p = pw->pw_gecos;
34662
34663   ;
34664   return 0;
34665 }
34666 _ACEOF
34667 rm -f conftest.$ac_objext
34668 if { (ac_try="$ac_compile"
34669 case "(($ac_try" in
34670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34671   *) ac_try_echo=$ac_try;;
34672 esac
34673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34674   (eval "$ac_compile") 2>conftest.er1
34675   ac_status=$?
34676   grep -v '^ *+' conftest.er1 >conftest.err
34677   rm -f conftest.er1
34678   cat conftest.err >&5
34679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680   (exit $ac_status); } && {
34681          test -z "$ac_c_werror_flag" ||
34682          test ! -s conftest.err
34683        } && test -s conftest.$ac_objext; then
34684
34685                 wx_cv_struct_pw_gecos=yes
34686
34687 else
34688   echo "$as_me: failed program was:" >&5
34689 sed 's/^/| /' conftest.$ac_ext >&5
34690
34691
34692                 wx_cv_struct_pw_gecos=no
34693
34694
34695 fi
34696
34697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34698
34699
34700 fi
34701 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34702 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34703
34704 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34705     cat >>confdefs.h <<\_ACEOF
34706 #define HAVE_PW_GECOS 1
34707 _ACEOF
34708
34709 fi
34710
34711
34712 if test "$wxUSE_WCHAR_T" = "yes"; then
34713     cat >>confdefs.h <<\_ACEOF
34714 #define wxUSE_WCHAR_T 1
34715 _ACEOF
34716
34717
34718         WCSLEN_FOUND=0
34719     WCHAR_LINK=
34720
34721 for ac_func in wcslen
34722 do
34723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34727   echo $ECHO_N "(cached) $ECHO_C" >&6
34728 else
34729   cat >conftest.$ac_ext <<_ACEOF
34730 /* confdefs.h.  */
34731 _ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h.  */
34735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34737 #define $ac_func innocuous_$ac_func
34738
34739 /* System header to define __stub macros and hopefully few prototypes,
34740     which can conflict with char $ac_func (); below.
34741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34742     <limits.h> exists even on freestanding compilers.  */
34743
34744 #ifdef __STDC__
34745 # include <limits.h>
34746 #else
34747 # include <assert.h>
34748 #endif
34749
34750 #undef $ac_func
34751
34752 /* Override any GCC internal prototype to avoid an error.
34753    Use char because int might match the return type of a GCC
34754    builtin and then its argument prototype would still apply.  */
34755 #ifdef __cplusplus
34756 extern "C"
34757 #endif
34758 char $ac_func ();
34759 /* The GNU C library defines this for functions which it implements
34760     to always fail with ENOSYS.  Some functions are actually named
34761     something starting with __ and the normal name is an alias.  */
34762 #if defined __stub_$ac_func || defined __stub___$ac_func
34763 choke me
34764 #endif
34765
34766 int
34767 main ()
34768 {
34769 return $ac_func ();
34770   ;
34771   return 0;
34772 }
34773 _ACEOF
34774 rm -f conftest.$ac_objext conftest$ac_exeext
34775 if { (ac_try="$ac_link"
34776 case "(($ac_try" in
34777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34778   *) ac_try_echo=$ac_try;;
34779 esac
34780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34781   (eval "$ac_link") 2>conftest.er1
34782   ac_status=$?
34783   grep -v '^ *+' conftest.er1 >conftest.err
34784   rm -f conftest.er1
34785   cat conftest.err >&5
34786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787   (exit $ac_status); } && {
34788          test -z "$ac_c_werror_flag" ||
34789          test ! -s conftest.err
34790        } && test -s conftest$ac_exeext &&
34791        $as_test_x conftest$ac_exeext; then
34792   eval "$as_ac_var=yes"
34793 else
34794   echo "$as_me: failed program was:" >&5
34795 sed 's/^/| /' conftest.$ac_ext >&5
34796
34797         eval "$as_ac_var=no"
34798 fi
34799
34800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34801       conftest$ac_exeext conftest.$ac_ext
34802 fi
34803 ac_res=`eval echo '${'$as_ac_var'}'`
34804                { echo "$as_me:$LINENO: result: $ac_res" >&5
34805 echo "${ECHO_T}$ac_res" >&6; }
34806 if test `eval echo '${'$as_ac_var'}'` = yes; then
34807   cat >>confdefs.h <<_ACEOF
34808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34809 _ACEOF
34810  WCSLEN_FOUND=1
34811 fi
34812 done
34813
34814
34815     if test "$WCSLEN_FOUND" = 0; then
34816         if test "$TOOLKIT" = "MSW"; then
34817             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34818 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34819 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34820   echo $ECHO_N "(cached) $ECHO_C" >&6
34821 else
34822   ac_check_lib_save_LIBS=$LIBS
34823 LIBS="-lmsvcrt  $LIBS"
34824 cat >conftest.$ac_ext <<_ACEOF
34825 /* confdefs.h.  */
34826 _ACEOF
34827 cat confdefs.h >>conftest.$ac_ext
34828 cat >>conftest.$ac_ext <<_ACEOF
34829 /* end confdefs.h.  */
34830
34831 /* Override any GCC internal prototype to avoid an error.
34832    Use char because int might match the return type of a GCC
34833    builtin and then its argument prototype would still apply.  */
34834 #ifdef __cplusplus
34835 extern "C"
34836 #endif
34837 char wcslen ();
34838 int
34839 main ()
34840 {
34841 return wcslen ();
34842   ;
34843   return 0;
34844 }
34845 _ACEOF
34846 rm -f conftest.$ac_objext conftest$ac_exeext
34847 if { (ac_try="$ac_link"
34848 case "(($ac_try" in
34849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34850   *) ac_try_echo=$ac_try;;
34851 esac
34852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34853   (eval "$ac_link") 2>conftest.er1
34854   ac_status=$?
34855   grep -v '^ *+' conftest.er1 >conftest.err
34856   rm -f conftest.er1
34857   cat conftest.err >&5
34858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859   (exit $ac_status); } && {
34860          test -z "$ac_c_werror_flag" ||
34861          test ! -s conftest.err
34862        } && test -s conftest$ac_exeext &&
34863        $as_test_x conftest$ac_exeext; then
34864   ac_cv_lib_msvcrt_wcslen=yes
34865 else
34866   echo "$as_me: failed program was:" >&5
34867 sed 's/^/| /' conftest.$ac_ext >&5
34868
34869         ac_cv_lib_msvcrt_wcslen=no
34870 fi
34871
34872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34873       conftest$ac_exeext conftest.$ac_ext
34874 LIBS=$ac_check_lib_save_LIBS
34875 fi
34876 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34877 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34878 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34879   WCHAR_OK=1
34880 fi
34881
34882         else
34883             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34884 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34885 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34886   echo $ECHO_N "(cached) $ECHO_C" >&6
34887 else
34888   ac_check_lib_save_LIBS=$LIBS
34889 LIBS="-lw  $LIBS"
34890 cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h.  */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h.  */
34896
34897 /* Override any GCC internal prototype to avoid an error.
34898    Use char because int might match the return type of a GCC
34899    builtin and then its argument prototype would still apply.  */
34900 #ifdef __cplusplus
34901 extern "C"
34902 #endif
34903 char wcslen ();
34904 int
34905 main ()
34906 {
34907 return wcslen ();
34908   ;
34909   return 0;
34910 }
34911 _ACEOF
34912 rm -f conftest.$ac_objext conftest$ac_exeext
34913 if { (ac_try="$ac_link"
34914 case "(($ac_try" in
34915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916   *) ac_try_echo=$ac_try;;
34917 esac
34918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919   (eval "$ac_link") 2>conftest.er1
34920   ac_status=$?
34921   grep -v '^ *+' conftest.er1 >conftest.err
34922   rm -f conftest.er1
34923   cat conftest.err >&5
34924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925   (exit $ac_status); } && {
34926          test -z "$ac_c_werror_flag" ||
34927          test ! -s conftest.err
34928        } && test -s conftest$ac_exeext &&
34929        $as_test_x conftest$ac_exeext; then
34930   ac_cv_lib_w_wcslen=yes
34931 else
34932   echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34934
34935         ac_cv_lib_w_wcslen=no
34936 fi
34937
34938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34939       conftest$ac_exeext conftest.$ac_ext
34940 LIBS=$ac_check_lib_save_LIBS
34941 fi
34942 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34943 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34944 if test $ac_cv_lib_w_wcslen = yes; then
34945
34946                             WCHAR_LINK=" -lw"
34947                             WCSLEN_FOUND=1
34948
34949 fi
34950
34951         fi
34952     fi
34953
34954     if test "$WCSLEN_FOUND" = 1; then
34955         cat >>confdefs.h <<\_ACEOF
34956 #define HAVE_WCSLEN 1
34957 _ACEOF
34958
34959     fi
34960
34961
34962
34963
34964
34965
34966 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
34967 do
34968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34972   echo $ECHO_N "(cached) $ECHO_C" >&6
34973 else
34974   cat >conftest.$ac_ext <<_ACEOF
34975 /* confdefs.h.  */
34976 _ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h.  */
34980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34982 #define $ac_func innocuous_$ac_func
34983
34984 /* System header to define __stub macros and hopefully few prototypes,
34985     which can conflict with char $ac_func (); below.
34986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34987     <limits.h> exists even on freestanding compilers.  */
34988
34989 #ifdef __STDC__
34990 # include <limits.h>
34991 #else
34992 # include <assert.h>
34993 #endif
34994
34995 #undef $ac_func
34996
34997 /* Override any GCC internal prototype to avoid an error.
34998    Use char because int might match the return type of a GCC
34999    builtin and then its argument prototype would still apply.  */
35000 #ifdef __cplusplus
35001 extern "C"
35002 #endif
35003 char $ac_func ();
35004 /* The GNU C library defines this for functions which it implements
35005     to always fail with ENOSYS.  Some functions are actually named
35006     something starting with __ and the normal name is an alias.  */
35007 #if defined __stub_$ac_func || defined __stub___$ac_func
35008 choke me
35009 #endif
35010
35011 int
35012 main ()
35013 {
35014 return $ac_func ();
35015   ;
35016   return 0;
35017 }
35018 _ACEOF
35019 rm -f conftest.$ac_objext conftest$ac_exeext
35020 if { (ac_try="$ac_link"
35021 case "(($ac_try" in
35022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023   *) ac_try_echo=$ac_try;;
35024 esac
35025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026   (eval "$ac_link") 2>conftest.er1
35027   ac_status=$?
35028   grep -v '^ *+' conftest.er1 >conftest.err
35029   rm -f conftest.er1
35030   cat conftest.err >&5
35031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032   (exit $ac_status); } && {
35033          test -z "$ac_c_werror_flag" ||
35034          test ! -s conftest.err
35035        } && test -s conftest$ac_exeext &&
35036        $as_test_x conftest$ac_exeext; then
35037   eval "$as_ac_var=yes"
35038 else
35039   echo "$as_me: failed program was:" >&5
35040 sed 's/^/| /' conftest.$ac_ext >&5
35041
35042         eval "$as_ac_var=no"
35043 fi
35044
35045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35046       conftest$ac_exeext conftest.$ac_ext
35047 fi
35048 ac_res=`eval echo '${'$as_ac_var'}'`
35049                { echo "$as_me:$LINENO: result: $ac_res" >&5
35050 echo "${ECHO_T}$ac_res" >&6; }
35051 if test `eval echo '${'$as_ac_var'}'` = yes; then
35052   cat >>confdefs.h <<_ACEOF
35053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35054 _ACEOF
35055
35056 fi
35057 done
35058
35059
35060                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35061         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35062     fi
35063
35064                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35065 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35066 if test "${ac_cv_type_mbstate_t+set}" = set; then
35067   echo $ECHO_N "(cached) $ECHO_C" >&6
35068 else
35069   cat >conftest.$ac_ext <<_ACEOF
35070 /* confdefs.h.  */
35071 _ACEOF
35072 cat confdefs.h >>conftest.$ac_ext
35073 cat >>conftest.$ac_ext <<_ACEOF
35074 /* end confdefs.h.  */
35075 #include <wchar.h>
35076
35077 typedef mbstate_t ac__type_new_;
35078 int
35079 main ()
35080 {
35081 if ((ac__type_new_ *) 0)
35082   return 0;
35083 if (sizeof (ac__type_new_))
35084   return 0;
35085   ;
35086   return 0;
35087 }
35088 _ACEOF
35089 rm -f conftest.$ac_objext
35090 if { (ac_try="$ac_compile"
35091 case "(($ac_try" in
35092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35093   *) ac_try_echo=$ac_try;;
35094 esac
35095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35096   (eval "$ac_compile") 2>conftest.er1
35097   ac_status=$?
35098   grep -v '^ *+' conftest.er1 >conftest.err
35099   rm -f conftest.er1
35100   cat conftest.err >&5
35101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102   (exit $ac_status); } && {
35103          test -z "$ac_c_werror_flag" ||
35104          test ! -s conftest.err
35105        } && test -s conftest.$ac_objext; then
35106   ac_cv_type_mbstate_t=yes
35107 else
35108   echo "$as_me: failed program was:" >&5
35109 sed 's/^/| /' conftest.$ac_ext >&5
35110
35111         ac_cv_type_mbstate_t=no
35112 fi
35113
35114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35115 fi
35116 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35117 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35118 if test $ac_cv_type_mbstate_t = yes; then
35119
35120 cat >>confdefs.h <<_ACEOF
35121 #define HAVE_MBSTATE_T 1
35122 _ACEOF
35123
35124
35125 for ac_func in wcsrtombs
35126 do
35127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35131   echo $ECHO_N "(cached) $ECHO_C" >&6
35132 else
35133   cat >conftest.$ac_ext <<_ACEOF
35134 /* confdefs.h.  */
35135 _ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h.  */
35139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35141 #define $ac_func innocuous_$ac_func
35142
35143 /* System header to define __stub macros and hopefully few prototypes,
35144     which can conflict with char $ac_func (); below.
35145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35146     <limits.h> exists even on freestanding compilers.  */
35147
35148 #ifdef __STDC__
35149 # include <limits.h>
35150 #else
35151 # include <assert.h>
35152 #endif
35153
35154 #undef $ac_func
35155
35156 /* Override any GCC internal prototype to avoid an error.
35157    Use char because int might match the return type of a GCC
35158    builtin and then its argument prototype would still apply.  */
35159 #ifdef __cplusplus
35160 extern "C"
35161 #endif
35162 char $ac_func ();
35163 /* The GNU C library defines this for functions which it implements
35164     to always fail with ENOSYS.  Some functions are actually named
35165     something starting with __ and the normal name is an alias.  */
35166 #if defined __stub_$ac_func || defined __stub___$ac_func
35167 choke me
35168 #endif
35169
35170 int
35171 main ()
35172 {
35173 return $ac_func ();
35174   ;
35175   return 0;
35176 }
35177 _ACEOF
35178 rm -f conftest.$ac_objext conftest$ac_exeext
35179 if { (ac_try="$ac_link"
35180 case "(($ac_try" in
35181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35182   *) ac_try_echo=$ac_try;;
35183 esac
35184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35185   (eval "$ac_link") 2>conftest.er1
35186   ac_status=$?
35187   grep -v '^ *+' conftest.er1 >conftest.err
35188   rm -f conftest.er1
35189   cat conftest.err >&5
35190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191   (exit $ac_status); } && {
35192          test -z "$ac_c_werror_flag" ||
35193          test ! -s conftest.err
35194        } && test -s conftest$ac_exeext &&
35195        $as_test_x conftest$ac_exeext; then
35196   eval "$as_ac_var=yes"
35197 else
35198   echo "$as_me: failed program was:" >&5
35199 sed 's/^/| /' conftest.$ac_ext >&5
35200
35201         eval "$as_ac_var=no"
35202 fi
35203
35204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35205       conftest$ac_exeext conftest.$ac_ext
35206 fi
35207 ac_res=`eval echo '${'$as_ac_var'}'`
35208                { echo "$as_me:$LINENO: result: $ac_res" >&5
35209 echo "${ECHO_T}$ac_res" >&6; }
35210 if test `eval echo '${'$as_ac_var'}'` = yes; then
35211   cat >>confdefs.h <<_ACEOF
35212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35213 _ACEOF
35214
35215 fi
35216 done
35217
35218 fi
35219
35220 else
35221     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35222 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35223 fi
35224
35225
35226
35227
35228 for ac_func in snprintf vsnprintf vsscanf
35229 do
35230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35234   echo $ECHO_N "(cached) $ECHO_C" >&6
35235 else
35236   cat >conftest.$ac_ext <<_ACEOF
35237 /* confdefs.h.  */
35238 _ACEOF
35239 cat confdefs.h >>conftest.$ac_ext
35240 cat >>conftest.$ac_ext <<_ACEOF
35241 /* end confdefs.h.  */
35242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35244 #define $ac_func innocuous_$ac_func
35245
35246 /* System header to define __stub macros and hopefully few prototypes,
35247     which can conflict with char $ac_func (); below.
35248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35249     <limits.h> exists even on freestanding compilers.  */
35250
35251 #ifdef __STDC__
35252 # include <limits.h>
35253 #else
35254 # include <assert.h>
35255 #endif
35256
35257 #undef $ac_func
35258
35259 /* Override any GCC internal prototype to avoid an error.
35260    Use char because int might match the return type of a GCC
35261    builtin and then its argument prototype would still apply.  */
35262 #ifdef __cplusplus
35263 extern "C"
35264 #endif
35265 char $ac_func ();
35266 /* The GNU C library defines this for functions which it implements
35267     to always fail with ENOSYS.  Some functions are actually named
35268     something starting with __ and the normal name is an alias.  */
35269 #if defined __stub_$ac_func || defined __stub___$ac_func
35270 choke me
35271 #endif
35272
35273 int
35274 main ()
35275 {
35276 return $ac_func ();
35277   ;
35278   return 0;
35279 }
35280 _ACEOF
35281 rm -f conftest.$ac_objext conftest$ac_exeext
35282 if { (ac_try="$ac_link"
35283 case "(($ac_try" in
35284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35285   *) ac_try_echo=$ac_try;;
35286 esac
35287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35288   (eval "$ac_link") 2>conftest.er1
35289   ac_status=$?
35290   grep -v '^ *+' conftest.er1 >conftest.err
35291   rm -f conftest.er1
35292   cat conftest.err >&5
35293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294   (exit $ac_status); } && {
35295          test -z "$ac_c_werror_flag" ||
35296          test ! -s conftest.err
35297        } && test -s conftest$ac_exeext &&
35298        $as_test_x conftest$ac_exeext; then
35299   eval "$as_ac_var=yes"
35300 else
35301   echo "$as_me: failed program was:" >&5
35302 sed 's/^/| /' conftest.$ac_ext >&5
35303
35304         eval "$as_ac_var=no"
35305 fi
35306
35307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35308       conftest$ac_exeext conftest.$ac_ext
35309 fi
35310 ac_res=`eval echo '${'$as_ac_var'}'`
35311                { echo "$as_me:$LINENO: result: $ac_res" >&5
35312 echo "${ECHO_T}$ac_res" >&6; }
35313 if test `eval echo '${'$as_ac_var'}'` = yes; then
35314   cat >>confdefs.h <<_ACEOF
35315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35316 _ACEOF
35317
35318 fi
35319 done
35320
35321
35322 ac_ext=cpp
35323 ac_cpp='$CXXCPP $CPPFLAGS'
35324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35327
35328 if test "$ac_cv_func_vsnprintf" = "yes"; then
35329         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35330 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35331 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35332   echo $ECHO_N "(cached) $ECHO_C" >&6
35333 else
35334
35335                                                             cat >conftest.$ac_ext <<_ACEOF
35336 /* confdefs.h.  */
35337 _ACEOF
35338 cat confdefs.h >>conftest.$ac_ext
35339 cat >>conftest.$ac_ext <<_ACEOF
35340 /* end confdefs.h.  */
35341
35342                     #include <stdio.h>
35343                     #include <stdarg.h>
35344                     #ifdef __MSL__
35345                     #if __MSL__ >= 0x6000
35346                     namespace std {}
35347                     using namespace std;
35348                     #endif
35349                     #endif
35350
35351 int
35352 main ()
35353 {
35354
35355                     char *buf;
35356                     va_list ap;
35357                     vsnprintf(buf, 10u, "%s", ap);
35358
35359   ;
35360   return 0;
35361 }
35362 _ACEOF
35363 rm -f conftest.$ac_objext
35364 if { (ac_try="$ac_compile"
35365 case "(($ac_try" in
35366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35367   *) ac_try_echo=$ac_try;;
35368 esac
35369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35370   (eval "$ac_compile") 2>conftest.er1
35371   ac_status=$?
35372   grep -v '^ *+' conftest.er1 >conftest.err
35373   rm -f conftest.er1
35374   cat conftest.err >&5
35375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376   (exit $ac_status); } && {
35377          test -z "$ac_cxx_werror_flag" ||
35378          test ! -s conftest.err
35379        } && test -s conftest.$ac_objext; then
35380   wx_cv_func_vsnprintf_decl=yes
35381 else
35382   echo "$as_me: failed program was:" >&5
35383 sed 's/^/| /' conftest.$ac_ext >&5
35384
35385         wx_cv_func_vsnprintf_decl=no
35386
35387 fi
35388
35389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35390
35391
35392 fi
35393 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35394 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35395
35396     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35397         cat >>confdefs.h <<\_ACEOF
35398 #define HAVE_VSNPRINTF_DECL 1
35399 _ACEOF
35400
35401
35402                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35403 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35404 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35405   echo $ECHO_N "(cached) $ECHO_C" >&6
35406 else
35407
35408                 cat >conftest.$ac_ext <<_ACEOF
35409 /* confdefs.h.  */
35410 _ACEOF
35411 cat confdefs.h >>conftest.$ac_ext
35412 cat >>conftest.$ac_ext <<_ACEOF
35413 /* end confdefs.h.  */
35414
35415                         #include <stdio.h>
35416                         #include <stdarg.h>
35417                         #ifdef __MSL__
35418                         #if __MSL__ >= 0x6000
35419                         namespace std {}
35420                         using namespace std;
35421                         #endif
35422                         #endif
35423
35424 int
35425 main ()
35426 {
35427
35428                         char *buf;
35429                         va_list ap;
35430                         const char *fmt = "%s";
35431                         vsnprintf(buf, 10u, fmt, ap);
35432
35433   ;
35434   return 0;
35435 }
35436 _ACEOF
35437 rm -f conftest.$ac_objext
35438 if { (ac_try="$ac_compile"
35439 case "(($ac_try" in
35440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35441   *) ac_try_echo=$ac_try;;
35442 esac
35443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35444   (eval "$ac_compile") 2>conftest.er1
35445   ac_status=$?
35446   grep -v '^ *+' conftest.er1 >conftest.err
35447   rm -f conftest.er1
35448   cat conftest.err >&5
35449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450   (exit $ac_status); } && {
35451          test -z "$ac_cxx_werror_flag" ||
35452          test ! -s conftest.err
35453        } && test -s conftest.$ac_objext; then
35454   wx_cv_func_broken_vsnprintf_decl=no
35455 else
35456   echo "$as_me: failed program was:" >&5
35457 sed 's/^/| /' conftest.$ac_ext >&5
35458
35459         wx_cv_func_broken_vsnprintf_decl=yes
35460
35461 fi
35462
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35464
35465
35466 fi
35467 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35468 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35469
35470         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35471             cat >>confdefs.h <<\_ACEOF
35472 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35473 _ACEOF
35474
35475         fi
35476     fi
35477 fi
35478
35479 if test "$ac_cv_func_snprintf" = "yes"; then
35480     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35481 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35482 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35483   echo $ECHO_N "(cached) $ECHO_C" >&6
35484 else
35485
35486             cat >conftest.$ac_ext <<_ACEOF
35487 /* confdefs.h.  */
35488 _ACEOF
35489 cat confdefs.h >>conftest.$ac_ext
35490 cat >>conftest.$ac_ext <<_ACEOF
35491 /* end confdefs.h.  */
35492
35493                     #include <stdio.h>
35494                     #include <stdarg.h>
35495                     #ifdef __MSL__
35496                     #if __MSL__ >= 0x6000
35497                     namespace std {}
35498                     using namespace std;
35499                     #endif
35500                     #endif
35501
35502 int
35503 main ()
35504 {
35505
35506                     char *buf;
35507                     snprintf(buf, 10u, "%s", "wx");
35508
35509   ;
35510   return 0;
35511 }
35512 _ACEOF
35513 rm -f conftest.$ac_objext
35514 if { (ac_try="$ac_compile"
35515 case "(($ac_try" in
35516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35517   *) ac_try_echo=$ac_try;;
35518 esac
35519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35520   (eval "$ac_compile") 2>conftest.er1
35521   ac_status=$?
35522   grep -v '^ *+' conftest.er1 >conftest.err
35523   rm -f conftest.er1
35524   cat conftest.err >&5
35525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526   (exit $ac_status); } && {
35527          test -z "$ac_cxx_werror_flag" ||
35528          test ! -s conftest.err
35529        } && test -s conftest.$ac_objext; then
35530   wx_cv_func_snprintf_decl=yes
35531 else
35532   echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35534
35535         wx_cv_func_snprintf_decl=no
35536
35537 fi
35538
35539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35540
35541
35542 fi
35543 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35544 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35545
35546     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35547         cat >>confdefs.h <<\_ACEOF
35548 #define HAVE_SNPRINTF_DECL 1
35549 _ACEOF
35550
35551     fi
35552
35553     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35554
35555                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35556 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35557 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35558   echo $ECHO_N "(cached) $ECHO_C" >&6
35559 else
35560
35561                 if test "$cross_compiling" = yes; then
35562
35563                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35564 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35565 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35566 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35567                         wx_cv_func_snprintf_pos_params=no
35568
35569
35570 else
35571   cat >conftest.$ac_ext <<_ACEOF
35572 /* confdefs.h.  */
35573 _ACEOF
35574 cat confdefs.h >>conftest.$ac_ext
35575 cat >>conftest.$ac_ext <<_ACEOF
35576 /* end confdefs.h.  */
35577
35578                         #include <stdio.h>
35579
35580                         int main (void)
35581                         {
35582                             char buffer[128];
35583                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35584                             if (strcmp ("2 3 1", buffer) == 0)
35585                                 exit (0);
35586                             exit (1);
35587                         }
35588
35589 _ACEOF
35590 rm -f conftest$ac_exeext
35591 if { (ac_try="$ac_link"
35592 case "(($ac_try" in
35593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35594   *) ac_try_echo=$ac_try;;
35595 esac
35596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35597   (eval "$ac_link") 2>&5
35598   ac_status=$?
35599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35601   { (case "(($ac_try" in
35602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35603   *) ac_try_echo=$ac_try;;
35604 esac
35605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35606   (eval "$ac_try") 2>&5
35607   ac_status=$?
35608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609   (exit $ac_status); }; }; then
35610   wx_cv_func_snprintf_pos_params=no
35611 else
35612   echo "$as_me: program exited with status $ac_status" >&5
35613 echo "$as_me: failed program was:" >&5
35614 sed 's/^/| /' conftest.$ac_ext >&5
35615
35616 ( exit $ac_status )
35617 wx_cv_func_snprintf_pos_params=yes
35618 fi
35619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35620 fi
35621
35622
35623
35624
35625 fi
35626 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35627 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35628
35629         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35630             cat >>confdefs.h <<\_ACEOF
35631 #define HAVE_UNIX98_PRINTF 1
35632 _ACEOF
35633
35634         fi
35635     fi
35636 fi
35637
35638 if test "$ac_cv_func_vsscanf" = "yes"; then
35639     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35640 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35641 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35642   echo $ECHO_N "(cached) $ECHO_C" >&6
35643 else
35644
35645             cat >conftest.$ac_ext <<_ACEOF
35646 /* confdefs.h.  */
35647 _ACEOF
35648 cat confdefs.h >>conftest.$ac_ext
35649 cat >>conftest.$ac_ext <<_ACEOF
35650 /* end confdefs.h.  */
35651
35652                     #include <stdio.h>
35653                     #include <stdarg.h>
35654                     #ifdef __MSL__
35655                     #if __MSL__ >= 0x6000
35656                     namespace std {}
35657                     using namespace std;
35658                     #endif
35659                     #endif
35660
35661 int
35662 main ()
35663 {
35664
35665                     char *buf;
35666                     va_list args;
35667                     vsscanf(buf, "%s", args);
35668
35669   ;
35670   return 0;
35671 }
35672 _ACEOF
35673 rm -f conftest.$ac_objext
35674 if { (ac_try="$ac_compile"
35675 case "(($ac_try" in
35676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35677   *) ac_try_echo=$ac_try;;
35678 esac
35679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35680   (eval "$ac_compile") 2>conftest.er1
35681   ac_status=$?
35682   grep -v '^ *+' conftest.er1 >conftest.err
35683   rm -f conftest.er1
35684   cat conftest.err >&5
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); } && {
35687          test -z "$ac_cxx_werror_flag" ||
35688          test ! -s conftest.err
35689        } && test -s conftest.$ac_objext; then
35690   wx_cv_func_vsscanf_decl=yes
35691 else
35692   echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35694
35695         wx_cv_func_vsscanf_decl=no
35696
35697 fi
35698
35699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35700
35701
35702 fi
35703 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35704 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35705
35706     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35707         cat >>confdefs.h <<\_ACEOF
35708 #define HAVE_VSSCANF_DECL 1
35709 _ACEOF
35710
35711     fi
35712 fi
35713 ac_ext=c
35714 ac_cpp='$CPP $CPPFLAGS'
35715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35718
35719
35720 if test "$wxUSE_UNICODE" = yes; then
35721
35722             wchar_headers="#include <stdio.h>
35723 #include <wchar.h>"
35724     case "${host}" in
35725         *-*-solaris2* )
35726
35727 for ac_header in widec.h
35728 do
35729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35733   echo $ECHO_N "(cached) $ECHO_C" >&6
35734 else
35735   cat >conftest.$ac_ext <<_ACEOF
35736 /* confdefs.h.  */
35737 _ACEOF
35738 cat confdefs.h >>conftest.$ac_ext
35739 cat >>conftest.$ac_ext <<_ACEOF
35740 /* end confdefs.h.  */
35741 $ac_includes_default
35742
35743 #include <$ac_header>
35744 _ACEOF
35745 rm -f conftest.$ac_objext
35746 if { (ac_try="$ac_compile"
35747 case "(($ac_try" in
35748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35749   *) ac_try_echo=$ac_try;;
35750 esac
35751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35752   (eval "$ac_compile") 2>conftest.er1
35753   ac_status=$?
35754   grep -v '^ *+' conftest.er1 >conftest.err
35755   rm -f conftest.er1
35756   cat conftest.err >&5
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); } && {
35759          test -z "$ac_c_werror_flag" ||
35760          test ! -s conftest.err
35761        } && test -s conftest.$ac_objext; then
35762   eval "$as_ac_Header=yes"
35763 else
35764   echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35766
35767         eval "$as_ac_Header=no"
35768 fi
35769
35770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35771 fi
35772 ac_res=`eval echo '${'$as_ac_Header'}'`
35773                { echo "$as_me:$LINENO: result: $ac_res" >&5
35774 echo "${ECHO_T}$ac_res" >&6; }
35775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35776   cat >>confdefs.h <<_ACEOF
35777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35778 _ACEOF
35779
35780 fi
35781
35782 done
35783
35784             if test "$ac_cv_header_widec_h" = "yes"; then
35785                 wchar_headers="$wchar_headers
35786 #include <widec.h>"
35787             fi
35788     esac
35789
35790
35791   for wx_func in putws fputws wprintf vswprintf vswscanf
35792   do
35793     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35794 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35795 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35796   echo $ECHO_N "(cached) $ECHO_C" >&6
35797 else
35798
35799         cat >conftest.$ac_ext <<_ACEOF
35800
35801             /* confdefs.h.  */
35802 _ACEOF
35803 cat confdefs.h >>conftest.$ac_ext
35804 cat >>conftest.$ac_ext <<_ACEOF
35805 /* end confdefs.h.  */
35806
35807                 $wchar_headers
35808                 $ac_includes_default
35809
35810 int
35811 main ()
35812 {
35813
35814                 #ifndef $wx_func
35815                   &$wx_func;
35816                 #endif
35817
35818
35819   ;
35820   return 0;
35821 }
35822
35823 _ACEOF
35824 rm -f conftest.$ac_objext conftest$ac_exeext
35825 if { (ac_try="$ac_link"
35826 case "(($ac_try" in
35827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35828   *) ac_try_echo=$ac_try;;
35829 esac
35830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35831   (eval "$ac_link") 2>conftest.er1
35832   ac_status=$?
35833   grep -v '^ *+' conftest.er1 >conftest.err
35834   rm -f conftest.er1
35835   cat conftest.err >&5
35836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837   (exit $ac_status); } && {
35838          test -z "$ac_c_werror_flag" ||
35839          test ! -s conftest.err
35840        } && test -s conftest$ac_exeext &&
35841        $as_test_x conftest$ac_exeext; then
35842   eval wx_cv_func_$wx_func=yes
35843 else
35844   echo "$as_me: failed program was:" >&5
35845 sed 's/^/| /' conftest.$ac_ext >&5
35846
35847         eval wx_cv_func_$wx_func=no
35848 fi
35849
35850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35851       conftest$ac_exeext conftest.$ac_ext
35852
35853 fi
35854 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35855                { echo "$as_me:$LINENO: result: $ac_res" >&5
35856 echo "${ECHO_T}$ac_res" >&6; }
35857
35858     if eval test \$wx_cv_func_$wx_func = yes
35859     then
35860       cat >>confdefs.h <<_ACEOF
35861 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35862 _ACEOF
35863
35864
35865     else
35866       :
35867
35868     fi
35869   done
35870
35871
35872                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35873 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35874     cat >conftest.$ac_ext <<_ACEOF
35875 /* confdefs.h.  */
35876 _ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h.  */
35880 #include <wchar.h>
35881 int
35882 main ()
35883 {
35884 &_vsnwprintf;
35885   ;
35886   return 0;
35887 }
35888 _ACEOF
35889 rm -f conftest.$ac_objext
35890 if { (ac_try="$ac_compile"
35891 case "(($ac_try" in
35892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35893   *) ac_try_echo=$ac_try;;
35894 esac
35895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35896   (eval "$ac_compile") 2>conftest.er1
35897   ac_status=$?
35898   grep -v '^ *+' conftest.er1 >conftest.err
35899   rm -f conftest.er1
35900   cat conftest.err >&5
35901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902   (exit $ac_status); } && {
35903          test -z "$ac_c_werror_flag" ||
35904          test ! -s conftest.err
35905        } && test -s conftest.$ac_objext; then
35906   { echo "$as_me:$LINENO: result: yes" >&5
35907 echo "${ECHO_T}yes" >&6; }
35908                     cat >>confdefs.h <<\_ACEOF
35909 #define HAVE__VSNWPRINTF 1
35910 _ACEOF
35911
35912 else
35913   echo "$as_me: failed program was:" >&5
35914 sed 's/^/| /' conftest.$ac_ext >&5
35915
35916         { echo "$as_me:$LINENO: result: no" >&5
35917 echo "${ECHO_T}no" >&6; }
35918 fi
35919
35920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35921 fi
35922
35923 if test "$wxUSE_FILE" = "yes"; then
35924
35925   for wx_func in fsync
35926   do
35927     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35928 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35929 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35930   echo $ECHO_N "(cached) $ECHO_C" >&6
35931 else
35932
35933         cat >conftest.$ac_ext <<_ACEOF
35934
35935             /* confdefs.h.  */
35936 _ACEOF
35937 cat confdefs.h >>conftest.$ac_ext
35938 cat >>conftest.$ac_ext <<_ACEOF
35939 /* end confdefs.h.  */
35940
35941
35942                 $ac_includes_default
35943
35944 int
35945 main ()
35946 {
35947
35948                 #ifndef $wx_func
35949                   &$wx_func;
35950                 #endif
35951
35952
35953   ;
35954   return 0;
35955 }
35956
35957 _ACEOF
35958 rm -f conftest.$ac_objext conftest$ac_exeext
35959 if { (ac_try="$ac_link"
35960 case "(($ac_try" in
35961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35962   *) ac_try_echo=$ac_try;;
35963 esac
35964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35965   (eval "$ac_link") 2>conftest.er1
35966   ac_status=$?
35967   grep -v '^ *+' conftest.er1 >conftest.err
35968   rm -f conftest.er1
35969   cat conftest.err >&5
35970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971   (exit $ac_status); } && {
35972          test -z "$ac_c_werror_flag" ||
35973          test ! -s conftest.err
35974        } && test -s conftest$ac_exeext &&
35975        $as_test_x conftest$ac_exeext; then
35976   eval wx_cv_func_$wx_func=yes
35977 else
35978   echo "$as_me: failed program was:" >&5
35979 sed 's/^/| /' conftest.$ac_ext >&5
35980
35981         eval wx_cv_func_$wx_func=no
35982 fi
35983
35984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35985       conftest$ac_exeext conftest.$ac_ext
35986
35987 fi
35988 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35989                { echo "$as_me:$LINENO: result: $ac_res" >&5
35990 echo "${ECHO_T}$ac_res" >&6; }
35991
35992     if eval test \$wx_cv_func_$wx_func = yes
35993     then
35994       cat >>confdefs.h <<_ACEOF
35995 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35996 _ACEOF
35997
35998
35999     else
36000       :
36001
36002     fi
36003   done
36004
36005 fi
36006
36007 ac_ext=cpp
36008 ac_cpp='$CXXCPP $CPPFLAGS'
36009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36012
36013
36014   for wx_func in round
36015   do
36016     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36017 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36018 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36019   echo $ECHO_N "(cached) $ECHO_C" >&6
36020 else
36021
36022         cat >conftest.$ac_ext <<_ACEOF
36023
36024             /* confdefs.h.  */
36025 _ACEOF
36026 cat confdefs.h >>conftest.$ac_ext
36027 cat >>conftest.$ac_ext <<_ACEOF
36028 /* end confdefs.h.  */
36029
36030                 #include <math.h>
36031                 $ac_includes_default
36032
36033 int
36034 main ()
36035 {
36036
36037                 #ifndef $wx_func
36038                   &$wx_func;
36039                 #endif
36040
36041
36042   ;
36043   return 0;
36044 }
36045
36046 _ACEOF
36047 rm -f conftest.$ac_objext conftest$ac_exeext
36048 if { (ac_try="$ac_link"
36049 case "(($ac_try" in
36050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36051   *) ac_try_echo=$ac_try;;
36052 esac
36053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36054   (eval "$ac_link") 2>conftest.er1
36055   ac_status=$?
36056   grep -v '^ *+' conftest.er1 >conftest.err
36057   rm -f conftest.er1
36058   cat conftest.err >&5
36059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060   (exit $ac_status); } && {
36061          test -z "$ac_cxx_werror_flag" ||
36062          test ! -s conftest.err
36063        } && test -s conftest$ac_exeext &&
36064        $as_test_x conftest$ac_exeext; then
36065   eval wx_cv_func_$wx_func=yes
36066 else
36067   echo "$as_me: failed program was:" >&5
36068 sed 's/^/| /' conftest.$ac_ext >&5
36069
36070         eval wx_cv_func_$wx_func=no
36071 fi
36072
36073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36074       conftest$ac_exeext conftest.$ac_ext
36075
36076 fi
36077 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36078                { echo "$as_me:$LINENO: result: $ac_res" >&5
36079 echo "${ECHO_T}$ac_res" >&6; }
36080
36081     if eval test \$wx_cv_func_$wx_func = yes
36082     then
36083       cat >>confdefs.h <<_ACEOF
36084 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36085 _ACEOF
36086
36087
36088     else
36089       :
36090
36091     fi
36092   done
36093
36094 ac_ext=c
36095 ac_cpp='$CPP $CPPFLAGS'
36096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36099
36100
36101 if test "$TOOLKIT" != "MSW"; then
36102
36103 if test "$wxUSE_LIBICONV" != "no" ; then
36104
36105
36106
36107 # Check whether --with-libiconv-prefix was given.
36108 if test "${with_libiconv_prefix+set}" = set; then
36109   withval=$with_libiconv_prefix;
36110     for dir in `echo "$withval" | tr : ' '`; do
36111       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36112       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36113     done
36114
36115 fi
36116
36117
36118   { echo "$as_me:$LINENO: checking for iconv" >&5
36119 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36120 if test "${am_cv_func_iconv+set}" = set; then
36121   echo $ECHO_N "(cached) $ECHO_C" >&6
36122 else
36123
36124     am_cv_func_iconv="no, consider installing GNU libiconv"
36125     am_cv_lib_iconv=no
36126     cat >conftest.$ac_ext <<_ACEOF
36127 /* confdefs.h.  */
36128 _ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h.  */
36132 #include <stdlib.h>
36133 #include <iconv.h>
36134 int
36135 main ()
36136 {
36137 iconv_t cd = iconv_open("","");
36138        iconv(cd,NULL,NULL,NULL,NULL);
36139        iconv_close(cd);
36140   ;
36141   return 0;
36142 }
36143 _ACEOF
36144 rm -f conftest.$ac_objext conftest$ac_exeext
36145 if { (ac_try="$ac_link"
36146 case "(($ac_try" in
36147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148   *) ac_try_echo=$ac_try;;
36149 esac
36150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36151   (eval "$ac_link") 2>conftest.er1
36152   ac_status=$?
36153   grep -v '^ *+' conftest.er1 >conftest.err
36154   rm -f conftest.er1
36155   cat conftest.err >&5
36156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157   (exit $ac_status); } && {
36158          test -z "$ac_c_werror_flag" ||
36159          test ! -s conftest.err
36160        } && test -s conftest$ac_exeext &&
36161        $as_test_x conftest$ac_exeext; then
36162   am_cv_func_iconv=yes
36163 else
36164   echo "$as_me: failed program was:" >&5
36165 sed 's/^/| /' conftest.$ac_ext >&5
36166
36167
36168 fi
36169
36170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36171       conftest$ac_exeext conftest.$ac_ext
36172     if test "$am_cv_func_iconv" != yes; then
36173       am_save_LIBS="$LIBS"
36174       LIBS="$LIBS -liconv"
36175       cat >conftest.$ac_ext <<_ACEOF
36176 /* confdefs.h.  */
36177 _ACEOF
36178 cat confdefs.h >>conftest.$ac_ext
36179 cat >>conftest.$ac_ext <<_ACEOF
36180 /* end confdefs.h.  */
36181 #include <stdlib.h>
36182 #include <iconv.h>
36183 int
36184 main ()
36185 {
36186 iconv_t cd = iconv_open("","");
36187          iconv(cd,NULL,NULL,NULL,NULL);
36188          iconv_close(cd);
36189   ;
36190   return 0;
36191 }
36192 _ACEOF
36193 rm -f conftest.$ac_objext conftest$ac_exeext
36194 if { (ac_try="$ac_link"
36195 case "(($ac_try" in
36196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36197   *) ac_try_echo=$ac_try;;
36198 esac
36199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36200   (eval "$ac_link") 2>conftest.er1
36201   ac_status=$?
36202   grep -v '^ *+' conftest.er1 >conftest.err
36203   rm -f conftest.er1
36204   cat conftest.err >&5
36205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206   (exit $ac_status); } && {
36207          test -z "$ac_c_werror_flag" ||
36208          test ! -s conftest.err
36209        } && test -s conftest$ac_exeext &&
36210        $as_test_x conftest$ac_exeext; then
36211   am_cv_lib_iconv=yes
36212         am_cv_func_iconv=yes
36213 else
36214   echo "$as_me: failed program was:" >&5
36215 sed 's/^/| /' conftest.$ac_ext >&5
36216
36217
36218 fi
36219
36220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36221       conftest$ac_exeext conftest.$ac_ext
36222       LIBS="$am_save_LIBS"
36223     fi
36224
36225 fi
36226 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36227 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36228   if test "$am_cv_func_iconv" = yes; then
36229
36230 cat >>confdefs.h <<\_ACEOF
36231 #define HAVE_ICONV 1
36232 _ACEOF
36233
36234     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36235 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36236 if test "${wx_cv_func_iconv_const+set}" = set; then
36237   echo $ECHO_N "(cached) $ECHO_C" >&6
36238 else
36239   cat >conftest.$ac_ext <<_ACEOF
36240 /* confdefs.h.  */
36241 _ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h.  */
36245
36246 #include <stdlib.h>
36247 #include <iconv.h>
36248 extern
36249 #ifdef __cplusplus
36250 "C"
36251 #endif
36252 #if defined(__STDC__) || defined(__cplusplus)
36253 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36254 #else
36255 size_t iconv();
36256 #endif
36257
36258 int
36259 main ()
36260 {
36261
36262   ;
36263   return 0;
36264 }
36265 _ACEOF
36266 rm -f conftest.$ac_objext
36267 if { (ac_try="$ac_compile"
36268 case "(($ac_try" in
36269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36270   *) ac_try_echo=$ac_try;;
36271 esac
36272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36273   (eval "$ac_compile") 2>conftest.er1
36274   ac_status=$?
36275   grep -v '^ *+' conftest.er1 >conftest.err
36276   rm -f conftest.er1
36277   cat conftest.err >&5
36278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279   (exit $ac_status); } && {
36280          test -z "$ac_c_werror_flag" ||
36281          test ! -s conftest.err
36282        } && test -s conftest.$ac_objext; then
36283   wx_cv_func_iconv_const="no"
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288         wx_cv_func_iconv_const="yes"
36289
36290 fi
36291
36292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36293
36294 fi
36295 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36296 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36297
36298     iconv_const=
36299     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36300         iconv_const="const"
36301     fi
36302
36303
36304 cat >>confdefs.h <<_ACEOF
36305 #define ICONV_CONST $iconv_const
36306 _ACEOF
36307
36308   fi
36309   LIBICONV=
36310   if test "$am_cv_lib_iconv" = yes; then
36311     LIBICONV="-liconv"
36312   fi
36313
36314
36315     LIBS="$LIBICONV $LIBS"
36316 fi
36317
36318 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36319
36320 for ac_func in sigaction
36321 do
36322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36326   echo $ECHO_N "(cached) $ECHO_C" >&6
36327 else
36328   cat >conftest.$ac_ext <<_ACEOF
36329 /* confdefs.h.  */
36330 _ACEOF
36331 cat confdefs.h >>conftest.$ac_ext
36332 cat >>conftest.$ac_ext <<_ACEOF
36333 /* end confdefs.h.  */
36334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36336 #define $ac_func innocuous_$ac_func
36337
36338 /* System header to define __stub macros and hopefully few prototypes,
36339     which can conflict with char $ac_func (); below.
36340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36341     <limits.h> exists even on freestanding compilers.  */
36342
36343 #ifdef __STDC__
36344 # include <limits.h>
36345 #else
36346 # include <assert.h>
36347 #endif
36348
36349 #undef $ac_func
36350
36351 /* Override any GCC internal prototype to avoid an error.
36352    Use char because int might match the return type of a GCC
36353    builtin and then its argument prototype would still apply.  */
36354 #ifdef __cplusplus
36355 extern "C"
36356 #endif
36357 char $ac_func ();
36358 /* The GNU C library defines this for functions which it implements
36359     to always fail with ENOSYS.  Some functions are actually named
36360     something starting with __ and the normal name is an alias.  */
36361 #if defined __stub_$ac_func || defined __stub___$ac_func
36362 choke me
36363 #endif
36364
36365 int
36366 main ()
36367 {
36368 return $ac_func ();
36369   ;
36370   return 0;
36371 }
36372 _ACEOF
36373 rm -f conftest.$ac_objext conftest$ac_exeext
36374 if { (ac_try="$ac_link"
36375 case "(($ac_try" in
36376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36377   *) ac_try_echo=$ac_try;;
36378 esac
36379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36380   (eval "$ac_link") 2>conftest.er1
36381   ac_status=$?
36382   grep -v '^ *+' conftest.er1 >conftest.err
36383   rm -f conftest.er1
36384   cat conftest.err >&5
36385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386   (exit $ac_status); } && {
36387          test -z "$ac_c_werror_flag" ||
36388          test ! -s conftest.err
36389        } && test -s conftest$ac_exeext &&
36390        $as_test_x conftest$ac_exeext; then
36391   eval "$as_ac_var=yes"
36392 else
36393   echo "$as_me: failed program was:" >&5
36394 sed 's/^/| /' conftest.$ac_ext >&5
36395
36396         eval "$as_ac_var=no"
36397 fi
36398
36399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36400       conftest$ac_exeext conftest.$ac_ext
36401 fi
36402 ac_res=`eval echo '${'$as_ac_var'}'`
36403                { echo "$as_me:$LINENO: result: $ac_res" >&5
36404 echo "${ECHO_T}$ac_res" >&6; }
36405 if test `eval echo '${'$as_ac_var'}'` = yes; then
36406   cat >>confdefs.h <<_ACEOF
36407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36408 _ACEOF
36409
36410 fi
36411 done
36412
36413
36414     if test "$ac_cv_func_sigaction" = "no"; then
36415         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36416 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36417         wxUSE_ON_FATAL_EXCEPTION=no
36418     fi
36419
36420     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36421       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36422 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36423 if test "${wx_cv_type_sa_handler+set}" = set; then
36424   echo $ECHO_N "(cached) $ECHO_C" >&6
36425 else
36426
36427                 ac_ext=cpp
36428 ac_cpp='$CXXCPP $CPPFLAGS'
36429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36432
36433         cat >conftest.$ac_ext <<_ACEOF
36434 /* confdefs.h.  */
36435 _ACEOF
36436 cat confdefs.h >>conftest.$ac_ext
36437 cat >>conftest.$ac_ext <<_ACEOF
36438 /* end confdefs.h.  */
36439 #include <signal.h>
36440 int
36441 main ()
36442 {
36443
36444                         extern void testSigHandler(int);
36445
36446                         struct sigaction sa;
36447                         sa.sa_handler = testSigHandler;
36448
36449   ;
36450   return 0;
36451 }
36452 _ACEOF
36453 rm -f conftest.$ac_objext
36454 if { (ac_try="$ac_compile"
36455 case "(($ac_try" in
36456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36457   *) ac_try_echo=$ac_try;;
36458 esac
36459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36460   (eval "$ac_compile") 2>conftest.er1
36461   ac_status=$?
36462   grep -v '^ *+' conftest.er1 >conftest.err
36463   rm -f conftest.er1
36464   cat conftest.err >&5
36465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466   (exit $ac_status); } && {
36467          test -z "$ac_cxx_werror_flag" ||
36468          test ! -s conftest.err
36469        } && test -s conftest.$ac_objext; then
36470
36471                         wx_cv_type_sa_handler=int
36472
36473 else
36474   echo "$as_me: failed program was:" >&5
36475 sed 's/^/| /' conftest.$ac_ext >&5
36476
36477
36478                         wx_cv_type_sa_handler=void
36479
36480 fi
36481
36482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36483         ac_ext=c
36484 ac_cpp='$CPP $CPPFLAGS'
36485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36488
36489
36490 fi
36491 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36492 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36493
36494       cat >>confdefs.h <<_ACEOF
36495 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36496 _ACEOF
36497
36498     fi
36499 fi
36500
36501 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36502     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36503 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36504 if test "${wx_cv_func_backtrace+set}" = set; then
36505   echo $ECHO_N "(cached) $ECHO_C" >&6
36506 else
36507
36508             ac_ext=cpp
36509 ac_cpp='$CXXCPP $CPPFLAGS'
36510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36513
36514             cat >conftest.$ac_ext <<_ACEOF
36515 /* confdefs.h.  */
36516 _ACEOF
36517 cat confdefs.h >>conftest.$ac_ext
36518 cat >>conftest.$ac_ext <<_ACEOF
36519 /* end confdefs.h.  */
36520 #include <execinfo.h>
36521 int
36522 main ()
36523 {
36524
36525                     void *trace[1];
36526                     char **messages;
36527
36528                     backtrace(trace, 1);
36529                     messages = backtrace_symbols(trace, 1);
36530
36531   ;
36532   return 0;
36533 }
36534 _ACEOF
36535 rm -f conftest.$ac_objext
36536 if { (ac_try="$ac_compile"
36537 case "(($ac_try" in
36538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36539   *) ac_try_echo=$ac_try;;
36540 esac
36541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36542   (eval "$ac_compile") 2>conftest.er1
36543   ac_status=$?
36544   grep -v '^ *+' conftest.er1 >conftest.err
36545   rm -f conftest.er1
36546   cat conftest.err >&5
36547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548   (exit $ac_status); } && {
36549          test -z "$ac_cxx_werror_flag" ||
36550          test ! -s conftest.err
36551        } && test -s conftest.$ac_objext; then
36552   wx_cv_func_backtrace=yes
36553 else
36554   echo "$as_me: failed program was:" >&5
36555 sed 's/^/| /' conftest.$ac_ext >&5
36556
36557         wx_cv_func_backtrace=no
36558
36559 fi
36560
36561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36562             ac_ext=c
36563 ac_cpp='$CPP $CPPFLAGS'
36564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36567
36568
36569
36570 fi
36571 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36572 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36573
36574
36575     if test "$wx_cv_func_backtrace" = "no"; then
36576         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36577 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36578         wxUSE_STACKWALKER=no
36579     else
36580         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36581 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36582 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36583   echo $ECHO_N "(cached) $ECHO_C" >&6
36584 else
36585
36586                 ac_ext=cpp
36587 ac_cpp='$CXXCPP $CPPFLAGS'
36588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36591
36592                 cat >conftest.$ac_ext <<_ACEOF
36593 /* confdefs.h.  */
36594 _ACEOF
36595 cat confdefs.h >>conftest.$ac_ext
36596 cat >>conftest.$ac_ext <<_ACEOF
36597 /* end confdefs.h.  */
36598 #include <cxxabi.h>
36599 int
36600 main ()
36601 {
36602
36603                         int rc;
36604                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36605
36606   ;
36607   return 0;
36608 }
36609 _ACEOF
36610 rm -f conftest.$ac_objext conftest$ac_exeext
36611 if { (ac_try="$ac_link"
36612 case "(($ac_try" in
36613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36614   *) ac_try_echo=$ac_try;;
36615 esac
36616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36617   (eval "$ac_link") 2>conftest.er1
36618   ac_status=$?
36619   grep -v '^ *+' conftest.er1 >conftest.err
36620   rm -f conftest.er1
36621   cat conftest.err >&5
36622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623   (exit $ac_status); } && {
36624          test -z "$ac_cxx_werror_flag" ||
36625          test ! -s conftest.err
36626        } && test -s conftest$ac_exeext &&
36627        $as_test_x conftest$ac_exeext; then
36628   wx_cv_func_cxa_demangle=yes
36629 else
36630   echo "$as_me: failed program was:" >&5
36631 sed 's/^/| /' conftest.$ac_ext >&5
36632
36633         wx_cv_func_cxa_demangle=no
36634
36635 fi
36636
36637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36638       conftest$ac_exeext conftest.$ac_ext
36639                 ac_ext=c
36640 ac_cpp='$CPP $CPPFLAGS'
36641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36644
36645
36646
36647 fi
36648 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36649 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36650
36651         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36652             cat >>confdefs.h <<\_ACEOF
36653 #define HAVE_CXA_DEMANGLE 1
36654 _ACEOF
36655
36656         fi
36657     fi
36658 fi
36659
36660 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36661     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36662 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36663     wxUSE_STACKWALKER=no
36664 fi
36665
36666
36667
36668
36669 for ac_func in mkstemp mktemp
36670 do
36671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36675   echo $ECHO_N "(cached) $ECHO_C" >&6
36676 else
36677   cat >conftest.$ac_ext <<_ACEOF
36678 /* confdefs.h.  */
36679 _ACEOF
36680 cat confdefs.h >>conftest.$ac_ext
36681 cat >>conftest.$ac_ext <<_ACEOF
36682 /* end confdefs.h.  */
36683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36685 #define $ac_func innocuous_$ac_func
36686
36687 /* System header to define __stub macros and hopefully few prototypes,
36688     which can conflict with char $ac_func (); below.
36689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36690     <limits.h> exists even on freestanding compilers.  */
36691
36692 #ifdef __STDC__
36693 # include <limits.h>
36694 #else
36695 # include <assert.h>
36696 #endif
36697
36698 #undef $ac_func
36699
36700 /* Override any GCC internal prototype to avoid an error.
36701    Use char because int might match the return type of a GCC
36702    builtin and then its argument prototype would still apply.  */
36703 #ifdef __cplusplus
36704 extern "C"
36705 #endif
36706 char $ac_func ();
36707 /* The GNU C library defines this for functions which it implements
36708     to always fail with ENOSYS.  Some functions are actually named
36709     something starting with __ and the normal name is an alias.  */
36710 #if defined __stub_$ac_func || defined __stub___$ac_func
36711 choke me
36712 #endif
36713
36714 int
36715 main ()
36716 {
36717 return $ac_func ();
36718   ;
36719   return 0;
36720 }
36721 _ACEOF
36722 rm -f conftest.$ac_objext conftest$ac_exeext
36723 if { (ac_try="$ac_link"
36724 case "(($ac_try" in
36725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36726   *) ac_try_echo=$ac_try;;
36727 esac
36728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36729   (eval "$ac_link") 2>conftest.er1
36730   ac_status=$?
36731   grep -v '^ *+' conftest.er1 >conftest.err
36732   rm -f conftest.er1
36733   cat conftest.err >&5
36734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735   (exit $ac_status); } && {
36736          test -z "$ac_c_werror_flag" ||
36737          test ! -s conftest.err
36738        } && test -s conftest$ac_exeext &&
36739        $as_test_x conftest$ac_exeext; then
36740   eval "$as_ac_var=yes"
36741 else
36742   echo "$as_me: failed program was:" >&5
36743 sed 's/^/| /' conftest.$ac_ext >&5
36744
36745         eval "$as_ac_var=no"
36746 fi
36747
36748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36749       conftest$ac_exeext conftest.$ac_ext
36750 fi
36751 ac_res=`eval echo '${'$as_ac_var'}'`
36752                { echo "$as_me:$LINENO: result: $ac_res" >&5
36753 echo "${ECHO_T}$ac_res" >&6; }
36754 if test `eval echo '${'$as_ac_var'}'` = yes; then
36755   cat >>confdefs.h <<_ACEOF
36756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36757 _ACEOF
36758  break
36759 fi
36760 done
36761
36762
36763 { echo "$as_me:$LINENO: checking for statfs" >&5
36764 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36765 if test "${wx_cv_func_statfs+set}" = set; then
36766   echo $ECHO_N "(cached) $ECHO_C" >&6
36767 else
36768   cat >conftest.$ac_ext <<_ACEOF
36769 /* confdefs.h.  */
36770 _ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h.  */
36774
36775              #if defined(__BSD__)
36776              #include <sys/param.h>
36777              #include <sys/mount.h>
36778              #else
36779              #include <sys/vfs.h>
36780              #endif
36781
36782 int
36783 main ()
36784 {
36785
36786              long l;
36787              struct statfs fs;
36788              statfs("/", &fs);
36789              l = fs.f_bsize;
36790              l += fs.f_blocks;
36791              l += fs.f_bavail;
36792
36793   ;
36794   return 0;
36795 }
36796 _ACEOF
36797 rm -f conftest.$ac_objext
36798 if { (ac_try="$ac_compile"
36799 case "(($ac_try" in
36800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36801   *) ac_try_echo=$ac_try;;
36802 esac
36803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36804   (eval "$ac_compile") 2>conftest.er1
36805   ac_status=$?
36806   grep -v '^ *+' conftest.er1 >conftest.err
36807   rm -f conftest.er1
36808   cat conftest.err >&5
36809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810   (exit $ac_status); } && {
36811          test -z "$ac_c_werror_flag" ||
36812          test ! -s conftest.err
36813        } && test -s conftest.$ac_objext; then
36814   wx_cv_func_statfs=yes
36815 else
36816   echo "$as_me: failed program was:" >&5
36817 sed 's/^/| /' conftest.$ac_ext >&5
36818
36819         wx_cv_func_statfs=no
36820
36821 fi
36822
36823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36824
36825 fi
36826 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36827 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36828
36829 if test "$wx_cv_func_statfs" = "yes"; then
36830         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36831 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36832 if test "${wx_cv_func_statfs_decl+set}" = set; then
36833   echo $ECHO_N "(cached) $ECHO_C" >&6
36834 else
36835   ac_ext=cpp
36836 ac_cpp='$CXXCPP $CPPFLAGS'
36837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36840
36841         cat >conftest.$ac_ext <<_ACEOF
36842 /* confdefs.h.  */
36843 _ACEOF
36844 cat confdefs.h >>conftest.$ac_ext
36845 cat >>conftest.$ac_ext <<_ACEOF
36846 /* end confdefs.h.  */
36847
36848                  #if defined(__BSD__)
36849                  #include <sys/param.h>
36850                  #include <sys/mount.h>
36851                  #else
36852                  #include <sys/vfs.h>
36853                  #endif
36854
36855 int
36856 main ()
36857 {
36858
36859                 struct statfs fs;
36860                 statfs("", &fs);
36861
36862   ;
36863   return 0;
36864 }
36865 _ACEOF
36866 rm -f conftest.$ac_objext
36867 if { (ac_try="$ac_compile"
36868 case "(($ac_try" in
36869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36870   *) ac_try_echo=$ac_try;;
36871 esac
36872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36873   (eval "$ac_compile") 2>conftest.er1
36874   ac_status=$?
36875   grep -v '^ *+' conftest.er1 >conftest.err
36876   rm -f conftest.er1
36877   cat conftest.err >&5
36878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879   (exit $ac_status); } && {
36880          test -z "$ac_cxx_werror_flag" ||
36881          test ! -s conftest.err
36882        } && test -s conftest.$ac_objext; then
36883   wx_cv_func_statfs_decl=yes
36884 else
36885   echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36887
36888         wx_cv_func_statfs_decl=no
36889
36890 fi
36891
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893         ac_ext=c
36894 ac_cpp='$CPP $CPPFLAGS'
36895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36898
36899
36900 fi
36901 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36902 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36903
36904     if test "$wx_cv_func_statfs_decl" = "yes"; then
36905         cat >>confdefs.h <<\_ACEOF
36906 #define HAVE_STATFS_DECL 1
36907 _ACEOF
36908
36909     fi
36910
36911     wx_cv_type_statvfs_t="struct statfs"
36912     cat >>confdefs.h <<\_ACEOF
36913 #define HAVE_STATFS 1
36914 _ACEOF
36915
36916 else
36917     { echo "$as_me:$LINENO: checking for statvfs" >&5
36918 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36919 if test "${wx_cv_func_statvfs+set}" = set; then
36920   echo $ECHO_N "(cached) $ECHO_C" >&6
36921 else
36922   cat >conftest.$ac_ext <<_ACEOF
36923 /* confdefs.h.  */
36924 _ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h.  */
36928
36929                 #include <stddef.h>
36930                 #include <sys/statvfs.h>
36931
36932 int
36933 main ()
36934 {
36935
36936                 statvfs("/", NULL);
36937
36938   ;
36939   return 0;
36940 }
36941 _ACEOF
36942 rm -f conftest.$ac_objext
36943 if { (ac_try="$ac_compile"
36944 case "(($ac_try" in
36945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36946   *) ac_try_echo=$ac_try;;
36947 esac
36948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36949   (eval "$ac_compile") 2>conftest.er1
36950   ac_status=$?
36951   grep -v '^ *+' conftest.er1 >conftest.err
36952   rm -f conftest.er1
36953   cat conftest.err >&5
36954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955   (exit $ac_status); } && {
36956          test -z "$ac_c_werror_flag" ||
36957          test ! -s conftest.err
36958        } && test -s conftest.$ac_objext; then
36959   wx_cv_func_statvfs=yes
36960 else
36961   echo "$as_me: failed program was:" >&5
36962 sed 's/^/| /' conftest.$ac_ext >&5
36963
36964         wx_cv_func_statvfs=no
36965
36966 fi
36967
36968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36969
36970 fi
36971 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36972 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36973
36974     if test "$wx_cv_func_statvfs" = "yes"; then
36975                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36976 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36977 if test "${wx_cv_type_statvfs_t+set}" = set; then
36978   echo $ECHO_N "(cached) $ECHO_C" >&6
36979 else
36980   ac_ext=cpp
36981 ac_cpp='$CXXCPP $CPPFLAGS'
36982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36985
36986             cat >conftest.$ac_ext <<_ACEOF
36987 /* confdefs.h.  */
36988 _ACEOF
36989 cat confdefs.h >>conftest.$ac_ext
36990 cat >>conftest.$ac_ext <<_ACEOF
36991 /* end confdefs.h.  */
36992
36993                     #include <sys/statvfs.h>
36994
36995 int
36996 main ()
36997 {
36998
36999                     long l;
37000                     statvfs_t fs;
37001                     statvfs("/", &fs);
37002                     l = fs.f_bsize;
37003                     l += fs.f_blocks;
37004                     l += fs.f_bavail;
37005
37006   ;
37007   return 0;
37008 }
37009 _ACEOF
37010 rm -f conftest.$ac_objext
37011 if { (ac_try="$ac_compile"
37012 case "(($ac_try" in
37013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014   *) ac_try_echo=$ac_try;;
37015 esac
37016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37017   (eval "$ac_compile") 2>conftest.er1
37018   ac_status=$?
37019   grep -v '^ *+' conftest.er1 >conftest.err
37020   rm -f conftest.er1
37021   cat conftest.err >&5
37022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023   (exit $ac_status); } && {
37024          test -z "$ac_cxx_werror_flag" ||
37025          test ! -s conftest.err
37026        } && test -s conftest.$ac_objext; then
37027   wx_cv_type_statvfs_t=statvfs_t
37028 else
37029   echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37031
37032
37033                     cat >conftest.$ac_ext <<_ACEOF
37034 /* confdefs.h.  */
37035 _ACEOF
37036 cat confdefs.h >>conftest.$ac_ext
37037 cat >>conftest.$ac_ext <<_ACEOF
37038 /* end confdefs.h.  */
37039
37040                             #include <sys/statvfs.h>
37041
37042 int
37043 main ()
37044 {
37045
37046                             long l;
37047                             struct statvfs fs;
37048                             statvfs("/", &fs);
37049                             l = fs.f_bsize;
37050                             l += fs.f_blocks;
37051                             l += fs.f_bavail;
37052
37053   ;
37054   return 0;
37055 }
37056 _ACEOF
37057 rm -f conftest.$ac_objext
37058 if { (ac_try="$ac_compile"
37059 case "(($ac_try" in
37060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37061   *) ac_try_echo=$ac_try;;
37062 esac
37063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37064   (eval "$ac_compile") 2>conftest.er1
37065   ac_status=$?
37066   grep -v '^ *+' conftest.er1 >conftest.err
37067   rm -f conftest.er1
37068   cat conftest.err >&5
37069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070   (exit $ac_status); } && {
37071          test -z "$ac_cxx_werror_flag" ||
37072          test ! -s conftest.err
37073        } && test -s conftest.$ac_objext; then
37074   wx_cv_type_statvfs_t="struct statvfs"
37075 else
37076   echo "$as_me: failed program was:" >&5
37077 sed 's/^/| /' conftest.$ac_ext >&5
37078
37079         wx_cv_type_statvfs_t="unknown"
37080
37081 fi
37082
37083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37084
37085
37086 fi
37087
37088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37089             ac_ext=c
37090 ac_cpp='$CPP $CPPFLAGS'
37091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37094
37095
37096 fi
37097 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37098 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37099
37100         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37101             cat >>confdefs.h <<\_ACEOF
37102 #define HAVE_STATVFS 1
37103 _ACEOF
37104
37105         fi
37106     else
37107                 wx_cv_type_statvfs_t="unknown"
37108     fi
37109 fi
37110
37111 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37112     cat >>confdefs.h <<_ACEOF
37113 #define WX_STATFS_T $wx_cv_type_statvfs_t
37114 _ACEOF
37115
37116 else
37117     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37118 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37119 fi
37120
37121 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37122
37123
37124 for ac_func in fcntl flock
37125 do
37126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37130   echo $ECHO_N "(cached) $ECHO_C" >&6
37131 else
37132   cat >conftest.$ac_ext <<_ACEOF
37133 /* confdefs.h.  */
37134 _ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h.  */
37138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37140 #define $ac_func innocuous_$ac_func
37141
37142 /* System header to define __stub macros and hopefully few prototypes,
37143     which can conflict with char $ac_func (); below.
37144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37145     <limits.h> exists even on freestanding compilers.  */
37146
37147 #ifdef __STDC__
37148 # include <limits.h>
37149 #else
37150 # include <assert.h>
37151 #endif
37152
37153 #undef $ac_func
37154
37155 /* Override any GCC internal prototype to avoid an error.
37156    Use char because int might match the return type of a GCC
37157    builtin and then its argument prototype would still apply.  */
37158 #ifdef __cplusplus
37159 extern "C"
37160 #endif
37161 char $ac_func ();
37162 /* The GNU C library defines this for functions which it implements
37163     to always fail with ENOSYS.  Some functions are actually named
37164     something starting with __ and the normal name is an alias.  */
37165 #if defined __stub_$ac_func || defined __stub___$ac_func
37166 choke me
37167 #endif
37168
37169 int
37170 main ()
37171 {
37172 return $ac_func ();
37173   ;
37174   return 0;
37175 }
37176 _ACEOF
37177 rm -f conftest.$ac_objext conftest$ac_exeext
37178 if { (ac_try="$ac_link"
37179 case "(($ac_try" in
37180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37181   *) ac_try_echo=$ac_try;;
37182 esac
37183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37184   (eval "$ac_link") 2>conftest.er1
37185   ac_status=$?
37186   grep -v '^ *+' conftest.er1 >conftest.err
37187   rm -f conftest.er1
37188   cat conftest.err >&5
37189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190   (exit $ac_status); } && {
37191          test -z "$ac_c_werror_flag" ||
37192          test ! -s conftest.err
37193        } && test -s conftest$ac_exeext &&
37194        $as_test_x conftest$ac_exeext; then
37195   eval "$as_ac_var=yes"
37196 else
37197   echo "$as_me: failed program was:" >&5
37198 sed 's/^/| /' conftest.$ac_ext >&5
37199
37200         eval "$as_ac_var=no"
37201 fi
37202
37203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37204       conftest$ac_exeext conftest.$ac_ext
37205 fi
37206 ac_res=`eval echo '${'$as_ac_var'}'`
37207                { echo "$as_me:$LINENO: result: $ac_res" >&5
37208 echo "${ECHO_T}$ac_res" >&6; }
37209 if test `eval echo '${'$as_ac_var'}'` = yes; then
37210   cat >>confdefs.h <<_ACEOF
37211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37212 _ACEOF
37213  break
37214 fi
37215 done
37216
37217
37218     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37219         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37220 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37221         wxUSE_SNGLINST_CHECKER=no
37222     fi
37223 fi
37224
37225
37226
37227 for ac_func in setenv putenv
37228 do
37229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37233   echo $ECHO_N "(cached) $ECHO_C" >&6
37234 else
37235   cat >conftest.$ac_ext <<_ACEOF
37236 /* confdefs.h.  */
37237 _ACEOF
37238 cat confdefs.h >>conftest.$ac_ext
37239 cat >>conftest.$ac_ext <<_ACEOF
37240 /* end confdefs.h.  */
37241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37243 #define $ac_func innocuous_$ac_func
37244
37245 /* System header to define __stub macros and hopefully few prototypes,
37246     which can conflict with char $ac_func (); below.
37247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37248     <limits.h> exists even on freestanding compilers.  */
37249
37250 #ifdef __STDC__
37251 # include <limits.h>
37252 #else
37253 # include <assert.h>
37254 #endif
37255
37256 #undef $ac_func
37257
37258 /* Override any GCC internal prototype to avoid an error.
37259    Use char because int might match the return type of a GCC
37260    builtin and then its argument prototype would still apply.  */
37261 #ifdef __cplusplus
37262 extern "C"
37263 #endif
37264 char $ac_func ();
37265 /* The GNU C library defines this for functions which it implements
37266     to always fail with ENOSYS.  Some functions are actually named
37267     something starting with __ and the normal name is an alias.  */
37268 #if defined __stub_$ac_func || defined __stub___$ac_func
37269 choke me
37270 #endif
37271
37272 int
37273 main ()
37274 {
37275 return $ac_func ();
37276   ;
37277   return 0;
37278 }
37279 _ACEOF
37280 rm -f conftest.$ac_objext conftest$ac_exeext
37281 if { (ac_try="$ac_link"
37282 case "(($ac_try" in
37283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37284   *) ac_try_echo=$ac_try;;
37285 esac
37286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37287   (eval "$ac_link") 2>conftest.er1
37288   ac_status=$?
37289   grep -v '^ *+' conftest.er1 >conftest.err
37290   rm -f conftest.er1
37291   cat conftest.err >&5
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); } && {
37294          test -z "$ac_c_werror_flag" ||
37295          test ! -s conftest.err
37296        } && test -s conftest$ac_exeext &&
37297        $as_test_x conftest$ac_exeext; then
37298   eval "$as_ac_var=yes"
37299 else
37300   echo "$as_me: failed program was:" >&5
37301 sed 's/^/| /' conftest.$ac_ext >&5
37302
37303         eval "$as_ac_var=no"
37304 fi
37305
37306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37307       conftest$ac_exeext conftest.$ac_ext
37308 fi
37309 ac_res=`eval echo '${'$as_ac_var'}'`
37310                { echo "$as_me:$LINENO: result: $ac_res" >&5
37311 echo "${ECHO_T}$ac_res" >&6; }
37312 if test `eval echo '${'$as_ac_var'}'` = yes; then
37313   cat >>confdefs.h <<_ACEOF
37314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37315 _ACEOF
37316  break
37317 fi
37318 done
37319
37320 if test "$ac_cv_func_setenv" = "yes"; then
37321
37322 for ac_func in unsetenv
37323 do
37324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37328   echo $ECHO_N "(cached) $ECHO_C" >&6
37329 else
37330   cat >conftest.$ac_ext <<_ACEOF
37331 /* confdefs.h.  */
37332 _ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h.  */
37336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37338 #define $ac_func innocuous_$ac_func
37339
37340 /* System header to define __stub macros and hopefully few prototypes,
37341     which can conflict with char $ac_func (); below.
37342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37343     <limits.h> exists even on freestanding compilers.  */
37344
37345 #ifdef __STDC__
37346 # include <limits.h>
37347 #else
37348 # include <assert.h>
37349 #endif
37350
37351 #undef $ac_func
37352
37353 /* Override any GCC internal prototype to avoid an error.
37354    Use char because int might match the return type of a GCC
37355    builtin and then its argument prototype would still apply.  */
37356 #ifdef __cplusplus
37357 extern "C"
37358 #endif
37359 char $ac_func ();
37360 /* The GNU C library defines this for functions which it implements
37361     to always fail with ENOSYS.  Some functions are actually named
37362     something starting with __ and the normal name is an alias.  */
37363 #if defined __stub_$ac_func || defined __stub___$ac_func
37364 choke me
37365 #endif
37366
37367 int
37368 main ()
37369 {
37370 return $ac_func ();
37371   ;
37372   return 0;
37373 }
37374 _ACEOF
37375 rm -f conftest.$ac_objext conftest$ac_exeext
37376 if { (ac_try="$ac_link"
37377 case "(($ac_try" in
37378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37379   *) ac_try_echo=$ac_try;;
37380 esac
37381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37382   (eval "$ac_link") 2>conftest.er1
37383   ac_status=$?
37384   grep -v '^ *+' conftest.er1 >conftest.err
37385   rm -f conftest.er1
37386   cat conftest.err >&5
37387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388   (exit $ac_status); } && {
37389          test -z "$ac_c_werror_flag" ||
37390          test ! -s conftest.err
37391        } && test -s conftest$ac_exeext &&
37392        $as_test_x conftest$ac_exeext; then
37393   eval "$as_ac_var=yes"
37394 else
37395   echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37397
37398         eval "$as_ac_var=no"
37399 fi
37400
37401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37402       conftest$ac_exeext conftest.$ac_ext
37403 fi
37404 ac_res=`eval echo '${'$as_ac_var'}'`
37405                { echo "$as_me:$LINENO: result: $ac_res" >&5
37406 echo "${ECHO_T}$ac_res" >&6; }
37407 if test `eval echo '${'$as_ac_var'}'` = yes; then
37408   cat >>confdefs.h <<_ACEOF
37409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37410 _ACEOF
37411
37412 fi
37413 done
37414
37415 fi
37416
37417 HAVE_SOME_SLEEP_FUNC=0
37418 if test "$USE_BEOS" = 1; then
37419             cat >>confdefs.h <<\_ACEOF
37420 #define HAVE_SLEEP 1
37421 _ACEOF
37422
37423     HAVE_SOME_SLEEP_FUNC=1
37424 fi
37425
37426 if test "$USE_DARWIN" = 1; then
37427             cat >>confdefs.h <<\_ACEOF
37428 #define HAVE_USLEEP 1
37429 _ACEOF
37430
37431     HAVE_SOME_SLEEP_FUNC=1
37432 fi
37433
37434 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37435         POSIX4_LINK=
37436
37437 for ac_func in nanosleep
37438 do
37439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37443   echo $ECHO_N "(cached) $ECHO_C" >&6
37444 else
37445   cat >conftest.$ac_ext <<_ACEOF
37446 /* confdefs.h.  */
37447 _ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h.  */
37451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37453 #define $ac_func innocuous_$ac_func
37454
37455 /* System header to define __stub macros and hopefully few prototypes,
37456     which can conflict with char $ac_func (); below.
37457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37458     <limits.h> exists even on freestanding compilers.  */
37459
37460 #ifdef __STDC__
37461 # include <limits.h>
37462 #else
37463 # include <assert.h>
37464 #endif
37465
37466 #undef $ac_func
37467
37468 /* Override any GCC internal prototype to avoid an error.
37469    Use char because int might match the return type of a GCC
37470    builtin and then its argument prototype would still apply.  */
37471 #ifdef __cplusplus
37472 extern "C"
37473 #endif
37474 char $ac_func ();
37475 /* The GNU C library defines this for functions which it implements
37476     to always fail with ENOSYS.  Some functions are actually named
37477     something starting with __ and the normal name is an alias.  */
37478 #if defined __stub_$ac_func || defined __stub___$ac_func
37479 choke me
37480 #endif
37481
37482 int
37483 main ()
37484 {
37485 return $ac_func ();
37486   ;
37487   return 0;
37488 }
37489 _ACEOF
37490 rm -f conftest.$ac_objext conftest$ac_exeext
37491 if { (ac_try="$ac_link"
37492 case "(($ac_try" in
37493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37494   *) ac_try_echo=$ac_try;;
37495 esac
37496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37497   (eval "$ac_link") 2>conftest.er1
37498   ac_status=$?
37499   grep -v '^ *+' conftest.er1 >conftest.err
37500   rm -f conftest.er1
37501   cat conftest.err >&5
37502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503   (exit $ac_status); } && {
37504          test -z "$ac_c_werror_flag" ||
37505          test ! -s conftest.err
37506        } && test -s conftest$ac_exeext &&
37507        $as_test_x conftest$ac_exeext; then
37508   eval "$as_ac_var=yes"
37509 else
37510   echo "$as_me: failed program was:" >&5
37511 sed 's/^/| /' conftest.$ac_ext >&5
37512
37513         eval "$as_ac_var=no"
37514 fi
37515
37516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37517       conftest$ac_exeext conftest.$ac_ext
37518 fi
37519 ac_res=`eval echo '${'$as_ac_var'}'`
37520                { echo "$as_me:$LINENO: result: $ac_res" >&5
37521 echo "${ECHO_T}$ac_res" >&6; }
37522 if test `eval echo '${'$as_ac_var'}'` = yes; then
37523   cat >>confdefs.h <<_ACEOF
37524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37525 _ACEOF
37526  cat >>confdefs.h <<\_ACEOF
37527 #define HAVE_NANOSLEEP 1
37528 _ACEOF
37529
37530 else
37531
37532             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37533 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37534 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37535   echo $ECHO_N "(cached) $ECHO_C" >&6
37536 else
37537   ac_check_lib_save_LIBS=$LIBS
37538 LIBS="-lposix4  $LIBS"
37539 cat >conftest.$ac_ext <<_ACEOF
37540 /* confdefs.h.  */
37541 _ACEOF
37542 cat confdefs.h >>conftest.$ac_ext
37543 cat >>conftest.$ac_ext <<_ACEOF
37544 /* end confdefs.h.  */
37545
37546 /* Override any GCC internal prototype to avoid an error.
37547    Use char because int might match the return type of a GCC
37548    builtin and then its argument prototype would still apply.  */
37549 #ifdef __cplusplus
37550 extern "C"
37551 #endif
37552 char nanosleep ();
37553 int
37554 main ()
37555 {
37556 return nanosleep ();
37557   ;
37558   return 0;
37559 }
37560 _ACEOF
37561 rm -f conftest.$ac_objext conftest$ac_exeext
37562 if { (ac_try="$ac_link"
37563 case "(($ac_try" in
37564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37565   *) ac_try_echo=$ac_try;;
37566 esac
37567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37568   (eval "$ac_link") 2>conftest.er1
37569   ac_status=$?
37570   grep -v '^ *+' conftest.er1 >conftest.err
37571   rm -f conftest.er1
37572   cat conftest.err >&5
37573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574   (exit $ac_status); } && {
37575          test -z "$ac_c_werror_flag" ||
37576          test ! -s conftest.err
37577        } && test -s conftest$ac_exeext &&
37578        $as_test_x conftest$ac_exeext; then
37579   ac_cv_lib_posix4_nanosleep=yes
37580 else
37581   echo "$as_me: failed program was:" >&5
37582 sed 's/^/| /' conftest.$ac_ext >&5
37583
37584         ac_cv_lib_posix4_nanosleep=no
37585 fi
37586
37587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37588       conftest$ac_exeext conftest.$ac_ext
37589 LIBS=$ac_check_lib_save_LIBS
37590 fi
37591 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37592 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37593 if test $ac_cv_lib_posix4_nanosleep = yes; then
37594
37595                     cat >>confdefs.h <<\_ACEOF
37596 #define HAVE_NANOSLEEP 1
37597 _ACEOF
37598
37599                     POSIX4_LINK=" -lposix4"
37600
37601 else
37602
37603
37604   for wx_func in usleep
37605   do
37606     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37607 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37608 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37609   echo $ECHO_N "(cached) $ECHO_C" >&6
37610 else
37611
37612         cat >conftest.$ac_ext <<_ACEOF
37613
37614             /* confdefs.h.  */
37615 _ACEOF
37616 cat confdefs.h >>conftest.$ac_ext
37617 cat >>conftest.$ac_ext <<_ACEOF
37618 /* end confdefs.h.  */
37619
37620
37621                 $ac_includes_default
37622
37623 int
37624 main ()
37625 {
37626
37627                 #ifndef $wx_func
37628                   &$wx_func;
37629                 #endif
37630
37631
37632   ;
37633   return 0;
37634 }
37635
37636 _ACEOF
37637 rm -f conftest.$ac_objext conftest$ac_exeext
37638 if { (ac_try="$ac_link"
37639 case "(($ac_try" in
37640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37641   *) ac_try_echo=$ac_try;;
37642 esac
37643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37644   (eval "$ac_link") 2>conftest.er1
37645   ac_status=$?
37646   grep -v '^ *+' conftest.er1 >conftest.err
37647   rm -f conftest.er1
37648   cat conftest.err >&5
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); } && {
37651          test -z "$ac_c_werror_flag" ||
37652          test ! -s conftest.err
37653        } && test -s conftest$ac_exeext &&
37654        $as_test_x conftest$ac_exeext; then
37655   eval wx_cv_func_$wx_func=yes
37656 else
37657   echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37659
37660         eval wx_cv_func_$wx_func=no
37661 fi
37662
37663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37664       conftest$ac_exeext conftest.$ac_ext
37665
37666 fi
37667 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37668                { echo "$as_me:$LINENO: result: $ac_res" >&5
37669 echo "${ECHO_T}$ac_res" >&6; }
37670
37671     if eval test \$wx_cv_func_$wx_func = yes
37672     then
37673       cat >>confdefs.h <<_ACEOF
37674 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37675 _ACEOF
37676
37677
37678     else
37679       :
37680       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37681 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37682
37683     fi
37684   done
37685
37686
37687
37688 fi
37689
37690
37691
37692 fi
37693 done
37694
37695 fi
37696
37697
37698   for wx_func in uname
37699   do
37700     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37701 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37702 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37703   echo $ECHO_N "(cached) $ECHO_C" >&6
37704 else
37705
37706         cat >conftest.$ac_ext <<_ACEOF
37707
37708             /* confdefs.h.  */
37709 _ACEOF
37710 cat confdefs.h >>conftest.$ac_ext
37711 cat >>conftest.$ac_ext <<_ACEOF
37712 /* end confdefs.h.  */
37713
37714                 #include <sys/utsname.h>
37715                 $ac_includes_default
37716
37717 int
37718 main ()
37719 {
37720
37721                 #ifndef $wx_func
37722                   &$wx_func;
37723                 #endif
37724
37725
37726   ;
37727   return 0;
37728 }
37729
37730 _ACEOF
37731 rm -f conftest.$ac_objext conftest$ac_exeext
37732 if { (ac_try="$ac_link"
37733 case "(($ac_try" in
37734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37735   *) ac_try_echo=$ac_try;;
37736 esac
37737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37738   (eval "$ac_link") 2>conftest.er1
37739   ac_status=$?
37740   grep -v '^ *+' conftest.er1 >conftest.err
37741   rm -f conftest.er1
37742   cat conftest.err >&5
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); } && {
37745          test -z "$ac_c_werror_flag" ||
37746          test ! -s conftest.err
37747        } && test -s conftest$ac_exeext &&
37748        $as_test_x conftest$ac_exeext; then
37749   eval wx_cv_func_$wx_func=yes
37750 else
37751   echo "$as_me: failed program was:" >&5
37752 sed 's/^/| /' conftest.$ac_ext >&5
37753
37754         eval wx_cv_func_$wx_func=no
37755 fi
37756
37757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37758       conftest$ac_exeext conftest.$ac_ext
37759
37760 fi
37761 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37762                { echo "$as_me:$LINENO: result: $ac_res" >&5
37763 echo "${ECHO_T}$ac_res" >&6; }
37764
37765     if eval test \$wx_cv_func_$wx_func = yes
37766     then
37767       cat >>confdefs.h <<_ACEOF
37768 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37769 _ACEOF
37770
37771
37772     else
37773       :
37774
37775     fi
37776   done
37777
37778 if test "$wx_cv_func_uname" != yes; then
37779
37780   for wx_func in gethostname
37781   do
37782     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37783 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37784 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37785   echo $ECHO_N "(cached) $ECHO_C" >&6
37786 else
37787
37788         cat >conftest.$ac_ext <<_ACEOF
37789
37790             /* confdefs.h.  */
37791 _ACEOF
37792 cat confdefs.h >>conftest.$ac_ext
37793 cat >>conftest.$ac_ext <<_ACEOF
37794 /* end confdefs.h.  */
37795
37796
37797                 $ac_includes_default
37798
37799 int
37800 main ()
37801 {
37802
37803                 #ifndef $wx_func
37804                   &$wx_func;
37805                 #endif
37806
37807
37808   ;
37809   return 0;
37810 }
37811
37812 _ACEOF
37813 rm -f conftest.$ac_objext conftest$ac_exeext
37814 if { (ac_try="$ac_link"
37815 case "(($ac_try" in
37816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37817   *) ac_try_echo=$ac_try;;
37818 esac
37819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37820   (eval "$ac_link") 2>conftest.er1
37821   ac_status=$?
37822   grep -v '^ *+' conftest.er1 >conftest.err
37823   rm -f conftest.er1
37824   cat conftest.err >&5
37825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826   (exit $ac_status); } && {
37827          test -z "$ac_c_werror_flag" ||
37828          test ! -s conftest.err
37829        } && test -s conftest$ac_exeext &&
37830        $as_test_x conftest$ac_exeext; then
37831   eval wx_cv_func_$wx_func=yes
37832 else
37833   echo "$as_me: failed program was:" >&5
37834 sed 's/^/| /' conftest.$ac_ext >&5
37835
37836         eval wx_cv_func_$wx_func=no
37837 fi
37838
37839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37840       conftest$ac_exeext conftest.$ac_ext
37841
37842 fi
37843 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37844                { echo "$as_me:$LINENO: result: $ac_res" >&5
37845 echo "${ECHO_T}$ac_res" >&6; }
37846
37847     if eval test \$wx_cv_func_$wx_func = yes
37848     then
37849       cat >>confdefs.h <<_ACEOF
37850 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37851 _ACEOF
37852
37853
37854     else
37855       :
37856
37857     fi
37858   done
37859
37860 fi
37861
37862
37863   for wx_func in strtok_r
37864   do
37865     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37866 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37867 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37868   echo $ECHO_N "(cached) $ECHO_C" >&6
37869 else
37870
37871         cat >conftest.$ac_ext <<_ACEOF
37872
37873             /* confdefs.h.  */
37874 _ACEOF
37875 cat confdefs.h >>conftest.$ac_ext
37876 cat >>conftest.$ac_ext <<_ACEOF
37877 /* end confdefs.h.  */
37878
37879                 #define _REENTRANT
37880                 $ac_includes_default
37881
37882 int
37883 main ()
37884 {
37885
37886                 #ifndef $wx_func
37887                   &$wx_func;
37888                 #endif
37889
37890
37891   ;
37892   return 0;
37893 }
37894
37895 _ACEOF
37896 rm -f conftest.$ac_objext conftest$ac_exeext
37897 if { (ac_try="$ac_link"
37898 case "(($ac_try" in
37899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37900   *) ac_try_echo=$ac_try;;
37901 esac
37902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37903   (eval "$ac_link") 2>conftest.er1
37904   ac_status=$?
37905   grep -v '^ *+' conftest.er1 >conftest.err
37906   rm -f conftest.er1
37907   cat conftest.err >&5
37908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909   (exit $ac_status); } && {
37910          test -z "$ac_c_werror_flag" ||
37911          test ! -s conftest.err
37912        } && test -s conftest$ac_exeext &&
37913        $as_test_x conftest$ac_exeext; then
37914   eval wx_cv_func_$wx_func=yes
37915 else
37916   echo "$as_me: failed program was:" >&5
37917 sed 's/^/| /' conftest.$ac_ext >&5
37918
37919         eval wx_cv_func_$wx_func=no
37920 fi
37921
37922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37923       conftest$ac_exeext conftest.$ac_ext
37924
37925 fi
37926 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37927                { echo "$as_me:$LINENO: result: $ac_res" >&5
37928 echo "${ECHO_T}$ac_res" >&6; }
37929
37930     if eval test \$wx_cv_func_$wx_func = yes
37931     then
37932       cat >>confdefs.h <<_ACEOF
37933 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37934 _ACEOF
37935
37936
37937     else
37938       :
37939
37940     fi
37941   done
37942
37943
37944 INET_LINK=
37945
37946 for ac_func in inet_addr
37947 do
37948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37952   echo $ECHO_N "(cached) $ECHO_C" >&6
37953 else
37954   cat >conftest.$ac_ext <<_ACEOF
37955 /* confdefs.h.  */
37956 _ACEOF
37957 cat confdefs.h >>conftest.$ac_ext
37958 cat >>conftest.$ac_ext <<_ACEOF
37959 /* end confdefs.h.  */
37960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37962 #define $ac_func innocuous_$ac_func
37963
37964 /* System header to define __stub macros and hopefully few prototypes,
37965     which can conflict with char $ac_func (); below.
37966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37967     <limits.h> exists even on freestanding compilers.  */
37968
37969 #ifdef __STDC__
37970 # include <limits.h>
37971 #else
37972 # include <assert.h>
37973 #endif
37974
37975 #undef $ac_func
37976
37977 /* Override any GCC internal prototype to avoid an error.
37978    Use char because int might match the return type of a GCC
37979    builtin and then its argument prototype would still apply.  */
37980 #ifdef __cplusplus
37981 extern "C"
37982 #endif
37983 char $ac_func ();
37984 /* The GNU C library defines this for functions which it implements
37985     to always fail with ENOSYS.  Some functions are actually named
37986     something starting with __ and the normal name is an alias.  */
37987 #if defined __stub_$ac_func || defined __stub___$ac_func
37988 choke me
37989 #endif
37990
37991 int
37992 main ()
37993 {
37994 return $ac_func ();
37995   ;
37996   return 0;
37997 }
37998 _ACEOF
37999 rm -f conftest.$ac_objext conftest$ac_exeext
38000 if { (ac_try="$ac_link"
38001 case "(($ac_try" in
38002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38003   *) ac_try_echo=$ac_try;;
38004 esac
38005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38006   (eval "$ac_link") 2>conftest.er1
38007   ac_status=$?
38008   grep -v '^ *+' conftest.er1 >conftest.err
38009   rm -f conftest.er1
38010   cat conftest.err >&5
38011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012   (exit $ac_status); } && {
38013          test -z "$ac_c_werror_flag" ||
38014          test ! -s conftest.err
38015        } && test -s conftest$ac_exeext &&
38016        $as_test_x conftest$ac_exeext; then
38017   eval "$as_ac_var=yes"
38018 else
38019   echo "$as_me: failed program was:" >&5
38020 sed 's/^/| /' conftest.$ac_ext >&5
38021
38022         eval "$as_ac_var=no"
38023 fi
38024
38025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38026       conftest$ac_exeext conftest.$ac_ext
38027 fi
38028 ac_res=`eval echo '${'$as_ac_var'}'`
38029                { echo "$as_me:$LINENO: result: $ac_res" >&5
38030 echo "${ECHO_T}$ac_res" >&6; }
38031 if test `eval echo '${'$as_ac_var'}'` = yes; then
38032   cat >>confdefs.h <<_ACEOF
38033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38034 _ACEOF
38035  cat >>confdefs.h <<\_ACEOF
38036 #define HAVE_INET_ADDR 1
38037 _ACEOF
38038
38039 else
38040
38041         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38042 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38043 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38044   echo $ECHO_N "(cached) $ECHO_C" >&6
38045 else
38046   ac_check_lib_save_LIBS=$LIBS
38047 LIBS="-lnsl  $LIBS"
38048 cat >conftest.$ac_ext <<_ACEOF
38049 /* confdefs.h.  */
38050 _ACEOF
38051 cat confdefs.h >>conftest.$ac_ext
38052 cat >>conftest.$ac_ext <<_ACEOF
38053 /* end confdefs.h.  */
38054
38055 /* Override any GCC internal prototype to avoid an error.
38056    Use char because int might match the return type of a GCC
38057    builtin and then its argument prototype would still apply.  */
38058 #ifdef __cplusplus
38059 extern "C"
38060 #endif
38061 char inet_addr ();
38062 int
38063 main ()
38064 {
38065 return inet_addr ();
38066   ;
38067   return 0;
38068 }
38069 _ACEOF
38070 rm -f conftest.$ac_objext conftest$ac_exeext
38071 if { (ac_try="$ac_link"
38072 case "(($ac_try" in
38073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38074   *) ac_try_echo=$ac_try;;
38075 esac
38076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38077   (eval "$ac_link") 2>conftest.er1
38078   ac_status=$?
38079   grep -v '^ *+' conftest.er1 >conftest.err
38080   rm -f conftest.er1
38081   cat conftest.err >&5
38082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38083   (exit $ac_status); } && {
38084          test -z "$ac_c_werror_flag" ||
38085          test ! -s conftest.err
38086        } && test -s conftest$ac_exeext &&
38087        $as_test_x conftest$ac_exeext; then
38088   ac_cv_lib_nsl_inet_addr=yes
38089 else
38090   echo "$as_me: failed program was:" >&5
38091 sed 's/^/| /' conftest.$ac_ext >&5
38092
38093         ac_cv_lib_nsl_inet_addr=no
38094 fi
38095
38096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38097       conftest$ac_exeext conftest.$ac_ext
38098 LIBS=$ac_check_lib_save_LIBS
38099 fi
38100 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38101 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38102 if test $ac_cv_lib_nsl_inet_addr = yes; then
38103   INET_LINK="nsl"
38104 else
38105
38106                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38107 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38108 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38109   echo $ECHO_N "(cached) $ECHO_C" >&6
38110 else
38111   ac_check_lib_save_LIBS=$LIBS
38112 LIBS="-lresolv  $LIBS"
38113 cat >conftest.$ac_ext <<_ACEOF
38114 /* confdefs.h.  */
38115 _ACEOF
38116 cat confdefs.h >>conftest.$ac_ext
38117 cat >>conftest.$ac_ext <<_ACEOF
38118 /* end confdefs.h.  */
38119
38120 /* Override any GCC internal prototype to avoid an error.
38121    Use char because int might match the return type of a GCC
38122    builtin and then its argument prototype would still apply.  */
38123 #ifdef __cplusplus
38124 extern "C"
38125 #endif
38126 char inet_addr ();
38127 int
38128 main ()
38129 {
38130 return inet_addr ();
38131   ;
38132   return 0;
38133 }
38134 _ACEOF
38135 rm -f conftest.$ac_objext conftest$ac_exeext
38136 if { (ac_try="$ac_link"
38137 case "(($ac_try" in
38138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38139   *) ac_try_echo=$ac_try;;
38140 esac
38141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38142   (eval "$ac_link") 2>conftest.er1
38143   ac_status=$?
38144   grep -v '^ *+' conftest.er1 >conftest.err
38145   rm -f conftest.er1
38146   cat conftest.err >&5
38147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148   (exit $ac_status); } && {
38149          test -z "$ac_c_werror_flag" ||
38150          test ! -s conftest.err
38151        } && test -s conftest$ac_exeext &&
38152        $as_test_x conftest$ac_exeext; then
38153   ac_cv_lib_resolv_inet_addr=yes
38154 else
38155   echo "$as_me: failed program was:" >&5
38156 sed 's/^/| /' conftest.$ac_ext >&5
38157
38158         ac_cv_lib_resolv_inet_addr=no
38159 fi
38160
38161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38162       conftest$ac_exeext conftest.$ac_ext
38163 LIBS=$ac_check_lib_save_LIBS
38164 fi
38165 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38166 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38167 if test $ac_cv_lib_resolv_inet_addr = yes; then
38168   INET_LINK="resolv"
38169 else
38170
38171                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38172 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38173 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38174   echo $ECHO_N "(cached) $ECHO_C" >&6
38175 else
38176   ac_check_lib_save_LIBS=$LIBS
38177 LIBS="-lsocket  $LIBS"
38178 cat >conftest.$ac_ext <<_ACEOF
38179 /* confdefs.h.  */
38180 _ACEOF
38181 cat confdefs.h >>conftest.$ac_ext
38182 cat >>conftest.$ac_ext <<_ACEOF
38183 /* end confdefs.h.  */
38184
38185 /* Override any GCC internal prototype to avoid an error.
38186    Use char because int might match the return type of a GCC
38187    builtin and then its argument prototype would still apply.  */
38188 #ifdef __cplusplus
38189 extern "C"
38190 #endif
38191 char inet_addr ();
38192 int
38193 main ()
38194 {
38195 return inet_addr ();
38196   ;
38197   return 0;
38198 }
38199 _ACEOF
38200 rm -f conftest.$ac_objext conftest$ac_exeext
38201 if { (ac_try="$ac_link"
38202 case "(($ac_try" in
38203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38204   *) ac_try_echo=$ac_try;;
38205 esac
38206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38207   (eval "$ac_link") 2>conftest.er1
38208   ac_status=$?
38209   grep -v '^ *+' conftest.er1 >conftest.err
38210   rm -f conftest.er1
38211   cat conftest.err >&5
38212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213   (exit $ac_status); } && {
38214          test -z "$ac_c_werror_flag" ||
38215          test ! -s conftest.err
38216        } && test -s conftest$ac_exeext &&
38217        $as_test_x conftest$ac_exeext; then
38218   ac_cv_lib_socket_inet_addr=yes
38219 else
38220   echo "$as_me: failed program was:" >&5
38221 sed 's/^/| /' conftest.$ac_ext >&5
38222
38223         ac_cv_lib_socket_inet_addr=no
38224 fi
38225
38226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38227       conftest$ac_exeext conftest.$ac_ext
38228 LIBS=$ac_check_lib_save_LIBS
38229 fi
38230 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38231 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38232 if test $ac_cv_lib_socket_inet_addr = yes; then
38233   INET_LINK="socket"
38234
38235 fi
38236
38237
38238
38239 fi
38240
38241
38242
38243 fi
38244
38245
38246
38247 fi
38248 done
38249
38250
38251
38252 for ac_func in inet_aton
38253 do
38254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38258   echo $ECHO_N "(cached) $ECHO_C" >&6
38259 else
38260   cat >conftest.$ac_ext <<_ACEOF
38261 /* confdefs.h.  */
38262 _ACEOF
38263 cat confdefs.h >>conftest.$ac_ext
38264 cat >>conftest.$ac_ext <<_ACEOF
38265 /* end confdefs.h.  */
38266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38268 #define $ac_func innocuous_$ac_func
38269
38270 /* System header to define __stub macros and hopefully few prototypes,
38271     which can conflict with char $ac_func (); below.
38272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38273     <limits.h> exists even on freestanding compilers.  */
38274
38275 #ifdef __STDC__
38276 # include <limits.h>
38277 #else
38278 # include <assert.h>
38279 #endif
38280
38281 #undef $ac_func
38282
38283 /* Override any GCC internal prototype to avoid an error.
38284    Use char because int might match the return type of a GCC
38285    builtin and then its argument prototype would still apply.  */
38286 #ifdef __cplusplus
38287 extern "C"
38288 #endif
38289 char $ac_func ();
38290 /* The GNU C library defines this for functions which it implements
38291     to always fail with ENOSYS.  Some functions are actually named
38292     something starting with __ and the normal name is an alias.  */
38293 #if defined __stub_$ac_func || defined __stub___$ac_func
38294 choke me
38295 #endif
38296
38297 int
38298 main ()
38299 {
38300 return $ac_func ();
38301   ;
38302   return 0;
38303 }
38304 _ACEOF
38305 rm -f conftest.$ac_objext conftest$ac_exeext
38306 if { (ac_try="$ac_link"
38307 case "(($ac_try" in
38308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38309   *) ac_try_echo=$ac_try;;
38310 esac
38311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38312   (eval "$ac_link") 2>conftest.er1
38313   ac_status=$?
38314   grep -v '^ *+' conftest.er1 >conftest.err
38315   rm -f conftest.er1
38316   cat conftest.err >&5
38317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38318   (exit $ac_status); } && {
38319          test -z "$ac_c_werror_flag" ||
38320          test ! -s conftest.err
38321        } && test -s conftest$ac_exeext &&
38322        $as_test_x conftest$ac_exeext; then
38323   eval "$as_ac_var=yes"
38324 else
38325   echo "$as_me: failed program was:" >&5
38326 sed 's/^/| /' conftest.$ac_ext >&5
38327
38328         eval "$as_ac_var=no"
38329 fi
38330
38331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38332       conftest$ac_exeext conftest.$ac_ext
38333 fi
38334 ac_res=`eval echo '${'$as_ac_var'}'`
38335                { echo "$as_me:$LINENO: result: $ac_res" >&5
38336 echo "${ECHO_T}$ac_res" >&6; }
38337 if test `eval echo '${'$as_ac_var'}'` = yes; then
38338   cat >>confdefs.h <<_ACEOF
38339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38340 _ACEOF
38341  cat >>confdefs.h <<\_ACEOF
38342 #define HAVE_INET_ATON 1
38343 _ACEOF
38344
38345 else
38346
38347                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38348 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38349 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38350 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38351   echo $ECHO_N "(cached) $ECHO_C" >&6
38352 else
38353   ac_check_lib_save_LIBS=$LIBS
38354 LIBS="-l$INET_LINK  $LIBS"
38355 cat >conftest.$ac_ext <<_ACEOF
38356 /* confdefs.h.  */
38357 _ACEOF
38358 cat confdefs.h >>conftest.$ac_ext
38359 cat >>conftest.$ac_ext <<_ACEOF
38360 /* end confdefs.h.  */
38361
38362 /* Override any GCC internal prototype to avoid an error.
38363    Use char because int might match the return type of a GCC
38364    builtin and then its argument prototype would still apply.  */
38365 #ifdef __cplusplus
38366 extern "C"
38367 #endif
38368 char inet_aton ();
38369 int
38370 main ()
38371 {
38372 return inet_aton ();
38373   ;
38374   return 0;
38375 }
38376 _ACEOF
38377 rm -f conftest.$ac_objext conftest$ac_exeext
38378 if { (ac_try="$ac_link"
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_link") 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_c_werror_flag" ||
38392          test ! -s conftest.err
38393        } && test -s conftest$ac_exeext &&
38394        $as_test_x conftest$ac_exeext; then
38395   eval "$as_ac_Lib=yes"
38396 else
38397   echo "$as_me: failed program was:" >&5
38398 sed 's/^/| /' conftest.$ac_ext >&5
38399
38400         eval "$as_ac_Lib=no"
38401 fi
38402
38403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38404       conftest$ac_exeext conftest.$ac_ext
38405 LIBS=$ac_check_lib_save_LIBS
38406 fi
38407 ac_res=`eval echo '${'$as_ac_Lib'}'`
38408                { echo "$as_me:$LINENO: result: $ac_res" >&5
38409 echo "${ECHO_T}$ac_res" >&6; }
38410 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38411   cat >>confdefs.h <<\_ACEOF
38412 #define HAVE_INET_ATON 1
38413 _ACEOF
38414
38415 fi
38416
38417
38418 fi
38419 done
38420
38421
38422 if test "x$INET_LINK" != "x"; then
38423     cat >>confdefs.h <<\_ACEOF
38424 #define HAVE_INET_ADDR 1
38425 _ACEOF
38426
38427     INET_LINK=" -l$INET_LINK"
38428 fi
38429
38430
38431   for wx_func in fdopen
38432   do
38433     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38434 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38435 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38436   echo $ECHO_N "(cached) $ECHO_C" >&6
38437 else
38438
38439         cat >conftest.$ac_ext <<_ACEOF
38440
38441             /* confdefs.h.  */
38442 _ACEOF
38443 cat confdefs.h >>conftest.$ac_ext
38444 cat >>conftest.$ac_ext <<_ACEOF
38445 /* end confdefs.h.  */
38446
38447
38448                 $ac_includes_default
38449
38450 int
38451 main ()
38452 {
38453
38454                 #ifndef $wx_func
38455                   &$wx_func;
38456                 #endif
38457
38458
38459   ;
38460   return 0;
38461 }
38462
38463 _ACEOF
38464 rm -f conftest.$ac_objext conftest$ac_exeext
38465 if { (ac_try="$ac_link"
38466 case "(($ac_try" in
38467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38468   *) ac_try_echo=$ac_try;;
38469 esac
38470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38471   (eval "$ac_link") 2>conftest.er1
38472   ac_status=$?
38473   grep -v '^ *+' conftest.er1 >conftest.err
38474   rm -f conftest.er1
38475   cat conftest.err >&5
38476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38477   (exit $ac_status); } && {
38478          test -z "$ac_c_werror_flag" ||
38479          test ! -s conftest.err
38480        } && test -s conftest$ac_exeext &&
38481        $as_test_x conftest$ac_exeext; then
38482   eval wx_cv_func_$wx_func=yes
38483 else
38484   echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38486
38487         eval wx_cv_func_$wx_func=no
38488 fi
38489
38490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38491       conftest$ac_exeext conftest.$ac_ext
38492
38493 fi
38494 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38495                { echo "$as_me:$LINENO: result: $ac_res" >&5
38496 echo "${ECHO_T}$ac_res" >&6; }
38497
38498     if eval test \$wx_cv_func_$wx_func = yes
38499     then
38500       cat >>confdefs.h <<_ACEOF
38501 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38502 _ACEOF
38503
38504
38505     else
38506       :
38507
38508     fi
38509   done
38510
38511
38512 if test "$wxUSE_TARSTREAM" = "yes"; then
38513
38514   for wx_func in sysconf
38515   do
38516     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38517 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38518 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38519   echo $ECHO_N "(cached) $ECHO_C" >&6
38520 else
38521
38522         cat >conftest.$ac_ext <<_ACEOF
38523
38524             /* confdefs.h.  */
38525 _ACEOF
38526 cat confdefs.h >>conftest.$ac_ext
38527 cat >>conftest.$ac_ext <<_ACEOF
38528 /* end confdefs.h.  */
38529
38530
38531                 $ac_includes_default
38532
38533 int
38534 main ()
38535 {
38536
38537                 #ifndef $wx_func
38538                   &$wx_func;
38539                 #endif
38540
38541
38542   ;
38543   return 0;
38544 }
38545
38546 _ACEOF
38547 rm -f conftest.$ac_objext conftest$ac_exeext
38548 if { (ac_try="$ac_link"
38549 case "(($ac_try" in
38550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38551   *) ac_try_echo=$ac_try;;
38552 esac
38553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38554   (eval "$ac_link") 2>conftest.er1
38555   ac_status=$?
38556   grep -v '^ *+' conftest.er1 >conftest.err
38557   rm -f conftest.er1
38558   cat conftest.err >&5
38559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560   (exit $ac_status); } && {
38561          test -z "$ac_c_werror_flag" ||
38562          test ! -s conftest.err
38563        } && test -s conftest$ac_exeext &&
38564        $as_test_x conftest$ac_exeext; then
38565   eval wx_cv_func_$wx_func=yes
38566 else
38567   echo "$as_me: failed program was:" >&5
38568 sed 's/^/| /' conftest.$ac_ext >&5
38569
38570         eval wx_cv_func_$wx_func=no
38571 fi
38572
38573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38574       conftest$ac_exeext conftest.$ac_ext
38575
38576 fi
38577 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38578                { echo "$as_me:$LINENO: result: $ac_res" >&5
38579 echo "${ECHO_T}$ac_res" >&6; }
38580
38581     if eval test \$wx_cv_func_$wx_func = yes
38582     then
38583       cat >>confdefs.h <<_ACEOF
38584 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38585 _ACEOF
38586
38587
38588     else
38589       :
38590
38591     fi
38592   done
38593
38594
38595
38596   for wx_func in getpwuid_r
38597   do
38598     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38599 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38600 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38601   echo $ECHO_N "(cached) $ECHO_C" >&6
38602 else
38603
38604         cat >conftest.$ac_ext <<_ACEOF
38605
38606             /* confdefs.h.  */
38607 _ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h.  */
38611
38612
38613                     #define _REENTRANT
38614                     #include <pwd.h>
38615
38616                 $ac_includes_default
38617
38618 int
38619 main ()
38620 {
38621
38622                 #ifndef $wx_func
38623                   &$wx_func;
38624                 #endif
38625
38626                     struct passwd pw, *ppw;
38627                     char buf[1024];
38628                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38629
38630
38631   ;
38632   return 0;
38633 }
38634
38635 _ACEOF
38636 rm -f conftest.$ac_objext conftest$ac_exeext
38637 if { (ac_try="$ac_link"
38638 case "(($ac_try" in
38639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38640   *) ac_try_echo=$ac_try;;
38641 esac
38642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38643   (eval "$ac_link") 2>conftest.er1
38644   ac_status=$?
38645   grep -v '^ *+' conftest.er1 >conftest.err
38646   rm -f conftest.er1
38647   cat conftest.err >&5
38648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649   (exit $ac_status); } && {
38650          test -z "$ac_c_werror_flag" ||
38651          test ! -s conftest.err
38652        } && test -s conftest$ac_exeext &&
38653        $as_test_x conftest$ac_exeext; then
38654   eval wx_cv_func_$wx_func=yes
38655 else
38656   echo "$as_me: failed program was:" >&5
38657 sed 's/^/| /' conftest.$ac_ext >&5
38658
38659         eval wx_cv_func_$wx_func=no
38660 fi
38661
38662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38663       conftest$ac_exeext conftest.$ac_ext
38664
38665 fi
38666 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38667                { echo "$as_me:$LINENO: result: $ac_res" >&5
38668 echo "${ECHO_T}$ac_res" >&6; }
38669
38670     if eval test \$wx_cv_func_$wx_func = yes
38671     then
38672       cat >>confdefs.h <<_ACEOF
38673 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38674 _ACEOF
38675
38676
38677     else
38678       :
38679
38680     fi
38681   done
38682
38683
38684
38685   for wx_func in getgrgid_r
38686   do
38687     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38688 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38689 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38690   echo $ECHO_N "(cached) $ECHO_C" >&6
38691 else
38692
38693         cat >conftest.$ac_ext <<_ACEOF
38694
38695             /* confdefs.h.  */
38696 _ACEOF
38697 cat confdefs.h >>conftest.$ac_ext
38698 cat >>conftest.$ac_ext <<_ACEOF
38699 /* end confdefs.h.  */
38700
38701
38702                     #define _REENTRANT
38703                     #include <grp.h>
38704
38705                 $ac_includes_default
38706
38707 int
38708 main ()
38709 {
38710
38711                 #ifndef $wx_func
38712                   &$wx_func;
38713                 #endif
38714
38715                     struct group grp, *pgrp;
38716                     char buf[1024];
38717                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38718
38719
38720   ;
38721   return 0;
38722 }
38723
38724 _ACEOF
38725 rm -f conftest.$ac_objext conftest$ac_exeext
38726 if { (ac_try="$ac_link"
38727 case "(($ac_try" in
38728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38729   *) ac_try_echo=$ac_try;;
38730 esac
38731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38732   (eval "$ac_link") 2>conftest.er1
38733   ac_status=$?
38734   grep -v '^ *+' conftest.er1 >conftest.err
38735   rm -f conftest.er1
38736   cat conftest.err >&5
38737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738   (exit $ac_status); } && {
38739          test -z "$ac_c_werror_flag" ||
38740          test ! -s conftest.err
38741        } && test -s conftest$ac_exeext &&
38742        $as_test_x conftest$ac_exeext; then
38743   eval wx_cv_func_$wx_func=yes
38744 else
38745   echo "$as_me: failed program was:" >&5
38746 sed 's/^/| /' conftest.$ac_ext >&5
38747
38748         eval wx_cv_func_$wx_func=no
38749 fi
38750
38751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38752       conftest$ac_exeext conftest.$ac_ext
38753
38754 fi
38755 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38756                { echo "$as_me:$LINENO: result: $ac_res" >&5
38757 echo "${ECHO_T}$ac_res" >&6; }
38758
38759     if eval test \$wx_cv_func_$wx_func = yes
38760     then
38761       cat >>confdefs.h <<_ACEOF
38762 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38763 _ACEOF
38764
38765
38766     else
38767       :
38768
38769     fi
38770   done
38771
38772 fi
38773
38774 fi
38775
38776
38777
38778 cat >confcache <<\_ACEOF
38779 # This file is a shell script that caches the results of configure
38780 # tests run on this system so they can be shared between configure
38781 # scripts and configure runs, see configure's option --config-cache.
38782 # It is not useful on other systems.  If it contains results you don't
38783 # want to keep, you may remove or edit it.
38784 #
38785 # config.status only pays attention to the cache file if you give it
38786 # the --recheck option to rerun configure.
38787 #
38788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38790 # following values.
38791
38792 _ACEOF
38793
38794 # The following way of writing the cache mishandles newlines in values,
38795 # but we know of no workaround that is simple, portable, and efficient.
38796 # So, we kill variables containing newlines.
38797 # Ultrix sh set writes to stderr and can't be redirected directly,
38798 # and sets the high bit in the cache file unless we assign to the vars.
38799 (
38800   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38801     eval ac_val=\$$ac_var
38802     case $ac_val in #(
38803     *${as_nl}*)
38804       case $ac_var in #(
38805       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38807       esac
38808       case $ac_var in #(
38809       _ | IFS | as_nl) ;; #(
38810       *) $as_unset $ac_var ;;
38811       esac ;;
38812     esac
38813   done
38814
38815   (set) 2>&1 |
38816     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38817     *${as_nl}ac_space=\ *)
38818       # `set' does not quote correctly, so add quotes (double-quote
38819       # substitution turns \\\\ into \\, and sed turns \\ into \).
38820       sed -n \
38821         "s/'/'\\\\''/g;
38822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38823       ;; #(
38824     *)
38825       # `set' quotes correctly as required by POSIX, so do not add quotes.
38826       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38827       ;;
38828     esac |
38829     sort
38830 ) |
38831   sed '
38832      /^ac_cv_env_/b end
38833      t clear
38834      :clear
38835      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38836      t end
38837      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38838      :end' >>confcache
38839 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38840   if test -w "$cache_file"; then
38841     test "x$cache_file" != "x/dev/null" &&
38842       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38843 echo "$as_me: updating cache $cache_file" >&6;}
38844     cat confcache >$cache_file
38845   else
38846     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38847 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38848   fi
38849 fi
38850 rm -f confcache
38851
38852
38853 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38854
38855
38856     THREADS_LINK=
38857     THREADS_CFLAGS=
38858
38859     if test "$wxUSE_THREADS" = "yes" ; then
38860         if test "$USE_BEOS" = 1; then
38861             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38862 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38863             wxUSE_THREADS="no"
38864         fi
38865     fi
38866
38867     if test "$wxUSE_THREADS" = "yes" ; then
38868
38869
38870                                 THREAD_OPTS="-pthread"
38871         if test "x$SUNCXX" = xyes; then
38872             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38873         fi
38874
38875         case "${host}" in
38876           *-*-solaris2* | *-*-sunos4* )
38877                 if test "x$GCC" = "xyes"; then
38878                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38879                 fi
38880                 ;;
38881           *-*-freebsd*)
38882                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38883                 ;;
38884           *-*-darwin* | *-*-cygwin* )
38885                                                 THREAD_OPTS=""
38886                 ;;
38887           *-*-aix*)
38888                                 THREAD_OPTS="pthreads"
38889                 ;;
38890           *-hp-hpux* )
38891                 if test "x$GCC" = "xyes"; then
38892                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38893                         THREAD_OPTS=""
38894                 else
38895                                                             THREAD_OPTS="-mt"
38896                 fi
38897                 ;;
38898
38899           *-*-irix* )
38900                                                                 if test "x$GCC" = "xyes"; then
38901                     THREAD_OPTS=""
38902                 fi
38903                 ;;
38904
38905           *-*-*UnixWare*)
38906                                 if test "x$GCC" != "xyes"; then
38907                     THREAD_OPTS="-Ethread"
38908                 fi
38909                 ;;
38910         esac
38911
38912                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38913
38914                 THREADS_OK=no
38915         for flag in $THREAD_OPTS; do
38916             case $flag in
38917                 none)
38918                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38919 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38920                     ;;
38921
38922                 -*)
38923                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38924 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38925                     THREADS_CFLAGS="$flag"
38926                     ;;
38927
38928                 *)
38929                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38930 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38931                     THREADS_LINK="-l$flag"
38932                     ;;
38933               esac
38934
38935               save_LIBS="$LIBS"
38936               save_CFLAGS="$CFLAGS"
38937               LIBS="$THREADS_LINK $LIBS"
38938               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38939
38940               cat >conftest.$ac_ext <<_ACEOF
38941 /* confdefs.h.  */
38942 _ACEOF
38943 cat confdefs.h >>conftest.$ac_ext
38944 cat >>conftest.$ac_ext <<_ACEOF
38945 /* end confdefs.h.  */
38946 #include <pthread.h>
38947 int
38948 main ()
38949 {
38950 pthread_create(0,0,0,0);
38951   ;
38952   return 0;
38953 }
38954 _ACEOF
38955 rm -f conftest.$ac_objext conftest$ac_exeext
38956 if { (ac_try="$ac_link"
38957 case "(($ac_try" in
38958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38959   *) ac_try_echo=$ac_try;;
38960 esac
38961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38962   (eval "$ac_link") 2>conftest.er1
38963   ac_status=$?
38964   grep -v '^ *+' conftest.er1 >conftest.err
38965   rm -f conftest.er1
38966   cat conftest.err >&5
38967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968   (exit $ac_status); } && {
38969          test -z "$ac_c_werror_flag" ||
38970          test ! -s conftest.err
38971        } && test -s conftest$ac_exeext &&
38972        $as_test_x conftest$ac_exeext; then
38973   THREADS_OK=yes
38974 else
38975   echo "$as_me: failed program was:" >&5
38976 sed 's/^/| /' conftest.$ac_ext >&5
38977
38978
38979 fi
38980
38981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38982       conftest$ac_exeext conftest.$ac_ext
38983
38984               LIBS="$save_LIBS"
38985               CFLAGS="$save_CFLAGS"
38986
38987               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38988 echo "${ECHO_T}$THREADS_OK" >&6; }
38989               if test "x$THREADS_OK" = "xyes"; then
38990                       break;
38991               fi
38992
38993               THREADS_LINK=""
38994               THREADS_CFLAGS=""
38995       done
38996
38997       if test "x$THREADS_OK" != "xyes"; then
38998           wxUSE_THREADS=no
38999           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39000 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39001       else
39002                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39003           LIBS="$THREADS_LINK $LIBS"
39004
39005           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39006 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39007           flag=no
39008           case "${host}" in
39009             *-aix*)
39010                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39011                 flag="-D_THREAD_SAFE"
39012                 ;;
39013             *-freebsd*)
39014                 flag="-D_THREAD_SAFE"
39015                 ;;
39016             *-hp-hpux* )
39017                 flag="-D_REENTRANT"
39018                 if test "x$GCC" != "xyes"; then
39019                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39020                 fi
39021                 ;;
39022             *solaris* | alpha*-osf*)
39023                 flag="-D_REENTRANT"
39024                 ;;
39025           esac
39026           { echo "$as_me:$LINENO: result: ${flag}" >&5
39027 echo "${ECHO_T}${flag}" >&6; }
39028           if test "x$flag" != xno; then
39029               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39030           fi
39031
39032                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39033       fi
39034     fi
39035
39036         if test "$wxUSE_THREADS" = "yes" ; then
39037
39038 for ac_func in thr_setconcurrency
39039 do
39040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39044   echo $ECHO_N "(cached) $ECHO_C" >&6
39045 else
39046   cat >conftest.$ac_ext <<_ACEOF
39047 /* confdefs.h.  */
39048 _ACEOF
39049 cat confdefs.h >>conftest.$ac_ext
39050 cat >>conftest.$ac_ext <<_ACEOF
39051 /* end confdefs.h.  */
39052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39054 #define $ac_func innocuous_$ac_func
39055
39056 /* System header to define __stub macros and hopefully few prototypes,
39057     which can conflict with char $ac_func (); below.
39058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39059     <limits.h> exists even on freestanding compilers.  */
39060
39061 #ifdef __STDC__
39062 # include <limits.h>
39063 #else
39064 # include <assert.h>
39065 #endif
39066
39067 #undef $ac_func
39068
39069 /* Override any GCC internal prototype to avoid an error.
39070    Use char because int might match the return type of a GCC
39071    builtin and then its argument prototype would still apply.  */
39072 #ifdef __cplusplus
39073 extern "C"
39074 #endif
39075 char $ac_func ();
39076 /* The GNU C library defines this for functions which it implements
39077     to always fail with ENOSYS.  Some functions are actually named
39078     something starting with __ and the normal name is an alias.  */
39079 #if defined __stub_$ac_func || defined __stub___$ac_func
39080 choke me
39081 #endif
39082
39083 int
39084 main ()
39085 {
39086 return $ac_func ();
39087   ;
39088   return 0;
39089 }
39090 _ACEOF
39091 rm -f conftest.$ac_objext conftest$ac_exeext
39092 if { (ac_try="$ac_link"
39093 case "(($ac_try" in
39094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39095   *) ac_try_echo=$ac_try;;
39096 esac
39097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39098   (eval "$ac_link") 2>conftest.er1
39099   ac_status=$?
39100   grep -v '^ *+' conftest.er1 >conftest.err
39101   rm -f conftest.er1
39102   cat conftest.err >&5
39103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104   (exit $ac_status); } && {
39105          test -z "$ac_c_werror_flag" ||
39106          test ! -s conftest.err
39107        } && test -s conftest$ac_exeext &&
39108        $as_test_x conftest$ac_exeext; then
39109   eval "$as_ac_var=yes"
39110 else
39111   echo "$as_me: failed program was:" >&5
39112 sed 's/^/| /' conftest.$ac_ext >&5
39113
39114         eval "$as_ac_var=no"
39115 fi
39116
39117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39118       conftest$ac_exeext conftest.$ac_ext
39119 fi
39120 ac_res=`eval echo '${'$as_ac_var'}'`
39121                { echo "$as_me:$LINENO: result: $ac_res" >&5
39122 echo "${ECHO_T}$ac_res" >&6; }
39123 if test `eval echo '${'$as_ac_var'}'` = yes; then
39124   cat >>confdefs.h <<_ACEOF
39125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39126 _ACEOF
39127
39128 fi
39129 done
39130
39131
39132                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39133 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39134 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39135   echo $ECHO_N "(cached) $ECHO_C" >&6
39136 else
39137
39138                                 ac_ext=cpp
39139 ac_cpp='$CXXCPP $CPPFLAGS'
39140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39143
39144         cat >conftest.$ac_ext <<_ACEOF
39145 /* confdefs.h.  */
39146 _ACEOF
39147 cat confdefs.h >>conftest.$ac_ext
39148 cat >>conftest.$ac_ext <<_ACEOF
39149 /* end confdefs.h.  */
39150 #include <pthread.h>
39151                void ThreadCleanupFunc(void *p);
39152
39153 int
39154 main ()
39155 {
39156
39157                 void *p;
39158                 pthread_cleanup_push(ThreadCleanupFunc, p);
39159                 pthread_cleanup_pop(0);
39160
39161   ;
39162   return 0;
39163 }
39164 _ACEOF
39165 rm -f conftest.$ac_objext
39166 if { (ac_try="$ac_compile"
39167 case "(($ac_try" in
39168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39169   *) ac_try_echo=$ac_try;;
39170 esac
39171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39172   (eval "$ac_compile") 2>conftest.er1
39173   ac_status=$?
39174   grep -v '^ *+' conftest.er1 >conftest.err
39175   rm -f conftest.er1
39176   cat conftest.err >&5
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); } && {
39179          test -z "$ac_cxx_werror_flag" ||
39180          test ! -s conftest.err
39181        } && test -s conftest.$ac_objext; then
39182
39183                wx_cv_func_pthread_cleanup=yes
39184
39185 else
39186   echo "$as_me: failed program was:" >&5
39187 sed 's/^/| /' conftest.$ac_ext >&5
39188
39189
39190                wx_cv_func_pthread_cleanup=no
39191
39192
39193 fi
39194
39195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39196         ac_ext=c
39197 ac_cpp='$CPP $CPPFLAGS'
39198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39201
39202
39203 fi
39204 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39205 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39206       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39207         cat >>confdefs.h <<\_ACEOF
39208 #define wxHAVE_PTHREAD_CLEANUP 1
39209 _ACEOF
39210
39211       fi
39212
39213
39214 for ac_header in sched.h
39215 do
39216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39220   echo $ECHO_N "(cached) $ECHO_C" >&6
39221 else
39222   cat >conftest.$ac_ext <<_ACEOF
39223 /* confdefs.h.  */
39224 _ACEOF
39225 cat confdefs.h >>conftest.$ac_ext
39226 cat >>conftest.$ac_ext <<_ACEOF
39227 /* end confdefs.h.  */
39228 $ac_includes_default
39229
39230 #include <$ac_header>
39231 _ACEOF
39232 rm -f conftest.$ac_objext
39233 if { (ac_try="$ac_compile"
39234 case "(($ac_try" in
39235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39236   *) ac_try_echo=$ac_try;;
39237 esac
39238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39239   (eval "$ac_compile") 2>conftest.er1
39240   ac_status=$?
39241   grep -v '^ *+' conftest.er1 >conftest.err
39242   rm -f conftest.er1
39243   cat conftest.err >&5
39244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245   (exit $ac_status); } && {
39246          test -z "$ac_c_werror_flag" ||
39247          test ! -s conftest.err
39248        } && test -s conftest.$ac_objext; then
39249   eval "$as_ac_Header=yes"
39250 else
39251   echo "$as_me: failed program was:" >&5
39252 sed 's/^/| /' conftest.$ac_ext >&5
39253
39254         eval "$as_ac_Header=no"
39255 fi
39256
39257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39258 fi
39259 ac_res=`eval echo '${'$as_ac_Header'}'`
39260                { echo "$as_me:$LINENO: result: $ac_res" >&5
39261 echo "${ECHO_T}$ac_res" >&6; }
39262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39263   cat >>confdefs.h <<_ACEOF
39264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39265 _ACEOF
39266
39267 fi
39268
39269 done
39270
39271       if test "$ac_cv_header_sched_h" = "yes"; then
39272           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39273 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39274 if test "${ac_cv_func_sched_yield+set}" = set; then
39275   echo $ECHO_N "(cached) $ECHO_C" >&6
39276 else
39277   cat >conftest.$ac_ext <<_ACEOF
39278 /* confdefs.h.  */
39279 _ACEOF
39280 cat confdefs.h >>conftest.$ac_ext
39281 cat >>conftest.$ac_ext <<_ACEOF
39282 /* end confdefs.h.  */
39283 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39285 #define sched_yield innocuous_sched_yield
39286
39287 /* System header to define __stub macros and hopefully few prototypes,
39288     which can conflict with char sched_yield (); below.
39289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39290     <limits.h> exists even on freestanding compilers.  */
39291
39292 #ifdef __STDC__
39293 # include <limits.h>
39294 #else
39295 # include <assert.h>
39296 #endif
39297
39298 #undef sched_yield
39299
39300 /* Override any GCC internal prototype to avoid an error.
39301    Use char because int might match the return type of a GCC
39302    builtin and then its argument prototype would still apply.  */
39303 #ifdef __cplusplus
39304 extern "C"
39305 #endif
39306 char sched_yield ();
39307 /* The GNU C library defines this for functions which it implements
39308     to always fail with ENOSYS.  Some functions are actually named
39309     something starting with __ and the normal name is an alias.  */
39310 #if defined __stub_sched_yield || defined __stub___sched_yield
39311 choke me
39312 #endif
39313
39314 int
39315 main ()
39316 {
39317 return sched_yield ();
39318   ;
39319   return 0;
39320 }
39321 _ACEOF
39322 rm -f conftest.$ac_objext conftest$ac_exeext
39323 if { (ac_try="$ac_link"
39324 case "(($ac_try" in
39325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39326   *) ac_try_echo=$ac_try;;
39327 esac
39328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39329   (eval "$ac_link") 2>conftest.er1
39330   ac_status=$?
39331   grep -v '^ *+' conftest.er1 >conftest.err
39332   rm -f conftest.er1
39333   cat conftest.err >&5
39334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335   (exit $ac_status); } && {
39336          test -z "$ac_c_werror_flag" ||
39337          test ! -s conftest.err
39338        } && test -s conftest$ac_exeext &&
39339        $as_test_x conftest$ac_exeext; then
39340   ac_cv_func_sched_yield=yes
39341 else
39342   echo "$as_me: failed program was:" >&5
39343 sed 's/^/| /' conftest.$ac_ext >&5
39344
39345         ac_cv_func_sched_yield=no
39346 fi
39347
39348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39349       conftest$ac_exeext conftest.$ac_ext
39350 fi
39351 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39352 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39353 if test $ac_cv_func_sched_yield = yes; then
39354   cat >>confdefs.h <<\_ACEOF
39355 #define HAVE_SCHED_YIELD 1
39356 _ACEOF
39357
39358 else
39359
39360                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39361 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39362 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39363   echo $ECHO_N "(cached) $ECHO_C" >&6
39364 else
39365   ac_check_lib_save_LIBS=$LIBS
39366 LIBS="-lposix4  $LIBS"
39367 cat >conftest.$ac_ext <<_ACEOF
39368 /* confdefs.h.  */
39369 _ACEOF
39370 cat confdefs.h >>conftest.$ac_ext
39371 cat >>conftest.$ac_ext <<_ACEOF
39372 /* end confdefs.h.  */
39373
39374 /* Override any GCC internal prototype to avoid an error.
39375    Use char because int might match the return type of a GCC
39376    builtin and then its argument prototype would still apply.  */
39377 #ifdef __cplusplus
39378 extern "C"
39379 #endif
39380 char sched_yield ();
39381 int
39382 main ()
39383 {
39384 return sched_yield ();
39385   ;
39386   return 0;
39387 }
39388 _ACEOF
39389 rm -f conftest.$ac_objext conftest$ac_exeext
39390 if { (ac_try="$ac_link"
39391 case "(($ac_try" in
39392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39393   *) ac_try_echo=$ac_try;;
39394 esac
39395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39396   (eval "$ac_link") 2>conftest.er1
39397   ac_status=$?
39398   grep -v '^ *+' conftest.er1 >conftest.err
39399   rm -f conftest.er1
39400   cat conftest.err >&5
39401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402   (exit $ac_status); } && {
39403          test -z "$ac_c_werror_flag" ||
39404          test ! -s conftest.err
39405        } && test -s conftest$ac_exeext &&
39406        $as_test_x conftest$ac_exeext; then
39407   ac_cv_lib_posix4_sched_yield=yes
39408 else
39409   echo "$as_me: failed program was:" >&5
39410 sed 's/^/| /' conftest.$ac_ext >&5
39411
39412         ac_cv_lib_posix4_sched_yield=no
39413 fi
39414
39415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39416       conftest$ac_exeext conftest.$ac_ext
39417 LIBS=$ac_check_lib_save_LIBS
39418 fi
39419 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39420 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39421 if test $ac_cv_lib_posix4_sched_yield = yes; then
39422   cat >>confdefs.h <<\_ACEOF
39423 #define HAVE_SCHED_YIELD 1
39424 _ACEOF
39425  POSIX4_LINK=" -lposix4"
39426 else
39427   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39428 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39429
39430 fi
39431
39432
39433
39434 fi
39435
39436       fi
39437
39438                                           HAVE_PRIOR_FUNCS=0
39439       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39440 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39441 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39442   echo $ECHO_N "(cached) $ECHO_C" >&6
39443 else
39444   cat >conftest.$ac_ext <<_ACEOF
39445 /* confdefs.h.  */
39446 _ACEOF
39447 cat confdefs.h >>conftest.$ac_ext
39448 cat >>conftest.$ac_ext <<_ACEOF
39449 /* end confdefs.h.  */
39450 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39452 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39453
39454 /* System header to define __stub macros and hopefully few prototypes,
39455     which can conflict with char pthread_attr_getschedpolicy (); below.
39456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39457     <limits.h> exists even on freestanding compilers.  */
39458
39459 #ifdef __STDC__
39460 # include <limits.h>
39461 #else
39462 # include <assert.h>
39463 #endif
39464
39465 #undef pthread_attr_getschedpolicy
39466
39467 /* Override any GCC internal prototype to avoid an error.
39468    Use char because int might match the return type of a GCC
39469    builtin and then its argument prototype would still apply.  */
39470 #ifdef __cplusplus
39471 extern "C"
39472 #endif
39473 char pthread_attr_getschedpolicy ();
39474 /* The GNU C library defines this for functions which it implements
39475     to always fail with ENOSYS.  Some functions are actually named
39476     something starting with __ and the normal name is an alias.  */
39477 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39478 choke me
39479 #endif
39480
39481 int
39482 main ()
39483 {
39484 return pthread_attr_getschedpolicy ();
39485   ;
39486   return 0;
39487 }
39488 _ACEOF
39489 rm -f conftest.$ac_objext conftest$ac_exeext
39490 if { (ac_try="$ac_link"
39491 case "(($ac_try" in
39492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39493   *) ac_try_echo=$ac_try;;
39494 esac
39495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39496   (eval "$ac_link") 2>conftest.er1
39497   ac_status=$?
39498   grep -v '^ *+' conftest.er1 >conftest.err
39499   rm -f conftest.er1
39500   cat conftest.err >&5
39501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502   (exit $ac_status); } && {
39503          test -z "$ac_c_werror_flag" ||
39504          test ! -s conftest.err
39505        } && test -s conftest$ac_exeext &&
39506        $as_test_x conftest$ac_exeext; then
39507   ac_cv_func_pthread_attr_getschedpolicy=yes
39508 else
39509   echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39511
39512         ac_cv_func_pthread_attr_getschedpolicy=no
39513 fi
39514
39515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39516       conftest$ac_exeext conftest.$ac_ext
39517 fi
39518 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39519 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39520 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39521   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39522 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39523 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39524   echo $ECHO_N "(cached) $ECHO_C" >&6
39525 else
39526   cat >conftest.$ac_ext <<_ACEOF
39527 /* confdefs.h.  */
39528 _ACEOF
39529 cat confdefs.h >>conftest.$ac_ext
39530 cat >>conftest.$ac_ext <<_ACEOF
39531 /* end confdefs.h.  */
39532 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39534 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39535
39536 /* System header to define __stub macros and hopefully few prototypes,
39537     which can conflict with char pthread_attr_setschedparam (); below.
39538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39539     <limits.h> exists even on freestanding compilers.  */
39540
39541 #ifdef __STDC__
39542 # include <limits.h>
39543 #else
39544 # include <assert.h>
39545 #endif
39546
39547 #undef pthread_attr_setschedparam
39548
39549 /* Override any GCC internal prototype to avoid an error.
39550    Use char because int might match the return type of a GCC
39551    builtin and then its argument prototype would still apply.  */
39552 #ifdef __cplusplus
39553 extern "C"
39554 #endif
39555 char pthread_attr_setschedparam ();
39556 /* The GNU C library defines this for functions which it implements
39557     to always fail with ENOSYS.  Some functions are actually named
39558     something starting with __ and the normal name is an alias.  */
39559 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39560 choke me
39561 #endif
39562
39563 int
39564 main ()
39565 {
39566 return pthread_attr_setschedparam ();
39567   ;
39568   return 0;
39569 }
39570 _ACEOF
39571 rm -f conftest.$ac_objext conftest$ac_exeext
39572 if { (ac_try="$ac_link"
39573 case "(($ac_try" in
39574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39575   *) ac_try_echo=$ac_try;;
39576 esac
39577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39578   (eval "$ac_link") 2>conftest.er1
39579   ac_status=$?
39580   grep -v '^ *+' conftest.er1 >conftest.err
39581   rm -f conftest.er1
39582   cat conftest.err >&5
39583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584   (exit $ac_status); } && {
39585          test -z "$ac_c_werror_flag" ||
39586          test ! -s conftest.err
39587        } && test -s conftest$ac_exeext &&
39588        $as_test_x conftest$ac_exeext; then
39589   ac_cv_func_pthread_attr_setschedparam=yes
39590 else
39591   echo "$as_me: failed program was:" >&5
39592 sed 's/^/| /' conftest.$ac_ext >&5
39593
39594         ac_cv_func_pthread_attr_setschedparam=no
39595 fi
39596
39597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39598       conftest$ac_exeext conftest.$ac_ext
39599 fi
39600 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39601 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39602 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39603   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39604 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39605 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39606   echo $ECHO_N "(cached) $ECHO_C" >&6
39607 else
39608   cat >conftest.$ac_ext <<_ACEOF
39609 /* confdefs.h.  */
39610 _ACEOF
39611 cat confdefs.h >>conftest.$ac_ext
39612 cat >>conftest.$ac_ext <<_ACEOF
39613 /* end confdefs.h.  */
39614 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39616 #define sched_get_priority_max innocuous_sched_get_priority_max
39617
39618 /* System header to define __stub macros and hopefully few prototypes,
39619     which can conflict with char sched_get_priority_max (); below.
39620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39621     <limits.h> exists even on freestanding compilers.  */
39622
39623 #ifdef __STDC__
39624 # include <limits.h>
39625 #else
39626 # include <assert.h>
39627 #endif
39628
39629 #undef sched_get_priority_max
39630
39631 /* Override any GCC internal prototype to avoid an error.
39632    Use char because int might match the return type of a GCC
39633    builtin and then its argument prototype would still apply.  */
39634 #ifdef __cplusplus
39635 extern "C"
39636 #endif
39637 char sched_get_priority_max ();
39638 /* The GNU C library defines this for functions which it implements
39639     to always fail with ENOSYS.  Some functions are actually named
39640     something starting with __ and the normal name is an alias.  */
39641 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39642 choke me
39643 #endif
39644
39645 int
39646 main ()
39647 {
39648 return sched_get_priority_max ();
39649   ;
39650   return 0;
39651 }
39652 _ACEOF
39653 rm -f conftest.$ac_objext conftest$ac_exeext
39654 if { (ac_try="$ac_link"
39655 case "(($ac_try" in
39656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39657   *) ac_try_echo=$ac_try;;
39658 esac
39659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39660   (eval "$ac_link") 2>conftest.er1
39661   ac_status=$?
39662   grep -v '^ *+' conftest.er1 >conftest.err
39663   rm -f conftest.er1
39664   cat conftest.err >&5
39665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666   (exit $ac_status); } && {
39667          test -z "$ac_c_werror_flag" ||
39668          test ! -s conftest.err
39669        } && test -s conftest$ac_exeext &&
39670        $as_test_x conftest$ac_exeext; then
39671   ac_cv_func_sched_get_priority_max=yes
39672 else
39673   echo "$as_me: failed program was:" >&5
39674 sed 's/^/| /' conftest.$ac_ext >&5
39675
39676         ac_cv_func_sched_get_priority_max=no
39677 fi
39678
39679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39680       conftest$ac_exeext conftest.$ac_ext
39681 fi
39682 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39683 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39684 if test $ac_cv_func_sched_get_priority_max = yes; then
39685   HAVE_PRIOR_FUNCS=1
39686 else
39687   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39688 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39689 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39690   echo $ECHO_N "(cached) $ECHO_C" >&6
39691 else
39692   ac_check_lib_save_LIBS=$LIBS
39693 LIBS="-lposix4  $LIBS"
39694 cat >conftest.$ac_ext <<_ACEOF
39695 /* confdefs.h.  */
39696 _ACEOF
39697 cat confdefs.h >>conftest.$ac_ext
39698 cat >>conftest.$ac_ext <<_ACEOF
39699 /* end confdefs.h.  */
39700
39701 /* Override any GCC internal prototype to avoid an error.
39702    Use char because int might match the return type of a GCC
39703    builtin and then its argument prototype would still apply.  */
39704 #ifdef __cplusplus
39705 extern "C"
39706 #endif
39707 char sched_get_priority_max ();
39708 int
39709 main ()
39710 {
39711 return sched_get_priority_max ();
39712   ;
39713   return 0;
39714 }
39715 _ACEOF
39716 rm -f conftest.$ac_objext conftest$ac_exeext
39717 if { (ac_try="$ac_link"
39718 case "(($ac_try" in
39719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39720   *) ac_try_echo=$ac_try;;
39721 esac
39722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39723   (eval "$ac_link") 2>conftest.er1
39724   ac_status=$?
39725   grep -v '^ *+' conftest.er1 >conftest.err
39726   rm -f conftest.er1
39727   cat conftest.err >&5
39728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729   (exit $ac_status); } && {
39730          test -z "$ac_c_werror_flag" ||
39731          test ! -s conftest.err
39732        } && test -s conftest$ac_exeext &&
39733        $as_test_x conftest$ac_exeext; then
39734   ac_cv_lib_posix4_sched_get_priority_max=yes
39735 else
39736   echo "$as_me: failed program was:" >&5
39737 sed 's/^/| /' conftest.$ac_ext >&5
39738
39739         ac_cv_lib_posix4_sched_get_priority_max=no
39740 fi
39741
39742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39743       conftest$ac_exeext conftest.$ac_ext
39744 LIBS=$ac_check_lib_save_LIBS
39745 fi
39746 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39747 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39748 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39749
39750                                 HAVE_PRIOR_FUNCS=1
39751                                 POSIX4_LINK=" -lposix4"
39752
39753 fi
39754
39755
39756 fi
39757
39758
39759 fi
39760
39761
39762 fi
39763
39764
39765       if test "$HAVE_PRIOR_FUNCS" = 1; then
39766         cat >>confdefs.h <<\_ACEOF
39767 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39768 _ACEOF
39769
39770       else
39771         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39772 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39773       fi
39774
39775       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39776 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39777 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39778   echo $ECHO_N "(cached) $ECHO_C" >&6
39779 else
39780   cat >conftest.$ac_ext <<_ACEOF
39781 /* confdefs.h.  */
39782 _ACEOF
39783 cat confdefs.h >>conftest.$ac_ext
39784 cat >>conftest.$ac_ext <<_ACEOF
39785 /* end confdefs.h.  */
39786 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39788 #define pthread_cancel innocuous_pthread_cancel
39789
39790 /* System header to define __stub macros and hopefully few prototypes,
39791     which can conflict with char pthread_cancel (); below.
39792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39793     <limits.h> exists even on freestanding compilers.  */
39794
39795 #ifdef __STDC__
39796 # include <limits.h>
39797 #else
39798 # include <assert.h>
39799 #endif
39800
39801 #undef pthread_cancel
39802
39803 /* Override any GCC internal prototype to avoid an error.
39804    Use char because int might match the return type of a GCC
39805    builtin and then its argument prototype would still apply.  */
39806 #ifdef __cplusplus
39807 extern "C"
39808 #endif
39809 char pthread_cancel ();
39810 /* The GNU C library defines this for functions which it implements
39811     to always fail with ENOSYS.  Some functions are actually named
39812     something starting with __ and the normal name is an alias.  */
39813 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39814 choke me
39815 #endif
39816
39817 int
39818 main ()
39819 {
39820 return pthread_cancel ();
39821   ;
39822   return 0;
39823 }
39824 _ACEOF
39825 rm -f conftest.$ac_objext conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829   *) ac_try_echo=$ac_try;;
39830 esac
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832   (eval "$ac_link") 2>conftest.er1
39833   ac_status=$?
39834   grep -v '^ *+' conftest.er1 >conftest.err
39835   rm -f conftest.er1
39836   cat conftest.err >&5
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } && {
39839          test -z "$ac_c_werror_flag" ||
39840          test ! -s conftest.err
39841        } && test -s conftest$ac_exeext &&
39842        $as_test_x conftest$ac_exeext; then
39843   ac_cv_func_pthread_cancel=yes
39844 else
39845   echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39847
39848         ac_cv_func_pthread_cancel=no
39849 fi
39850
39851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39852       conftest$ac_exeext conftest.$ac_ext
39853 fi
39854 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39855 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39856 if test $ac_cv_func_pthread_cancel = yes; then
39857   cat >>confdefs.h <<\_ACEOF
39858 #define HAVE_PTHREAD_CANCEL 1
39859 _ACEOF
39860
39861 else
39862   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39863 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39864 fi
39865
39866
39867       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39868 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39869 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39870   echo $ECHO_N "(cached) $ECHO_C" >&6
39871 else
39872   cat >conftest.$ac_ext <<_ACEOF
39873 /* confdefs.h.  */
39874 _ACEOF
39875 cat confdefs.h >>conftest.$ac_ext
39876 cat >>conftest.$ac_ext <<_ACEOF
39877 /* end confdefs.h.  */
39878 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39880 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39881
39882 /* System header to define __stub macros and hopefully few prototypes,
39883     which can conflict with char pthread_mutex_timedlock (); below.
39884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39885     <limits.h> exists even on freestanding compilers.  */
39886
39887 #ifdef __STDC__
39888 # include <limits.h>
39889 #else
39890 # include <assert.h>
39891 #endif
39892
39893 #undef pthread_mutex_timedlock
39894
39895 /* Override any GCC internal prototype to avoid an error.
39896    Use char because int might match the return type of a GCC
39897    builtin and then its argument prototype would still apply.  */
39898 #ifdef __cplusplus
39899 extern "C"
39900 #endif
39901 char pthread_mutex_timedlock ();
39902 /* The GNU C library defines this for functions which it implements
39903     to always fail with ENOSYS.  Some functions are actually named
39904     something starting with __ and the normal name is an alias.  */
39905 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39906 choke me
39907 #endif
39908
39909 int
39910 main ()
39911 {
39912 return pthread_mutex_timedlock ();
39913   ;
39914   return 0;
39915 }
39916 _ACEOF
39917 rm -f conftest.$ac_objext conftest$ac_exeext
39918 if { (ac_try="$ac_link"
39919 case "(($ac_try" in
39920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39921   *) ac_try_echo=$ac_try;;
39922 esac
39923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39924   (eval "$ac_link") 2>conftest.er1
39925   ac_status=$?
39926   grep -v '^ *+' conftest.er1 >conftest.err
39927   rm -f conftest.er1
39928   cat conftest.err >&5
39929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930   (exit $ac_status); } && {
39931          test -z "$ac_c_werror_flag" ||
39932          test ! -s conftest.err
39933        } && test -s conftest$ac_exeext &&
39934        $as_test_x conftest$ac_exeext; then
39935   ac_cv_func_pthread_mutex_timedlock=yes
39936 else
39937   echo "$as_me: failed program was:" >&5
39938 sed 's/^/| /' conftest.$ac_ext >&5
39939
39940         ac_cv_func_pthread_mutex_timedlock=no
39941 fi
39942
39943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39944       conftest$ac_exeext conftest.$ac_ext
39945 fi
39946 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39947 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39948 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39949   cat >>confdefs.h <<\_ACEOF
39950 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39951 _ACEOF
39952
39953 else
39954   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39955 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39956 fi
39957
39958
39959       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39960 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39961 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39962   echo $ECHO_N "(cached) $ECHO_C" >&6
39963 else
39964   cat >conftest.$ac_ext <<_ACEOF
39965 /* confdefs.h.  */
39966 _ACEOF
39967 cat confdefs.h >>conftest.$ac_ext
39968 cat >>conftest.$ac_ext <<_ACEOF
39969 /* end confdefs.h.  */
39970 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39972 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39973
39974 /* System header to define __stub macros and hopefully few prototypes,
39975     which can conflict with char pthread_attr_setstacksize (); below.
39976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39977     <limits.h> exists even on freestanding compilers.  */
39978
39979 #ifdef __STDC__
39980 # include <limits.h>
39981 #else
39982 # include <assert.h>
39983 #endif
39984
39985 #undef pthread_attr_setstacksize
39986
39987 /* Override any GCC internal prototype to avoid an error.
39988    Use char because int might match the return type of a GCC
39989    builtin and then its argument prototype would still apply.  */
39990 #ifdef __cplusplus
39991 extern "C"
39992 #endif
39993 char pthread_attr_setstacksize ();
39994 /* The GNU C library defines this for functions which it implements
39995     to always fail with ENOSYS.  Some functions are actually named
39996     something starting with __ and the normal name is an alias.  */
39997 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39998 choke me
39999 #endif
40000
40001 int
40002 main ()
40003 {
40004 return pthread_attr_setstacksize ();
40005   ;
40006   return 0;
40007 }
40008 _ACEOF
40009 rm -f conftest.$ac_objext conftest$ac_exeext
40010 if { (ac_try="$ac_link"
40011 case "(($ac_try" in
40012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40013   *) ac_try_echo=$ac_try;;
40014 esac
40015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40016   (eval "$ac_link") 2>conftest.er1
40017   ac_status=$?
40018   grep -v '^ *+' conftest.er1 >conftest.err
40019   rm -f conftest.er1
40020   cat conftest.err >&5
40021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022   (exit $ac_status); } && {
40023          test -z "$ac_c_werror_flag" ||
40024          test ! -s conftest.err
40025        } && test -s conftest$ac_exeext &&
40026        $as_test_x conftest$ac_exeext; then
40027   ac_cv_func_pthread_attr_setstacksize=yes
40028 else
40029   echo "$as_me: failed program was:" >&5
40030 sed 's/^/| /' conftest.$ac_ext >&5
40031
40032         ac_cv_func_pthread_attr_setstacksize=no
40033 fi
40034
40035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40036       conftest$ac_exeext conftest.$ac_ext
40037 fi
40038 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40039 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40040 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40041   cat >>confdefs.h <<\_ACEOF
40042 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40043 _ACEOF
40044
40045 fi
40046
40047
40048
40049       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40050 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40051 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40052   echo $ECHO_N "(cached) $ECHO_C" >&6
40053 else
40054
40055         cat >conftest.$ac_ext <<_ACEOF
40056 /* confdefs.h.  */
40057 _ACEOF
40058 cat confdefs.h >>conftest.$ac_ext
40059 cat >>conftest.$ac_ext <<_ACEOF
40060 /* end confdefs.h.  */
40061 #include <pthread.h>
40062 int
40063 main ()
40064 {
40065
40066                pthread_mutexattr_t attr;
40067                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40068
40069   ;
40070   return 0;
40071 }
40072 _ACEOF
40073 rm -f conftest.$ac_objext
40074 if { (ac_try="$ac_compile"
40075 case "(($ac_try" in
40076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40077   *) ac_try_echo=$ac_try;;
40078 esac
40079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40080   (eval "$ac_compile") 2>conftest.er1
40081   ac_status=$?
40082   grep -v '^ *+' conftest.er1 >conftest.err
40083   rm -f conftest.er1
40084   cat conftest.err >&5
40085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086   (exit $ac_status); } && {
40087          test -z "$ac_c_werror_flag" ||
40088          test ! -s conftest.err
40089        } && test -s conftest.$ac_objext; then
40090   wx_cv_type_pthread_mutexattr_t=yes
40091 else
40092   echo "$as_me: failed program was:" >&5
40093 sed 's/^/| /' conftest.$ac_ext >&5
40094
40095         wx_cv_type_pthread_mutexattr_t=no
40096
40097 fi
40098
40099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40100
40101 fi
40102 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40103 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40104
40105       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40106         cat >>confdefs.h <<\_ACEOF
40107 #define HAVE_PTHREAD_MUTEXATTR_T 1
40108 _ACEOF
40109
40110
40111                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40112 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40113 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40114   echo $ECHO_N "(cached) $ECHO_C" >&6
40115 else
40116
40117                        cat >conftest.$ac_ext <<_ACEOF
40118 /* confdefs.h.  */
40119 _ACEOF
40120 cat confdefs.h >>conftest.$ac_ext
40121 cat >>conftest.$ac_ext <<_ACEOF
40122 /* end confdefs.h.  */
40123 #include <pthread.h>
40124 int
40125 main ()
40126 {
40127
40128                                pthread_mutexattr_t attr;
40129                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40130
40131   ;
40132   return 0;
40133 }
40134 _ACEOF
40135 rm -f conftest.$ac_objext
40136 if { (ac_try="$ac_compile"
40137 case "(($ac_try" in
40138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40139   *) ac_try_echo=$ac_try;;
40140 esac
40141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40142   (eval "$ac_compile") 2>conftest.er1
40143   ac_status=$?
40144   grep -v '^ *+' conftest.er1 >conftest.err
40145   rm -f conftest.er1
40146   cat conftest.err >&5
40147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148   (exit $ac_status); } && {
40149          test -z "$ac_c_werror_flag" ||
40150          test ! -s conftest.err
40151        } && test -s conftest.$ac_objext; then
40152   wx_cv_func_pthread_mutexattr_settype_decl=yes
40153 else
40154   echo "$as_me: failed program was:" >&5
40155 sed 's/^/| /' conftest.$ac_ext >&5
40156
40157         wx_cv_func_pthread_mutexattr_settype_decl=no
40158
40159 fi
40160
40161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40162
40163 fi
40164 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40165 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40166         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40167             cat >>confdefs.h <<\_ACEOF
40168 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40169 _ACEOF
40170
40171         fi
40172       else
40173                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40174 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40175 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40176   echo $ECHO_N "(cached) $ECHO_C" >&6
40177 else
40178
40179             cat >conftest.$ac_ext <<_ACEOF
40180 /* confdefs.h.  */
40181 _ACEOF
40182 cat confdefs.h >>conftest.$ac_ext
40183 cat >>conftest.$ac_ext <<_ACEOF
40184 /* end confdefs.h.  */
40185 #include <pthread.h>
40186 int
40187 main ()
40188 {
40189
40190                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40191
40192   ;
40193   return 0;
40194 }
40195 _ACEOF
40196 rm -f conftest.$ac_objext
40197 if { (ac_try="$ac_compile"
40198 case "(($ac_try" in
40199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40200   *) ac_try_echo=$ac_try;;
40201 esac
40202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40203   (eval "$ac_compile") 2>conftest.er1
40204   ac_status=$?
40205   grep -v '^ *+' conftest.er1 >conftest.err
40206   rm -f conftest.er1
40207   cat conftest.err >&5
40208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209   (exit $ac_status); } && {
40210          test -z "$ac_c_werror_flag" ||
40211          test ! -s conftest.err
40212        } && test -s conftest.$ac_objext; then
40213
40214                     wx_cv_type_pthread_rec_mutex_init=yes
40215
40216 else
40217   echo "$as_me: failed program was:" >&5
40218 sed 's/^/| /' conftest.$ac_ext >&5
40219
40220
40221                     wx_cv_type_pthread_rec_mutex_init=no
40222
40223
40224 fi
40225
40226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40227
40228 fi
40229 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40230 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40231         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40232           cat >>confdefs.h <<\_ACEOF
40233 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40234 _ACEOF
40235
40236         else
40237                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40238 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40239         fi
40240       fi
40241
40242             { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40243 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40244 if test "${wx_cv_cc___thread+set}" = set; then
40245   echo $ECHO_N "(cached) $ECHO_C" >&6
40246 else
40247
40248               cat >conftest.$ac_ext <<_ACEOF
40249 /* confdefs.h.  */
40250 _ACEOF
40251 cat confdefs.h >>conftest.$ac_ext
40252 cat >>conftest.$ac_ext <<_ACEOF
40253 /* end confdefs.h.  */
40254 #include <pthread.h>
40255 int
40256 main ()
40257 {
40258
40259                       static __thread int n = 0;
40260                       static __thread int *p = 0;
40261
40262   ;
40263   return 0;
40264 }
40265 _ACEOF
40266 rm -f conftest.$ac_objext
40267 if { (ac_try="$ac_compile"
40268 case "(($ac_try" in
40269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40270   *) ac_try_echo=$ac_try;;
40271 esac
40272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40273   (eval "$ac_compile") 2>conftest.er1
40274   ac_status=$?
40275   grep -v '^ *+' conftest.er1 >conftest.err
40276   rm -f conftest.er1
40277   cat conftest.err >&5
40278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279   (exit $ac_status); } && {
40280          test -z "$ac_c_werror_flag" ||
40281          test ! -s conftest.err
40282        } && test -s conftest.$ac_objext; then
40283   wx_cv_cc___thread=yes
40284 else
40285   echo "$as_me: failed program was:" >&5
40286 sed 's/^/| /' conftest.$ac_ext >&5
40287
40288         wx_cv_cc___thread=no
40289
40290 fi
40291
40292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40293
40294
40295 fi
40296 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40297 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40298
40299       if test "$wx_cv_cc___thread" = "yes"; then
40300
40301   GXX_VERSION=""
40302
40303
40304
40305   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40306 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40307
40308   if  test "x$GCC" = "xyes" ; then
40309
40310     if  test -z "" ; then
40311
40312       ax_gcc_option_test="int main()
40313 {
40314         return 0;
40315 }"
40316
40317 else
40318
40319       ax_gcc_option_test=""
40320
40321 fi
40322
40323
40324     # Dump the test program to file
40325     cat <<EOF > conftest.c
40326 $ax_gcc_option_test
40327 EOF
40328
40329     # Dump back the file to the log, useful for debugging purposes
40330     { ac_try='cat conftest.c 1>&5'
40331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40332   (eval $ac_try) 2>&5
40333   ac_status=$?
40334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335   (exit $ac_status); }; }
40336
40337     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40339   (eval $ac_try) 2>&5
40340   ac_status=$?
40341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342   (exit $ac_status); }; } ; then
40343
40344                 { echo "$as_me:$LINENO: result: yes" >&5
40345 echo "${ECHO_T}yes" >&6; }
40346
40347     ax_gcc_version_option=yes
40348
40349
40350 else
40351
40352                 { echo "$as_me:$LINENO: result: no" >&5
40353 echo "${ECHO_T}no" >&6; }
40354
40355     ax_gcc_version_option=no
40356
40357
40358 fi
40359
40360
40361 else
40362
40363     { echo "$as_me:$LINENO: result: no gcc available" >&5
40364 echo "${ECHO_T}no gcc available" >&6; }
40365
40366 fi
40367
40368
40369   if test "x$GXX" = "xyes"; then
40370
40371     if test "x$ax_gxx_version_option" != "no"; then
40372
40373       { echo "$as_me:$LINENO: checking gxx version" >&5
40374 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
40375 if test "${ax_cv_gxx_version+set}" = set; then
40376   echo $ECHO_N "(cached) $ECHO_C" >&6
40377 else
40378
40379         ax_cv_gxx_version="`$CXX -dumpversion`"
40380         if test "x$ax_cv_gxx_version" = "x"; then
40381
40382           ax_cv_gxx_version=""
40383
40384 fi
40385
40386
40387 fi
40388 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
40389 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
40390       GXX_VERSION=$ax_cv_gxx_version
40391
40392 fi
40393
40394
40395 fi
40396
40397
40398
40399           if test -n "$ax_cv_gxx_version"; then
40400                                                                                                                               { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
40401 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
40402               case "$ax_cv_gxx_version" in
40403                 1.* | 2.* | 3.* )
40404                     { echo "$as_me:$LINENO: result: no, it's broken" >&5
40405 echo "${ECHO_T}no, it's broken" >&6; }
40406                     wx_cv_cc___thread=no
40407                     ;;
40408                 *)
40409                     { echo "$as_me:$LINENO: result: yes, it works" >&5
40410 echo "${ECHO_T}yes, it works" >&6; }
40411                     ;;
40412               esac
40413           fi
40414       fi
40415
40416       if test "$wx_cv_cc___thread" = "yes"; then
40417         cat >>confdefs.h <<\_ACEOF
40418 #define HAVE___THREAD_KEYWORD 1
40419 _ACEOF
40420
40421       fi
40422     fi
40423
40424 else
40425     if test "$wxUSE_THREADS" = "yes" ; then
40426       case "${host}" in
40427         x86_64-*-mingw32* )
40428         ;;
40429         *-*-mingw32* )
40430                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40431 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40432 if test "${wx_cv_cflags_mthread+set}" = set; then
40433   echo $ECHO_N "(cached) $ECHO_C" >&6
40434 else
40435
40436                     CFLAGS_OLD="$CFLAGS"
40437                     CFLAGS="-mthreads $CFLAGS"
40438                     cat >conftest.$ac_ext <<_ACEOF
40439 /* confdefs.h.  */
40440 _ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h.  */
40444
40445 int
40446 main ()
40447 {
40448
40449   ;
40450   return 0;
40451 }
40452 _ACEOF
40453 rm -f conftest.$ac_objext
40454 if { (ac_try="$ac_compile"
40455 case "(($ac_try" in
40456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40457   *) ac_try_echo=$ac_try;;
40458 esac
40459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40460   (eval "$ac_compile") 2>conftest.er1
40461   ac_status=$?
40462   grep -v '^ *+' conftest.er1 >conftest.err
40463   rm -f conftest.er1
40464   cat conftest.err >&5
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); } && {
40467          test -z "$ac_c_werror_flag" ||
40468          test ! -s conftest.err
40469        } && test -s conftest.$ac_objext; then
40470   wx_cv_cflags_mthread=yes
40471 else
40472   echo "$as_me: failed program was:" >&5
40473 sed 's/^/| /' conftest.$ac_ext >&5
40474
40475         wx_cv_cflags_mthread=no
40476
40477 fi
40478
40479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40480
40481
40482 fi
40483 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40484 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40485
40486             if test "$wx_cv_cflags_mthread" = "yes"; then
40487                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40488                 LDFLAGS="$LDFLAGS -mthreads"
40489             else
40490                                 CFLAGS="$CFLAGS_OLD"
40491             fi
40492         ;;
40493         *-pc-os2*emx )
40494             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40495             LDFLAGS="$LDFLAGS -Zmt"
40496         ;;
40497       esac
40498     fi
40499 fi
40500
40501 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40502 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40503 if test "${ac_cv_func_localtime_r+set}" = set; then
40504   echo $ECHO_N "(cached) $ECHO_C" >&6
40505 else
40506   cat >conftest.$ac_ext <<_ACEOF
40507 /* confdefs.h.  */
40508 _ACEOF
40509 cat confdefs.h >>conftest.$ac_ext
40510 cat >>conftest.$ac_ext <<_ACEOF
40511 /* end confdefs.h.  */
40512 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40514 #define localtime_r innocuous_localtime_r
40515
40516 /* System header to define __stub macros and hopefully few prototypes,
40517     which can conflict with char localtime_r (); below.
40518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40519     <limits.h> exists even on freestanding compilers.  */
40520
40521 #ifdef __STDC__
40522 # include <limits.h>
40523 #else
40524 # include <assert.h>
40525 #endif
40526
40527 #undef localtime_r
40528
40529 /* Override any GCC internal prototype to avoid an error.
40530    Use char because int might match the return type of a GCC
40531    builtin and then its argument prototype would still apply.  */
40532 #ifdef __cplusplus
40533 extern "C"
40534 #endif
40535 char localtime_r ();
40536 /* The GNU C library defines this for functions which it implements
40537     to always fail with ENOSYS.  Some functions are actually named
40538     something starting with __ and the normal name is an alias.  */
40539 #if defined __stub_localtime_r || defined __stub___localtime_r
40540 choke me
40541 #endif
40542
40543 int
40544 main ()
40545 {
40546 return localtime_r ();
40547   ;
40548   return 0;
40549 }
40550 _ACEOF
40551 rm -f conftest.$ac_objext conftest$ac_exeext
40552 if { (ac_try="$ac_link"
40553 case "(($ac_try" in
40554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40555   *) ac_try_echo=$ac_try;;
40556 esac
40557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40558   (eval "$ac_link") 2>conftest.er1
40559   ac_status=$?
40560   grep -v '^ *+' conftest.er1 >conftest.err
40561   rm -f conftest.er1
40562   cat conftest.err >&5
40563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564   (exit $ac_status); } && {
40565          test -z "$ac_c_werror_flag" ||
40566          test ! -s conftest.err
40567        } && test -s conftest$ac_exeext &&
40568        $as_test_x conftest$ac_exeext; then
40569   ac_cv_func_localtime_r=yes
40570 else
40571   echo "$as_me: failed program was:" >&5
40572 sed 's/^/| /' conftest.$ac_ext >&5
40573
40574         ac_cv_func_localtime_r=no
40575 fi
40576
40577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40578       conftest$ac_exeext conftest.$ac_ext
40579 fi
40580 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40581 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40582 if test $ac_cv_func_localtime_r = yes; then
40583    cat >>confdefs.h <<\_ACEOF
40584 #define HAVE_LOCALTIME_R 1
40585 _ACEOF
40586
40587 fi
40588
40589 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40590 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40591 if test "${ac_cv_func_gmtime_r+set}" = set; then
40592   echo $ECHO_N "(cached) $ECHO_C" >&6
40593 else
40594   cat >conftest.$ac_ext <<_ACEOF
40595 /* confdefs.h.  */
40596 _ACEOF
40597 cat confdefs.h >>conftest.$ac_ext
40598 cat >>conftest.$ac_ext <<_ACEOF
40599 /* end confdefs.h.  */
40600 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40602 #define gmtime_r innocuous_gmtime_r
40603
40604 /* System header to define __stub macros and hopefully few prototypes,
40605     which can conflict with char gmtime_r (); below.
40606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40607     <limits.h> exists even on freestanding compilers.  */
40608
40609 #ifdef __STDC__
40610 # include <limits.h>
40611 #else
40612 # include <assert.h>
40613 #endif
40614
40615 #undef gmtime_r
40616
40617 /* Override any GCC internal prototype to avoid an error.
40618    Use char because int might match the return type of a GCC
40619    builtin and then its argument prototype would still apply.  */
40620 #ifdef __cplusplus
40621 extern "C"
40622 #endif
40623 char gmtime_r ();
40624 /* The GNU C library defines this for functions which it implements
40625     to always fail with ENOSYS.  Some functions are actually named
40626     something starting with __ and the normal name is an alias.  */
40627 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40628 choke me
40629 #endif
40630
40631 int
40632 main ()
40633 {
40634 return gmtime_r ();
40635   ;
40636   return 0;
40637 }
40638 _ACEOF
40639 rm -f conftest.$ac_objext conftest$ac_exeext
40640 if { (ac_try="$ac_link"
40641 case "(($ac_try" in
40642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40643   *) ac_try_echo=$ac_try;;
40644 esac
40645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40646   (eval "$ac_link") 2>conftest.er1
40647   ac_status=$?
40648   grep -v '^ *+' conftest.er1 >conftest.err
40649   rm -f conftest.er1
40650   cat conftest.err >&5
40651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652   (exit $ac_status); } && {
40653          test -z "$ac_c_werror_flag" ||
40654          test ! -s conftest.err
40655        } && test -s conftest$ac_exeext &&
40656        $as_test_x conftest$ac_exeext; then
40657   ac_cv_func_gmtime_r=yes
40658 else
40659   echo "$as_me: failed program was:" >&5
40660 sed 's/^/| /' conftest.$ac_ext >&5
40661
40662         ac_cv_func_gmtime_r=no
40663 fi
40664
40665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40666       conftest$ac_exeext conftest.$ac_ext
40667 fi
40668 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40669 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40670 if test $ac_cv_func_gmtime_r = yes; then
40671    cat >>confdefs.h <<\_ACEOF
40672 #define HAVE_GMTIME_R 1
40673 _ACEOF
40674
40675 fi
40676
40677
40678
40679
40680     ac_ext=c
40681 ac_cpp='$CPP $CPPFLAGS'
40682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40685
40686     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40687 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40688
40689     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40690   echo $ECHO_N "(cached) $ECHO_C" >&6
40691 else
40692
40693
40694 ################################################################
40695
40696 ac_cv_func_which_gethostbyname_r=unknown
40697
40698 #
40699 # ONE ARGUMENT (sanity check)
40700 #
40701
40702 # This should fail, as there is no variant of gethostbyname_r() that takes
40703 # a single argument. If it actually compiles, then we can assume that
40704 # netdb.h is not declaring the function, and the compiler is thereby
40705 # assuming an implicit prototype. In which case, we're out of luck.
40706 #
40707 cat >conftest.$ac_ext <<_ACEOF
40708 /* confdefs.h.  */
40709 _ACEOF
40710 cat confdefs.h >>conftest.$ac_ext
40711 cat >>conftest.$ac_ext <<_ACEOF
40712 /* end confdefs.h.  */
40713 #include <netdb.h>
40714 int
40715 main ()
40716 {
40717
40718             char *name = "www.gnu.org";
40719             (void)gethostbyname_r(name) /* ; */
40720
40721   ;
40722   return 0;
40723 }
40724 _ACEOF
40725 rm -f conftest.$ac_objext
40726 if { (ac_try="$ac_compile"
40727 case "(($ac_try" in
40728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40729   *) ac_try_echo=$ac_try;;
40730 esac
40731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40732   (eval "$ac_compile") 2>conftest.er1
40733   ac_status=$?
40734   grep -v '^ *+' conftest.er1 >conftest.err
40735   rm -f conftest.er1
40736   cat conftest.err >&5
40737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738   (exit $ac_status); } && {
40739          test -z "$ac_c_werror_flag" ||
40740          test ! -s conftest.err
40741        } && test -s conftest.$ac_objext; then
40742   ac_cv_func_which_gethostbyname_r=no
40743 else
40744   echo "$as_me: failed program was:" >&5
40745 sed 's/^/| /' conftest.$ac_ext >&5
40746
40747
40748 fi
40749
40750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40751
40752 #
40753 # SIX ARGUMENTS
40754 # (e.g. Linux)
40755 #
40756
40757 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40758
40759 cat >conftest.$ac_ext <<_ACEOF
40760 /* confdefs.h.  */
40761 _ACEOF
40762 cat confdefs.h >>conftest.$ac_ext
40763 cat >>conftest.$ac_ext <<_ACEOF
40764 /* end confdefs.h.  */
40765 #include <netdb.h>
40766 int
40767 main ()
40768 {
40769
40770             char *name = "www.gnu.org";
40771             struct hostent ret, *retp;
40772             char buf[1024];
40773             int buflen = 1024;
40774             int my_h_errno;
40775             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40776
40777   ;
40778   return 0;
40779 }
40780 _ACEOF
40781 rm -f conftest.$ac_objext
40782 if { (ac_try="$ac_compile"
40783 case "(($ac_try" in
40784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40785   *) ac_try_echo=$ac_try;;
40786 esac
40787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40788   (eval "$ac_compile") 2>conftest.er1
40789   ac_status=$?
40790   grep -v '^ *+' conftest.er1 >conftest.err
40791   rm -f conftest.er1
40792   cat conftest.err >&5
40793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40794   (exit $ac_status); } && {
40795          test -z "$ac_c_werror_flag" ||
40796          test ! -s conftest.err
40797        } && test -s conftest.$ac_objext; then
40798   ac_cv_func_which_gethostbyname_r=six
40799 else
40800   echo "$as_me: failed program was:" >&5
40801 sed 's/^/| /' conftest.$ac_ext >&5
40802
40803
40804 fi
40805
40806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40807
40808 fi
40809
40810 #
40811 # FIVE ARGUMENTS
40812 # (e.g. Solaris)
40813 #
40814
40815 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40816
40817 cat >conftest.$ac_ext <<_ACEOF
40818 /* confdefs.h.  */
40819 _ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h.  */
40823 #include <netdb.h>
40824 int
40825 main ()
40826 {
40827
40828             char *name = "www.gnu.org";
40829             struct hostent ret;
40830             char buf[1024];
40831             int buflen = 1024;
40832             int my_h_errno;
40833             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40834
40835   ;
40836   return 0;
40837 }
40838 _ACEOF
40839 rm -f conftest.$ac_objext
40840 if { (ac_try="$ac_compile"
40841 case "(($ac_try" in
40842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40843   *) ac_try_echo=$ac_try;;
40844 esac
40845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40846   (eval "$ac_compile") 2>conftest.er1
40847   ac_status=$?
40848   grep -v '^ *+' conftest.er1 >conftest.err
40849   rm -f conftest.er1
40850   cat conftest.err >&5
40851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852   (exit $ac_status); } && {
40853          test -z "$ac_c_werror_flag" ||
40854          test ! -s conftest.err
40855        } && test -s conftest.$ac_objext; then
40856   ac_cv_func_which_gethostbyname_r=five
40857 else
40858   echo "$as_me: failed program was:" >&5
40859 sed 's/^/| /' conftest.$ac_ext >&5
40860
40861
40862 fi
40863
40864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40865
40866 fi
40867
40868 #
40869 # THREE ARGUMENTS
40870 # (e.g. AIX, HP-UX, Tru64)
40871 #
40872
40873 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40874
40875 cat >conftest.$ac_ext <<_ACEOF
40876 /* confdefs.h.  */
40877 _ACEOF
40878 cat confdefs.h >>conftest.$ac_ext
40879 cat >>conftest.$ac_ext <<_ACEOF
40880 /* end confdefs.h.  */
40881 #include <netdb.h>
40882 int
40883 main ()
40884 {
40885
40886             char *name = "www.gnu.org";
40887             struct hostent ret;
40888             struct hostent_data data;
40889             (void)gethostbyname_r(name, &ret, &data) /* ; */
40890
40891   ;
40892   return 0;
40893 }
40894 _ACEOF
40895 rm -f conftest.$ac_objext
40896 if { (ac_try="$ac_compile"
40897 case "(($ac_try" in
40898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40899   *) ac_try_echo=$ac_try;;
40900 esac
40901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40902   (eval "$ac_compile") 2>conftest.er1
40903   ac_status=$?
40904   grep -v '^ *+' conftest.er1 >conftest.err
40905   rm -f conftest.er1
40906   cat conftest.err >&5
40907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40908   (exit $ac_status); } && {
40909          test -z "$ac_c_werror_flag" ||
40910          test ! -s conftest.err
40911        } && test -s conftest.$ac_objext; then
40912   ac_cv_func_which_gethostbyname_r=three
40913 else
40914   echo "$as_me: failed program was:" >&5
40915 sed 's/^/| /' conftest.$ac_ext >&5
40916
40917
40918 fi
40919
40920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40921
40922 fi
40923
40924 ################################################################
40925
40926
40927 fi
40928
40929 case "$ac_cv_func_which_gethostbyname_r" in
40930     three)
40931     { echo "$as_me:$LINENO: result: three" >&5
40932 echo "${ECHO_T}three" >&6; }
40933     cat >>confdefs.h <<\_ACEOF
40934 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40935 _ACEOF
40936
40937     ;;
40938
40939     five)
40940     { echo "$as_me:$LINENO: result: five" >&5
40941 echo "${ECHO_T}five" >&6; }
40942     cat >>confdefs.h <<\_ACEOF
40943 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40944 _ACEOF
40945
40946     ;;
40947
40948     six)
40949     { echo "$as_me:$LINENO: result: six" >&5
40950 echo "${ECHO_T}six" >&6; }
40951     cat >>confdefs.h <<\_ACEOF
40952 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40953 _ACEOF
40954
40955     ;;
40956
40957     no)
40958     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40959 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40960     ;;
40961
40962     unknown)
40963     { echo "$as_me:$LINENO: result: can't tell" >&5
40964 echo "${ECHO_T}can't tell" >&6; }
40965     ;;
40966
40967     *)
40968     { { echo "$as_me:$LINENO: error: internal error" >&5
40969 echo "$as_me: error: internal error" >&2;}
40970    { (exit 1); exit 1; }; }
40971     ;;
40972 esac
40973
40974 ac_ext=c
40975 ac_cpp='$CPP $CPPFLAGS'
40976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40979
40980
40981
40982       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40983               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40984           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40985 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40986 if test "${ac_cv_func_gethostbyname+set}" = set; then
40987   echo $ECHO_N "(cached) $ECHO_C" >&6
40988 else
40989   cat >conftest.$ac_ext <<_ACEOF
40990 /* confdefs.h.  */
40991 _ACEOF
40992 cat confdefs.h >>conftest.$ac_ext
40993 cat >>conftest.$ac_ext <<_ACEOF
40994 /* end confdefs.h.  */
40995 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40997 #define gethostbyname innocuous_gethostbyname
40998
40999 /* System header to define __stub macros and hopefully few prototypes,
41000     which can conflict with char gethostbyname (); below.
41001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41002     <limits.h> exists even on freestanding compilers.  */
41003
41004 #ifdef __STDC__
41005 # include <limits.h>
41006 #else
41007 # include <assert.h>
41008 #endif
41009
41010 #undef gethostbyname
41011
41012 /* Override any GCC internal prototype to avoid an error.
41013    Use char because int might match the return type of a GCC
41014    builtin and then its argument prototype would still apply.  */
41015 #ifdef __cplusplus
41016 extern "C"
41017 #endif
41018 char gethostbyname ();
41019 /* The GNU C library defines this for functions which it implements
41020     to always fail with ENOSYS.  Some functions are actually named
41021     something starting with __ and the normal name is an alias.  */
41022 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41023 choke me
41024 #endif
41025
41026 int
41027 main ()
41028 {
41029 return gethostbyname ();
41030   ;
41031   return 0;
41032 }
41033 _ACEOF
41034 rm -f conftest.$ac_objext conftest$ac_exeext
41035 if { (ac_try="$ac_link"
41036 case "(($ac_try" in
41037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41038   *) ac_try_echo=$ac_try;;
41039 esac
41040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41041   (eval "$ac_link") 2>conftest.er1
41042   ac_status=$?
41043   grep -v '^ *+' conftest.er1 >conftest.err
41044   rm -f conftest.er1
41045   cat conftest.err >&5
41046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41047   (exit $ac_status); } && {
41048          test -z "$ac_c_werror_flag" ||
41049          test ! -s conftest.err
41050        } && test -s conftest$ac_exeext &&
41051        $as_test_x conftest$ac_exeext; then
41052   ac_cv_func_gethostbyname=yes
41053 else
41054   echo "$as_me: failed program was:" >&5
41055 sed 's/^/| /' conftest.$ac_ext >&5
41056
41057         ac_cv_func_gethostbyname=no
41058 fi
41059
41060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41061       conftest$ac_exeext conftest.$ac_ext
41062 fi
41063 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41064 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41065 if test $ac_cv_func_gethostbyname = yes; then
41066    cat >>confdefs.h <<\_ACEOF
41067 #define HAVE_GETHOSTBYNAME 1
41068 _ACEOF
41069
41070 fi
41071
41072       fi
41073
41074 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41075 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41076 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41077   echo $ECHO_N "(cached) $ECHO_C" >&6
41078 else
41079
41080                 ac_ext=cpp
41081 ac_cpp='$CXXCPP $CPPFLAGS'
41082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41085
41086
41087         cat >conftest.$ac_ext <<_ACEOF
41088 /* confdefs.h.  */
41089 _ACEOF
41090 cat confdefs.h >>conftest.$ac_ext
41091 cat >>conftest.$ac_ext <<_ACEOF
41092 /* end confdefs.h.  */
41093 #include <netdb.h>
41094 int
41095 main ()
41096 {
41097
41098                 char *name;
41099                 char *proto;
41100                 struct servent *se, *res;
41101                 char buffer[2048];
41102                 int buflen = 2048;
41103                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41104
41105   ;
41106   return 0;
41107 }
41108 _ACEOF
41109 rm -f conftest.$ac_objext
41110 if { (ac_try="$ac_compile"
41111 case "(($ac_try" in
41112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41113   *) ac_try_echo=$ac_try;;
41114 esac
41115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41116   (eval "$ac_compile") 2>conftest.er1
41117   ac_status=$?
41118   grep -v '^ *+' conftest.er1 >conftest.err
41119   rm -f conftest.er1
41120   cat conftest.err >&5
41121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41122   (exit $ac_status); } && {
41123          test -z "$ac_cxx_werror_flag" ||
41124          test ! -s conftest.err
41125        } && test -s conftest.$ac_objext; then
41126   ac_cv_func_which_getservbyname_r=six
41127 else
41128   echo "$as_me: failed program was:" >&5
41129 sed 's/^/| /' conftest.$ac_ext >&5
41130
41131
41132                 cat >conftest.$ac_ext <<_ACEOF
41133 /* confdefs.h.  */
41134 _ACEOF
41135 cat confdefs.h >>conftest.$ac_ext
41136 cat >>conftest.$ac_ext <<_ACEOF
41137 /* end confdefs.h.  */
41138 #include <netdb.h>
41139 int
41140 main ()
41141 {
41142
41143                         char *name;
41144                         char *proto;
41145                         struct servent *se;
41146                         char buffer[2048];
41147                         int buflen = 2048;
41148                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41149
41150   ;
41151   return 0;
41152 }
41153 _ACEOF
41154 rm -f conftest.$ac_objext
41155 if { (ac_try="$ac_compile"
41156 case "(($ac_try" in
41157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41158   *) ac_try_echo=$ac_try;;
41159 esac
41160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41161   (eval "$ac_compile") 2>conftest.er1
41162   ac_status=$?
41163   grep -v '^ *+' conftest.er1 >conftest.err
41164   rm -f conftest.er1
41165   cat conftest.err >&5
41166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41167   (exit $ac_status); } && {
41168          test -z "$ac_cxx_werror_flag" ||
41169          test ! -s conftest.err
41170        } && test -s conftest.$ac_objext; then
41171   ac_cv_func_which_getservbyname_r=five
41172 else
41173   echo "$as_me: failed program was:" >&5
41174 sed 's/^/| /' conftest.$ac_ext >&5
41175
41176
41177                         cat >conftest.$ac_ext <<_ACEOF
41178 /* confdefs.h.  */
41179 _ACEOF
41180 cat confdefs.h >>conftest.$ac_ext
41181 cat >>conftest.$ac_ext <<_ACEOF
41182 /* end confdefs.h.  */
41183 #include <netdb.h>
41184 int
41185 main ()
41186 {
41187
41188                                 char *name;
41189                                 char *proto;
41190                                 struct servent *se;
41191                                 struct servent_data data;
41192                                 (void) getservbyname_r(name, proto, se, &data);
41193
41194   ;
41195   return 0;
41196 }
41197 _ACEOF
41198 rm -f conftest.$ac_objext
41199 if { (ac_try="$ac_compile"
41200 case "(($ac_try" in
41201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41202   *) ac_try_echo=$ac_try;;
41203 esac
41204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41205   (eval "$ac_compile") 2>conftest.er1
41206   ac_status=$?
41207   grep -v '^ *+' conftest.er1 >conftest.err
41208   rm -f conftest.er1
41209   cat conftest.err >&5
41210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41211   (exit $ac_status); } && {
41212          test -z "$ac_cxx_werror_flag" ||
41213          test ! -s conftest.err
41214        } && test -s conftest.$ac_objext; then
41215   ac_cv_func_which_getservbyname_r=four
41216 else
41217   echo "$as_me: failed program was:" >&5
41218 sed 's/^/| /' conftest.$ac_ext >&5
41219
41220         ac_cv_func_which_getservbyname_r=no
41221
41222 fi
41223
41224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41225
41226
41227 fi
41228
41229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41230
41231
41232 fi
41233
41234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41235         ac_ext=c
41236 ac_cpp='$CPP $CPPFLAGS'
41237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41240
41241
41242
41243 fi
41244 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41245 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41246
41247 if test $ac_cv_func_which_getservbyname_r = six; then
41248   cat >>confdefs.h <<\_ACEOF
41249 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41250 _ACEOF
41251
41252 elif test $ac_cv_func_which_getservbyname_r = five; then
41253   cat >>confdefs.h <<\_ACEOF
41254 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41255 _ACEOF
41256
41257 elif test $ac_cv_func_which_getservbyname_r = four; then
41258   cat >>confdefs.h <<\_ACEOF
41259 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41260 _ACEOF
41261
41262 fi
41263
41264
41265       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41266               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41267
41268 for ac_func in getservbyname
41269 do
41270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41274   echo $ECHO_N "(cached) $ECHO_C" >&6
41275 else
41276   cat >conftest.$ac_ext <<_ACEOF
41277 /* confdefs.h.  */
41278 _ACEOF
41279 cat confdefs.h >>conftest.$ac_ext
41280 cat >>conftest.$ac_ext <<_ACEOF
41281 /* end confdefs.h.  */
41282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41284 #define $ac_func innocuous_$ac_func
41285
41286 /* System header to define __stub macros and hopefully few prototypes,
41287     which can conflict with char $ac_func (); below.
41288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41289     <limits.h> exists even on freestanding compilers.  */
41290
41291 #ifdef __STDC__
41292 # include <limits.h>
41293 #else
41294 # include <assert.h>
41295 #endif
41296
41297 #undef $ac_func
41298
41299 /* Override any GCC internal prototype to avoid an error.
41300    Use char because int might match the return type of a GCC
41301    builtin and then its argument prototype would still apply.  */
41302 #ifdef __cplusplus
41303 extern "C"
41304 #endif
41305 char $ac_func ();
41306 /* The GNU C library defines this for functions which it implements
41307     to always fail with ENOSYS.  Some functions are actually named
41308     something starting with __ and the normal name is an alias.  */
41309 #if defined __stub_$ac_func || defined __stub___$ac_func
41310 choke me
41311 #endif
41312
41313 int
41314 main ()
41315 {
41316 return $ac_func ();
41317   ;
41318   return 0;
41319 }
41320 _ACEOF
41321 rm -f conftest.$ac_objext conftest$ac_exeext
41322 if { (ac_try="$ac_link"
41323 case "(($ac_try" in
41324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41325   *) ac_try_echo=$ac_try;;
41326 esac
41327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41328   (eval "$ac_link") 2>conftest.er1
41329   ac_status=$?
41330   grep -v '^ *+' conftest.er1 >conftest.err
41331   rm -f conftest.er1
41332   cat conftest.err >&5
41333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41334   (exit $ac_status); } && {
41335          test -z "$ac_c_werror_flag" ||
41336          test ! -s conftest.err
41337        } && test -s conftest$ac_exeext &&
41338        $as_test_x conftest$ac_exeext; then
41339   eval "$as_ac_var=yes"
41340 else
41341   echo "$as_me: failed program was:" >&5
41342 sed 's/^/| /' conftest.$ac_ext >&5
41343
41344         eval "$as_ac_var=no"
41345 fi
41346
41347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41348       conftest$ac_exeext conftest.$ac_ext
41349 fi
41350 ac_res=`eval echo '${'$as_ac_var'}'`
41351                { echo "$as_me:$LINENO: result: $ac_res" >&5
41352 echo "${ECHO_T}$ac_res" >&6; }
41353 if test `eval echo '${'$as_ac_var'}'` = yes; then
41354   cat >>confdefs.h <<_ACEOF
41355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41356 _ACEOF
41357   cat >>confdefs.h <<\_ACEOF
41358 #define HAVE_GETSERVBYNAME 1
41359 _ACEOF
41360
41361 fi
41362 done
41363
41364       fi
41365
41366 if test "$wxUSE_THREADS" = "yes"; then
41367   cat >>confdefs.h <<\_ACEOF
41368 #define wxUSE_THREADS 1
41369 _ACEOF
41370
41371
41372   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41373 else
41374       if test "$wx_cv_func_strtok_r" = "yes"; then
41375     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41376 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41377     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41378         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41379         { echo "$as_me:$LINENO: result: yes" >&5
41380 echo "${ECHO_T}yes" >&6; }
41381     else
41382         { echo "$as_me:$LINENO: result: no" >&5
41383 echo "${ECHO_T}no" >&6; }
41384     fi
41385   fi
41386 fi
41387
41388 if test "$WXGTK2" = 1 ; then
41389   cat >>confdefs.h <<_ACEOF
41390 #define __WXGTK20__ $WXGTK2
41391 _ACEOF
41392
41393   WXGTK12=1
41394 fi
41395
41396 if test "$WXGTK12" = 1 ; then
41397   cat >>confdefs.h <<_ACEOF
41398 #define __WXGTK12__ $WXGTK12
41399 _ACEOF
41400
41401 fi
41402
41403 if test "$WXGTK127" = 1 ; then
41404   cat >>confdefs.h <<_ACEOF
41405 #define __WXGTK127__ $WXGTK127
41406 _ACEOF
41407
41408 fi
41409
41410 if test "$WXGPE" = 1 ; then
41411   cat >>confdefs.h <<_ACEOF
41412 #define __WXGPE__ $WXGPE
41413 _ACEOF
41414
41415 fi
41416
41417 DEBUG_CFLAGS=
41418 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
41419                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
41420 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
41421 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
41422     DEBUG_CFLAGS="-g"
41423 fi
41424
41425 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41426     wxUSE_DEBUG_INFO=yes
41427     if test "$GCC" = yes; then
41428         DEBUG_CFLAGS="-ggdb"
41429     fi
41430 fi
41431
41432 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41433     cat >>confdefs.h <<\_ACEOF
41434 #define WXDEBUG 1
41435 _ACEOF
41436
41437     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41438 else
41439     if test "$wxUSE_GTK" = 1 ; then
41440         if test "x$wxGTK_VERSION" = "x1" ; then
41441             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41442         fi
41443     fi
41444 fi
41445
41446 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41447     cat >>confdefs.h <<\_ACEOF
41448 #define wxUSE_MEMORY_TRACING 1
41449 _ACEOF
41450
41451     cat >>confdefs.h <<\_ACEOF
41452 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41453 _ACEOF
41454
41455     cat >>confdefs.h <<\_ACEOF
41456 #define wxUSE_DEBUG_NEW_ALWAYS 1
41457 _ACEOF
41458
41459     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41460 fi
41461
41462 if test "$wxUSE_DMALLOC" = "yes" ; then
41463     DMALLOC_LIBS="-ldmallocthcxx"
41464 fi
41465
41466 PROFILE_FLAGS=
41467 if test "$wxUSE_PROFILE" = "yes" ; then
41468     PROFILE_FLAGS=" -pg"
41469 fi
41470
41471 if test "$GCC" = "yes" ; then
41472     if test "$wxUSE_NO_RTTI" = "yes" ; then
41473         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41474     fi
41475     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41476         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41477     fi
41478     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41479         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41480     fi
41481
41482                                                 case "${host}" in
41483       powerpc*-*-aix* )
41484         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41485         ;;
41486       *-hppa* )
41487         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41488         ;;
41489     esac
41490 fi
41491
41492 OPTIMISE_CFLAGS=
41493 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
41494                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
41495 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
41496 else
41497     if test "$wxUSE_OPTIMISE" = "no" ; then
41498         if test "$GCC" = yes ; then
41499                                     OPTIMISE_CFLAGS="-O0"
41500         fi
41501     else
41502         if test "$GCC" = yes ; then
41503             case "${host}" in
41504                 *-pc-os2_emx | *-pc-os2-emx )
41505                                                             OPTIMISE_CFLAGS="-O2"
41506                 ;;
41507                 *)
41508                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41509                 ;;
41510             esac
41511         else
41512             OPTIMISE_CFLAGS="-O"
41513         fi
41514     fi
41515 fi
41516
41517
41518 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41519     cat >>confdefs.h <<\_ACEOF
41520 #define WXWIN_COMPATIBILITY_2_6 1
41521 _ACEOF
41522
41523
41524     WXWIN_COMPATIBILITY_2_8="yes"
41525 fi
41526
41527 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41528     cat >>confdefs.h <<\_ACEOF
41529 #define WXWIN_COMPATIBILITY_2_8 1
41530 _ACEOF
41531
41532 fi
41533
41534
41535 if test "$wxUSE_GUI" = "yes"; then
41536     cat >>confdefs.h <<\_ACEOF
41537 #define wxUSE_GUI 1
41538 _ACEOF
41539
41540
41541                                             fi
41542
41543
41544 if test "$wxUSE_UNIX" = "yes"; then
41545   cat >>confdefs.h <<\_ACEOF
41546 #define wxUSE_UNIX 1
41547 _ACEOF
41548
41549 fi
41550
41551
41552 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41553
41554     HAVE_DL_FUNCS=0
41555     HAVE_SHL_FUNCS=0
41556     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41557         if test "$USE_DOS" = 1; then
41558             HAVE_DL_FUNCS=0
41559         else
41560
41561 for ac_func in dlopen
41562 do
41563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41567   echo $ECHO_N "(cached) $ECHO_C" >&6
41568 else
41569   cat >conftest.$ac_ext <<_ACEOF
41570 /* confdefs.h.  */
41571 _ACEOF
41572 cat confdefs.h >>conftest.$ac_ext
41573 cat >>conftest.$ac_ext <<_ACEOF
41574 /* end confdefs.h.  */
41575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41577 #define $ac_func innocuous_$ac_func
41578
41579 /* System header to define __stub macros and hopefully few prototypes,
41580     which can conflict with char $ac_func (); below.
41581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41582     <limits.h> exists even on freestanding compilers.  */
41583
41584 #ifdef __STDC__
41585 # include <limits.h>
41586 #else
41587 # include <assert.h>
41588 #endif
41589
41590 #undef $ac_func
41591
41592 /* Override any GCC internal prototype to avoid an error.
41593    Use char because int might match the return type of a GCC
41594    builtin and then its argument prototype would still apply.  */
41595 #ifdef __cplusplus
41596 extern "C"
41597 #endif
41598 char $ac_func ();
41599 /* The GNU C library defines this for functions which it implements
41600     to always fail with ENOSYS.  Some functions are actually named
41601     something starting with __ and the normal name is an alias.  */
41602 #if defined __stub_$ac_func || defined __stub___$ac_func
41603 choke me
41604 #endif
41605
41606 int
41607 main ()
41608 {
41609 return $ac_func ();
41610   ;
41611   return 0;
41612 }
41613 _ACEOF
41614 rm -f conftest.$ac_objext conftest$ac_exeext
41615 if { (ac_try="$ac_link"
41616 case "(($ac_try" in
41617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41618   *) ac_try_echo=$ac_try;;
41619 esac
41620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41621   (eval "$ac_link") 2>conftest.er1
41622   ac_status=$?
41623   grep -v '^ *+' conftest.er1 >conftest.err
41624   rm -f conftest.er1
41625   cat conftest.err >&5
41626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627   (exit $ac_status); } && {
41628          test -z "$ac_c_werror_flag" ||
41629          test ! -s conftest.err
41630        } && test -s conftest$ac_exeext &&
41631        $as_test_x conftest$ac_exeext; then
41632   eval "$as_ac_var=yes"
41633 else
41634   echo "$as_me: failed program was:" >&5
41635 sed 's/^/| /' conftest.$ac_ext >&5
41636
41637         eval "$as_ac_var=no"
41638 fi
41639
41640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41641       conftest$ac_exeext conftest.$ac_ext
41642 fi
41643 ac_res=`eval echo '${'$as_ac_var'}'`
41644                { echo "$as_me:$LINENO: result: $ac_res" >&5
41645 echo "${ECHO_T}$ac_res" >&6; }
41646 if test `eval echo '${'$as_ac_var'}'` = yes; then
41647   cat >>confdefs.h <<_ACEOF
41648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41649 _ACEOF
41650
41651                 cat >>confdefs.h <<\_ACEOF
41652 #define HAVE_DLOPEN 1
41653 _ACEOF
41654
41655                 HAVE_DL_FUNCS=1
41656
41657 else
41658
41659                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41660 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41662   echo $ECHO_N "(cached) $ECHO_C" >&6
41663 else
41664   ac_check_lib_save_LIBS=$LIBS
41665 LIBS="-ldl  $LIBS"
41666 cat >conftest.$ac_ext <<_ACEOF
41667 /* confdefs.h.  */
41668 _ACEOF
41669 cat confdefs.h >>conftest.$ac_ext
41670 cat >>conftest.$ac_ext <<_ACEOF
41671 /* end confdefs.h.  */
41672
41673 /* Override any GCC internal prototype to avoid an error.
41674    Use char because int might match the return type of a GCC
41675    builtin and then its argument prototype would still apply.  */
41676 #ifdef __cplusplus
41677 extern "C"
41678 #endif
41679 char dlopen ();
41680 int
41681 main ()
41682 {
41683 return dlopen ();
41684   ;
41685   return 0;
41686 }
41687 _ACEOF
41688 rm -f conftest.$ac_objext conftest$ac_exeext
41689 if { (ac_try="$ac_link"
41690 case "(($ac_try" in
41691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41692   *) ac_try_echo=$ac_try;;
41693 esac
41694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41695   (eval "$ac_link") 2>conftest.er1
41696   ac_status=$?
41697   grep -v '^ *+' conftest.er1 >conftest.err
41698   rm -f conftest.er1
41699   cat conftest.err >&5
41700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41701   (exit $ac_status); } && {
41702          test -z "$ac_c_werror_flag" ||
41703          test ! -s conftest.err
41704        } && test -s conftest$ac_exeext &&
41705        $as_test_x conftest$ac_exeext; then
41706   ac_cv_lib_dl_dlopen=yes
41707 else
41708   echo "$as_me: failed program was:" >&5
41709 sed 's/^/| /' conftest.$ac_ext >&5
41710
41711         ac_cv_lib_dl_dlopen=no
41712 fi
41713
41714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41715       conftest$ac_exeext conftest.$ac_ext
41716 LIBS=$ac_check_lib_save_LIBS
41717 fi
41718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41719 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41720 if test $ac_cv_lib_dl_dlopen = yes; then
41721
41722                                 cat >>confdefs.h <<\_ACEOF
41723 #define HAVE_DLOPEN 1
41724 _ACEOF
41725
41726                                 HAVE_DL_FUNCS=1
41727                                 DL_LINK=" -ldl$DL_LINK"
41728
41729 else
41730
41731
41732 for ac_func in shl_load
41733 do
41734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41738   echo $ECHO_N "(cached) $ECHO_C" >&6
41739 else
41740   cat >conftest.$ac_ext <<_ACEOF
41741 /* confdefs.h.  */
41742 _ACEOF
41743 cat confdefs.h >>conftest.$ac_ext
41744 cat >>conftest.$ac_ext <<_ACEOF
41745 /* end confdefs.h.  */
41746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41748 #define $ac_func innocuous_$ac_func
41749
41750 /* System header to define __stub macros and hopefully few prototypes,
41751     which can conflict with char $ac_func (); below.
41752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41753     <limits.h> exists even on freestanding compilers.  */
41754
41755 #ifdef __STDC__
41756 # include <limits.h>
41757 #else
41758 # include <assert.h>
41759 #endif
41760
41761 #undef $ac_func
41762
41763 /* Override any GCC internal prototype to avoid an error.
41764    Use char because int might match the return type of a GCC
41765    builtin and then its argument prototype would still apply.  */
41766 #ifdef __cplusplus
41767 extern "C"
41768 #endif
41769 char $ac_func ();
41770 /* The GNU C library defines this for functions which it implements
41771     to always fail with ENOSYS.  Some functions are actually named
41772     something starting with __ and the normal name is an alias.  */
41773 #if defined __stub_$ac_func || defined __stub___$ac_func
41774 choke me
41775 #endif
41776
41777 int
41778 main ()
41779 {
41780 return $ac_func ();
41781   ;
41782   return 0;
41783 }
41784 _ACEOF
41785 rm -f conftest.$ac_objext conftest$ac_exeext
41786 if { (ac_try="$ac_link"
41787 case "(($ac_try" in
41788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41789   *) ac_try_echo=$ac_try;;
41790 esac
41791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41792   (eval "$ac_link") 2>conftest.er1
41793   ac_status=$?
41794   grep -v '^ *+' conftest.er1 >conftest.err
41795   rm -f conftest.er1
41796   cat conftest.err >&5
41797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798   (exit $ac_status); } && {
41799          test -z "$ac_c_werror_flag" ||
41800          test ! -s conftest.err
41801        } && test -s conftest$ac_exeext &&
41802        $as_test_x conftest$ac_exeext; then
41803   eval "$as_ac_var=yes"
41804 else
41805   echo "$as_me: failed program was:" >&5
41806 sed 's/^/| /' conftest.$ac_ext >&5
41807
41808         eval "$as_ac_var=no"
41809 fi
41810
41811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41812       conftest$ac_exeext conftest.$ac_ext
41813 fi
41814 ac_res=`eval echo '${'$as_ac_var'}'`
41815                { echo "$as_me:$LINENO: result: $ac_res" >&5
41816 echo "${ECHO_T}$ac_res" >&6; }
41817 if test `eval echo '${'$as_ac_var'}'` = yes; then
41818   cat >>confdefs.h <<_ACEOF
41819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41820 _ACEOF
41821
41822                                                 cat >>confdefs.h <<\_ACEOF
41823 #define HAVE_SHL_LOAD 1
41824 _ACEOF
41825
41826                                                 HAVE_SHL_FUNCS=1
41827
41828 else
41829
41830                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41831 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41832 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41833   echo $ECHO_N "(cached) $ECHO_C" >&6
41834 else
41835   ac_check_lib_save_LIBS=$LIBS
41836 LIBS="-lshl_load  $LIBS"
41837 cat >conftest.$ac_ext <<_ACEOF
41838 /* confdefs.h.  */
41839 _ACEOF
41840 cat confdefs.h >>conftest.$ac_ext
41841 cat >>conftest.$ac_ext <<_ACEOF
41842 /* end confdefs.h.  */
41843
41844 /* Override any GCC internal prototype to avoid an error.
41845    Use char because int might match the return type of a GCC
41846    builtin and then its argument prototype would still apply.  */
41847 #ifdef __cplusplus
41848 extern "C"
41849 #endif
41850 char dld ();
41851 int
41852 main ()
41853 {
41854 return dld ();
41855   ;
41856   return 0;
41857 }
41858 _ACEOF
41859 rm -f conftest.$ac_objext conftest$ac_exeext
41860 if { (ac_try="$ac_link"
41861 case "(($ac_try" in
41862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41863   *) ac_try_echo=$ac_try;;
41864 esac
41865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41866   (eval "$ac_link") 2>conftest.er1
41867   ac_status=$?
41868   grep -v '^ *+' conftest.er1 >conftest.err
41869   rm -f conftest.er1
41870   cat conftest.err >&5
41871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41872   (exit $ac_status); } && {
41873          test -z "$ac_c_werror_flag" ||
41874          test ! -s conftest.err
41875        } && test -s conftest$ac_exeext &&
41876        $as_test_x conftest$ac_exeext; then
41877   ac_cv_lib_shl_load_dld=yes
41878 else
41879   echo "$as_me: failed program was:" >&5
41880 sed 's/^/| /' conftest.$ac_ext >&5
41881
41882         ac_cv_lib_shl_load_dld=no
41883 fi
41884
41885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41886       conftest$ac_exeext conftest.$ac_ext
41887 LIBS=$ac_check_lib_save_LIBS
41888 fi
41889 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41890 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41891 if test $ac_cv_lib_shl_load_dld = yes; then
41892
41893                                                                 HAVE_SHL_FUNCS=1
41894                                                                 DL_LINK=" -ldld$DL_LINK"
41895
41896 fi
41897
41898
41899 fi
41900 done
41901
41902
41903 fi
41904
41905
41906 fi
41907 done
41908
41909
41910                         if test "$HAVE_DL_FUNCS" = 1; then
41911
41912 for ac_func in dlerror
41913 do
41914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41918   echo $ECHO_N "(cached) $ECHO_C" >&6
41919 else
41920   cat >conftest.$ac_ext <<_ACEOF
41921 /* confdefs.h.  */
41922 _ACEOF
41923 cat confdefs.h >>conftest.$ac_ext
41924 cat >>conftest.$ac_ext <<_ACEOF
41925 /* end confdefs.h.  */
41926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41928 #define $ac_func innocuous_$ac_func
41929
41930 /* System header to define __stub macros and hopefully few prototypes,
41931     which can conflict with char $ac_func (); below.
41932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41933     <limits.h> exists even on freestanding compilers.  */
41934
41935 #ifdef __STDC__
41936 # include <limits.h>
41937 #else
41938 # include <assert.h>
41939 #endif
41940
41941 #undef $ac_func
41942
41943 /* Override any GCC internal prototype to avoid an error.
41944    Use char because int might match the return type of a GCC
41945    builtin and then its argument prototype would still apply.  */
41946 #ifdef __cplusplus
41947 extern "C"
41948 #endif
41949 char $ac_func ();
41950 /* The GNU C library defines this for functions which it implements
41951     to always fail with ENOSYS.  Some functions are actually named
41952     something starting with __ and the normal name is an alias.  */
41953 #if defined __stub_$ac_func || defined __stub___$ac_func
41954 choke me
41955 #endif
41956
41957 int
41958 main ()
41959 {
41960 return $ac_func ();
41961   ;
41962   return 0;
41963 }
41964 _ACEOF
41965 rm -f conftest.$ac_objext conftest$ac_exeext
41966 if { (ac_try="$ac_link"
41967 case "(($ac_try" in
41968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41969   *) ac_try_echo=$ac_try;;
41970 esac
41971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41972   (eval "$ac_link") 2>conftest.er1
41973   ac_status=$?
41974   grep -v '^ *+' conftest.er1 >conftest.err
41975   rm -f conftest.er1
41976   cat conftest.err >&5
41977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41978   (exit $ac_status); } && {
41979          test -z "$ac_c_werror_flag" ||
41980          test ! -s conftest.err
41981        } && test -s conftest$ac_exeext &&
41982        $as_test_x conftest$ac_exeext; then
41983   eval "$as_ac_var=yes"
41984 else
41985   echo "$as_me: failed program was:" >&5
41986 sed 's/^/| /' conftest.$ac_ext >&5
41987
41988         eval "$as_ac_var=no"
41989 fi
41990
41991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41992       conftest$ac_exeext conftest.$ac_ext
41993 fi
41994 ac_res=`eval echo '${'$as_ac_var'}'`
41995                { echo "$as_me:$LINENO: result: $ac_res" >&5
41996 echo "${ECHO_T}$ac_res" >&6; }
41997 if test `eval echo '${'$as_ac_var'}'` = yes; then
41998   cat >>confdefs.h <<_ACEOF
41999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42000 _ACEOF
42001  cat >>confdefs.h <<\_ACEOF
42002 #define HAVE_DLERROR 1
42003 _ACEOF
42004
42005 else
42006
42007                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42008 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42009 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42010   echo $ECHO_N "(cached) $ECHO_C" >&6
42011 else
42012   ac_check_lib_save_LIBS=$LIBS
42013 LIBS="-ldl  $LIBS"
42014 cat >conftest.$ac_ext <<_ACEOF
42015 /* confdefs.h.  */
42016 _ACEOF
42017 cat confdefs.h >>conftest.$ac_ext
42018 cat >>conftest.$ac_ext <<_ACEOF
42019 /* end confdefs.h.  */
42020
42021 /* Override any GCC internal prototype to avoid an error.
42022    Use char because int might match the return type of a GCC
42023    builtin and then its argument prototype would still apply.  */
42024 #ifdef __cplusplus
42025 extern "C"
42026 #endif
42027 char dlerror ();
42028 int
42029 main ()
42030 {
42031 return dlerror ();
42032   ;
42033   return 0;
42034 }
42035 _ACEOF
42036 rm -f conftest.$ac_objext conftest$ac_exeext
42037 if { (ac_try="$ac_link"
42038 case "(($ac_try" in
42039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42040   *) ac_try_echo=$ac_try;;
42041 esac
42042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42043   (eval "$ac_link") 2>conftest.er1
42044   ac_status=$?
42045   grep -v '^ *+' conftest.er1 >conftest.err
42046   rm -f conftest.er1
42047   cat conftest.err >&5
42048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049   (exit $ac_status); } && {
42050          test -z "$ac_c_werror_flag" ||
42051          test ! -s conftest.err
42052        } && test -s conftest$ac_exeext &&
42053        $as_test_x conftest$ac_exeext; then
42054   ac_cv_lib_dl_dlerror=yes
42055 else
42056   echo "$as_me: failed program was:" >&5
42057 sed 's/^/| /' conftest.$ac_ext >&5
42058
42059         ac_cv_lib_dl_dlerror=no
42060 fi
42061
42062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42063       conftest$ac_exeext conftest.$ac_ext
42064 LIBS=$ac_check_lib_save_LIBS
42065 fi
42066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42067 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42068 if test $ac_cv_lib_dl_dlerror = yes; then
42069   cat >>confdefs.h <<\_ACEOF
42070 #define HAVE_DLERROR 1
42071 _ACEOF
42072
42073 fi
42074
42075
42076
42077 fi
42078 done
42079
42080             fi
42081         fi
42082
42083                 if test "$USE_DARWIN" = 1; then
42084                         HAVE_DL_FUNCS=1
42085         fi
42086
42087         if test "$HAVE_DL_FUNCS" = 0; then
42088             if test "$HAVE_SHL_FUNCS" = 0; then
42089               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42090                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42091 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42092                   wxUSE_DYNAMIC_LOADER=no
42093                   wxUSE_DYNLIB_CLASS=no
42094               else
42095                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42096 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42097               fi
42098             fi
42099         fi
42100     fi
42101 fi
42102
42103 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42104     cat >>confdefs.h <<\_ACEOF
42105 #define wxUSE_DYNAMIC_LOADER 1
42106 _ACEOF
42107
42108 fi
42109 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42110     cat >>confdefs.h <<\_ACEOF
42111 #define wxUSE_DYNLIB_CLASS 1
42112 _ACEOF
42113
42114 fi
42115
42116
42117
42118 if test "$wxUSE_PLUGINS" = "yes" ; then
42119     if test "$wxUSE_SHARED" = "no" ; then
42120         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42121 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42122         wxUSE_PLUGINS=no
42123     fi
42124     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42125         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42126 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42127         wxUSE_PLUGINS=no
42128     fi
42129     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42130         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42131 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42132         wxUSE_PLUGINS=no
42133     fi
42134     if test "$wxUSE_PLUGINS" = "yes" ; then
42135         cat >>confdefs.h <<\_ACEOF
42136 #define wxUSE_PLUGINS 1
42137 _ACEOF
42138
42139     fi
42140 fi
42141
42142
42143 if test "$wxUSE_STL" = "yes"; then
42144   cat >>confdefs.h <<\_ACEOF
42145 #define wxUSE_STL 1
42146 _ACEOF
42147
42148 fi
42149
42150 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42151   cat >>confdefs.h <<\_ACEOF
42152 #define wxUSE_EXTENDED_RTTI 1
42153 _ACEOF
42154
42155 fi
42156
42157 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42158   cat >>confdefs.h <<\_ACEOF
42159 #define wxUSE_APPLE_IEEE 1
42160 _ACEOF
42161
42162 fi
42163
42164 if test "$wxUSE_TIMER" = "yes"; then
42165   cat >>confdefs.h <<\_ACEOF
42166 #define wxUSE_TIMER 1
42167 _ACEOF
42168
42169 fi
42170
42171 if test "$USE_UNIX" = 1 ; then
42172         if test "$wxUSE_MGL" != 1; then
42173                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42174 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42175 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42176   echo $ECHO_N "(cached) $ECHO_C" >&6
42177 else
42178
42179             cat >conftest.$ac_ext <<_ACEOF
42180 /* confdefs.h.  */
42181 _ACEOF
42182 cat confdefs.h >>conftest.$ac_ext
42183 cat >>conftest.$ac_ext <<_ACEOF
42184 /* end confdefs.h.  */
42185
42186                     #include <sys/ioctl.h>
42187                     #include <sys/soundcard.h>
42188
42189 int
42190 main ()
42191 {
42192
42193                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42194
42195   ;
42196   return 0;
42197 }
42198 _ACEOF
42199 rm -f conftest.$ac_objext conftest$ac_exeext
42200 if { (ac_try="$ac_link"
42201 case "(($ac_try" in
42202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42203   *) ac_try_echo=$ac_try;;
42204 esac
42205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42206   (eval "$ac_link") 2>conftest.er1
42207   ac_status=$?
42208   grep -v '^ *+' conftest.er1 >conftest.err
42209   rm -f conftest.er1
42210   cat conftest.err >&5
42211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212   (exit $ac_status); } && {
42213          test -z "$ac_c_werror_flag" ||
42214          test ! -s conftest.err
42215        } && test -s conftest$ac_exeext &&
42216        $as_test_x conftest$ac_exeext; then
42217   ac_cv_header_sys_soundcard=yes
42218 else
42219   echo "$as_me: failed program was:" >&5
42220 sed 's/^/| /' conftest.$ac_ext >&5
42221
42222
42223                     saveLibs="$LIBS"
42224                     LIBS="$saveLibs -lossaudio"
42225                     cat >conftest.$ac_ext <<_ACEOF
42226 /* confdefs.h.  */
42227 _ACEOF
42228 cat confdefs.h >>conftest.$ac_ext
42229 cat >>conftest.$ac_ext <<_ACEOF
42230 /* end confdefs.h.  */
42231
42232                             #include <sys/ioctl.h>
42233                             #include <sys/soundcard.h>
42234
42235 int
42236 main ()
42237 {
42238
42239                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42240
42241   ;
42242   return 0;
42243 }
42244 _ACEOF
42245 rm -f conftest.$ac_objext conftest$ac_exeext
42246 if { (ac_try="$ac_link"
42247 case "(($ac_try" in
42248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42249   *) ac_try_echo=$ac_try;;
42250 esac
42251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42252   (eval "$ac_link") 2>conftest.er1
42253   ac_status=$?
42254   grep -v '^ *+' conftest.er1 >conftest.err
42255   rm -f conftest.er1
42256   cat conftest.err >&5
42257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258   (exit $ac_status); } && {
42259          test -z "$ac_c_werror_flag" ||
42260          test ! -s conftest.err
42261        } && test -s conftest$ac_exeext &&
42262        $as_test_x conftest$ac_exeext; then
42263   ac_cv_header_sys_soundcard=yes
42264 else
42265   echo "$as_me: failed program was:" >&5
42266 sed 's/^/| /' conftest.$ac_ext >&5
42267
42268
42269                             LIBS="$saveLibs"
42270                             ac_cv_header_sys_soundcard=no
42271
42272
42273 fi
42274
42275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42276       conftest$ac_exeext conftest.$ac_ext
42277
42278
42279 fi
42280
42281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42282       conftest$ac_exeext conftest.$ac_ext
42283
42284 fi
42285 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42286 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42287     fi
42288
42289     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42290         cat >>confdefs.h <<\_ACEOF
42291 #define HAVE_SYS_SOUNDCARD_H 1
42292 _ACEOF
42293
42294     fi
42295 fi
42296
42297 WITH_PLUGIN_SDL=0
42298 if test "$wxUSE_SOUND" = "yes"; then
42299   if test "$USE_UNIX" = 1 ; then
42300     if test "$wxUSE_LIBSDL" != "no"; then
42301
42302 # Check whether --with-sdl-prefix was given.
42303 if test "${with_sdl_prefix+set}" = set; then
42304   withval=$with_sdl_prefix; sdl_prefix="$withval"
42305 else
42306   sdl_prefix=""
42307 fi
42308
42309
42310 # Check whether --with-sdl-exec-prefix was given.
42311 if test "${with_sdl_exec_prefix+set}" = set; then
42312   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42313 else
42314   sdl_exec_prefix=""
42315 fi
42316
42317 # Check whether --enable-sdltest was given.
42318 if test "${enable_sdltest+set}" = set; then
42319   enableval=$enable_sdltest;
42320 else
42321   enable_sdltest=yes
42322 fi
42323
42324
42325   if test x$sdl_exec_prefix != x ; then
42326     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42327     if test x${SDL_CONFIG+set} != xset ; then
42328       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42329     fi
42330   fi
42331   if test x$sdl_prefix != x ; then
42332     sdl_args="$sdl_args --prefix=$sdl_prefix"
42333     if test x${SDL_CONFIG+set} != xset ; then
42334       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42335     fi
42336   fi
42337
42338   if test "x$prefix" != xNONE; then
42339     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42340   fi
42341   # Extract the first word of "sdl-config", so it can be a program name with args.
42342 set dummy sdl-config; ac_word=$2
42343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42345 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42346   echo $ECHO_N "(cached) $ECHO_C" >&6
42347 else
42348   case $SDL_CONFIG in
42349   [\\/]* | ?:[\\/]*)
42350   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42351   ;;
42352   *)
42353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42354 for as_dir in $PATH
42355 do
42356   IFS=$as_save_IFS
42357   test -z "$as_dir" && as_dir=.
42358   for ac_exec_ext in '' $ac_executable_extensions; do
42359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42360     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42362     break 2
42363   fi
42364 done
42365 done
42366 IFS=$as_save_IFS
42367
42368   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42369   ;;
42370 esac
42371 fi
42372 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42373 if test -n "$SDL_CONFIG"; then
42374   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42375 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42376 else
42377   { echo "$as_me:$LINENO: result: no" >&5
42378 echo "${ECHO_T}no" >&6; }
42379 fi
42380
42381
42382   min_sdl_version=1.2.0
42383   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42384 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42385   no_sdl=""
42386   if test "$SDL_CONFIG" = "no" ; then
42387     no_sdl=yes
42388   else
42389     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42390     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42391
42392     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42393            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42394     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42395            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42396     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42397            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42398     if test "x$enable_sdltest" = "xyes" ; then
42399       ac_save_CFLAGS="$CFLAGS"
42400       ac_save_CXXFLAGS="$CXXFLAGS"
42401       ac_save_LIBS="$LIBS"
42402       CFLAGS="$CFLAGS $SDL_CFLAGS"
42403       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42404       LIBS="$LIBS $SDL_LIBS"
42405       rm -f conf.sdltest
42406       if test "$cross_compiling" = yes; then
42407   echo $ac_n "cross compiling; assumed OK... $ac_c"
42408 else
42409   cat >conftest.$ac_ext <<_ACEOF
42410 /* confdefs.h.  */
42411 _ACEOF
42412 cat confdefs.h >>conftest.$ac_ext
42413 cat >>conftest.$ac_ext <<_ACEOF
42414 /* end confdefs.h.  */
42415
42416 #include <stdio.h>
42417 #include <stdlib.h>
42418 #include <string.h>
42419 #include "SDL.h"
42420
42421 char*
42422 my_strdup (char *str)
42423 {
42424   char *new_str;
42425
42426   if (str)
42427     {
42428       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42429       strcpy (new_str, str);
42430     }
42431   else
42432     new_str = NULL;
42433
42434   return new_str;
42435 }
42436
42437 int main (int argc, char *argv[])
42438 {
42439   int major, minor, micro;
42440   char *tmp_version;
42441
42442   /* This hangs on some systems (?)
42443   system ("touch conf.sdltest");
42444   */
42445   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42446
42447   /* HP/UX 9 (%@#!) writes to sscanf strings */
42448   tmp_version = my_strdup("$min_sdl_version");
42449   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42450      printf("%s, bad version string\n", "$min_sdl_version");
42451      exit(1);
42452    }
42453
42454    if (($sdl_major_version > major) ||
42455       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42456       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42457     {
42458       return 0;
42459     }
42460   else
42461     {
42462       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42463       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42464       printf("*** best to upgrade to the required version.\n");
42465       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42466       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42467       printf("*** config.cache before re-running configure\n");
42468       return 1;
42469     }
42470 }
42471
42472
42473 _ACEOF
42474 rm -f conftest$ac_exeext
42475 if { (ac_try="$ac_link"
42476 case "(($ac_try" in
42477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42478   *) ac_try_echo=$ac_try;;
42479 esac
42480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42481   (eval "$ac_link") 2>&5
42482   ac_status=$?
42483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42485   { (case "(($ac_try" in
42486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42487   *) ac_try_echo=$ac_try;;
42488 esac
42489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42490   (eval "$ac_try") 2>&5
42491   ac_status=$?
42492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42493   (exit $ac_status); }; }; then
42494   :
42495 else
42496   echo "$as_me: program exited with status $ac_status" >&5
42497 echo "$as_me: failed program was:" >&5
42498 sed 's/^/| /' conftest.$ac_ext >&5
42499
42500 ( exit $ac_status )
42501 no_sdl=yes
42502 fi
42503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42504 fi
42505
42506
42507        CFLAGS="$ac_save_CFLAGS"
42508        CXXFLAGS="$ac_save_CXXFLAGS"
42509        LIBS="$ac_save_LIBS"
42510      fi
42511   fi
42512   if test "x$no_sdl" = x ; then
42513      { echo "$as_me:$LINENO: result: yes" >&5
42514 echo "${ECHO_T}yes" >&6; }
42515
42516                     EXTRALIBS_SDL="$SDL_LIBS"
42517                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42518                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42519                     cat >>confdefs.h <<\_ACEOF
42520 #define wxUSE_LIBSDL 1
42521 _ACEOF
42522
42523
42524   else
42525      { echo "$as_me:$LINENO: result: no" >&5
42526 echo "${ECHO_T}no" >&6; }
42527      if test "$SDL_CONFIG" = "no" ; then
42528        echo "*** The sdl-config script installed by SDL could not be found"
42529        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42530        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42531        echo "*** full path to sdl-config."
42532      else
42533        if test -f conf.sdltest ; then
42534         :
42535        else
42536           echo "*** Could not run SDL test program, checking why..."
42537           CFLAGS="$CFLAGS $SDL_CFLAGS"
42538           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42539           LIBS="$LIBS $SDL_LIBS"
42540           cat >conftest.$ac_ext <<_ACEOF
42541 /* confdefs.h.  */
42542 _ACEOF
42543 cat confdefs.h >>conftest.$ac_ext
42544 cat >>conftest.$ac_ext <<_ACEOF
42545 /* end confdefs.h.  */
42546
42547 #include <stdio.h>
42548 #include "SDL.h"
42549
42550 int main(int argc, char *argv[])
42551 { return 0; }
42552 #undef  main
42553 #define main K_and_R_C_main
42554
42555 int
42556 main ()
42557 {
42558  return 0;
42559   ;
42560   return 0;
42561 }
42562 _ACEOF
42563 rm -f conftest.$ac_objext conftest$ac_exeext
42564 if { (ac_try="$ac_link"
42565 case "(($ac_try" in
42566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42567   *) ac_try_echo=$ac_try;;
42568 esac
42569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42570   (eval "$ac_link") 2>conftest.er1
42571   ac_status=$?
42572   grep -v '^ *+' conftest.er1 >conftest.err
42573   rm -f conftest.er1
42574   cat conftest.err >&5
42575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576   (exit $ac_status); } && {
42577          test -z "$ac_c_werror_flag" ||
42578          test ! -s conftest.err
42579        } && test -s conftest$ac_exeext &&
42580        $as_test_x conftest$ac_exeext; then
42581    echo "*** The test program compiled, but did not run. This usually means"
42582           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42583           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42584           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42585           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42586           echo "*** is required on your system"
42587           echo "***"
42588           echo "*** If you have an old version installed, it is best to remove it, although"
42589           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42590 else
42591   echo "$as_me: failed program was:" >&5
42592 sed 's/^/| /' conftest.$ac_ext >&5
42593
42594          echo "*** The test program failed to compile or link. See the file config.log for the"
42595           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42596           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42597           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42598 fi
42599
42600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42601       conftest$ac_exeext conftest.$ac_ext
42602           CFLAGS="$ac_save_CFLAGS"
42603           CXXFLAGS="$ac_save_CXXFLAGS"
42604           LIBS="$ac_save_LIBS"
42605        fi
42606      fi
42607      SDL_CFLAGS=""
42608      SDL_LIBS=""
42609      wxUSE_LIBSDL="no"
42610   fi
42611
42612
42613   rm -f conf.sdltest
42614
42615       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42616         WITH_PLUGIN_SDL=1
42617       fi
42618     fi
42619   else
42620         if test "$wxUSE_MGL" = 1; then
42621         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42622 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42623         wxUSE_SOUND="no"
42624     fi
42625   fi
42626 fi
42627
42628 if test "$wxUSE_SOUND" = "yes"; then
42629   cat >>confdefs.h <<\_ACEOF
42630 #define wxUSE_SOUND 1
42631 _ACEOF
42632
42633   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42634 fi
42635
42636 if test "$WXGTK2" = 1; then
42637
42638
42639 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42640         if test -n "$ac_tool_prefix"; then
42641   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42642 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42645 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42646   echo $ECHO_N "(cached) $ECHO_C" >&6
42647 else
42648   case $PKG_CONFIG in
42649   [\\/]* | ?:[\\/]*)
42650   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42651   ;;
42652   *)
42653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42654 for as_dir in $PATH
42655 do
42656   IFS=$as_save_IFS
42657   test -z "$as_dir" && as_dir=.
42658   for ac_exec_ext in '' $ac_executable_extensions; do
42659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42660     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42662     break 2
42663   fi
42664 done
42665 done
42666 IFS=$as_save_IFS
42667
42668   ;;
42669 esac
42670 fi
42671 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42672 if test -n "$PKG_CONFIG"; then
42673   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42674 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42675 else
42676   { echo "$as_me:$LINENO: result: no" >&5
42677 echo "${ECHO_T}no" >&6; }
42678 fi
42679
42680
42681 fi
42682 if test -z "$ac_cv_path_PKG_CONFIG"; then
42683   ac_pt_PKG_CONFIG=$PKG_CONFIG
42684   # Extract the first word of "pkg-config", so it can be a program name with args.
42685 set dummy pkg-config; ac_word=$2
42686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42688 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42689   echo $ECHO_N "(cached) $ECHO_C" >&6
42690 else
42691   case $ac_pt_PKG_CONFIG in
42692   [\\/]* | ?:[\\/]*)
42693   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42694   ;;
42695   *)
42696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42697 for as_dir in $PATH
42698 do
42699   IFS=$as_save_IFS
42700   test -z "$as_dir" && as_dir=.
42701   for ac_exec_ext in '' $ac_executable_extensions; do
42702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42703     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42705     break 2
42706   fi
42707 done
42708 done
42709 IFS=$as_save_IFS
42710
42711   ;;
42712 esac
42713 fi
42714 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42715 if test -n "$ac_pt_PKG_CONFIG"; then
42716   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42717 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42718 else
42719   { echo "$as_me:$LINENO: result: no" >&5
42720 echo "${ECHO_T}no" >&6; }
42721 fi
42722
42723   if test "x$ac_pt_PKG_CONFIG" = x; then
42724     PKG_CONFIG=""
42725   else
42726     case $cross_compiling:$ac_tool_warned in
42727 yes:)
42728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42729 whose name does not start with the host triplet.  If you think this
42730 configuration is useful to you, please write to autoconf@gnu.org." >&5
42731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42732 whose name does not start with the host triplet.  If you think this
42733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42734 ac_tool_warned=yes ;;
42735 esac
42736     PKG_CONFIG=$ac_pt_PKG_CONFIG
42737   fi
42738 else
42739   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42740 fi
42741
42742 fi
42743 if test -n "$PKG_CONFIG"; then
42744         _pkg_min_version=0.9.0
42745         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42746 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42747         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42748                 { echo "$as_me:$LINENO: result: yes" >&5
42749 echo "${ECHO_T}yes" >&6; }
42750         else
42751                 { echo "$as_me:$LINENO: result: no" >&5
42752 echo "${ECHO_T}no" >&6; }
42753                 PKG_CONFIG=""
42754         fi
42755
42756 fi
42757
42758     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42759
42760         if test "$wxUSE_GTKPRINT" = "yes" ; then
42761
42762
42763 pkg_failed=no
42764 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42765 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42766
42767 if test -n "$PKG_CONFIG"; then
42768     if test -n "$GTKPRINT_CFLAGS"; then
42769         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42770     else
42771         if test -n "$PKG_CONFIG" && \
42772     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42773   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42774   ac_status=$?
42775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42776   (exit $ac_status); }; then
42777   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42778 else
42779   pkg_failed=yes
42780 fi
42781     fi
42782 else
42783         pkg_failed=untried
42784 fi
42785 if test -n "$PKG_CONFIG"; then
42786     if test -n "$GTKPRINT_LIBS"; then
42787         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42788     else
42789         if test -n "$PKG_CONFIG" && \
42790     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42791   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42792   ac_status=$?
42793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42794   (exit $ac_status); }; then
42795   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42796 else
42797   pkg_failed=yes
42798 fi
42799     fi
42800 else
42801         pkg_failed=untried
42802 fi
42803
42804
42805
42806 if test $pkg_failed = yes; then
42807
42808 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42809         _pkg_short_errors_supported=yes
42810 else
42811         _pkg_short_errors_supported=no
42812 fi
42813         if test $_pkg_short_errors_supported = yes; then
42814                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42815         else
42816                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42817         fi
42818         # Put the nasty error message in config.log where it belongs
42819         echo "$GTKPRINT_PKG_ERRORS" >&5
42820
42821
42822                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42823 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42824                         wxUSE_GTKPRINT="no"
42825
42826
42827 elif test $pkg_failed = untried; then
42828
42829                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42830 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42831                         wxUSE_GTKPRINT="no"
42832
42833
42834 else
42835         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42836         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42837         { echo "$as_me:$LINENO: result: yes" >&5
42838 echo "${ECHO_T}yes" >&6; }
42839
42840                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42841                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42842                         cat >>confdefs.h <<\_ACEOF
42843 #define wxUSE_GTKPRINT 1
42844 _ACEOF
42845
42846
42847 fi
42848         fi
42849
42850         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42851
42852
42853 pkg_failed=no
42854 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42855 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42856
42857 if test -n "$PKG_CONFIG"; then
42858     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42859         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42860     else
42861         if test -n "$PKG_CONFIG" && \
42862     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42863   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42864   ac_status=$?
42865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42866   (exit $ac_status); }; then
42867   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42868 else
42869   pkg_failed=yes
42870 fi
42871     fi
42872 else
42873         pkg_failed=untried
42874 fi
42875 if test -n "$PKG_CONFIG"; then
42876     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42877         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42878     else
42879         if test -n "$PKG_CONFIG" && \
42880     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42881   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42882   ac_status=$?
42883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42884   (exit $ac_status); }; then
42885   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42886 else
42887   pkg_failed=yes
42888 fi
42889     fi
42890 else
42891         pkg_failed=untried
42892 fi
42893
42894
42895
42896 if test $pkg_failed = yes; then
42897
42898 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42899         _pkg_short_errors_supported=yes
42900 else
42901         _pkg_short_errors_supported=no
42902 fi
42903         if test $_pkg_short_errors_supported = yes; then
42904                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42905         else
42906                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42907         fi
42908         # Put the nasty error message in config.log where it belongs
42909         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42910
42911
42912                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42913 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42914                         wxUSE_LIBGNOMEPRINT="no"
42915
42916
42917 elif test $pkg_failed = untried; then
42918
42919                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42920 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42921                         wxUSE_LIBGNOMEPRINT="no"
42922
42923
42924 else
42925         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42926         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42927         { echo "$as_me:$LINENO: result: yes" >&5
42928 echo "${ECHO_T}yes" >&6; }
42929
42930                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42931                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42932                         cat >>confdefs.h <<\_ACEOF
42933 #define wxUSE_LIBGNOMEPRINT 1
42934 _ACEOF
42935
42936
42937 fi
42938         fi
42939     fi
42940
42941     if test "$wxUSE_MIMETYPE" = "yes" ; then
42942         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42943
42944
42945 pkg_failed=no
42946 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42947 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42948
42949 if test -n "$PKG_CONFIG"; then
42950     if test -n "$GNOMEVFS_CFLAGS"; then
42951         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42952     else
42953         if test -n "$PKG_CONFIG" && \
42954     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42955   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42956   ac_status=$?
42957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42958   (exit $ac_status); }; then
42959   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42960 else
42961   pkg_failed=yes
42962 fi
42963     fi
42964 else
42965         pkg_failed=untried
42966 fi
42967 if test -n "$PKG_CONFIG"; then
42968     if test -n "$GNOMEVFS_LIBS"; then
42969         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42970     else
42971         if test -n "$PKG_CONFIG" && \
42972     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42973   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42974   ac_status=$?
42975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42976   (exit $ac_status); }; then
42977   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42978 else
42979   pkg_failed=yes
42980 fi
42981     fi
42982 else
42983         pkg_failed=untried
42984 fi
42985
42986
42987
42988 if test $pkg_failed = yes; then
42989
42990 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42991         _pkg_short_errors_supported=yes
42992 else
42993         _pkg_short_errors_supported=no
42994 fi
42995         if test $_pkg_short_errors_supported = yes; then
42996                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42997         else
42998                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42999         fi
43000         # Put the nasty error message in config.log where it belongs
43001         echo "$GNOMEVFS_PKG_ERRORS" >&5
43002
43003
43004                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43005 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43006                         wxUSE_LIBGNOMEVFS="no"
43007
43008
43009 elif test $pkg_failed = untried; then
43010
43011                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43012 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43013                         wxUSE_LIBGNOMEVFS="no"
43014
43015
43016 else
43017         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43018         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43019         { echo "$as_me:$LINENO: result: yes" >&5
43020 echo "${ECHO_T}yes" >&6; }
43021
43022                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43023                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43024                         cat >>confdefs.h <<\_ACEOF
43025 #define wxUSE_LIBGNOMEVFS 1
43026 _ACEOF
43027
43028
43029 fi
43030         fi
43031     fi
43032
43033     if test "$wxUSE_LIBHILDON" = "yes" ; then
43034
43035 pkg_failed=no
43036 { echo "$as_me:$LINENO: checking for HILDON" >&5
43037 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43038
43039 if test -n "$PKG_CONFIG"; then
43040     if test -n "$HILDON_CFLAGS"; then
43041         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43042     else
43043         if test -n "$PKG_CONFIG" && \
43044     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43045   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43046   ac_status=$?
43047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43048   (exit $ac_status); }; then
43049   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43050 else
43051   pkg_failed=yes
43052 fi
43053     fi
43054 else
43055         pkg_failed=untried
43056 fi
43057 if test -n "$PKG_CONFIG"; then
43058     if test -n "$HILDON_LIBS"; then
43059         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43060     else
43061         if test -n "$PKG_CONFIG" && \
43062     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43063   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43064   ac_status=$?
43065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43066   (exit $ac_status); }; then
43067   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43068 else
43069   pkg_failed=yes
43070 fi
43071     fi
43072 else
43073         pkg_failed=untried
43074 fi
43075
43076
43077
43078 if test $pkg_failed = yes; then
43079
43080 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43081         _pkg_short_errors_supported=yes
43082 else
43083         _pkg_short_errors_supported=no
43084 fi
43085         if test $_pkg_short_errors_supported = yes; then
43086                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43087         else
43088                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43089         fi
43090         # Put the nasty error message in config.log where it belongs
43091         echo "$HILDON_PKG_ERRORS" >&5
43092
43093
43094                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43095 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43096                         wxUSE_LIBHILDON="no"
43097
43098
43099 elif test $pkg_failed = untried; then
43100
43101                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43102 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43103                         wxUSE_LIBHILDON="no"
43104
43105
43106 else
43107         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43108         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43109         { echo "$as_me:$LINENO: result: yes" >&5
43110 echo "${ECHO_T}yes" >&6; }
43111
43112                 EXTRALIBS_HILDON="$HILDON_LIBS"
43113                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43114                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43115                 cat >>confdefs.h <<\_ACEOF
43116 #define wxUSE_LIBHILDON 1
43117 _ACEOF
43118
43119
43120 fi
43121     fi
43122 fi
43123
43124 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43125   cat >>confdefs.h <<\_ACEOF
43126 #define wxUSE_CMDLINE_PARSER 1
43127 _ACEOF
43128
43129 fi
43130
43131 if test "$wxUSE_STOPWATCH" = "yes"; then
43132   cat >>confdefs.h <<\_ACEOF
43133 #define wxUSE_STOPWATCH 1
43134 _ACEOF
43135
43136 fi
43137
43138 if test "$wxUSE_DATETIME" = "yes"; then
43139   cat >>confdefs.h <<\_ACEOF
43140 #define wxUSE_DATETIME 1
43141 _ACEOF
43142
43143 fi
43144
43145 if test "$wxUSE_FILE" = "yes"; then
43146   cat >>confdefs.h <<\_ACEOF
43147 #define wxUSE_FILE 1
43148 _ACEOF
43149
43150 fi
43151
43152 if test "$wxUSE_FFILE" = "yes"; then
43153   cat >>confdefs.h <<\_ACEOF
43154 #define wxUSE_FFILE 1
43155 _ACEOF
43156
43157 fi
43158
43159 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43160   if test "$wxUSE_STREAMS" != yes; then
43161     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43162 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43163     wxUSE_ARCHIVE_STREAMS=no
43164   else
43165     cat >>confdefs.h <<\_ACEOF
43166 #define wxUSE_ARCHIVE_STREAMS 1
43167 _ACEOF
43168
43169   fi
43170 fi
43171
43172 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43173   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43174     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43175 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43176   elif test "$wxUSE_ZLIB" = "no"; then
43177     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43178 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43179   else
43180     cat >>confdefs.h <<\_ACEOF
43181 #define wxUSE_ZIPSTREAM 1
43182 _ACEOF
43183
43184   fi
43185 fi
43186
43187 if test "$wxUSE_TARSTREAM" = "yes"; then
43188   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43189     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43190 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43191   else
43192     cat >>confdefs.h <<\_ACEOF
43193 #define wxUSE_TARSTREAM 1
43194 _ACEOF
43195
43196   fi
43197 fi
43198
43199 if test "$wxUSE_FILESYSTEM" = "yes"; then
43200   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43201     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43202 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43203     wxUSE_FILESYSTEM=no
43204   else
43205     cat >>confdefs.h <<\_ACEOF
43206 #define wxUSE_FILESYSTEM 1
43207 _ACEOF
43208
43209   fi
43210 fi
43211
43212 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43213   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43214     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43215 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43216   else
43217     cat >>confdefs.h <<\_ACEOF
43218 #define wxUSE_FS_ARCHIVE 1
43219 _ACEOF
43220
43221   fi
43222 fi
43223
43224 if test "$wxUSE_FS_ZIP" = "yes"; then
43225   if test "$wxUSE_FS_ARCHIVE" != yes; then
43226     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43227 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43228   else
43229     cat >>confdefs.h <<\_ACEOF
43230 #define wxUSE_FS_ZIP 1
43231 _ACEOF
43232
43233   fi
43234 fi
43235
43236 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43237   if test "$USE_UNIX" != 1; then
43238     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43239 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43240     wxUSE_ON_FATAL_EXCEPTION=no
43241   else
43242     cat >>confdefs.h <<\_ACEOF
43243 #define wxUSE_ON_FATAL_EXCEPTION 1
43244 _ACEOF
43245
43246   fi
43247 fi
43248
43249 if test "$wxUSE_STACKWALKER" = "yes"; then
43250     cat >>confdefs.h <<\_ACEOF
43251 #define wxUSE_STACKWALKER 1
43252 _ACEOF
43253
43254 fi
43255
43256 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43257     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43258         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43259 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43260         wxUSE_DEBUGREPORT=no
43261     else
43262         cat >>confdefs.h <<\_ACEOF
43263 #define wxUSE_DEBUGREPORT 1
43264 _ACEOF
43265
43266         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43267             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43268         fi
43269     fi
43270 fi
43271
43272 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43273   cat >>confdefs.h <<\_ACEOF
43274 #define wxUSE_SNGLINST_CHECKER 1
43275 _ACEOF
43276
43277 fi
43278
43279 if test "$wxUSE_BUSYINFO" = "yes"; then
43280   cat >>confdefs.h <<\_ACEOF
43281 #define wxUSE_BUSYINFO 1
43282 _ACEOF
43283
43284 fi
43285
43286 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43287   cat >>confdefs.h <<\_ACEOF
43288 #define wxUSE_STD_IOSTREAM 1
43289 _ACEOF
43290
43291 fi
43292
43293 if test "$wxUSE_STD_STRING" = "yes"; then
43294   cat >>confdefs.h <<\_ACEOF
43295 #define wxUSE_STD_STRING 1
43296 _ACEOF
43297
43298 fi
43299
43300 if test "$wxUSE_STDPATHS" = "yes"; then
43301   cat >>confdefs.h <<\_ACEOF
43302 #define wxUSE_STDPATHS 1
43303 _ACEOF
43304
43305 fi
43306
43307 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43308     cat >>confdefs.h <<\_ACEOF
43309 #define wxUSE_TEXTBUFFER 1
43310 _ACEOF
43311
43312 fi
43313
43314 if test "$wxUSE_TEXTFILE" = "yes"; then
43315   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43316     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43317 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43318   else
43319     cat >>confdefs.h <<\_ACEOF
43320 #define wxUSE_TEXTFILE 1
43321 _ACEOF
43322
43323   fi
43324 fi
43325
43326 if test "$wxUSE_CONFIG" = "yes" ; then
43327   if test "$wxUSE_TEXTFILE" != "yes"; then
43328     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43329 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43330   else
43331     cat >>confdefs.h <<\_ACEOF
43332 #define wxUSE_CONFIG 1
43333 _ACEOF
43334
43335     cat >>confdefs.h <<\_ACEOF
43336 #define wxUSE_CONFIG_NATIVE 1
43337 _ACEOF
43338
43339     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43340   fi
43341 fi
43342
43343 if test "$wxUSE_INTL" = "yes" ; then
43344   if test "$wxUSE_FILE" != "yes"; then
43345     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43346 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43347   else
43348     cat >>confdefs.h <<\_ACEOF
43349 #define wxUSE_INTL 1
43350 _ACEOF
43351
43352     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43353     GUIDIST="$GUIDIST INTL_DIST"
43354   fi
43355 fi
43356
43357 if test "$wxUSE_XLOCALE" = "yes" ; then
43358     cat >>confdefs.h <<\_ACEOF
43359 #define wxUSE_XLOCALE 1
43360 _ACEOF
43361
43362     { echo "$as_me:$LINENO: checking for locale_t" >&5
43363 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43364 if test "${ac_cv_type_locale_t+set}" = set; then
43365   echo $ECHO_N "(cached) $ECHO_C" >&6
43366 else
43367   cat >conftest.$ac_ext <<_ACEOF
43368 /* confdefs.h.  */
43369 _ACEOF
43370 cat confdefs.h >>conftest.$ac_ext
43371 cat >>conftest.$ac_ext <<_ACEOF
43372 /* end confdefs.h.  */
43373 #include <xlocale.h>
43374                     #include <locale.h>
43375
43376 typedef locale_t ac__type_new_;
43377 int
43378 main ()
43379 {
43380 if ((ac__type_new_ *) 0)
43381   return 0;
43382 if (sizeof (ac__type_new_))
43383   return 0;
43384   ;
43385   return 0;
43386 }
43387 _ACEOF
43388 rm -f conftest.$ac_objext
43389 if { (ac_try="$ac_compile"
43390 case "(($ac_try" in
43391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43392   *) ac_try_echo=$ac_try;;
43393 esac
43394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43395   (eval "$ac_compile") 2>conftest.er1
43396   ac_status=$?
43397   grep -v '^ *+' conftest.er1 >conftest.err
43398   rm -f conftest.er1
43399   cat conftest.err >&5
43400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401   (exit $ac_status); } && {
43402          test -z "$ac_c_werror_flag" ||
43403          test ! -s conftest.err
43404        } && test -s conftest.$ac_objext; then
43405   ac_cv_type_locale_t=yes
43406 else
43407   echo "$as_me: failed program was:" >&5
43408 sed 's/^/| /' conftest.$ac_ext >&5
43409
43410         ac_cv_type_locale_t=no
43411 fi
43412
43413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43414 fi
43415 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43416 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43417 if test $ac_cv_type_locale_t = yes; then
43418
43419 cat >>confdefs.h <<_ACEOF
43420 #define HAVE_LOCALE_T 1
43421 _ACEOF
43422
43423
43424 fi
43425
43426 fi
43427
43428 if test "$wxUSE_LOG" = "yes"; then
43429   cat >>confdefs.h <<\_ACEOF
43430 #define wxUSE_LOG 1
43431 _ACEOF
43432
43433
43434     if test "$wxUSE_LOGGUI" = "yes"; then
43435       cat >>confdefs.h <<\_ACEOF
43436 #define wxUSE_LOGGUI 1
43437 _ACEOF
43438
43439     fi
43440
43441     if test "$wxUSE_LOGWINDOW" = "yes"; then
43442       cat >>confdefs.h <<\_ACEOF
43443 #define wxUSE_LOGWINDOW 1
43444 _ACEOF
43445
43446     fi
43447
43448     if test "$wxUSE_LOGDIALOG" = "yes"; then
43449       cat >>confdefs.h <<\_ACEOF
43450 #define wxUSE_LOG_DIALOG 1
43451 _ACEOF
43452
43453     fi
43454
43455         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43456 fi
43457
43458 if test "$wxUSE_LONGLONG" = "yes"; then
43459   cat >>confdefs.h <<\_ACEOF
43460 #define wxUSE_LONGLONG 1
43461 _ACEOF
43462
43463 fi
43464
43465 if test "$wxUSE_GEOMETRY" = "yes"; then
43466   cat >>confdefs.h <<\_ACEOF
43467 #define wxUSE_GEOMETRY 1
43468 _ACEOF
43469
43470 fi
43471
43472 if test "$wxUSE_BASE64" = "yes"; then
43473   cat >>confdefs.h <<\_ACEOF
43474 #define wxUSE_BASE64 1
43475 _ACEOF
43476
43477 fi
43478
43479 if test "$wxUSE_STREAMS" = "yes" ; then
43480   cat >>confdefs.h <<\_ACEOF
43481 #define wxUSE_STREAMS 1
43482 _ACEOF
43483
43484 fi
43485
43486 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43487   cat >>confdefs.h <<\_ACEOF
43488 #define wxUSE_PRINTF_POS_PARAMS 1
43489 _ACEOF
43490
43491 fi
43492
43493 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43494   cat >>confdefs.h <<\_ACEOF
43495 #define wxUSE_OBJC_UNIQUIFYING 1
43496 _ACEOF
43497
43498 fi
43499
43500
43501 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43502     cat >>confdefs.h <<\_ACEOF
43503 #define wxUSE_CONSOLE_EVENTLOOP 1
43504 _ACEOF
43505
43506
43507     if test "$wxUSE_UNIX" = "yes"; then
43508         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43509             cat >>confdefs.h <<\_ACEOF
43510 #define wxUSE_SELECT_DISPATCHER 1
43511 _ACEOF
43512
43513         fi
43514
43515         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43516
43517 for ac_header in sys/epoll.h
43518 do
43519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43523   echo $ECHO_N "(cached) $ECHO_C" >&6
43524 else
43525   cat >conftest.$ac_ext <<_ACEOF
43526 /* confdefs.h.  */
43527 _ACEOF
43528 cat confdefs.h >>conftest.$ac_ext
43529 cat >>conftest.$ac_ext <<_ACEOF
43530 /* end confdefs.h.  */
43531 $ac_includes_default
43532
43533 #include <$ac_header>
43534 _ACEOF
43535 rm -f conftest.$ac_objext
43536 if { (ac_try="$ac_compile"
43537 case "(($ac_try" in
43538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43539   *) ac_try_echo=$ac_try;;
43540 esac
43541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43542   (eval "$ac_compile") 2>conftest.er1
43543   ac_status=$?
43544   grep -v '^ *+' conftest.er1 >conftest.err
43545   rm -f conftest.er1
43546   cat conftest.err >&5
43547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43548   (exit $ac_status); } && {
43549          test -z "$ac_c_werror_flag" ||
43550          test ! -s conftest.err
43551        } && test -s conftest.$ac_objext; then
43552   eval "$as_ac_Header=yes"
43553 else
43554   echo "$as_me: failed program was:" >&5
43555 sed 's/^/| /' conftest.$ac_ext >&5
43556
43557         eval "$as_ac_Header=no"
43558 fi
43559
43560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43561 fi
43562 ac_res=`eval echo '${'$as_ac_Header'}'`
43563                { echo "$as_me:$LINENO: result: $ac_res" >&5
43564 echo "${ECHO_T}$ac_res" >&6; }
43565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43566   cat >>confdefs.h <<_ACEOF
43567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43568 _ACEOF
43569
43570 fi
43571
43572 done
43573
43574             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43575                 cat >>confdefs.h <<\_ACEOF
43576 #define wxUSE_EPOLL_DISPATCHER 1
43577 _ACEOF
43578
43579             else
43580                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43581 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43582             fi
43583         fi
43584     fi
43585 fi
43586
43587
43588
43589
43590 for ac_func in gettimeofday ftime
43591 do
43592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43596   echo $ECHO_N "(cached) $ECHO_C" >&6
43597 else
43598   cat >conftest.$ac_ext <<_ACEOF
43599 /* confdefs.h.  */
43600 _ACEOF
43601 cat confdefs.h >>conftest.$ac_ext
43602 cat >>conftest.$ac_ext <<_ACEOF
43603 /* end confdefs.h.  */
43604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43606 #define $ac_func innocuous_$ac_func
43607
43608 /* System header to define __stub macros and hopefully few prototypes,
43609     which can conflict with char $ac_func (); below.
43610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43611     <limits.h> exists even on freestanding compilers.  */
43612
43613 #ifdef __STDC__
43614 # include <limits.h>
43615 #else
43616 # include <assert.h>
43617 #endif
43618
43619 #undef $ac_func
43620
43621 /* Override any GCC internal prototype to avoid an error.
43622    Use char because int might match the return type of a GCC
43623    builtin and then its argument prototype would still apply.  */
43624 #ifdef __cplusplus
43625 extern "C"
43626 #endif
43627 char $ac_func ();
43628 /* The GNU C library defines this for functions which it implements
43629     to always fail with ENOSYS.  Some functions are actually named
43630     something starting with __ and the normal name is an alias.  */
43631 #if defined __stub_$ac_func || defined __stub___$ac_func
43632 choke me
43633 #endif
43634
43635 int
43636 main ()
43637 {
43638 return $ac_func ();
43639   ;
43640   return 0;
43641 }
43642 _ACEOF
43643 rm -f conftest.$ac_objext conftest$ac_exeext
43644 if { (ac_try="$ac_link"
43645 case "(($ac_try" in
43646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43647   *) ac_try_echo=$ac_try;;
43648 esac
43649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43650   (eval "$ac_link") 2>conftest.er1
43651   ac_status=$?
43652   grep -v '^ *+' conftest.er1 >conftest.err
43653   rm -f conftest.er1
43654   cat conftest.err >&5
43655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43656   (exit $ac_status); } && {
43657          test -z "$ac_c_werror_flag" ||
43658          test ! -s conftest.err
43659        } && test -s conftest$ac_exeext &&
43660        $as_test_x conftest$ac_exeext; then
43661   eval "$as_ac_var=yes"
43662 else
43663   echo "$as_me: failed program was:" >&5
43664 sed 's/^/| /' conftest.$ac_ext >&5
43665
43666         eval "$as_ac_var=no"
43667 fi
43668
43669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43670       conftest$ac_exeext conftest.$ac_ext
43671 fi
43672 ac_res=`eval echo '${'$as_ac_var'}'`
43673                { echo "$as_me:$LINENO: result: $ac_res" >&5
43674 echo "${ECHO_T}$ac_res" >&6; }
43675 if test `eval echo '${'$as_ac_var'}'` = yes; then
43676   cat >>confdefs.h <<_ACEOF
43677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43678 _ACEOF
43679  break
43680 fi
43681 done
43682
43683
43684 if test "$ac_cv_func_gettimeofday" = "yes"; then
43685     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43686 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43687 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43688   echo $ECHO_N "(cached) $ECHO_C" >&6
43689 else
43690
43691                 cat >conftest.$ac_ext <<_ACEOF
43692 /* confdefs.h.  */
43693 _ACEOF
43694 cat confdefs.h >>conftest.$ac_ext
43695 cat >>conftest.$ac_ext <<_ACEOF
43696 /* end confdefs.h.  */
43697
43698                 #include <sys/time.h>
43699                 #include <unistd.h>
43700
43701 int
43702 main ()
43703 {
43704
43705                 struct timeval tv;
43706                 gettimeofday(&tv, NULL);
43707
43708   ;
43709   return 0;
43710 }
43711 _ACEOF
43712 rm -f conftest.$ac_objext
43713 if { (ac_try="$ac_compile"
43714 case "(($ac_try" in
43715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43716   *) ac_try_echo=$ac_try;;
43717 esac
43718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43719   (eval "$ac_compile") 2>conftest.er1
43720   ac_status=$?
43721   grep -v '^ *+' conftest.er1 >conftest.err
43722   rm -f conftest.er1
43723   cat conftest.err >&5
43724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725   (exit $ac_status); } && {
43726          test -z "$ac_c_werror_flag" ||
43727          test ! -s conftest.err
43728        } && test -s conftest.$ac_objext; then
43729   wx_cv_func_gettimeofday_has_2_args=yes
43730 else
43731   echo "$as_me: failed program was:" >&5
43732 sed 's/^/| /' conftest.$ac_ext >&5
43733
43734         cat >conftest.$ac_ext <<_ACEOF
43735 /* confdefs.h.  */
43736 _ACEOF
43737 cat confdefs.h >>conftest.$ac_ext
43738 cat >>conftest.$ac_ext <<_ACEOF
43739 /* end confdefs.h.  */
43740
43741                     #include <sys/time.h>
43742                     #include <unistd.h>
43743
43744 int
43745 main ()
43746 {
43747
43748                     struct timeval tv;
43749                     gettimeofday(&tv);
43750
43751   ;
43752   return 0;
43753 }
43754 _ACEOF
43755 rm -f conftest.$ac_objext
43756 if { (ac_try="$ac_compile"
43757 case "(($ac_try" in
43758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43759   *) ac_try_echo=$ac_try;;
43760 esac
43761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43762   (eval "$ac_compile") 2>conftest.er1
43763   ac_status=$?
43764   grep -v '^ *+' conftest.er1 >conftest.err
43765   rm -f conftest.er1
43766   cat conftest.err >&5
43767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43768   (exit $ac_status); } && {
43769          test -z "$ac_c_werror_flag" ||
43770          test ! -s conftest.err
43771        } && test -s conftest.$ac_objext; then
43772   wx_cv_func_gettimeofday_has_2_args=no
43773 else
43774   echo "$as_me: failed program was:" >&5
43775 sed 's/^/| /' conftest.$ac_ext >&5
43776
43777
43778                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43779 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43780                     wx_cv_func_gettimeofday_has_2_args=unknown
43781
43782
43783 fi
43784
43785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43786
43787 fi
43788
43789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43790
43791 fi
43792 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43793 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43794
43795     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43796         cat >>confdefs.h <<\_ACEOF
43797 #define WX_GETTIMEOFDAY_NO_TZ 1
43798 _ACEOF
43799
43800     fi
43801 fi
43802
43803 if test "$wxUSE_DATETIME" = "yes"; then
43804             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43805 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43806 if test "${wx_cv_var_timezone+set}" = set; then
43807   echo $ECHO_N "(cached) $ECHO_C" >&6
43808 else
43809
43810                         ac_ext=cpp
43811 ac_cpp='$CXXCPP $CPPFLAGS'
43812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43815
43816                         cat >conftest.$ac_ext <<_ACEOF
43817 /* confdefs.h.  */
43818 _ACEOF
43819 cat confdefs.h >>conftest.$ac_ext
43820 cat >>conftest.$ac_ext <<_ACEOF
43821 /* end confdefs.h.  */
43822
43823                                 #include <time.h>
43824
43825 int
43826 main ()
43827 {
43828
43829                                 int tz;
43830                                 tz = timezone;
43831
43832   ;
43833   return 0;
43834 }
43835 _ACEOF
43836 rm -f conftest.$ac_objext
43837 if { (ac_try="$ac_compile"
43838 case "(($ac_try" in
43839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43840   *) ac_try_echo=$ac_try;;
43841 esac
43842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43843   (eval "$ac_compile") 2>conftest.er1
43844   ac_status=$?
43845   grep -v '^ *+' conftest.er1 >conftest.err
43846   rm -f conftest.er1
43847   cat conftest.err >&5
43848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43849   (exit $ac_status); } && {
43850          test -z "$ac_cxx_werror_flag" ||
43851          test ! -s conftest.err
43852        } && test -s conftest.$ac_objext; then
43853
43854                                 wx_cv_var_timezone=timezone
43855
43856 else
43857   echo "$as_me: failed program was:" >&5
43858 sed 's/^/| /' conftest.$ac_ext >&5
43859
43860
43861                                 cat >conftest.$ac_ext <<_ACEOF
43862 /* confdefs.h.  */
43863 _ACEOF
43864 cat confdefs.h >>conftest.$ac_ext
43865 cat >>conftest.$ac_ext <<_ACEOF
43866 /* end confdefs.h.  */
43867
43868                                         #include <time.h>
43869
43870 int
43871 main ()
43872 {
43873
43874                                         int tz;
43875                                         tz = _timezone;
43876
43877   ;
43878   return 0;
43879 }
43880 _ACEOF
43881 rm -f conftest.$ac_objext
43882 if { (ac_try="$ac_compile"
43883 case "(($ac_try" in
43884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43885   *) ac_try_echo=$ac_try;;
43886 esac
43887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43888   (eval "$ac_compile") 2>conftest.er1
43889   ac_status=$?
43890   grep -v '^ *+' conftest.er1 >conftest.err
43891   rm -f conftest.er1
43892   cat conftest.err >&5
43893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43894   (exit $ac_status); } && {
43895          test -z "$ac_cxx_werror_flag" ||
43896          test ! -s conftest.err
43897        } && test -s conftest.$ac_objext; then
43898
43899                                         wx_cv_var_timezone=_timezone
43900
43901 else
43902   echo "$as_me: failed program was:" >&5
43903 sed 's/^/| /' conftest.$ac_ext >&5
43904
43905
43906                                         cat >conftest.$ac_ext <<_ACEOF
43907 /* confdefs.h.  */
43908 _ACEOF
43909 cat confdefs.h >>conftest.$ac_ext
43910 cat >>conftest.$ac_ext <<_ACEOF
43911 /* end confdefs.h.  */
43912
43913                                                 #include <time.h>
43914
43915 int
43916 main ()
43917 {
43918
43919                                                 int tz;
43920                                                 tz = __timezone;
43921
43922   ;
43923   return 0;
43924 }
43925 _ACEOF
43926 rm -f conftest.$ac_objext
43927 if { (ac_try="$ac_compile"
43928 case "(($ac_try" in
43929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43930   *) ac_try_echo=$ac_try;;
43931 esac
43932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43933   (eval "$ac_compile") 2>conftest.er1
43934   ac_status=$?
43935   grep -v '^ *+' conftest.er1 >conftest.err
43936   rm -f conftest.er1
43937   cat conftest.err >&5
43938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939   (exit $ac_status); } && {
43940          test -z "$ac_cxx_werror_flag" ||
43941          test ! -s conftest.err
43942        } && test -s conftest.$ac_objext; then
43943
43944                                                 wx_cv_var_timezone=__timezone
43945
43946 else
43947   echo "$as_me: failed program was:" >&5
43948 sed 's/^/| /' conftest.$ac_ext >&5
43949
43950
43951                                                 if test "$USE_DOS" = 0 ; then
43952                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43953 echo "$as_me: WARNING: no timezone variable" >&2;}
43954                                                 fi
43955
43956
43957 fi
43958
43959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43960
43961
43962 fi
43963
43964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43965
43966
43967 fi
43968
43969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43970                         ac_ext=c
43971 ac_cpp='$CPP $CPPFLAGS'
43972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43975
43976
43977
43978 fi
43979 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43980 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
43981
43982         if test "x$wx_cv_var_timezone" != x ; then
43983         cat >>confdefs.h <<_ACEOF
43984 #define WX_TIMEZONE $wx_cv_var_timezone
43985 _ACEOF
43986
43987     fi
43988
43989
43990 for ac_func in localtime
43991 do
43992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43996   echo $ECHO_N "(cached) $ECHO_C" >&6
43997 else
43998   cat >conftest.$ac_ext <<_ACEOF
43999 /* confdefs.h.  */
44000 _ACEOF
44001 cat confdefs.h >>conftest.$ac_ext
44002 cat >>conftest.$ac_ext <<_ACEOF
44003 /* end confdefs.h.  */
44004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44006 #define $ac_func innocuous_$ac_func
44007
44008 /* System header to define __stub macros and hopefully few prototypes,
44009     which can conflict with char $ac_func (); below.
44010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44011     <limits.h> exists even on freestanding compilers.  */
44012
44013 #ifdef __STDC__
44014 # include <limits.h>
44015 #else
44016 # include <assert.h>
44017 #endif
44018
44019 #undef $ac_func
44020
44021 /* Override any GCC internal prototype to avoid an error.
44022    Use char because int might match the return type of a GCC
44023    builtin and then its argument prototype would still apply.  */
44024 #ifdef __cplusplus
44025 extern "C"
44026 #endif
44027 char $ac_func ();
44028 /* The GNU C library defines this for functions which it implements
44029     to always fail with ENOSYS.  Some functions are actually named
44030     something starting with __ and the normal name is an alias.  */
44031 #if defined __stub_$ac_func || defined __stub___$ac_func
44032 choke me
44033 #endif
44034
44035 int
44036 main ()
44037 {
44038 return $ac_func ();
44039   ;
44040   return 0;
44041 }
44042 _ACEOF
44043 rm -f conftest.$ac_objext conftest$ac_exeext
44044 if { (ac_try="$ac_link"
44045 case "(($ac_try" in
44046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44047   *) ac_try_echo=$ac_try;;
44048 esac
44049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44050   (eval "$ac_link") 2>conftest.er1
44051   ac_status=$?
44052   grep -v '^ *+' conftest.er1 >conftest.err
44053   rm -f conftest.er1
44054   cat conftest.err >&5
44055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44056   (exit $ac_status); } && {
44057          test -z "$ac_c_werror_flag" ||
44058          test ! -s conftest.err
44059        } && test -s conftest$ac_exeext &&
44060        $as_test_x conftest$ac_exeext; then
44061   eval "$as_ac_var=yes"
44062 else
44063   echo "$as_me: failed program was:" >&5
44064 sed 's/^/| /' conftest.$ac_ext >&5
44065
44066         eval "$as_ac_var=no"
44067 fi
44068
44069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44070       conftest$ac_exeext conftest.$ac_ext
44071 fi
44072 ac_res=`eval echo '${'$as_ac_var'}'`
44073                { echo "$as_me:$LINENO: result: $ac_res" >&5
44074 echo "${ECHO_T}$ac_res" >&6; }
44075 if test `eval echo '${'$as_ac_var'}'` = yes; then
44076   cat >>confdefs.h <<_ACEOF
44077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44078 _ACEOF
44079
44080 fi
44081 done
44082
44083
44084     if test "$ac_cv_func_localtime" = "yes"; then
44085         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44086 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44087 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44088   echo $ECHO_N "(cached) $ECHO_C" >&6
44089 else
44090
44091             cat >conftest.$ac_ext <<_ACEOF
44092 /* confdefs.h.  */
44093 _ACEOF
44094 cat confdefs.h >>conftest.$ac_ext
44095 cat >>conftest.$ac_ext <<_ACEOF
44096 /* end confdefs.h.  */
44097
44098                     #include <time.h>
44099
44100 int
44101 main ()
44102 {
44103
44104                     struct tm tm;
44105                     tm.tm_gmtoff++;
44106
44107   ;
44108   return 0;
44109 }
44110 _ACEOF
44111 rm -f conftest.$ac_objext
44112 if { (ac_try="$ac_compile"
44113 case "(($ac_try" in
44114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44115   *) ac_try_echo=$ac_try;;
44116 esac
44117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44118   (eval "$ac_compile") 2>conftest.er1
44119   ac_status=$?
44120   grep -v '^ *+' conftest.er1 >conftest.err
44121   rm -f conftest.er1
44122   cat conftest.err >&5
44123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44124   (exit $ac_status); } && {
44125          test -z "$ac_c_werror_flag" ||
44126          test ! -s conftest.err
44127        } && test -s conftest.$ac_objext; then
44128
44129                     wx_cv_struct_tm_has_gmtoff=yes
44130
44131 else
44132   echo "$as_me: failed program was:" >&5
44133 sed 's/^/| /' conftest.$ac_ext >&5
44134
44135         wx_cv_struct_tm_has_gmtoff=no
44136
44137 fi
44138
44139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44140
44141 fi
44142 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44143 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44144     fi
44145
44146     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44147         cat >>confdefs.h <<\_ACEOF
44148 #define WX_GMTOFF_IN_TM 1
44149 _ACEOF
44150
44151     fi
44152
44153     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44154 fi
44155
44156
44157 if test "$wxUSE_SOCKETS" = "yes"; then
44158     if test "$wxUSE_MGL" = 1; then
44159         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44160 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44161         wxUSE_SOCKETS="no"
44162     fi
44163 fi
44164
44165 if test "$wxUSE_SOCKETS" = "yes"; then
44166         if test "$TOOLKIT" != "MSW"; then
44167                 { echo "$as_me:$LINENO: checking for socket" >&5
44168 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44169 if test "${ac_cv_func_socket+set}" = set; then
44170   echo $ECHO_N "(cached) $ECHO_C" >&6
44171 else
44172   cat >conftest.$ac_ext <<_ACEOF
44173 /* confdefs.h.  */
44174 _ACEOF
44175 cat confdefs.h >>conftest.$ac_ext
44176 cat >>conftest.$ac_ext <<_ACEOF
44177 /* end confdefs.h.  */
44178 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44180 #define socket innocuous_socket
44181
44182 /* System header to define __stub macros and hopefully few prototypes,
44183     which can conflict with char socket (); below.
44184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44185     <limits.h> exists even on freestanding compilers.  */
44186
44187 #ifdef __STDC__
44188 # include <limits.h>
44189 #else
44190 # include <assert.h>
44191 #endif
44192
44193 #undef socket
44194
44195 /* Override any GCC internal prototype to avoid an error.
44196    Use char because int might match the return type of a GCC
44197    builtin and then its argument prototype would still apply.  */
44198 #ifdef __cplusplus
44199 extern "C"
44200 #endif
44201 char socket ();
44202 /* The GNU C library defines this for functions which it implements
44203     to always fail with ENOSYS.  Some functions are actually named
44204     something starting with __ and the normal name is an alias.  */
44205 #if defined __stub_socket || defined __stub___socket
44206 choke me
44207 #endif
44208
44209 int
44210 main ()
44211 {
44212 return socket ();
44213   ;
44214   return 0;
44215 }
44216 _ACEOF
44217 rm -f conftest.$ac_objext conftest$ac_exeext
44218 if { (ac_try="$ac_link"
44219 case "(($ac_try" in
44220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44221   *) ac_try_echo=$ac_try;;
44222 esac
44223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44224   (eval "$ac_link") 2>conftest.er1
44225   ac_status=$?
44226   grep -v '^ *+' conftest.er1 >conftest.err
44227   rm -f conftest.er1
44228   cat conftest.err >&5
44229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44230   (exit $ac_status); } && {
44231          test -z "$ac_c_werror_flag" ||
44232          test ! -s conftest.err
44233        } && test -s conftest$ac_exeext &&
44234        $as_test_x conftest$ac_exeext; then
44235   ac_cv_func_socket=yes
44236 else
44237   echo "$as_me: failed program was:" >&5
44238 sed 's/^/| /' conftest.$ac_ext >&5
44239
44240         ac_cv_func_socket=no
44241 fi
44242
44243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44244       conftest$ac_exeext conftest.$ac_ext
44245 fi
44246 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44247 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44248 if test $ac_cv_func_socket = yes; then
44249   :
44250 else
44251
44252                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44253 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44254 if test "${ac_cv_lib_socket_socket+set}" = set; then
44255   echo $ECHO_N "(cached) $ECHO_C" >&6
44256 else
44257   ac_check_lib_save_LIBS=$LIBS
44258 LIBS="-lsocket  $LIBS"
44259 cat >conftest.$ac_ext <<_ACEOF
44260 /* confdefs.h.  */
44261 _ACEOF
44262 cat confdefs.h >>conftest.$ac_ext
44263 cat >>conftest.$ac_ext <<_ACEOF
44264 /* end confdefs.h.  */
44265
44266 /* Override any GCC internal prototype to avoid an error.
44267    Use char because int might match the return type of a GCC
44268    builtin and then its argument prototype would still apply.  */
44269 #ifdef __cplusplus
44270 extern "C"
44271 #endif
44272 char socket ();
44273 int
44274 main ()
44275 {
44276 return socket ();
44277   ;
44278   return 0;
44279 }
44280 _ACEOF
44281 rm -f conftest.$ac_objext conftest$ac_exeext
44282 if { (ac_try="$ac_link"
44283 case "(($ac_try" in
44284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44285   *) ac_try_echo=$ac_try;;
44286 esac
44287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44288   (eval "$ac_link") 2>conftest.er1
44289   ac_status=$?
44290   grep -v '^ *+' conftest.er1 >conftest.err
44291   rm -f conftest.er1
44292   cat conftest.err >&5
44293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44294   (exit $ac_status); } && {
44295          test -z "$ac_c_werror_flag" ||
44296          test ! -s conftest.err
44297        } && test -s conftest$ac_exeext &&
44298        $as_test_x conftest$ac_exeext; then
44299   ac_cv_lib_socket_socket=yes
44300 else
44301   echo "$as_me: failed program was:" >&5
44302 sed 's/^/| /' conftest.$ac_ext >&5
44303
44304         ac_cv_lib_socket_socket=no
44305 fi
44306
44307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44308       conftest$ac_exeext conftest.$ac_ext
44309 LIBS=$ac_check_lib_save_LIBS
44310 fi
44311 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44312 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44313 if test $ac_cv_lib_socket_socket = yes; then
44314   if test "$INET_LINK" != " -lsocket"; then
44315                         INET_LINK="$INET_LINK -lsocket"
44316                     fi
44317 else
44318
44319                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44320 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44321                         wxUSE_SOCKETS=no
44322
44323
44324 fi
44325
44326
44327
44328 fi
44329
44330     fi
44331 fi
44332
44333 if test "$wxUSE_SOCKETS" = "yes" ; then
44334                 if test "$TOOLKIT" != "MSW"; then
44335                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44336 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44337 if test "${wx_cv_type_getsockname3+set}" = set; then
44338   echo $ECHO_N "(cached) $ECHO_C" >&6
44339 else
44340
44341                 ac_ext=cpp
44342 ac_cpp='$CXXCPP $CPPFLAGS'
44343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44346
44347                 cat >conftest.$ac_ext <<_ACEOF
44348 /* confdefs.h.  */
44349 _ACEOF
44350 cat confdefs.h >>conftest.$ac_ext
44351 cat >>conftest.$ac_ext <<_ACEOF
44352 /* end confdefs.h.  */
44353
44354                         #include <sys/types.h>
44355                         #include <sys/socket.h>
44356
44357 int
44358 main ()
44359 {
44360
44361                         socklen_t len;
44362                         getsockname(0, 0, &len);
44363
44364   ;
44365   return 0;
44366 }
44367 _ACEOF
44368 rm -f conftest.$ac_objext
44369 if { (ac_try="$ac_compile"
44370 case "(($ac_try" in
44371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44372   *) ac_try_echo=$ac_try;;
44373 esac
44374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44375   (eval "$ac_compile") 2>conftest.er1
44376   ac_status=$?
44377   grep -v '^ *+' conftest.er1 >conftest.err
44378   rm -f conftest.er1
44379   cat conftest.err >&5
44380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44381   (exit $ac_status); } && {
44382          test -z "$ac_cxx_werror_flag" ||
44383          test ! -s conftest.err
44384        } && test -s conftest.$ac_objext; then
44385   wx_cv_type_getsockname3=socklen_t
44386 else
44387   echo "$as_me: failed program was:" >&5
44388 sed 's/^/| /' conftest.$ac_ext >&5
44389
44390
44391                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44392                         if test "$GCC" = yes ; then
44393                             CFLAGS="-Werror $CFLAGS"
44394                         fi
44395
44396                         cat >conftest.$ac_ext <<_ACEOF
44397 /* confdefs.h.  */
44398 _ACEOF
44399 cat confdefs.h >>conftest.$ac_ext
44400 cat >>conftest.$ac_ext <<_ACEOF
44401 /* end confdefs.h.  */
44402
44403                                 #include <sys/types.h>
44404                                 #include <sys/socket.h>
44405
44406 int
44407 main ()
44408 {
44409
44410                                 size_t len;
44411                                 getsockname(0, 0, &len);
44412
44413   ;
44414   return 0;
44415 }
44416 _ACEOF
44417 rm -f conftest.$ac_objext
44418 if { (ac_try="$ac_compile"
44419 case "(($ac_try" in
44420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44421   *) ac_try_echo=$ac_try;;
44422 esac
44423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44424   (eval "$ac_compile") 2>conftest.er1
44425   ac_status=$?
44426   grep -v '^ *+' conftest.er1 >conftest.err
44427   rm -f conftest.er1
44428   cat conftest.err >&5
44429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430   (exit $ac_status); } && {
44431          test -z "$ac_cxx_werror_flag" ||
44432          test ! -s conftest.err
44433        } && test -s conftest.$ac_objext; then
44434   wx_cv_type_getsockname3=size_t
44435 else
44436   echo "$as_me: failed program was:" >&5
44437 sed 's/^/| /' conftest.$ac_ext >&5
44438
44439         cat >conftest.$ac_ext <<_ACEOF
44440 /* confdefs.h.  */
44441 _ACEOF
44442 cat confdefs.h >>conftest.$ac_ext
44443 cat >>conftest.$ac_ext <<_ACEOF
44444 /* end confdefs.h.  */
44445
44446                                     #include <sys/types.h>
44447                                     #include <sys/socket.h>
44448
44449 int
44450 main ()
44451 {
44452
44453                                     int len;
44454                                     getsockname(0, 0, &len);
44455
44456   ;
44457   return 0;
44458 }
44459 _ACEOF
44460 rm -f conftest.$ac_objext
44461 if { (ac_try="$ac_compile"
44462 case "(($ac_try" in
44463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44464   *) ac_try_echo=$ac_try;;
44465 esac
44466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44467   (eval "$ac_compile") 2>conftest.er1
44468   ac_status=$?
44469   grep -v '^ *+' conftest.er1 >conftest.err
44470   rm -f conftest.er1
44471   cat conftest.err >&5
44472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44473   (exit $ac_status); } && {
44474          test -z "$ac_cxx_werror_flag" ||
44475          test ! -s conftest.err
44476        } && test -s conftest.$ac_objext; then
44477   wx_cv_type_getsockname3=int
44478 else
44479   echo "$as_me: failed program was:" >&5
44480 sed 's/^/| /' conftest.$ac_ext >&5
44481
44482         wx_cv_type_getsockname3=unknown
44483
44484 fi
44485
44486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44487
44488 fi
44489
44490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44491
44492                         CFLAGS="$CFLAGS_OLD"
44493
44494
44495 fi
44496
44497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44498                 ac_ext=c
44499 ac_cpp='$CPP $CPPFLAGS'
44500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44503
44504
44505 fi
44506 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44507 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44508
44509         if test "$wx_cv_type_getsockname3" = "unknown"; then
44510             wxUSE_SOCKETS=no
44511             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44512 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44513         else
44514             cat >>confdefs.h <<_ACEOF
44515 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44516 _ACEOF
44517
44518         fi
44519                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44520 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44521 if test "${wx_cv_type_getsockopt5+set}" = set; then
44522   echo $ECHO_N "(cached) $ECHO_C" >&6
44523 else
44524
44525                                                                                                 ac_ext=cpp
44526 ac_cpp='$CXXCPP $CPPFLAGS'
44527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44530
44531                 cat >conftest.$ac_ext <<_ACEOF
44532 /* confdefs.h.  */
44533 _ACEOF
44534 cat confdefs.h >>conftest.$ac_ext
44535 cat >>conftest.$ac_ext <<_ACEOF
44536 /* end confdefs.h.  */
44537
44538                         #include <sys/types.h>
44539                         #include <sys/socket.h>
44540
44541 int
44542 main ()
44543 {
44544
44545                         socklen_t len;
44546                         getsockopt(0, 0, 0, 0, &len);
44547
44548   ;
44549   return 0;
44550 }
44551 _ACEOF
44552 rm -f conftest.$ac_objext
44553 if { (ac_try="$ac_compile"
44554 case "(($ac_try" in
44555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44556   *) ac_try_echo=$ac_try;;
44557 esac
44558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44559   (eval "$ac_compile") 2>conftest.er1
44560   ac_status=$?
44561   grep -v '^ *+' conftest.er1 >conftest.err
44562   rm -f conftest.er1
44563   cat conftest.err >&5
44564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44565   (exit $ac_status); } && {
44566          test -z "$ac_cxx_werror_flag" ||
44567          test ! -s conftest.err
44568        } && test -s conftest.$ac_objext; then
44569   wx_cv_type_getsockopt5=socklen_t
44570 else
44571   echo "$as_me: failed program was:" >&5
44572 sed 's/^/| /' conftest.$ac_ext >&5
44573
44574
44575                         cat >conftest.$ac_ext <<_ACEOF
44576 /* confdefs.h.  */
44577 _ACEOF
44578 cat confdefs.h >>conftest.$ac_ext
44579 cat >>conftest.$ac_ext <<_ACEOF
44580 /* end confdefs.h.  */
44581
44582                                 #include <sys/types.h>
44583                                 #include <sys/socket.h>
44584
44585 int
44586 main ()
44587 {
44588
44589                                 size_t len;
44590                                 getsockopt(0, 0, 0, 0, &len);
44591
44592   ;
44593   return 0;
44594 }
44595 _ACEOF
44596 rm -f conftest.$ac_objext
44597 if { (ac_try="$ac_compile"
44598 case "(($ac_try" in
44599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44600   *) ac_try_echo=$ac_try;;
44601 esac
44602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44603   (eval "$ac_compile") 2>conftest.er1
44604   ac_status=$?
44605   grep -v '^ *+' conftest.er1 >conftest.err
44606   rm -f conftest.er1
44607   cat conftest.err >&5
44608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44609   (exit $ac_status); } && {
44610          test -z "$ac_cxx_werror_flag" ||
44611          test ! -s conftest.err
44612        } && test -s conftest.$ac_objext; then
44613   wx_cv_type_getsockopt5=size_t
44614 else
44615   echo "$as_me: failed program was:" >&5
44616 sed 's/^/| /' conftest.$ac_ext >&5
44617
44618         cat >conftest.$ac_ext <<_ACEOF
44619 /* confdefs.h.  */
44620 _ACEOF
44621 cat confdefs.h >>conftest.$ac_ext
44622 cat >>conftest.$ac_ext <<_ACEOF
44623 /* end confdefs.h.  */
44624
44625                                     #include <sys/types.h>
44626                                     #include <sys/socket.h>
44627
44628 int
44629 main ()
44630 {
44631
44632                                     int len;
44633                                     getsockopt(0, 0, 0, 0, &len);
44634
44635   ;
44636   return 0;
44637 }
44638 _ACEOF
44639 rm -f conftest.$ac_objext
44640 if { (ac_try="$ac_compile"
44641 case "(($ac_try" in
44642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44643   *) ac_try_echo=$ac_try;;
44644 esac
44645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44646   (eval "$ac_compile") 2>conftest.er1
44647   ac_status=$?
44648   grep -v '^ *+' conftest.er1 >conftest.err
44649   rm -f conftest.er1
44650   cat conftest.err >&5
44651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44652   (exit $ac_status); } && {
44653          test -z "$ac_cxx_werror_flag" ||
44654          test ! -s conftest.err
44655        } && test -s conftest.$ac_objext; then
44656   wx_cv_type_getsockopt5=int
44657 else
44658   echo "$as_me: failed program was:" >&5
44659 sed 's/^/| /' conftest.$ac_ext >&5
44660
44661         wx_cv_type_getsockopt5=unknown
44662
44663 fi
44664
44665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44666
44667 fi
44668
44669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44670
44671
44672 fi
44673
44674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44675                 ac_ext=c
44676 ac_cpp='$CPP $CPPFLAGS'
44677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44680
44681
44682 fi
44683 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44684 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44685
44686         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44687             wxUSE_SOCKETS=no
44688             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44689 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44690         else
44691             cat >>confdefs.h <<_ACEOF
44692 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44693 _ACEOF
44694
44695         fi
44696     fi
44697 fi
44698
44699 if test "$wxUSE_SOCKETS" = "yes" ; then
44700     if test "$wxUSE_IPV6" = "yes"; then
44701         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44702 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44703 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44704   echo $ECHO_N "(cached) $ECHO_C" >&6
44705 else
44706
44707                 cat >conftest.$ac_ext <<_ACEOF
44708 /* confdefs.h.  */
44709 _ACEOF
44710 cat confdefs.h >>conftest.$ac_ext
44711 cat >>conftest.$ac_ext <<_ACEOF
44712 /* end confdefs.h.  */
44713
44714                         #include <sys/types.h>
44715                         #include <sys/socket.h>
44716                         #include <netinet/in.h>
44717
44718 int
44719 main ()
44720 {
44721
44722                         struct sockaddr_in6 sa6;
44723
44724   ;
44725   return 0;
44726 }
44727 _ACEOF
44728 rm -f conftest.$ac_objext
44729 if { (ac_try="$ac_compile"
44730 case "(($ac_try" in
44731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44732   *) ac_try_echo=$ac_try;;
44733 esac
44734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44735   (eval "$ac_compile") 2>conftest.er1
44736   ac_status=$?
44737   grep -v '^ *+' conftest.er1 >conftest.err
44738   rm -f conftest.er1
44739   cat conftest.err >&5
44740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44741   (exit $ac_status); } && {
44742          test -z "$ac_c_werror_flag" ||
44743          test ! -s conftest.err
44744        } && test -s conftest.$ac_objext; then
44745   wx_cv_type_sockaddr_in6=yes
44746 else
44747   echo "$as_me: failed program was:" >&5
44748 sed 's/^/| /' conftest.$ac_ext >&5
44749
44750         wx_cv_type_sockaddr_in6=no
44751
44752 fi
44753
44754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44755
44756
44757 fi
44758 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44759 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44760
44761         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44762             cat >>confdefs.h <<\_ACEOF
44763 #define wxUSE_IPV6 1
44764 _ACEOF
44765
44766         else
44767             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44768 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44769         fi
44770     fi
44771
44772     cat >>confdefs.h <<\_ACEOF
44773 #define wxUSE_SOCKETS 1
44774 _ACEOF
44775
44776     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44777 fi
44778
44779 if test "$wxUSE_PROTOCOL" = "yes"; then
44780     if test "$wxUSE_SOCKETS" != "yes"; then
44781         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44782 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44783         wxUSE_PROTOCOL=no
44784     fi
44785 fi
44786
44787 if test "$wxUSE_PROTOCOL" = "yes"; then
44788     cat >>confdefs.h <<\_ACEOF
44789 #define wxUSE_PROTOCOL 1
44790 _ACEOF
44791
44792
44793     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44794         cat >>confdefs.h <<\_ACEOF
44795 #define wxUSE_PROTOCOL_HTTP 1
44796 _ACEOF
44797
44798     fi
44799     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44800         cat >>confdefs.h <<\_ACEOF
44801 #define wxUSE_PROTOCOL_FTP 1
44802 _ACEOF
44803
44804     fi
44805     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44806         cat >>confdefs.h <<\_ACEOF
44807 #define wxUSE_PROTOCOL_FILE 1
44808 _ACEOF
44809
44810     fi
44811 else
44812     if test "$wxUSE_FS_INET" = "yes"; then
44813         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44814 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44815         wxUSE_FS_INET="no"
44816     fi
44817 fi
44818
44819 if test "$wxUSE_URL" = "yes"; then
44820     if test "$wxUSE_PROTOCOL" != "yes"; then
44821         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44822 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44823         wxUSE_URL=no
44824     fi
44825     if test "$wxUSE_URL" = "yes"; then
44826         cat >>confdefs.h <<\_ACEOF
44827 #define wxUSE_URL 1
44828 _ACEOF
44829
44830     fi
44831 fi
44832
44833 if test "$wxUSE_VARIANT" = "yes"; then
44834     cat >>confdefs.h <<\_ACEOF
44835 #define wxUSE_VARIANT 1
44836 _ACEOF
44837
44838 fi
44839
44840 if test "$wxUSE_FS_INET" = "yes"; then
44841   cat >>confdefs.h <<\_ACEOF
44842 #define wxUSE_FS_INET 1
44843 _ACEOF
44844
44845 fi
44846
44847
44848 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44849     wxUSE_JOYSTICK=no
44850
44851         if test "$TOOLKIT" = "MSW"; then
44852         wxUSE_JOYSTICK=yes
44853
44854         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
44855         if test "$USE_DARWIN" = 1; then
44856                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44857 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44858             ac_ext=cpp
44859 ac_cpp='$CXXCPP $CPPFLAGS'
44860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44863
44864             cat >conftest.$ac_ext <<_ACEOF
44865 /* confdefs.h.  */
44866 _ACEOF
44867 cat confdefs.h >>conftest.$ac_ext
44868 cat >>conftest.$ac_ext <<_ACEOF
44869 /* end confdefs.h.  */
44870  #include <IOKit/hid/IOHIDLib.h>
44871 int
44872 main ()
44873 {
44874  IOHIDQueueInterface *qi = NULL;
44875                               IOHIDCallbackFunction cb = NULL;
44876                               qi->setEventCallout(NULL, cb, NULL, NULL);
44877   ;
44878   return 0;
44879 }
44880 _ACEOF
44881 rm -f conftest.$ac_objext
44882 if { (ac_try="$ac_compile"
44883 case "(($ac_try" in
44884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44885   *) ac_try_echo=$ac_try;;
44886 esac
44887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44888   (eval "$ac_compile") 2>conftest.er1
44889   ac_status=$?
44890   grep -v '^ *+' conftest.er1 >conftest.err
44891   rm -f conftest.er1
44892   cat conftest.err >&5
44893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44894   (exit $ac_status); } && {
44895          test -z "$ac_cxx_werror_flag" ||
44896          test ! -s conftest.err
44897        } && test -s conftest.$ac_objext; then
44898    wxUSE_JOYSTICK=yes
44899
44900 else
44901   echo "$as_me: failed program was:" >&5
44902 sed 's/^/| /' conftest.$ac_ext >&5
44903
44904
44905 fi
44906
44907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44908             ac_ext=c
44909 ac_cpp='$CPP $CPPFLAGS'
44910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44913
44914             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44915 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44916         fi
44917
44918         else
44919                 if test "$wxUSE_MGL" != 1; then
44920
44921 for ac_header in linux/joystick.h
44922 do
44923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44927   echo $ECHO_N "(cached) $ECHO_C" >&6
44928 else
44929   cat >conftest.$ac_ext <<_ACEOF
44930 /* confdefs.h.  */
44931 _ACEOF
44932 cat confdefs.h >>conftest.$ac_ext
44933 cat >>conftest.$ac_ext <<_ACEOF
44934 /* end confdefs.h.  */
44935 $ac_includes_default
44936
44937 #include <$ac_header>
44938 _ACEOF
44939 rm -f conftest.$ac_objext
44940 if { (ac_try="$ac_compile"
44941 case "(($ac_try" in
44942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44943   *) ac_try_echo=$ac_try;;
44944 esac
44945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44946   (eval "$ac_compile") 2>conftest.er1
44947   ac_status=$?
44948   grep -v '^ *+' conftest.er1 >conftest.err
44949   rm -f conftest.er1
44950   cat conftest.err >&5
44951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44952   (exit $ac_status); } && {
44953          test -z "$ac_c_werror_flag" ||
44954          test ! -s conftest.err
44955        } && test -s conftest.$ac_objext; then
44956   eval "$as_ac_Header=yes"
44957 else
44958   echo "$as_me: failed program was:" >&5
44959 sed 's/^/| /' conftest.$ac_ext >&5
44960
44961         eval "$as_ac_Header=no"
44962 fi
44963
44964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44965 fi
44966 ac_res=`eval echo '${'$as_ac_Header'}'`
44967                { echo "$as_me:$LINENO: result: $ac_res" >&5
44968 echo "${ECHO_T}$ac_res" >&6; }
44969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44970   cat >>confdefs.h <<_ACEOF
44971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44972 _ACEOF
44973  wxUSE_JOYSTICK=yes
44974 fi
44975
44976 done
44977
44978         fi
44979     fi
44980
44981     if test "$wxUSE_JOYSTICK" = "yes"; then
44982         cat >>confdefs.h <<\_ACEOF
44983 #define wxUSE_JOYSTICK 1
44984 _ACEOF
44985
44986         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44987     else
44988         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44989 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44990     fi
44991 fi
44992
44993
44994
44995 if test "$wxUSE_FONTENUM" = "yes" ; then
44996   cat >>confdefs.h <<\_ACEOF
44997 #define wxUSE_FONTENUM 1
44998 _ACEOF
44999
45000 fi
45001
45002 if test "$wxUSE_FONTMAP" = "yes" ; then
45003   cat >>confdefs.h <<\_ACEOF
45004 #define wxUSE_FONTMAP 1
45005 _ACEOF
45006
45007 fi
45008
45009 if test "$wxUSE_UNICODE" = "yes" ; then
45010   cat >>confdefs.h <<\_ACEOF
45011 #define wxUSE_UNICODE 1
45012 _ACEOF
45013
45014
45015   if test "$USE_WIN32" != 1; then
45016       wxUSE_UNICODE_MSLU=no
45017   fi
45018
45019   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45020         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45021 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45022 if test "${ac_cv_lib_unicows_main+set}" = set; then
45023   echo $ECHO_N "(cached) $ECHO_C" >&6
45024 else
45025   ac_check_lib_save_LIBS=$LIBS
45026 LIBS="-lunicows  $LIBS"
45027 cat >conftest.$ac_ext <<_ACEOF
45028 /* confdefs.h.  */
45029 _ACEOF
45030 cat confdefs.h >>conftest.$ac_ext
45031 cat >>conftest.$ac_ext <<_ACEOF
45032 /* end confdefs.h.  */
45033
45034
45035 int
45036 main ()
45037 {
45038 return main ();
45039   ;
45040   return 0;
45041 }
45042 _ACEOF
45043 rm -f conftest.$ac_objext conftest$ac_exeext
45044 if { (ac_try="$ac_link"
45045 case "(($ac_try" in
45046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45047   *) ac_try_echo=$ac_try;;
45048 esac
45049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45050   (eval "$ac_link") 2>conftest.er1
45051   ac_status=$?
45052   grep -v '^ *+' conftest.er1 >conftest.err
45053   rm -f conftest.er1
45054   cat conftest.err >&5
45055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45056   (exit $ac_status); } && {
45057          test -z "$ac_c_werror_flag" ||
45058          test ! -s conftest.err
45059        } && test -s conftest$ac_exeext &&
45060        $as_test_x conftest$ac_exeext; then
45061   ac_cv_lib_unicows_main=yes
45062 else
45063   echo "$as_me: failed program was:" >&5
45064 sed 's/^/| /' conftest.$ac_ext >&5
45065
45066         ac_cv_lib_unicows_main=no
45067 fi
45068
45069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45070       conftest$ac_exeext conftest.$ac_ext
45071 LIBS=$ac_check_lib_save_LIBS
45072 fi
45073 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45074 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45075 if test $ac_cv_lib_unicows_main = yes; then
45076
45077                 cat >>confdefs.h <<\_ACEOF
45078 #define wxUSE_UNICODE_MSLU 1
45079 _ACEOF
45080
45081
45082 else
45083
45084                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45085                              Applications will only run on Windows NT/2000/XP!" >&5
45086 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45087                              Applications will only run on Windows NT/2000/XP!" >&2;}
45088                 wxUSE_UNICODE_MSLU=no
45089
45090 fi
45091
45092     fi
45093 fi
45094
45095 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45096     cat >>confdefs.h <<\_ACEOF
45097 #define wxUSE_UNICODE_UTF8 1
45098 _ACEOF
45099
45100
45101     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45102         cat >>confdefs.h <<\_ACEOF
45103 #define wxUSE_UTF8_LOCALE_ONLY 1
45104 _ACEOF
45105
45106     fi
45107 fi
45108
45109
45110 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45111     cat >>confdefs.h <<\_ACEOF
45112 #define wxUSE_CONSTRAINTS 1
45113 _ACEOF
45114
45115     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45116 fi
45117
45118 if test "$wxUSE_MDI" = "yes"; then
45119     cat >>confdefs.h <<\_ACEOF
45120 #define wxUSE_MDI 1
45121 _ACEOF
45122
45123
45124     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45125         cat >>confdefs.h <<\_ACEOF
45126 #define wxUSE_MDI_ARCHITECTURE 1
45127 _ACEOF
45128
45129         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45130     fi
45131 fi
45132
45133 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45134     cat >>confdefs.h <<\_ACEOF
45135 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45136 _ACEOF
45137
45138     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45139 fi
45140
45141 if test "$wxUSE_HELP" = "yes"; then
45142     cat >>confdefs.h <<\_ACEOF
45143 #define wxUSE_HELP 1
45144 _ACEOF
45145
45146     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45147
45148     if test "$wxUSE_MSW" = 1; then
45149       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45150         cat >>confdefs.h <<\_ACEOF
45151 #define wxUSE_MS_HTML_HELP 1
45152 _ACEOF
45153
45154       fi
45155     fi
45156
45157     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45158       if test "$wxUSE_HTML" = "yes"; then
45159         cat >>confdefs.h <<\_ACEOF
45160 #define wxUSE_WXHTML_HELP 1
45161 _ACEOF
45162
45163       else
45164         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45165 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45166         wxUSE_WXHTML_HELP=no
45167       fi
45168     fi
45169 fi
45170
45171 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45172     cat >>confdefs.h <<\_ACEOF
45173 #define wxUSE_PRINTING_ARCHITECTURE 1
45174 _ACEOF
45175
45176     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45177 fi
45178
45179 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45180   cat >>confdefs.h <<\_ACEOF
45181 #define wxUSE_POSTSCRIPT 1
45182 _ACEOF
45183
45184 fi
45185
45186 cat >>confdefs.h <<\_ACEOF
45187 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45188 _ACEOF
45189
45190
45191 if test "$wxUSE_SVG" = "yes"; then
45192     cat >>confdefs.h <<\_ACEOF
45193 #define wxUSE_SVG 1
45194 _ACEOF
45195
45196 fi
45197
45198
45199 if test "$wxUSE_METAFILE" = "yes"; then
45200     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45201         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45202 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45203         wxUSE_METAFILE=no
45204     fi
45205 fi
45206
45207
45208 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45209                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45210                           -o "$wxUSE_OLE"     = "yes" \
45211                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45212     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45213 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45214 if test "${ac_cv_header_ole2_h+set}" = set; then
45215   echo $ECHO_N "(cached) $ECHO_C" >&6
45216 else
45217   cat >conftest.$ac_ext <<_ACEOF
45218 /* confdefs.h.  */
45219 _ACEOF
45220 cat confdefs.h >>conftest.$ac_ext
45221 cat >>conftest.$ac_ext <<_ACEOF
45222 /* end confdefs.h.  */
45223
45224
45225 #include <ole2.h>
45226 _ACEOF
45227 rm -f conftest.$ac_objext
45228 if { (ac_try="$ac_compile"
45229 case "(($ac_try" in
45230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45231   *) ac_try_echo=$ac_try;;
45232 esac
45233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45234   (eval "$ac_compile") 2>conftest.er1
45235   ac_status=$?
45236   grep -v '^ *+' conftest.er1 >conftest.err
45237   rm -f conftest.er1
45238   cat conftest.err >&5
45239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45240   (exit $ac_status); } && {
45241          test -z "$ac_c_werror_flag" ||
45242          test ! -s conftest.err
45243        } && test -s conftest.$ac_objext; then
45244   ac_cv_header_ole2_h=yes
45245 else
45246   echo "$as_me: failed program was:" >&5
45247 sed 's/^/| /' conftest.$ac_ext >&5
45248
45249         ac_cv_header_ole2_h=no
45250 fi
45251
45252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45253 fi
45254 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45255 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45256
45257
45258
45259     if test "$ac_cv_header_ole2_h" = "yes" ; then
45260         if test "$GCC" = yes ; then
45261             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45262 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45263             cat >conftest.$ac_ext <<_ACEOF
45264 /* confdefs.h.  */
45265 _ACEOF
45266 cat confdefs.h >>conftest.$ac_ext
45267 cat >>conftest.$ac_ext <<_ACEOF
45268 /* end confdefs.h.  */
45269 #include <windows.h>
45270                             #include <ole2.h>
45271 int
45272 main ()
45273 {
45274
45275   ;
45276   return 0;
45277 }
45278 _ACEOF
45279 rm -f conftest.$ac_objext
45280 if { (ac_try="$ac_compile"
45281 case "(($ac_try" in
45282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45283   *) ac_try_echo=$ac_try;;
45284 esac
45285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45286   (eval "$ac_compile") 2>conftest.er1
45287   ac_status=$?
45288   grep -v '^ *+' conftest.er1 >conftest.err
45289   rm -f conftest.er1
45290   cat conftest.err >&5
45291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45292   (exit $ac_status); } && {
45293          test -z "$ac_c_werror_flag" ||
45294          test ! -s conftest.err
45295        } && test -s conftest.$ac_objext; then
45296   { echo "$as_me:$LINENO: result: no" >&5
45297 echo "${ECHO_T}no" >&6; }
45298 else
45299   echo "$as_me: failed program was:" >&5
45300 sed 's/^/| /' conftest.$ac_ext >&5
45301
45302         { echo "$as_me:$LINENO: result: yes" >&5
45303 echo "${ECHO_T}yes" >&6; }
45304                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45305 fi
45306
45307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45308             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45309             if test "$wxUSE_OLE" = "yes" ; then
45310                 cat >>confdefs.h <<\_ACEOF
45311 #define wxUSE_OLE 1
45312 _ACEOF
45313
45314                 cat >>confdefs.h <<\_ACEOF
45315 #define wxUSE_OLE_AUTOMATION 1
45316 _ACEOF
45317
45318                 cat >>confdefs.h <<\_ACEOF
45319 #define wxUSE_ACTIVEX 1
45320 _ACEOF
45321
45322                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45323             fi
45324         fi
45325
45326                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45327             cat >>confdefs.h <<\_ACEOF
45328 #define wxUSE_DATAOBJ 1
45329 _ACEOF
45330
45331         fi
45332     else
45333         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45334 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45335
45336         wxUSE_CLIPBOARD=no
45337         wxUSE_DRAG_AND_DROP=no
45338         wxUSE_DATAOBJ=no
45339         wxUSE_OLE=no
45340     fi
45341
45342     if test "$wxUSE_METAFILE" = "yes"; then
45343         cat >>confdefs.h <<\_ACEOF
45344 #define wxUSE_METAFILE 1
45345 _ACEOF
45346
45347
45348                 cat >>confdefs.h <<\_ACEOF
45349 #define wxUSE_ENH_METAFILE 1
45350 _ACEOF
45351
45352     fi
45353 fi
45354
45355 if test "$wxUSE_IPC" = "yes"; then
45356     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45357         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45358 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45359         wxUSE_IPC=no
45360     fi
45361
45362     if test "$wxUSE_IPC" = "yes"; then
45363         cat >>confdefs.h <<\_ACEOF
45364 #define wxUSE_IPC 1
45365 _ACEOF
45366
45367         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45368     fi
45369 fi
45370
45371 if test "$wxUSE_DATAOBJ" = "yes"; then
45372     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45373         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45374 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45375         wxUSE_DATAOBJ=no
45376     else
45377         cat >>confdefs.h <<\_ACEOF
45378 #define wxUSE_DATAOBJ 1
45379 _ACEOF
45380
45381     fi
45382 else
45383     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45384 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45385     wxUSE_CLIPBOARD=no
45386     wxUSE_DRAG_AND_DROP=no
45387 fi
45388
45389 if test "$wxUSE_CLIPBOARD" = "yes"; then
45390     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45391         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45392 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45393         wxUSE_CLIPBOARD=no
45394     fi
45395
45396     if test "$wxUSE_CLIPBOARD" = "yes"; then
45397         cat >>confdefs.h <<\_ACEOF
45398 #define wxUSE_CLIPBOARD 1
45399 _ACEOF
45400
45401     fi
45402 fi
45403
45404 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45405     if test "$wxUSE_GTK" = 1; then
45406         if test "$WXGTK12" != 1; then
45407             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45408 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45409             wxUSE_DRAG_AND_DROP=no
45410         fi
45411     fi
45412
45413     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45414             "$wxUSE_DFB" = 1; then
45415         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45416 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45417         wxUSE_DRAG_AND_DROP=no
45418     fi
45419
45420     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45421         cat >>confdefs.h <<\_ACEOF
45422 #define wxUSE_DRAG_AND_DROP 1
45423 _ACEOF
45424
45425     fi
45426
45427 fi
45428
45429 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45430     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45431 fi
45432
45433 if test "$wxUSE_CLIPBOARD" = "yes"; then
45434     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
45435 fi
45436
45437 if test "$wxUSE_SPLINES" = "yes" ; then
45438   cat >>confdefs.h <<\_ACEOF
45439 #define wxUSE_SPLINES 1
45440 _ACEOF
45441
45442 fi
45443
45444 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45445   cat >>confdefs.h <<\_ACEOF
45446 #define wxUSE_MOUSEWHEEL 1
45447 _ACEOF
45448
45449 fi
45450
45451
45452 USES_CONTROLS=0
45453 if test "$wxUSE_CONTROLS" = "yes"; then
45454   USES_CONTROLS=1
45455 fi
45456
45457 if test "$wxUSE_ACCEL" = "yes"; then
45458   cat >>confdefs.h <<\_ACEOF
45459 #define wxUSE_ACCEL 1
45460 _ACEOF
45461
45462   USES_CONTROLS=1
45463 fi
45464
45465 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45466   cat >>confdefs.h <<\_ACEOF
45467 #define wxUSE_ANIMATIONCTRL 1
45468 _ACEOF
45469
45470   USES_CONTROLS=1
45471   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45472 fi
45473
45474 if test "$wxUSE_BUTTON" = "yes"; then
45475   cat >>confdefs.h <<\_ACEOF
45476 #define wxUSE_BUTTON 1
45477 _ACEOF
45478
45479   USES_CONTROLS=1
45480 fi
45481
45482 if test "$wxUSE_BMPBUTTON" = "yes"; then
45483   cat >>confdefs.h <<\_ACEOF
45484 #define wxUSE_BMPBUTTON 1
45485 _ACEOF
45486
45487   USES_CONTROLS=1
45488 fi
45489
45490 if test "$wxUSE_CALCTRL" = "yes"; then
45491   cat >>confdefs.h <<\_ACEOF
45492 #define wxUSE_CALENDARCTRL 1
45493 _ACEOF
45494
45495   USES_CONTROLS=1
45496   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45497 fi
45498
45499 if test "$wxUSE_CARET" = "yes"; then
45500   cat >>confdefs.h <<\_ACEOF
45501 #define wxUSE_CARET 1
45502 _ACEOF
45503
45504   USES_CONTROLS=1
45505   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45506 fi
45507
45508 if test "$wxUSE_COLLPANE" = "yes"; then
45509     cat >>confdefs.h <<\_ACEOF
45510 #define wxUSE_COLLPANE 1
45511 _ACEOF
45512
45513     USES_CONTROLS=1
45514     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45515 fi
45516
45517 if test "$wxUSE_COMBOBOX" = "yes"; then
45518   cat >>confdefs.h <<\_ACEOF
45519 #define wxUSE_COMBOBOX 1
45520 _ACEOF
45521
45522   USES_CONTROLS=1
45523 fi
45524
45525 if test "$wxUSE_COMBOCTRL" = "yes"; then
45526   cat >>confdefs.h <<\_ACEOF
45527 #define wxUSE_COMBOCTRL 1
45528 _ACEOF
45529
45530   USES_CONTROLS=1
45531 fi
45532
45533 if test "$wxUSE_CHOICE" = "yes"; then
45534   cat >>confdefs.h <<\_ACEOF
45535 #define wxUSE_CHOICE 1
45536 _ACEOF
45537
45538   USES_CONTROLS=1
45539 fi
45540
45541 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45542     cat >>confdefs.h <<\_ACEOF
45543 #define wxUSE_CHOICEBOOK 1
45544 _ACEOF
45545
45546     USES_CONTROLS=1
45547 fi
45548
45549 if test "$wxUSE_CHECKBOX" = "yes"; then
45550   cat >>confdefs.h <<\_ACEOF
45551 #define wxUSE_CHECKBOX 1
45552 _ACEOF
45553
45554   USES_CONTROLS=1
45555 fi
45556
45557 if test "$wxUSE_CHECKLST" = "yes"; then
45558   cat >>confdefs.h <<\_ACEOF
45559 #define wxUSE_CHECKLISTBOX 1
45560 _ACEOF
45561
45562   USES_CONTROLS=1
45563 fi
45564
45565 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45566   cat >>confdefs.h <<\_ACEOF
45567 #define wxUSE_COLOURPICKERCTRL 1
45568 _ACEOF
45569
45570   USES_CONTROLS=1
45571 fi
45572
45573 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45574   cat >>confdefs.h <<\_ACEOF
45575 #define wxUSE_DATEPICKCTRL 1
45576 _ACEOF
45577
45578   USES_CONTROLS=1
45579 fi
45580
45581 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45582   cat >>confdefs.h <<\_ACEOF
45583 #define wxUSE_DIRPICKERCTRL 1
45584 _ACEOF
45585
45586   USES_CONTROLS=1
45587 fi
45588
45589 if test "$wxUSE_FILECTRL" = "yes"; then
45590   cat >>confdefs.h <<\_ACEOF
45591 #define wxUSE_FILECTRL 1
45592 _ACEOF
45593
45594   USES_CONTROLS=1
45595 fi
45596
45597 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45598   cat >>confdefs.h <<\_ACEOF
45599 #define wxUSE_FILEPICKERCTRL 1
45600 _ACEOF
45601
45602   USES_CONTROLS=1
45603 fi
45604
45605 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45606   cat >>confdefs.h <<\_ACEOF
45607 #define wxUSE_FONTPICKERCTRL 1
45608 _ACEOF
45609
45610   USES_CONTROLS=1
45611 fi
45612
45613 if test "$wxUSE_DISPLAY" = "yes"; then
45614     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45615         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45616 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45617         wxUSE_DISPLAY=no
45618     else
45619         cat >>confdefs.h <<\_ACEOF
45620 #define wxUSE_DISPLAY 1
45621 _ACEOF
45622
45623         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45624     fi
45625 fi
45626
45627 if test "$wxUSE_DETECT_SM" = "yes"; then
45628     cat >>confdefs.h <<\_ACEOF
45629 #define wxUSE_DETECT_SM 1
45630 _ACEOF
45631
45632 fi
45633
45634 if test "$wxUSE_GAUGE" = "yes"; then
45635   cat >>confdefs.h <<\_ACEOF
45636 #define wxUSE_GAUGE 1
45637 _ACEOF
45638
45639   USES_CONTROLS=1
45640 fi
45641
45642 if test "$wxUSE_GRID" = "yes"; then
45643   cat >>confdefs.h <<\_ACEOF
45644 #define wxUSE_GRID 1
45645 _ACEOF
45646
45647   USES_CONTROLS=1
45648   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45649 fi
45650
45651 if test "$wxUSE_HEADERCTRL" = "yes"; then
45652   cat >>confdefs.h <<\_ACEOF
45653 #define wxUSE_HEADERCTRL 1
45654 _ACEOF
45655
45656   USES_CONTROLS=1
45657 fi
45658
45659 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45660   cat >>confdefs.h <<\_ACEOF
45661 #define wxUSE_HYPERLINKCTRL 1
45662 _ACEOF
45663
45664   USES_CONTROLS=1
45665 fi
45666
45667 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45668   cat >>confdefs.h <<\_ACEOF
45669 #define wxUSE_BITMAPCOMBOBOX 1
45670 _ACEOF
45671
45672   USES_CONTROLS=1
45673 fi
45674
45675 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45676   cat >>confdefs.h <<\_ACEOF
45677 #define wxUSE_DATAVIEWCTRL 1
45678 _ACEOF
45679
45680   USES_CONTROLS=1
45681   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45682 fi
45683
45684 if test "$wxUSE_IMAGLIST" = "yes"; then
45685     cat >>confdefs.h <<\_ACEOF
45686 #define wxUSE_IMAGLIST 1
45687 _ACEOF
45688
45689 fi
45690
45691 if test "$wxUSE_LISTBOOK" = "yes"; then
45692     cat >>confdefs.h <<\_ACEOF
45693 #define wxUSE_LISTBOOK 1
45694 _ACEOF
45695
45696     USES_CONTROLS=1
45697 fi
45698
45699 if test "$wxUSE_LISTBOX" = "yes"; then
45700     cat >>confdefs.h <<\_ACEOF
45701 #define wxUSE_LISTBOX 1
45702 _ACEOF
45703
45704     USES_CONTROLS=1
45705 fi
45706
45707 if test "$wxUSE_LISTCTRL" = "yes"; then
45708     if test "$wxUSE_IMAGLIST" = "yes"; then
45709         cat >>confdefs.h <<\_ACEOF
45710 #define wxUSE_LISTCTRL 1
45711 _ACEOF
45712
45713         USES_CONTROLS=1
45714         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45715     else
45716         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45717 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45718     fi
45719 fi
45720
45721 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45722     cat >>confdefs.h <<\_ACEOF
45723 #define wxUSE_EDITABLELISTBOX 1
45724 _ACEOF
45725
45726     USES_CONTROLS=1
45727 fi
45728
45729 if test "$wxUSE_NOTEBOOK" = "yes"; then
45730     cat >>confdefs.h <<\_ACEOF
45731 #define wxUSE_NOTEBOOK 1
45732 _ACEOF
45733
45734     USES_CONTROLS=1
45735     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45736 fi
45737
45738 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45739     cat >>confdefs.h <<\_ACEOF
45740 #define wxUSE_NOTIFICATION_MESSAGE 1
45741 _ACEOF
45742
45743 fi
45744
45745 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45746   cat >>confdefs.h <<\_ACEOF
45747 #define wxUSE_ODCOMBOBOX 1
45748 _ACEOF
45749
45750   USES_CONTROLS=1
45751   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45752 fi
45753
45754 if test "$wxUSE_RADIOBOX" = "yes"; then
45755     cat >>confdefs.h <<\_ACEOF
45756 #define wxUSE_RADIOBOX 1
45757 _ACEOF
45758
45759     USES_CONTROLS=1
45760 fi
45761
45762 if test "$wxUSE_RADIOBTN" = "yes"; then
45763     cat >>confdefs.h <<\_ACEOF
45764 #define wxUSE_RADIOBTN 1
45765 _ACEOF
45766
45767     USES_CONTROLS=1
45768 fi
45769
45770 if test "$wxUSE_REARRANGECTRL" = "yes"; then
45771     cat >>confdefs.h <<\_ACEOF
45772 #define wxUSE_REARRANGECTRL 1
45773 _ACEOF
45774
45775 fi
45776
45777 if test "$wxUSE_SASH" = "yes"; then
45778     cat >>confdefs.h <<\_ACEOF
45779 #define wxUSE_SASH 1
45780 _ACEOF
45781
45782     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45783 fi
45784
45785 if test "$wxUSE_SCROLLBAR" = "yes"; then
45786     cat >>confdefs.h <<\_ACEOF
45787 #define wxUSE_SCROLLBAR 1
45788 _ACEOF
45789
45790     USES_CONTROLS=1
45791     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
45792 fi
45793
45794 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45795     cat >>confdefs.h <<\_ACEOF
45796 #define wxUSE_SEARCHCTRL 1
45797 _ACEOF
45798
45799     USES_CONTROLS=1
45800 fi
45801
45802 if test "$wxUSE_SLIDER" = "yes"; then
45803     cat >>confdefs.h <<\_ACEOF
45804 #define wxUSE_SLIDER 1
45805 _ACEOF
45806
45807     USES_CONTROLS=1
45808 fi
45809
45810 if test "$wxUSE_SPINBTN" = "yes"; then
45811     cat >>confdefs.h <<\_ACEOF
45812 #define wxUSE_SPINBTN 1
45813 _ACEOF
45814
45815     USES_CONTROLS=1
45816 fi
45817
45818 if test "$wxUSE_SPINCTRL" = "yes"; then
45819     cat >>confdefs.h <<\_ACEOF
45820 #define wxUSE_SPINCTRL 1
45821 _ACEOF
45822
45823     USES_CONTROLS=1
45824 fi
45825
45826 if test "$wxUSE_SPLITTER" = "yes"; then
45827     cat >>confdefs.h <<\_ACEOF
45828 #define wxUSE_SPLITTER 1
45829 _ACEOF
45830
45831     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45832 fi
45833
45834 if test "$wxUSE_STATBMP" = "yes"; then
45835     cat >>confdefs.h <<\_ACEOF
45836 #define wxUSE_STATBMP 1
45837 _ACEOF
45838
45839     USES_CONTROLS=1
45840 fi
45841
45842 if test "$wxUSE_STATBOX" = "yes"; then
45843     cat >>confdefs.h <<\_ACEOF
45844 #define wxUSE_STATBOX 1
45845 _ACEOF
45846
45847     USES_CONTROLS=1
45848 fi
45849
45850 if test "$wxUSE_STATTEXT" = "yes"; then
45851     cat >>confdefs.h <<\_ACEOF
45852 #define wxUSE_STATTEXT 1
45853 _ACEOF
45854
45855     USES_CONTROLS=1
45856 fi
45857
45858 if test "$wxUSE_STATLINE" = "yes"; then
45859     cat >>confdefs.h <<\_ACEOF
45860 #define wxUSE_STATLINE 1
45861 _ACEOF
45862
45863     USES_CONTROLS=1
45864 fi
45865
45866 if test "$wxUSE_STATUSBAR" = "yes"; then
45867         cat >>confdefs.h <<\_ACEOF
45868 #define wxUSE_NATIVE_STATUSBAR 1
45869 _ACEOF
45870
45871     cat >>confdefs.h <<\_ACEOF
45872 #define wxUSE_STATUSBAR 1
45873 _ACEOF
45874
45875     USES_CONTROLS=1
45876
45877     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45878 fi
45879
45880 if test "$wxUSE_TEXTCTRL" = "yes"; then
45881     cat >>confdefs.h <<\_ACEOF
45882 #define wxUSE_TEXTCTRL 1
45883 _ACEOF
45884
45885     USES_CONTROLS=1
45886     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45887
45888             cat >>confdefs.h <<\_ACEOF
45889 #define wxUSE_RICHEDIT 1
45890 _ACEOF
45891
45892     cat >>confdefs.h <<\_ACEOF
45893 #define wxUSE_RICHEDIT2 1
45894 _ACEOF
45895
45896 fi
45897
45898 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45899     if test "$wxUSE_COCOA" = 1 ; then
45900         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45901 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45902         wxUSE_TOGGLEBTN=no
45903     fi
45904
45905     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45906         cat >>confdefs.h <<\_ACEOF
45907 #define wxUSE_TOGGLEBTN 1
45908 _ACEOF
45909
45910         USES_CONTROLS=1
45911     fi
45912 fi
45913
45914 if test "$wxUSE_TOOLBAR" = "yes"; then
45915     cat >>confdefs.h <<\_ACEOF
45916 #define wxUSE_TOOLBAR 1
45917 _ACEOF
45918
45919     USES_CONTROLS=1
45920
45921     if test "$wxUSE_UNIVERSAL" = "yes"; then
45922         wxUSE_TOOLBAR_NATIVE="no"
45923     else
45924         wxUSE_TOOLBAR_NATIVE="yes"
45925         cat >>confdefs.h <<\_ACEOF
45926 #define wxUSE_TOOLBAR_NATIVE 1
45927 _ACEOF
45928
45929     fi
45930
45931     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45932 fi
45933
45934 if test "$wxUSE_TOOLTIPS" = "yes"; then
45935     if test "$wxUSE_MOTIF" = 1; then
45936         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45937 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45938     else
45939         if test "$wxUSE_UNIVERSAL" = "yes"; then
45940             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45941 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45942         else
45943             cat >>confdefs.h <<\_ACEOF
45944 #define wxUSE_TOOLTIPS 1
45945 _ACEOF
45946
45947         fi
45948     fi
45949 fi
45950
45951 if test "$wxUSE_TREEBOOK" = "yes"; then
45952     cat >>confdefs.h <<\_ACEOF
45953 #define wxUSE_TREEBOOK 1
45954 _ACEOF
45955
45956     USES_CONTROLS=1
45957 fi
45958
45959 if test "$wxUSE_TOOLBOOK" = "yes"; then
45960     cat >>confdefs.h <<\_ACEOF
45961 #define wxUSE_TOOLBOOK 1
45962 _ACEOF
45963
45964     USES_CONTROLS=1
45965 fi
45966
45967 if test "$wxUSE_TREECTRL" = "yes"; then
45968     if test "$wxUSE_IMAGLIST" = "yes"; then
45969         cat >>confdefs.h <<\_ACEOF
45970 #define wxUSE_TREECTRL 1
45971 _ACEOF
45972
45973         USES_CONTROLS=1
45974         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45975     else
45976         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45977 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45978     fi
45979 fi
45980
45981 if test "$wxUSE_POPUPWIN" = "yes"; then
45982     if test "$wxUSE_COCOA" = 1 ; then
45983         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45984 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45985     else
45986         if test "$wxUSE_PM" = 1; then
45987             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45988 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45989         else
45990             cat >>confdefs.h <<\_ACEOF
45991 #define wxUSE_POPUPWIN 1
45992 _ACEOF
45993
45994             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45995
45996             USES_CONTROLS=1
45997         fi
45998     fi
45999 fi
46000
46001 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46002     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46003         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46004 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46005     else
46006         cat >>confdefs.h <<\_ACEOF
46007 #define wxUSE_DIALUP_MANAGER 1
46008 _ACEOF
46009
46010         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46011     fi
46012 fi
46013
46014 if test "$wxUSE_TIPWINDOW" = "yes"; then
46015     if test "$wxUSE_PM" = 1; then
46016         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46017 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46018     else
46019         cat >>confdefs.h <<\_ACEOF
46020 #define wxUSE_TIPWINDOW 1
46021 _ACEOF
46022
46023     fi
46024 fi
46025
46026 if test "$USES_CONTROLS" = 1; then
46027     cat >>confdefs.h <<\_ACEOF
46028 #define wxUSE_CONTROLS 1
46029 _ACEOF
46030
46031 fi
46032
46033
46034 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46035     cat >>confdefs.h <<\_ACEOF
46036 #define wxUSE_ACCESSIBILITY 1
46037 _ACEOF
46038
46039     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46040 fi
46041
46042 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46043     cat >>confdefs.h <<\_ACEOF
46044 #define wxUSE_DRAGIMAGE 1
46045 _ACEOF
46046
46047     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46048 fi
46049
46050 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46051     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46052         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46053 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46054     else
46055         cat >>confdefs.h <<\_ACEOF
46056 #define wxUSE_EXCEPTIONS 1
46057 _ACEOF
46058
46059         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46060     fi
46061 fi
46062
46063 USE_HTML=0
46064 if test "$wxUSE_HTML" = "yes"; then
46065     cat >>confdefs.h <<\_ACEOF
46066 #define wxUSE_HTML 1
46067 _ACEOF
46068
46069     USE_HTML=1
46070     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46071 fi
46072 if test "$wxUSE_WEBKIT" = "yes"; then
46073     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46074         old_CPPFLAGS="$CPPFLAGS"
46075         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46076         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46077 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46078 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46079   echo $ECHO_N "(cached) $ECHO_C" >&6
46080 else
46081   cat >conftest.$ac_ext <<_ACEOF
46082 /* confdefs.h.  */
46083 _ACEOF
46084 cat confdefs.h >>conftest.$ac_ext
46085 cat >>conftest.$ac_ext <<_ACEOF
46086 /* end confdefs.h.  */
46087
46088                            #include <Carbon/Carbon.h>
46089                            #include <WebKit/WebKit.h>
46090
46091
46092 #include <WebKit/HIWebView.h>
46093 _ACEOF
46094 rm -f conftest.$ac_objext
46095 if { (ac_try="$ac_compile"
46096 case "(($ac_try" in
46097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46098   *) ac_try_echo=$ac_try;;
46099 esac
46100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46101   (eval "$ac_compile") 2>conftest.er1
46102   ac_status=$?
46103   grep -v '^ *+' conftest.er1 >conftest.err
46104   rm -f conftest.er1
46105   cat conftest.err >&5
46106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46107   (exit $ac_status); } && {
46108          test -z "$ac_c_werror_flag" ||
46109          test ! -s conftest.err
46110        } && test -s conftest.$ac_objext; then
46111   ac_cv_header_WebKit_HIWebView_h=yes
46112 else
46113   echo "$as_me: failed program was:" >&5
46114 sed 's/^/| /' conftest.$ac_ext >&5
46115
46116         ac_cv_header_WebKit_HIWebView_h=no
46117 fi
46118
46119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46120 fi
46121 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46122 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46123 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46124
46125                            cat >>confdefs.h <<\_ACEOF
46126 #define wxUSE_WEBKIT 1
46127 _ACEOF
46128
46129                            WEBKIT_LINK="-framework WebKit"
46130
46131 else
46132
46133                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46134 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46135                            wxUSE_WEBKIT=no
46136
46137 fi
46138
46139
46140         CPPFLAGS="$old_CPPFLAGS"
46141     elif test "$wxUSE_COCOA" = 1; then
46142         cat >>confdefs.h <<\_ACEOF
46143 #define wxUSE_WEBKIT 1
46144 _ACEOF
46145
46146     else
46147         wxUSE_WEBKIT=no
46148     fi
46149     if test "$wxUSE_WEBKIT" = "yes"; then
46150         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46151     fi
46152 fi
46153
46154 USE_XRC=0
46155 if test "$wxUSE_XRC" = "yes"; then
46156     if test "$wxUSE_XML" != "yes"; then
46157         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46158 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46159         wxUSE_XRC=no
46160     else
46161         cat >>confdefs.h <<\_ACEOF
46162 #define wxUSE_XRC 1
46163 _ACEOF
46164
46165         USE_XRC=1
46166         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46167     fi
46168 fi
46169
46170 USE_AUI=0
46171 if test "$wxUSE_AUI" = "yes"; then
46172    cat >>confdefs.h <<\_ACEOF
46173 #define wxUSE_AUI 1
46174 _ACEOF
46175
46176    USE_AUI=1
46177    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46178 fi
46179
46180 USE_PROPGRID=0
46181 if test "$wxUSE_PROPGRID" = "yes"; then
46182    cat >>confdefs.h <<\_ACEOF
46183 #define wxUSE_PROPGRID 1
46184 _ACEOF
46185
46186    USE_PROPGRID=1
46187    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46188 fi
46189
46190 USE_STC=0
46191 if test "$wxUSE_STC" = "yes"; then
46192    cat >>confdefs.h <<\_ACEOF
46193 #define wxUSE_STC 1
46194 _ACEOF
46195
46196    USE_STC=1
46197    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46198
46199       # Extract the first word of "python", so it can be a program name with args.
46200 set dummy python; ac_word=$2
46201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46203 if test "${ac_cv_path_PYTHON+set}" = set; then
46204   echo $ECHO_N "(cached) $ECHO_C" >&6
46205 else
46206   case $PYTHON in
46207   [\\/]* | ?:[\\/]*)
46208   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
46209   ;;
46210   *)
46211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46212 for as_dir in $PATH
46213 do
46214   IFS=$as_save_IFS
46215   test -z "$as_dir" && as_dir=.
46216   for ac_exec_ext in '' $ac_executable_extensions; do
46217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46218     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
46219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46220     break 2
46221   fi
46222 done
46223 done
46224 IFS=$as_save_IFS
46225
46226   ;;
46227 esac
46228 fi
46229 PYTHON=$ac_cv_path_PYTHON
46230 if test -n "$PYTHON"; then
46231   { echo "$as_me:$LINENO: result: $PYTHON" >&5
46232 echo "${ECHO_T}$PYTHON" >&6; }
46233 else
46234   { echo "$as_me:$LINENO: result: no" >&5
46235 echo "${ECHO_T}no" >&6; }
46236 fi
46237
46238
46239    if test "x$PYTHON" = "x"; then
46240      COND_PYTHON="#"
46241    fi
46242
46243 fi
46244
46245 if test "$wxUSE_MENUS" = "yes"; then
46246     cat >>confdefs.h <<\_ACEOF
46247 #define wxUSE_MENUS 1
46248 _ACEOF
46249
46250     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46251 fi
46252
46253 if test "$wxUSE_METAFILE" = "yes"; then
46254     cat >>confdefs.h <<\_ACEOF
46255 #define wxUSE_METAFILE 1
46256 _ACEOF
46257
46258 fi
46259
46260 if test "$wxUSE_MIMETYPE" = "yes"; then
46261     cat >>confdefs.h <<\_ACEOF
46262 #define wxUSE_MIMETYPE 1
46263 _ACEOF
46264
46265 fi
46266
46267 if test "$wxUSE_MINIFRAME" = "yes"; then
46268     cat >>confdefs.h <<\_ACEOF
46269 #define wxUSE_MINIFRAME 1
46270 _ACEOF
46271
46272 fi
46273
46274 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46275     cat >>confdefs.h <<\_ACEOF
46276 #define wxUSE_SYSTEM_OPTIONS 1
46277 _ACEOF
46278
46279 fi
46280
46281 if test "$wxUSE_TASKBARICON" = "yes"; then
46282     cat >>confdefs.h <<\_ACEOF
46283 #define wxUSE_TASKBARICON 1
46284 _ACEOF
46285
46286     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46287 fi
46288
46289
46290 if test "$wxUSE_VALIDATORS" = "yes"; then
46291     cat >>confdefs.h <<\_ACEOF
46292 #define wxUSE_VALIDATORS 1
46293 _ACEOF
46294
46295     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46296 fi
46297
46298 if test "$wxUSE_PALETTE" = "yes" ; then
46299     if test "$wxUSE_DFB" = 1; then
46300         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46301 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46302         wxUSE_PALETTE=no
46303     else
46304         cat >>confdefs.h <<\_ACEOF
46305 #define wxUSE_PALETTE 1
46306 _ACEOF
46307
46308     fi
46309 fi
46310
46311 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46312     LIBS=" -lunicows $LIBS"
46313 fi
46314
46315 USE_RICHTEXT=0
46316 if test "$wxUSE_RICHTEXT" = "yes"; then
46317     cat >>confdefs.h <<\_ACEOF
46318 #define wxUSE_RICHTEXT 1
46319 _ACEOF
46320
46321     USE_RICHTEXT=1
46322     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46323 fi
46324
46325
46326 if test "$wxUSE_IMAGE" = "yes" ; then
46327     cat >>confdefs.h <<\_ACEOF
46328 #define wxUSE_IMAGE 1
46329 _ACEOF
46330
46331
46332     if test "$wxUSE_GIF" = "yes" ; then
46333       cat >>confdefs.h <<\_ACEOF
46334 #define wxUSE_GIF 1
46335 _ACEOF
46336
46337     fi
46338
46339     if test "$wxUSE_PCX" = "yes" ; then
46340       cat >>confdefs.h <<\_ACEOF
46341 #define wxUSE_PCX 1
46342 _ACEOF
46343
46344     fi
46345
46346     if test "$wxUSE_TGA" = "yes" ; then
46347       cat >>confdefs.h <<\_ACEOF
46348 #define wxUSE_TGA 1
46349 _ACEOF
46350
46351     fi
46352
46353     if test "$wxUSE_IFF" = "yes" ; then
46354       cat >>confdefs.h <<\_ACEOF
46355 #define wxUSE_IFF 1
46356 _ACEOF
46357
46358     fi
46359
46360     if test "$wxUSE_PNM" = "yes" ; then
46361       cat >>confdefs.h <<\_ACEOF
46362 #define wxUSE_PNM 1
46363 _ACEOF
46364
46365     fi
46366
46367     if test "$wxUSE_XPM" = "yes" ; then
46368       cat >>confdefs.h <<\_ACEOF
46369 #define wxUSE_XPM 1
46370 _ACEOF
46371
46372     fi
46373
46374     if test "$wxUSE_ICO_CUR" = "yes" ; then
46375       cat >>confdefs.h <<\_ACEOF
46376 #define wxUSE_ICO_CUR 1
46377 _ACEOF
46378
46379     fi
46380 fi
46381
46382
46383 if test "$wxUSE_ABOUTDLG" = "yes"; then
46384     cat >>confdefs.h <<\_ACEOF
46385 #define wxUSE_ABOUTDLG 1
46386 _ACEOF
46387
46388 fi
46389
46390 if test "$wxUSE_CHOICEDLG" = "yes"; then
46391     cat >>confdefs.h <<\_ACEOF
46392 #define wxUSE_CHOICEDLG 1
46393 _ACEOF
46394
46395 fi
46396
46397 if test "$wxUSE_COLOURDLG" = "yes"; then
46398     cat >>confdefs.h <<\_ACEOF
46399 #define wxUSE_COLOURDLG 1
46400 _ACEOF
46401
46402 fi
46403
46404 if test "$wxUSE_FILEDLG" = "yes"; then
46405     cat >>confdefs.h <<\_ACEOF
46406 #define wxUSE_FILEDLG 1
46407 _ACEOF
46408
46409 fi
46410
46411 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46412     cat >>confdefs.h <<\_ACEOF
46413 #define wxUSE_FINDREPLDLG 1
46414 _ACEOF
46415
46416 fi
46417
46418 if test "$wxUSE_FONTDLG" = "yes"; then
46419     cat >>confdefs.h <<\_ACEOF
46420 #define wxUSE_FONTDLG 1
46421 _ACEOF
46422
46423 fi
46424
46425 if test "$wxUSE_DIRDLG" = "yes"; then
46426     if test "$wxUSE_TREECTRL" != "yes"; then
46427         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46428 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46429     else
46430         cat >>confdefs.h <<\_ACEOF
46431 #define wxUSE_DIRDLG 1
46432 _ACEOF
46433
46434     fi
46435 fi
46436
46437 if test "$wxUSE_MSGDLG" = "yes"; then
46438     cat >>confdefs.h <<\_ACEOF
46439 #define wxUSE_MSGDLG 1
46440 _ACEOF
46441
46442 fi
46443
46444 if test "$wxUSE_NUMBERDLG" = "yes"; then
46445     cat >>confdefs.h <<\_ACEOF
46446 #define wxUSE_NUMBERDLG 1
46447 _ACEOF
46448
46449 fi
46450
46451 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46452     cat >>confdefs.h <<\_ACEOF
46453 #define wxUSE_PROGRESSDLG 1
46454 _ACEOF
46455
46456 fi
46457
46458 if test "$wxUSE_SPLASH" = "yes"; then
46459     cat >>confdefs.h <<\_ACEOF
46460 #define wxUSE_SPLASH 1
46461 _ACEOF
46462
46463     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46464 fi
46465
46466 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46467     cat >>confdefs.h <<\_ACEOF
46468 #define wxUSE_STARTUP_TIPS 1
46469 _ACEOF
46470
46471 fi
46472
46473 if test "$wxUSE_TEXTDLG" = "yes"; then
46474     cat >>confdefs.h <<\_ACEOF
46475 #define wxUSE_TEXTDLG 1
46476 _ACEOF
46477
46478 fi
46479
46480 if test "$wxUSE_WIZARDDLG" = "yes"; then
46481     cat >>confdefs.h <<\_ACEOF
46482 #define wxUSE_WIZARDDLG 1
46483 _ACEOF
46484
46485     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46486 fi
46487
46488
46489 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46490     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46491         cat >>confdefs.h <<\_ACEOF
46492 #define wxUSE_OWNER_DRAWN 1
46493 _ACEOF
46494
46495     fi
46496 fi
46497
46498
46499 if test "$wxUSE_MSW" = 1 ; then
46500
46501     if test "$wxUSE_DC_CACHEING" = "yes"; then
46502         cat >>confdefs.h <<\_ACEOF
46503 #define wxUSE_DC_CACHEING 1
46504 _ACEOF
46505
46506     fi
46507
46508     if test "$wxUSE_DIB" = "yes"; then
46509         cat >>confdefs.h <<\_ACEOF
46510 #define wxUSE_WXDIB 1
46511 _ACEOF
46512
46513     fi
46514
46515     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46516         cat >>confdefs.h <<\_ACEOF
46517 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46518 _ACEOF
46519
46520     fi
46521
46522     if test "$wxUSE_UXTHEME" = "yes"; then
46523         cat >>confdefs.h <<\_ACEOF
46524 #define wxUSE_UXTHEME 1
46525 _ACEOF
46526
46527     fi
46528
46529 fi
46530
46531 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46532     cat >>confdefs.h <<\_ACEOF
46533 #define wxUSE_AUTOID_MANAGEMENT 1
46534 _ACEOF
46535
46536 fi
46537
46538 if test "$USE_WIN32" = 1 ; then
46539     if test "$wxUSE_INICONF" = "yes"; then
46540         cat >>confdefs.h <<\_ACEOF
46541 #define wxUSE_INICONF 1
46542 _ACEOF
46543
46544     fi
46545
46546     if test "$wxUSE_REGKEY" = "yes"; then
46547         cat >>confdefs.h <<\_ACEOF
46548 #define wxUSE_REGKEY 1
46549 _ACEOF
46550
46551     fi
46552 fi
46553
46554
46555 if test "$wxUSE_MAC" = 1; then
46556         wxUSE_GRAPHICS_CONTEXT="yes"
46557 fi
46558
46559 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46560    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46561       cat >>confdefs.h <<\_ACEOF
46562 #define wxUSE_GRAPHICS_CONTEXT 1
46563 _ACEOF
46564
46565    elif test "$wxUSE_GTK" != 1; then
46566             cat >>confdefs.h <<\_ACEOF
46567 #define wxUSE_GRAPHICS_CONTEXT 1
46568 _ACEOF
46569
46570    else
46571
46572 pkg_failed=no
46573 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46574 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46575
46576 if test -n "$PKG_CONFIG"; then
46577     if test -n "$CAIRO_CFLAGS"; then
46578         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46579     else
46580         if test -n "$PKG_CONFIG" && \
46581     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46582   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46583   ac_status=$?
46584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46585   (exit $ac_status); }; then
46586   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46587 else
46588   pkg_failed=yes
46589 fi
46590     fi
46591 else
46592         pkg_failed=untried
46593 fi
46594 if test -n "$PKG_CONFIG"; then
46595     if test -n "$CAIRO_LIBS"; then
46596         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46597     else
46598         if test -n "$PKG_CONFIG" && \
46599     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46600   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46601   ac_status=$?
46602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46603   (exit $ac_status); }; then
46604   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46605 else
46606   pkg_failed=yes
46607 fi
46608     fi
46609 else
46610         pkg_failed=untried
46611 fi
46612
46613
46614
46615 if test $pkg_failed = yes; then
46616
46617 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46618         _pkg_short_errors_supported=yes
46619 else
46620         _pkg_short_errors_supported=no
46621 fi
46622         if test $_pkg_short_errors_supported = yes; then
46623                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46624         else
46625                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46626         fi
46627         # Put the nasty error message in config.log where it belongs
46628         echo "$CAIRO_PKG_ERRORS" >&5
46629
46630         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46631 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46632
46633 elif test $pkg_failed = untried; then
46634         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46635 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46636
46637 else
46638         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46639         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46640         { echo "$as_me:$LINENO: result: yes" >&5
46641 echo "${ECHO_T}yes" >&6; }
46642         cat >>confdefs.h <<\_ACEOF
46643 #define wxUSE_GRAPHICS_CONTEXT 1
46644 _ACEOF
46645
46646 fi
46647    fi
46648 fi
46649
46650
46651 USE_MEDIA=0
46652
46653 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
46654     USE_MEDIA=1
46655
46656                 if test "$wxUSE_GTK" = 1; then
46657         wxUSE_GSTREAMER="no"
46658
46659                                                                 GST_VERSION_MAJOR=0
46660         GST_VERSION_MINOR=10
46661         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46662
46663         if test "$wxUSE_GSTREAMER8" = "no"; then
46664
46665 pkg_failed=no
46666 { echo "$as_me:$LINENO: checking for GST" >&5
46667 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46668
46669 if test -n "$PKG_CONFIG"; then
46670     if test -n "$GST_CFLAGS"; then
46671         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46672     else
46673         if test -n "$PKG_CONFIG" && \
46674     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46675   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46676   ac_status=$?
46677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46678   (exit $ac_status); }; then
46679   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46680 else
46681   pkg_failed=yes
46682 fi
46683     fi
46684 else
46685         pkg_failed=untried
46686 fi
46687 if test -n "$PKG_CONFIG"; then
46688     if test -n "$GST_LIBS"; then
46689         pkg_cv_GST_LIBS="$GST_LIBS"
46690     else
46691         if test -n "$PKG_CONFIG" && \
46692     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46693   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46694   ac_status=$?
46695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46696   (exit $ac_status); }; then
46697   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46698 else
46699   pkg_failed=yes
46700 fi
46701     fi
46702 else
46703         pkg_failed=untried
46704 fi
46705
46706
46707
46708 if test $pkg_failed = yes; then
46709
46710 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46711         _pkg_short_errors_supported=yes
46712 else
46713         _pkg_short_errors_supported=no
46714 fi
46715         if test $_pkg_short_errors_supported = yes; then
46716                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46717         else
46718                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46719         fi
46720         # Put the nasty error message in config.log where it belongs
46721         echo "$GST_PKG_ERRORS" >&5
46722
46723
46724                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46725 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46726                     GST_VERSION_MINOR=8
46727
46728
46729 elif test $pkg_failed = untried; then
46730
46731                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46732 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46733                     GST_VERSION_MINOR=8
46734
46735
46736 else
46737         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46738         GST_LIBS=$pkg_cv_GST_LIBS
46739         { echo "$as_me:$LINENO: result: yes" >&5
46740 echo "${ECHO_T}yes" >&6; }
46741
46742                     wxUSE_GSTREAMER="yes"
46743                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46744
46745 fi
46746         else
46747                         GST_VERSION_MINOR=8
46748         fi
46749
46750         if test $GST_VERSION_MINOR = "8"; then
46751             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46752
46753 pkg_failed=no
46754 { echo "$as_me:$LINENO: checking for GST" >&5
46755 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46756
46757 if test -n "$PKG_CONFIG"; then
46758     if test -n "$GST_CFLAGS"; then
46759         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46760     else
46761         if test -n "$PKG_CONFIG" && \
46762     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46763   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46764   ac_status=$?
46765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46766   (exit $ac_status); }; then
46767   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46768 else
46769   pkg_failed=yes
46770 fi
46771     fi
46772 else
46773         pkg_failed=untried
46774 fi
46775 if test -n "$PKG_CONFIG"; then
46776     if test -n "$GST_LIBS"; then
46777         pkg_cv_GST_LIBS="$GST_LIBS"
46778     else
46779         if test -n "$PKG_CONFIG" && \
46780     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46781   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46782   ac_status=$?
46783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46784   (exit $ac_status); }; then
46785   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46786 else
46787   pkg_failed=yes
46788 fi
46789     fi
46790 else
46791         pkg_failed=untried
46792 fi
46793
46794
46795
46796 if test $pkg_failed = yes; then
46797
46798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46799         _pkg_short_errors_supported=yes
46800 else
46801         _pkg_short_errors_supported=no
46802 fi
46803         if test $_pkg_short_errors_supported = yes; then
46804                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46805         else
46806                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46807         fi
46808         # Put the nasty error message in config.log where it belongs
46809         echo "$GST_PKG_ERRORS" >&5
46810
46811
46812                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46813 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46814
46815 elif test $pkg_failed = untried; then
46816
46817                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46818 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46819
46820 else
46821         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46822         GST_LIBS=$pkg_cv_GST_LIBS
46823         { echo "$as_me:$LINENO: result: yes" >&5
46824 echo "${ECHO_T}yes" >&6; }
46825         wxUSE_GSTREAMER="yes"
46826 fi
46827         fi
46828
46829
46830         if test "$wxUSE_GSTREAMER" = "yes"; then
46831             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46832             EXTRALIBS_MEDIA="$GST_LIBS"
46833
46834             cat >>confdefs.h <<\_ACEOF
46835 #define wxUSE_GSTREAMER 1
46836 _ACEOF
46837
46838         else
46839             USE_MEDIA=0
46840         fi
46841     fi
46842
46843     if test $USE_MEDIA = 1; then
46844         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46845         cat >>confdefs.h <<\_ACEOF
46846 #define wxUSE_MEDIACTRL 1
46847 _ACEOF
46848
46849     else
46850         if test "$wxUSE_MEDIACTRL" = "yes"; then
46851             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
46852 echo "$as_me: error: GStreamer not available" >&2;}
46853    { (exit 1); exit 1; }; }
46854         else
46855                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
46856 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
46857         fi
46858     fi
46859 fi
46860
46861
46862 if test "$cross_compiling" != "no"; then
46863         OSINFO="\"$host\""
46864 else
46865         OSINFO=`uname -s -r -m`
46866     OSINFO="\"$OSINFO\""
46867 fi
46868
46869 cat >>confdefs.h <<_ACEOF
46870 #define WXWIN_OS_DESCRIPTION $OSINFO
46871 _ACEOF
46872
46873
46874
46875 if test "x$prefix" != "xNONE"; then
46876     wxPREFIX=$prefix
46877 else
46878     wxPREFIX=$ac_default_prefix
46879 fi
46880
46881 cat >>confdefs.h <<_ACEOF
46882 #define wxINSTALL_PREFIX "$wxPREFIX"
46883 _ACEOF
46884
46885
46886
46887
46888 STD_BASE_LIBS="base"
46889 STD_GUI_LIBS=""
46890 BUILT_WX_LIBS="base"
46891 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46892
46893 if test "$wxUSE_SOCKETS" = "yes" ; then
46894     STD_BASE_LIBS="net $STD_BASE_LIBS"
46895     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46896 fi
46897 if test "$wxUSE_XML" = "yes" ; then
46898     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46899     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46900 fi
46901
46902 if test "$wxUSE_GUI" = "yes"; then
46903     STD_GUI_LIBS="adv core"
46904     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46905
46906     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46907         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46908         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46909     fi
46910     if test "$wxUSE_HTML" = "yes" ; then
46911         STD_GUI_LIBS="html $STD_GUI_LIBS"
46912         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46913     fi
46914     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46915         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46916     fi
46917     if test "$wxUSE_OPENGL" = "yes" ; then
46918         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46919     fi
46920     if test "$wxUSE_AUI" = "yes" ; then
46921         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46922     fi
46923     if test "$wxUSE_PROPGRID" = "yes" ; then
46924         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
46925     fi
46926     if test "$wxUSE_RICHTEXT" = "yes" ; then
46927         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
46928     fi
46929     if test "$wxUSE_STC" = "yes" ; then
46930         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46931     fi
46932     if test "$wxUSE_XRC" = "yes" ; then
46933         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46934         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46935     fi
46936 fi
46937
46938
46939
46940
46941
46942
46943
46944
46945 if test "$wxUSE_MAC" = 1 ; then
46946     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46947         if test "$USE_DARWIN" = 1; then
46948             LDFLAGS="$LDFLAGS -framework QuickTime"
46949         fi
46950     fi
46951     if test "$USE_DARWIN" = 1; then
46952         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
46953     fi
46954 fi
46955 if test "$wxUSE_COCOA" = 1 ; then
46956     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46957     if test "$wxUSE_MEDIACTRL" = "yes"; then
46958         LDFLAGS="$LDFLAGS -framework QuickTime"
46959     fi
46960 fi
46961 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46962     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46963 fi
46964
46965 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46966
46967 if test "$wxUSE_GUI" = "yes"; then
46968
46969
46970         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46971                      erase event exec font image minimal render \
46972                      shaped svg taborder vscroll widgets wrapsizer"
46973
46974     if test "$wxUSE_MONOLITHIC" != "yes"; then
46975         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46976     fi
46977     if test "$TOOLKIT" = "MSW"; then
46978         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46979         if test "$wxUSE_UNIVERSAL" != "yes"; then
46980             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46981         fi
46982     fi
46983     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46984         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46985     fi
46986 else
46987     SAMPLES_SUBDIRS="console"
46988     if test "$wxUSE_SOCKETS" = "yes" ; then
46989         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46990     fi
46991     if test "$wxUSE_IPC" = "yes" ; then
46992         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46993     fi
46994 fi
46995
46996
46997 if test "x$INTELCC" = "xyes" ; then
46998                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
46999 elif test "$GCC" = yes ; then
47000     CWARNINGS="-Wall -Wundef"
47001 fi
47002
47003 if test "x$INTELCXX" = "xyes" ; then
47004                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
47005 elif test "$GXX" = yes ; then
47006     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47007     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
47008 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
47009 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
47010   echo $ECHO_N "(cached) $ECHO_C" >&6
47011 else
47012   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
47013
47014  ac_ext=cpp
47015 ac_cpp='$CXXCPP $CPPFLAGS'
47016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47019
47020  ac_save_CXXFLAGS="$CXXFLAGS"
47021 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
47022 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
47023    cat >conftest.$ac_ext <<_ACEOF
47024 /* confdefs.h.  */
47025 _ACEOF
47026 cat confdefs.h >>conftest.$ac_ext
47027 cat >>conftest.$ac_ext <<_ACEOF
47028 /* end confdefs.h.  */
47029
47030 int
47031 main ()
47032 {
47033 return 0;
47034   ;
47035   return 0;
47036 }
47037 _ACEOF
47038 rm -f conftest.$ac_objext
47039 if { (ac_try="$ac_compile"
47040 case "(($ac_try" in
47041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47042   *) ac_try_echo=$ac_try;;
47043 esac
47044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47045   (eval "$ac_compile") 2>conftest.er1
47046   ac_status=$?
47047   grep -v '^ *+' conftest.er1 >conftest.err
47048   rm -f conftest.er1
47049   cat conftest.err >&5
47050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47051   (exit $ac_status); } && {
47052          test -z "$ac_cxx_werror_flag" ||
47053          test ! -s conftest.err
47054        } && test -s conftest.$ac_objext; then
47055   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
47056 else
47057   echo "$as_me: failed program was:" >&5
47058 sed 's/^/| /' conftest.$ac_ext >&5
47059
47060
47061 fi
47062
47063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47064 done
47065  CXXFLAGS="$ac_save_CXXFLAGS"
47066  ac_ext=c
47067 ac_cpp='$CPP $CPPFLAGS'
47068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47071
47072
47073 fi
47074 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
47075 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
47076 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
47077      .ok|.ok,*)  ;;
47078    .|.no|.no,*)  ;;
47079    *)
47080    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
47081    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
47082   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
47083   ac_status=$?
47084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47085   (exit $ac_status); }
47086    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
47087   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
47088   ac_status=$?
47089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47090   (exit $ac_status); }
47091                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
47092    fi
47093  ;;
47094 esac
47095
47096 fi
47097
47098
47099 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47100 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47101
47102
47103 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47104  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47105  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47106  $CPPFLAGS `
47107
47108 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47109 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47110 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47111 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47112 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47113
47114 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47115
47116
47117 if test "x$MWCC" = "xyes"; then
47118
47119             CC="$CC -cwd source -I-"
47120     CXX="$CXX -cwd source -I-"
47121 fi
47122
47123
47124 LIBS=`echo $LIBS`
47125 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47126 EXTRALIBS_XML="$EXPAT_LINK"
47127 EXTRALIBS_HTML="$MSPACK_LINK"
47128 EXTRALIBS_MEDIA="$GST_LIBS"
47129 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47130 if test "$wxUSE_GUI" = "yes"; then
47131     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47132 fi
47133 if test "$wxUSE_OPENGL" = "yes"; then
47134     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47135 fi
47136
47137 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47138
47139 WXCONFIG_LIBS="$LIBS"
47140
47141 if test "$wxUSE_REGEX" = "builtin" ; then
47142     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47143 fi
47144 if test "$wxUSE_EXPAT" = "builtin" ; then
47145     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47146 fi
47147 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47148     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47149 fi
47150 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47151     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47152 fi
47153 if test "$wxUSE_LIBPNG" = "builtin" ; then
47154     wxconfig_3rdparty="png $wxconfig_3rdparty"
47155 fi
47156 if test "$wxUSE_ZLIB" = "builtin" ; then
47157     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47158 fi
47159
47160 for i in $wxconfig_3rdparty ; do
47161     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47162 done
47163
47164
47165 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47166     WXUNIV=1
47167
47168     case "$wxUNIV_THEMES" in
47169         ''|all)
47170             cat >>confdefs.h <<\_ACEOF
47171 #define wxUSE_ALL_THEMES 1
47172 _ACEOF
47173
47174             ;;
47175
47176         *)
47177             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47178                 cat >>confdefs.h <<_ACEOF
47179 #define wxUSE_THEME_$t 1
47180 _ACEOF
47181
47182             done
47183     esac
47184 else
47185     WXUNIV=0
47186 fi
47187
47188
47189
47190
47191
47192
47193
47194
47195 if test $wxUSE_MONOLITHIC = "yes" ; then
47196     MONOLITHIC=1
47197 else
47198     MONOLITHIC=0
47199 fi
47200
47201 if test $wxUSE_PLUGINS = "yes" ; then
47202     USE_PLUGINS=1
47203 else
47204     USE_PLUGINS=0
47205 fi
47206
47207 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47208     USE_QA=1
47209 else
47210     USE_QA=0
47211 fi
47212
47213 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47214     OFFICIAL_BUILD=1
47215 else
47216     OFFICIAL_BUILD=0
47217 fi
47218
47219
47220
47221
47222
47223
47224
47225
47226
47227
47228
47229
47230
47231
47232
47233
47234
47235
47236
47237
47238
47239
47240
47241
47242
47243
47244
47245
47246 TOOLKIT_LOWERCASE=xxx
47247 if test "$TOOLKIT" = "MAC"; then
47248     TOOLKIT_LOWERCASE=osx_carbon
47249 fi
47250 if test "$TOOLKIT" = "OSX_CARBON"; then
47251     TOOLKIT_LOWERCASE=osx_carbon
47252 fi
47253 if test "$TOOLKIT" = "OSX_COCOA"; then
47254     TOOLKIT_LOWERCASE=osx_cocoa
47255 fi
47256 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47257     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47258 fi
47259
47260
47261
47262
47263
47264
47265
47266
47267
47268
47269 case "$TOOLKIT" in
47270     GTK)
47271         TOOLKIT_DESC="GTK+"
47272         if test "$WXGTK2" = 1; then
47273             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47274             if test "$wxUSE_GTKPRINT" = "yes" ; then
47275                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47276             fi
47277             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47278                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47279             fi
47280             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47281                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47282             fi
47283             if test "$wxUSE_LIBHILDON" = "yes"; then
47284                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47285             fi
47286
47287             if test "$TOOLKIT_EXTRA" != ""; then
47288                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47289             fi
47290         fi
47291         ;;
47292
47293     ?*)
47294         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47295         ;;
47296
47297     *)
47298         TOOLKIT_DESC="base only"
47299         ;;
47300 esac
47301
47302 if test "$wxUSE_WINE" = "yes"; then
47303     BAKEFILE_FORCE_PLATFORM=win32
47304 fi
47305
47306 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47307 then
47308     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47309 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47310 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47311   echo $ECHO_N "(cached) $ECHO_C" >&6
47312 else
47313
47314             echo '#include <stdio.h>
47315                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47316
47317             echo '#include "conftest.h"
47318                   int main()
47319                   {
47320                      printf("%ls", test_var);
47321                      return 0;
47322                   }' > conftest.cpp
47323
47324             wx_cv_gcc_pch_bug="pch not supported"
47325
47326             if $CXX conftest.h >/dev/null 2>&1
47327             then
47328                 wx_cv_gcc_pch_bug=
47329
47330                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47331                 then
47332                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47333                         grep awidetest >/dev/null
47334                     then
47335                         wx_cv_gcc_pch_bug=no
47336                     else
47337                         wx_cv_gcc_pch_bug=yes
47338                     fi
47339                 fi
47340             fi
47341
47342             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47343
47344 fi
47345 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47346 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47347
47348     if test "$wx_cv_gcc_pch_bug" = yes; then
47349                         bk_use_pch=no
47350     fi
47351 fi
47352
47353
47354
47355
47356
47357
47358
47359     if test "x$BAKEFILE_HOST" = "x"; then
47360                if test "x${host}" = "x" ; then
47361                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47362 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47363    { (exit 1); exit 1; }; }
47364                fi
47365
47366         BAKEFILE_HOST="${host}"
47367     fi
47368
47369     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47370
47371     if test -n "$ac_tool_prefix"; then
47372   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47376 if test "${ac_cv_prog_RANLIB+set}" = set; then
47377   echo $ECHO_N "(cached) $ECHO_C" >&6
47378 else
47379   if test -n "$RANLIB"; then
47380   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47381 else
47382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47383 for as_dir in $PATH
47384 do
47385   IFS=$as_save_IFS
47386   test -z "$as_dir" && as_dir=.
47387   for ac_exec_ext in '' $ac_executable_extensions; do
47388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47389     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47391     break 2
47392   fi
47393 done
47394 done
47395 IFS=$as_save_IFS
47396
47397 fi
47398 fi
47399 RANLIB=$ac_cv_prog_RANLIB
47400 if test -n "$RANLIB"; then
47401   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47402 echo "${ECHO_T}$RANLIB" >&6; }
47403 else
47404   { echo "$as_me:$LINENO: result: no" >&5
47405 echo "${ECHO_T}no" >&6; }
47406 fi
47407
47408
47409 fi
47410 if test -z "$ac_cv_prog_RANLIB"; then
47411   ac_ct_RANLIB=$RANLIB
47412   # Extract the first word of "ranlib", so it can be a program name with args.
47413 set dummy ranlib; ac_word=$2
47414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47417   echo $ECHO_N "(cached) $ECHO_C" >&6
47418 else
47419   if test -n "$ac_ct_RANLIB"; then
47420   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47421 else
47422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47423 for as_dir in $PATH
47424 do
47425   IFS=$as_save_IFS
47426   test -z "$as_dir" && as_dir=.
47427   for ac_exec_ext in '' $ac_executable_extensions; do
47428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47429     ac_cv_prog_ac_ct_RANLIB="ranlib"
47430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47431     break 2
47432   fi
47433 done
47434 done
47435 IFS=$as_save_IFS
47436
47437 fi
47438 fi
47439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47440 if test -n "$ac_ct_RANLIB"; then
47441   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47442 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47443 else
47444   { echo "$as_me:$LINENO: result: no" >&5
47445 echo "${ECHO_T}no" >&6; }
47446 fi
47447
47448   if test "x$ac_ct_RANLIB" = x; then
47449     RANLIB=":"
47450   else
47451     case $cross_compiling:$ac_tool_warned in
47452 yes:)
47453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47454 whose name does not start with the host triplet.  If you think this
47455 configuration is useful to you, please write to autoconf@gnu.org." >&5
47456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47457 whose name does not start with the host triplet.  If you think this
47458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47459 ac_tool_warned=yes ;;
47460 esac
47461     RANLIB=$ac_ct_RANLIB
47462   fi
47463 else
47464   RANLIB="$ac_cv_prog_RANLIB"
47465 fi
47466
47467     # Find a good install program.  We prefer a C program (faster),
47468 # so one script is as good as another.  But avoid the broken or
47469 # incompatible versions:
47470 # SysV /etc/install, /usr/sbin/install
47471 # SunOS /usr/etc/install
47472 # IRIX /sbin/install
47473 # AIX /bin/install
47474 # AmigaOS /C/install, which installs bootblocks on floppy discs
47475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47478 # OS/2's system install, which has a completely different semantic
47479 # ./install, which can be erroneously created by make from ./install.sh.
47480 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47481 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47482 if test -z "$INSTALL"; then
47483 if test "${ac_cv_path_install+set}" = set; then
47484   echo $ECHO_N "(cached) $ECHO_C" >&6
47485 else
47486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47487 for as_dir in $PATH
47488 do
47489   IFS=$as_save_IFS
47490   test -z "$as_dir" && as_dir=.
47491   # Account for people who put trailing slashes in PATH elements.
47492 case $as_dir/ in
47493   ./ | .// | /cC/* | \
47494   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47495   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47496   /usr/ucb/* ) ;;
47497   *)
47498     # OSF1 and SCO ODT 3.0 have their own names for install.
47499     # Don't use installbsd from OSF since it installs stuff as root
47500     # by default.
47501     for ac_prog in ginstall scoinst install; do
47502       for ac_exec_ext in '' $ac_executable_extensions; do
47503         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47504           if test $ac_prog = install &&
47505             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47506             # AIX install.  It has an incompatible calling convention.
47507             :
47508           elif test $ac_prog = install &&
47509             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47510             # program-specific install script used by HP pwplus--don't use.
47511             :
47512           else
47513             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47514             break 3
47515           fi
47516         fi
47517       done
47518     done
47519     ;;
47520 esac
47521 done
47522 IFS=$as_save_IFS
47523
47524
47525 fi
47526   if test "${ac_cv_path_install+set}" = set; then
47527     INSTALL=$ac_cv_path_install
47528   else
47529     # As a last resort, use the slow shell script.  Don't cache a
47530     # value for INSTALL within a source directory, because that will
47531     # break other packages using the cache if that directory is
47532     # removed, or if the value is a relative name.
47533     INSTALL=$ac_install_sh
47534   fi
47535 fi
47536 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47537 echo "${ECHO_T}$INSTALL" >&6; }
47538
47539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47540 # It thinks the first close brace ends the variable substitution.
47541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47542
47543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47544
47545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47546
47547     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47549 LN_S=$as_ln_s
47550 if test "$LN_S" = "ln -s"; then
47551   { echo "$as_me:$LINENO: result: yes" >&5
47552 echo "${ECHO_T}yes" >&6; }
47553 else
47554   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47555 echo "${ECHO_T}no, using $LN_S" >&6; }
47556 fi
47557
47558
47559     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47560 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47561 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47562 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47563   echo $ECHO_N "(cached) $ECHO_C" >&6
47564 else
47565   cat >conftest.make <<\_ACEOF
47566 SHELL = /bin/sh
47567 all:
47568         @echo '@@@%%%=$(MAKE)=@@@%%%'
47569 _ACEOF
47570 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47571 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47572   *@@@%%%=?*=@@@%%%*)
47573     eval ac_cv_prog_make_${ac_make}_set=yes;;
47574   *)
47575     eval ac_cv_prog_make_${ac_make}_set=no;;
47576 esac
47577 rm -f conftest.make
47578 fi
47579 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47580   { echo "$as_me:$LINENO: result: yes" >&5
47581 echo "${ECHO_T}yes" >&6; }
47582   SET_MAKE=
47583 else
47584   { echo "$as_me:$LINENO: result: no" >&5
47585 echo "${ECHO_T}no" >&6; }
47586   SET_MAKE="MAKE=${MAKE-make}"
47587 fi
47588
47589
47590
47591     if test "x$SUNCXX" = "xyes"; then
47592                                 AR=$CXX
47593         AROPTIONS="-xar -o"
47594
47595     elif test "x$SGICC" = "xyes"; then
47596                 AR=$CXX
47597         AROPTIONS="-ar -o"
47598
47599     else
47600         if test -n "$ac_tool_prefix"; then
47601   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47602 set dummy ${ac_tool_prefix}ar; ac_word=$2
47603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47605 if test "${ac_cv_prog_AR+set}" = set; then
47606   echo $ECHO_N "(cached) $ECHO_C" >&6
47607 else
47608   if test -n "$AR"; then
47609   ac_cv_prog_AR="$AR" # Let the user override the test.
47610 else
47611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47612 for as_dir in $PATH
47613 do
47614   IFS=$as_save_IFS
47615   test -z "$as_dir" && as_dir=.
47616   for ac_exec_ext in '' $ac_executable_extensions; do
47617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47618     ac_cv_prog_AR="${ac_tool_prefix}ar"
47619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47620     break 2
47621   fi
47622 done
47623 done
47624 IFS=$as_save_IFS
47625
47626 fi
47627 fi
47628 AR=$ac_cv_prog_AR
47629 if test -n "$AR"; then
47630   { echo "$as_me:$LINENO: result: $AR" >&5
47631 echo "${ECHO_T}$AR" >&6; }
47632 else
47633   { echo "$as_me:$LINENO: result: no" >&5
47634 echo "${ECHO_T}no" >&6; }
47635 fi
47636
47637
47638 fi
47639 if test -z "$ac_cv_prog_AR"; then
47640   ac_ct_AR=$AR
47641   # Extract the first word of "ar", so it can be a program name with args.
47642 set dummy ar; ac_word=$2
47643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47646   echo $ECHO_N "(cached) $ECHO_C" >&6
47647 else
47648   if test -n "$ac_ct_AR"; then
47649   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47650 else
47651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47652 for as_dir in $PATH
47653 do
47654   IFS=$as_save_IFS
47655   test -z "$as_dir" && as_dir=.
47656   for ac_exec_ext in '' $ac_executable_extensions; do
47657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47658     ac_cv_prog_ac_ct_AR="ar"
47659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47660     break 2
47661   fi
47662 done
47663 done
47664 IFS=$as_save_IFS
47665
47666 fi
47667 fi
47668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47669 if test -n "$ac_ct_AR"; then
47670   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47671 echo "${ECHO_T}$ac_ct_AR" >&6; }
47672 else
47673   { echo "$as_me:$LINENO: result: no" >&5
47674 echo "${ECHO_T}no" >&6; }
47675 fi
47676
47677   if test "x$ac_ct_AR" = x; then
47678     AR="ar"
47679   else
47680     case $cross_compiling:$ac_tool_warned in
47681 yes:)
47682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47683 whose name does not start with the host triplet.  If you think this
47684 configuration is useful to you, please write to autoconf@gnu.org." >&5
47685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47686 whose name does not start with the host triplet.  If you think this
47687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47688 ac_tool_warned=yes ;;
47689 esac
47690     AR=$ac_ct_AR
47691   fi
47692 else
47693   AR="$ac_cv_prog_AR"
47694 fi
47695
47696         AROPTIONS=rcu
47697     fi
47698
47699
47700     if test -n "$ac_tool_prefix"; then
47701   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47702 set dummy ${ac_tool_prefix}strip; ac_word=$2
47703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47705 if test "${ac_cv_prog_STRIP+set}" = set; then
47706   echo $ECHO_N "(cached) $ECHO_C" >&6
47707 else
47708   if test -n "$STRIP"; then
47709   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47710 else
47711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47712 for as_dir in $PATH
47713 do
47714   IFS=$as_save_IFS
47715   test -z "$as_dir" && as_dir=.
47716   for ac_exec_ext in '' $ac_executable_extensions; do
47717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47718     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47720     break 2
47721   fi
47722 done
47723 done
47724 IFS=$as_save_IFS
47725
47726 fi
47727 fi
47728 STRIP=$ac_cv_prog_STRIP
47729 if test -n "$STRIP"; then
47730   { echo "$as_me:$LINENO: result: $STRIP" >&5
47731 echo "${ECHO_T}$STRIP" >&6; }
47732 else
47733   { echo "$as_me:$LINENO: result: no" >&5
47734 echo "${ECHO_T}no" >&6; }
47735 fi
47736
47737
47738 fi
47739 if test -z "$ac_cv_prog_STRIP"; then
47740   ac_ct_STRIP=$STRIP
47741   # Extract the first word of "strip", so it can be a program name with args.
47742 set dummy strip; ac_word=$2
47743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47745 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47746   echo $ECHO_N "(cached) $ECHO_C" >&6
47747 else
47748   if test -n "$ac_ct_STRIP"; then
47749   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47750 else
47751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47752 for as_dir in $PATH
47753 do
47754   IFS=$as_save_IFS
47755   test -z "$as_dir" && as_dir=.
47756   for ac_exec_ext in '' $ac_executable_extensions; do
47757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47758     ac_cv_prog_ac_ct_STRIP="strip"
47759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47760     break 2
47761   fi
47762 done
47763 done
47764 IFS=$as_save_IFS
47765
47766 fi
47767 fi
47768 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47769 if test -n "$ac_ct_STRIP"; then
47770   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47771 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47772 else
47773   { echo "$as_me:$LINENO: result: no" >&5
47774 echo "${ECHO_T}no" >&6; }
47775 fi
47776
47777   if test "x$ac_ct_STRIP" = x; then
47778     STRIP=":"
47779   else
47780     case $cross_compiling:$ac_tool_warned in
47781 yes:)
47782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47783 whose name does not start with the host triplet.  If you think this
47784 configuration is useful to you, please write to autoconf@gnu.org." >&5
47785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47786 whose name does not start with the host triplet.  If you think this
47787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47788 ac_tool_warned=yes ;;
47789 esac
47790     STRIP=$ac_ct_STRIP
47791   fi
47792 else
47793   STRIP="$ac_cv_prog_STRIP"
47794 fi
47795
47796     if test -n "$ac_tool_prefix"; then
47797   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47798 set dummy ${ac_tool_prefix}nm; ac_word=$2
47799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47801 if test "${ac_cv_prog_NM+set}" = set; then
47802   echo $ECHO_N "(cached) $ECHO_C" >&6
47803 else
47804   if test -n "$NM"; then
47805   ac_cv_prog_NM="$NM" # Let the user override the test.
47806 else
47807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47808 for as_dir in $PATH
47809 do
47810   IFS=$as_save_IFS
47811   test -z "$as_dir" && as_dir=.
47812   for ac_exec_ext in '' $ac_executable_extensions; do
47813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47814     ac_cv_prog_NM="${ac_tool_prefix}nm"
47815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47816     break 2
47817   fi
47818 done
47819 done
47820 IFS=$as_save_IFS
47821
47822 fi
47823 fi
47824 NM=$ac_cv_prog_NM
47825 if test -n "$NM"; then
47826   { echo "$as_me:$LINENO: result: $NM" >&5
47827 echo "${ECHO_T}$NM" >&6; }
47828 else
47829   { echo "$as_me:$LINENO: result: no" >&5
47830 echo "${ECHO_T}no" >&6; }
47831 fi
47832
47833
47834 fi
47835 if test -z "$ac_cv_prog_NM"; then
47836   ac_ct_NM=$NM
47837   # Extract the first word of "nm", so it can be a program name with args.
47838 set dummy nm; ac_word=$2
47839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47841 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47842   echo $ECHO_N "(cached) $ECHO_C" >&6
47843 else
47844   if test -n "$ac_ct_NM"; then
47845   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47846 else
47847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47848 for as_dir in $PATH
47849 do
47850   IFS=$as_save_IFS
47851   test -z "$as_dir" && as_dir=.
47852   for ac_exec_ext in '' $ac_executable_extensions; do
47853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47854     ac_cv_prog_ac_ct_NM="nm"
47855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47856     break 2
47857   fi
47858 done
47859 done
47860 IFS=$as_save_IFS
47861
47862 fi
47863 fi
47864 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47865 if test -n "$ac_ct_NM"; then
47866   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47867 echo "${ECHO_T}$ac_ct_NM" >&6; }
47868 else
47869   { echo "$as_me:$LINENO: result: no" >&5
47870 echo "${ECHO_T}no" >&6; }
47871 fi
47872
47873   if test "x$ac_ct_NM" = x; then
47874     NM=":"
47875   else
47876     case $cross_compiling:$ac_tool_warned in
47877 yes:)
47878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47879 whose name does not start with the host triplet.  If you think this
47880 configuration is useful to you, please write to autoconf@gnu.org." >&5
47881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47882 whose name does not start with the host triplet.  If you think this
47883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47884 ac_tool_warned=yes ;;
47885 esac
47886     NM=$ac_ct_NM
47887   fi
47888 else
47889   NM="$ac_cv_prog_NM"
47890 fi
47891
47892
47893             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47894 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47895     INSTALL_TEST_DIR=acbftest$$
47896     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47897     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47898         rmdir $INSTALL_TEST_DIR
47899                         INSTALL_DIR='$(INSTALL) -d'
47900         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47901 echo "${ECHO_T}$INSTALL -d" >&6; }
47902     else
47903         INSTALL_DIR="mkdir -p"
47904         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47905 echo "${ECHO_T}mkdir -p" >&6; }
47906     fi
47907
47908
47909     LDFLAGS_GUI=
47910     case ${BAKEFILE_HOST} in
47911         *-*-cygwin* | *-*-mingw32* )
47912         LDFLAGS_GUI="-mwindows"
47913     esac
47914
47915
47916     fi
47917
47918         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47919 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47920 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47921   echo $ECHO_N "(cached) $ECHO_C" >&6
47922 else
47923
47924         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47925                 egrep -s GNU > /dev/null); then
47926             bakefile_cv_prog_makeisgnu="yes"
47927         else
47928             bakefile_cv_prog_makeisgnu="no"
47929         fi
47930
47931 fi
47932 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47933 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47934
47935     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47936         IF_GNU_MAKE=""
47937     else
47938         IF_GNU_MAKE="#"
47939     fi
47940
47941
47942
47943     PLATFORM_UNIX=0
47944     PLATFORM_WIN32=0
47945     PLATFORM_MSDOS=0
47946     PLATFORM_MAC=0
47947     PLATFORM_MACOS=0
47948     PLATFORM_MACOSX=0
47949     PLATFORM_OS2=0
47950     PLATFORM_BEOS=0
47951
47952     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47953         case "${BAKEFILE_HOST}" in
47954             *-*-mingw32* )
47955                 PLATFORM_WIN32=1
47956             ;;
47957             *-pc-msdosdjgpp )
47958                 PLATFORM_MSDOS=1
47959             ;;
47960             *-pc-os2_emx | *-pc-os2-emx )
47961                 PLATFORM_OS2=1
47962             ;;
47963             *-*-darwin* )
47964                 PLATFORM_MAC=1
47965                 PLATFORM_MACOSX=1
47966             ;;
47967             *-*-beos* )
47968                 PLATFORM_BEOS=1
47969             ;;
47970             powerpc-apple-macos* )
47971                 PLATFORM_MAC=1
47972                 PLATFORM_MACOS=1
47973             ;;
47974             * )
47975                 PLATFORM_UNIX=1
47976             ;;
47977         esac
47978     else
47979         case "$BAKEFILE_FORCE_PLATFORM" in
47980             win32 )
47981                 PLATFORM_WIN32=1
47982             ;;
47983             msdos )
47984                 PLATFORM_MSDOS=1
47985             ;;
47986             os2 )
47987                 PLATFORM_OS2=1
47988             ;;
47989             darwin )
47990                 PLATFORM_MAC=1
47991                 PLATFORM_MACOSX=1
47992             ;;
47993             unix )
47994                 PLATFORM_UNIX=1
47995             ;;
47996             beos )
47997                 PLATFORM_BEOS=1
47998             ;;
47999             * )
48000                                             ;;
48001         esac
48002     fi
48003
48004
48005
48006
48007
48008
48009
48010
48011
48012
48013
48014     # Check whether --enable-omf was given.
48015 if test "${enable_omf+set}" = set; then
48016   enableval=$enable_omf; bk_os2_use_omf="$enableval"
48017 fi
48018
48019
48020     case "${BAKEFILE_HOST}" in
48021       *-*-darwin* )
48022                         if test "x$GCC" = "xyes"; then
48023             CFLAGS="$CFLAGS -fno-common"
48024             CXXFLAGS="$CXXFLAGS -fno-common"
48025         fi
48026         if test "x$XLCC" = "xyes"; then
48027             CFLAGS="$CFLAGS -qnocommon"
48028             CXXFLAGS="$CXXFLAGS -qnocommon"
48029         fi
48030         ;;
48031
48032       *-pc-os2_emx | *-pc-os2-emx )
48033         if test "x$bk_os2_use_omf" = "xyes" ; then
48034             AR=emxomfar
48035             RANLIB=:
48036             LDFLAGS="-Zomf $LDFLAGS"
48037             CFLAGS="-Zomf $CFLAGS"
48038             CXXFLAGS="-Zomf $CXXFLAGS"
48039             OS2_LIBEXT="lib"
48040         else
48041             OS2_LIBEXT="a"
48042         fi
48043         ;;
48044
48045       i*86-*-beos* )
48046         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48047         ;;
48048     esac
48049
48050
48051     SO_SUFFIX="so"
48052     SO_SUFFIX_MODULE="so"
48053     EXEEXT=""
48054     LIBPREFIX="lib"
48055     LIBEXT=".a"
48056     DLLPREFIX="lib"
48057     DLLPREFIX_MODULE=""
48058     DLLIMP_SUFFIX=""
48059     dlldir="$libdir"
48060
48061     case "${BAKEFILE_HOST}" in
48062                         ia64-hp-hpux* )
48063         ;;
48064         *-hp-hpux* )
48065             SO_SUFFIX="sl"
48066             SO_SUFFIX_MODULE="sl"
48067         ;;
48068         *-*-aix* )
48069                                                                         SO_SUFFIX="a"
48070             SO_SUFFIX_MODULE="a"
48071         ;;
48072         *-*-cygwin* )
48073             SO_SUFFIX="dll"
48074             SO_SUFFIX_MODULE="dll"
48075             DLLIMP_SUFFIX="dll.a"
48076             EXEEXT=".exe"
48077             DLLPREFIX="cyg"
48078             dlldir="$bindir"
48079         ;;
48080         *-*-mingw32* )
48081             SO_SUFFIX="dll"
48082             SO_SUFFIX_MODULE="dll"
48083             DLLIMP_SUFFIX="dll.a"
48084             EXEEXT=".exe"
48085             DLLPREFIX=""
48086             dlldir="$bindir"
48087         ;;
48088         *-pc-msdosdjgpp )
48089             EXEEXT=".exe"
48090             DLLPREFIX=""
48091             dlldir="$bindir"
48092         ;;
48093         *-pc-os2_emx | *-pc-os2-emx )
48094             SO_SUFFIX="dll"
48095             SO_SUFFIX_MODULE="dll"
48096             DLLIMP_SUFFIX=$OS2_LIBEXT
48097             EXEEXT=".exe"
48098             DLLPREFIX=""
48099             LIBPREFIX=""
48100             LIBEXT=".$OS2_LIBEXT"
48101             dlldir="$bindir"
48102         ;;
48103         *-*-darwin* )
48104             SO_SUFFIX="dylib"
48105             SO_SUFFIX_MODULE="bundle"
48106         ;;
48107     esac
48108
48109     if test "x$DLLIMP_SUFFIX" = "x" ; then
48110         DLLIMP_SUFFIX="$SO_SUFFIX"
48111     fi
48112
48113
48114
48115
48116
48117
48118
48119
48120
48121
48122
48123
48124         PIC_FLAG=""
48125     if test "x$GCC" = "xyes"; then
48126                 PIC_FLAG="-fPIC"
48127     fi
48128
48129         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48130     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48131     WINDOWS_IMPLIB=0
48132
48133     case "${BAKEFILE_HOST}" in
48134       *-hp-hpux* )
48135                 if test "x$GCC" != "xyes"; then
48136                         LDFLAGS="$LDFLAGS -L/usr/lib"
48137
48138             SHARED_LD_CC="${CC} -b -o"
48139             SHARED_LD_CXX="${CXX} -b -o"
48140             PIC_FLAG="+Z"
48141         fi
48142       ;;
48143
48144       *-*-linux* )
48145                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48146             PIC_FLAG="-KPIC"
48147         elif test "x$SUNCXX" = "xyes"; then
48148             SHARED_LD_CC="${CC} -G -o"
48149             SHARED_LD_CXX="${CXX} -G -o"
48150             PIC_FLAG="-KPIC"
48151         fi
48152       ;;
48153
48154       *-*-solaris2* )
48155         if test "x$SUNCXX" = xyes ; then
48156             SHARED_LD_CC="${CC} -G -o"
48157             SHARED_LD_CXX="${CXX} -G -o"
48158             PIC_FLAG="-KPIC"
48159         fi
48160       ;;
48161
48162       *-*-darwin* )
48163
48164 D='$'
48165 cat <<EOF >shared-ld-sh
48166 #!/bin/sh
48167 #-----------------------------------------------------------------------------
48168 #-- Name:        distrib/mac/shared-ld-sh
48169 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48170 #-- Author:      Gilles Depeyrot
48171 #-- Copyright:   (c) 2002 Gilles Depeyrot
48172 #-- Licence:     any use permitted
48173 #-----------------------------------------------------------------------------
48174
48175 verbose=0
48176 args=""
48177 objects=""
48178 linking_flag="-dynamiclib"
48179 ldargs="-r -keep_private_externs -nostdlib"
48180
48181 if test "x${D}CXX" = "x"; then
48182     CXX="c++"
48183 fi
48184
48185 while test ${D}# -gt 0; do
48186     case ${D}1 in
48187
48188        -v)
48189         verbose=1
48190         ;;
48191
48192        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48193         # collect these options and values
48194         args="${D}{args} ${D}1 ${D}2"
48195         shift
48196         ;;
48197
48198        -arch|-isysroot)
48199         # collect these options and values
48200         ldargs="${D}{ldargs} ${D}1 ${D}2"
48201         shift
48202         ;;
48203
48204        -s|-Wl,*)
48205         # collect these load args
48206         ldargs="${D}{ldargs} ${D}1"
48207         ;;
48208
48209        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48210         # collect these options
48211         args="${D}{args} ${D}1"
48212         ;;
48213
48214        -dynamiclib|-bundle)
48215         linking_flag="${D}1"
48216         ;;
48217
48218        -*)
48219         echo "shared-ld: unhandled option '${D}1'"
48220         exit 1
48221         ;;
48222
48223         *.o | *.a | *.dylib)
48224         # collect object files
48225         objects="${D}{objects} ${D}1"
48226         ;;
48227
48228         *)
48229         echo "shared-ld: unhandled argument '${D}1'"
48230         exit 1
48231         ;;
48232
48233     esac
48234     shift
48235 done
48236
48237 status=0
48238
48239 #
48240 # Link one module containing all the others
48241 #
48242 if test ${D}{verbose} = 1; then
48243     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48244 fi
48245 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48246 status=${D}?
48247
48248 #
48249 # Link the shared library from the single module created, but only if the
48250 # previous command didn't fail:
48251 #
48252 if test ${D}{status} = 0; then
48253     if test ${D}{verbose} = 1; then
48254         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48255     fi
48256     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48257     status=${D}?
48258 fi
48259
48260 #
48261 # Remove intermediate module
48262 #
48263 rm -f master.${D}${D}.o
48264
48265 exit ${D}status
48266 EOF
48267
48268         chmod +x shared-ld-sh
48269
48270         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48271         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48272
48273
48274                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48275 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48276 if test "${bakefile_cv_gcc31+set}" = set; then
48277   echo $ECHO_N "(cached) $ECHO_C" >&6
48278 else
48279
48280            cat >conftest.$ac_ext <<_ACEOF
48281 /* confdefs.h.  */
48282 _ACEOF
48283 cat confdefs.h >>conftest.$ac_ext
48284 cat >>conftest.$ac_ext <<_ACEOF
48285 /* end confdefs.h.  */
48286
48287 int
48288 main ()
48289 {
48290
48291                    #if (__GNUC__ < 3) || \
48292                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48293                        This is old gcc
48294                    #endif
48295
48296   ;
48297   return 0;
48298 }
48299 _ACEOF
48300 rm -f conftest.$ac_objext
48301 if { (ac_try="$ac_compile"
48302 case "(($ac_try" in
48303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48304   *) ac_try_echo=$ac_try;;
48305 esac
48306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48307   (eval "$ac_compile") 2>conftest.er1
48308   ac_status=$?
48309   grep -v '^ *+' conftest.er1 >conftest.err
48310   rm -f conftest.er1
48311   cat conftest.err >&5
48312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48313   (exit $ac_status); } && {
48314          test -z "$ac_c_werror_flag" ||
48315          test ! -s conftest.err
48316        } && test -s conftest.$ac_objext; then
48317
48318                    bakefile_cv_gcc31=yes
48319
48320 else
48321   echo "$as_me: failed program was:" >&5
48322 sed 's/^/| /' conftest.$ac_ext >&5
48323
48324
48325                    bakefile_cv_gcc31=no
48326
48327
48328 fi
48329
48330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48331
48332 fi
48333 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48334 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48335         if test "$bakefile_cv_gcc31" = "no"; then
48336                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48337             SHARED_LD_CXX="$SHARED_LD_CC"
48338         else
48339                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48340             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48341         fi
48342
48343         if test "x$GCC" == "xyes"; then
48344             PIC_FLAG="-dynamic -fPIC"
48345         fi
48346         if test "x$XLCC" = "xyes"; then
48347             PIC_FLAG="-dynamic -DPIC"
48348         fi
48349       ;;
48350
48351       *-*-aix* )
48352         if test "x$GCC" = "xyes"; then
48353                                                             PIC_FLAG=""
48354
48355                                                                                     case "${BAKEFILE_HOST}" in
48356                 *-*-aix5* )
48357                     LD_EXPFULL="-Wl,-bexpfull"
48358                     ;;
48359             esac
48360
48361             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48362             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48363         else
48364                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48365 set dummy makeC++SharedLib; ac_word=$2
48366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48368 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48369   echo $ECHO_N "(cached) $ECHO_C" >&6
48370 else
48371   if test -n "$AIX_CXX_LD"; then
48372   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48373 else
48374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48375 for as_dir in $PATH
48376 do
48377   IFS=$as_save_IFS
48378   test -z "$as_dir" && as_dir=.
48379   for ac_exec_ext in '' $ac_executable_extensions; do
48380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48381     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48383     break 2
48384   fi
48385 done
48386 done
48387 IFS=$as_save_IFS
48388
48389   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48390 fi
48391 fi
48392 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48393 if test -n "$AIX_CXX_LD"; then
48394   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48395 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48396 else
48397   { echo "$as_me:$LINENO: result: no" >&5
48398 echo "${ECHO_T}no" >&6; }
48399 fi
48400
48401
48402             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48403             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48404         fi
48405       ;;
48406
48407       *-*-beos* )
48408                         SHARED_LD_CC="${LD} -nostart -o"
48409         SHARED_LD_CXX="${LD} -nostart -o"
48410       ;;
48411
48412       *-*-irix* )
48413                 if test "x$GCC" != "xyes"; then
48414             PIC_FLAG="-KPIC"
48415         fi
48416       ;;
48417
48418       *-*-cygwin* | *-*-mingw32* )
48419         PIC_FLAG=""
48420         SHARED_LD_CC="\$(CC) -shared -o"
48421         SHARED_LD_CXX="\$(CXX) -shared -o"
48422         WINDOWS_IMPLIB=1
48423       ;;
48424
48425       *-pc-os2_emx | *-pc-os2-emx )
48426         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48427         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48428         PIC_FLAG=""
48429
48430 D='$'
48431 cat <<EOF >dllar.sh
48432 #!/bin/sh
48433 #
48434 # dllar - a tool to build both a .dll and an .a file
48435 # from a set of object (.o) files for EMX/OS2.
48436 #
48437 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48438 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48439 #
48440 #  This script will accept a set of files on the command line.
48441 #  All the public symbols from the .o files will be exported into
48442 #  a .DEF file, then linker will be run (through gcc) against them to
48443 #  build a shared library consisting of all given .o files. All libraries
48444 #  (.a) will be first decompressed into component .o files then act as
48445 #  described above. You can optionally give a description (-d "description")
48446 #  which will be put into .DLL. To see the list of accepted options (as well
48447 #  as command-line format) simply run this program without options. The .DLL
48448 #  is built to be imported by name (there is no guarantee that new versions
48449 #  of the library you build will have same ordinals for same symbols).
48450 #
48451 #  dllar is free software; you can redistribute it and/or modify
48452 #  it under the terms of the GNU General Public License as published by
48453 #  the Free Software Foundation; either version 2, or (at your option)
48454 #  any later version.
48455 #
48456 #  dllar is distributed in the hope that it will be useful,
48457 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48458 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48459 #  GNU General Public License for more details.
48460 #
48461 #  You should have received a copy of the GNU General Public License
48462 #  along with dllar; see the file COPYING.  If not, write to the Free
48463 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48464 #  02111-1307, USA.
48465
48466 # To successfuly run this program you will need:
48467 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48468 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48469 #  - gcc
48470 #    (used to build the .dll)
48471 #  - emxexp
48472 #    (used to create .def file from .o files)
48473 #  - emximp
48474 #    (used to create .a file from .def file)
48475 #  - GNU text utilites (cat, sort, uniq)
48476 #    used to process emxexp output
48477 #  - GNU file utilities (mv, rm)
48478 #  - GNU sed
48479 #  - lxlite (optional, see flag below)
48480 #    (used for general .dll cleanup)
48481 #
48482
48483 flag_USE_LXLITE=1;
48484
48485 #
48486 # helper functions
48487 # basnam, variant of basename, which does _not_ remove the path, _iff_
48488 #                              second argument (suffix to remove) is given
48489 basnam(){
48490     case ${D}# in
48491     1)
48492         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48493         ;;
48494     2)
48495         echo ${D}1 | sed 's/'${D}2'${D}//'
48496         ;;
48497     *)
48498         echo "error in basnam ${D}*"
48499         exit 8
48500         ;;
48501     esac
48502 }
48503
48504 # Cleanup temporary files and output
48505 CleanUp() {
48506     cd ${D}curDir
48507     for i in ${D}inputFiles ; do
48508         case ${D}i in
48509         *!)
48510             rm -rf \`basnam ${D}i !\`
48511             ;;
48512         *)
48513             ;;
48514         esac
48515     done
48516
48517     # Kill result in case of failure as there is just to many stupid make/nmake
48518     # things out there which doesn't do this.
48519     if [ ${D}# -eq 0 ]; then
48520         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48521     fi
48522 }
48523
48524 # Print usage and exit script with rc=1.
48525 PrintHelp() {
48526  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48527  echo '       [-name-mangler-script script.sh]'
48528  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48529  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48530  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48531  echo '       [*.o] [*.a]'
48532  echo '*> "output_file" should have no extension.'
48533  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48534  echo '   The import library name is derived from this and is set to "name".a,'
48535  echo '   unless overridden by -import'
48536  echo '*> "importlib_name" should have no extension.'
48537  echo '   If it has the .o, or .a extension, it is automatically removed.'
48538  echo '   This name is used as the import library name and may be longer and'
48539  echo '   more descriptive than the DLL name which has to follow the old '
48540  echo '   8.3 convention of FAT.'
48541  echo '*> "script.sh may be given to override the output_file name by a'
48542  echo '   different name. It is mainly useful if the regular make process'
48543  echo '   of some package does not take into account OS/2 restriction of'
48544  echo '   DLL name lengths. It takes the importlib name as input and is'
48545  echo '   supposed to procude a shorter name as output. The script should'
48546  echo '   expect to get importlib_name without extension and should produce'
48547  echo '   a (max.) 8 letter name without extension.'
48548  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48549  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48550  echo '   These flags will be put at the start of GCC command line.'
48551  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48552  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48553  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48554  echo '   If the last character of a symbol is "*", all symbols beginning'
48555  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48556  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48557  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48558  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48559  echo '   C runtime DLLs.'
48560  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48561  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48562  echo '   unchanged to GCC at the end of command line.'
48563  echo '*> If you create a DLL from a library and you do not specify -o,'
48564  echo '   the basename for DLL and import library will be set to library name,'
48565  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48566  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48567  echo '   library will be renamed into gcc_s.a.'
48568  echo '--------'
48569  echo 'Example:'
48570  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48571  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48572  CleanUp
48573  exit 1
48574 }
48575
48576 # Execute a command.
48577 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48578 # @Uses    Whatever CleanUp() uses.
48579 doCommand() {
48580     echo "${D}*"
48581     eval ${D}*
48582     rcCmd=${D}?
48583
48584     if [ ${D}rcCmd -ne 0 ]; then
48585         echo "command failed, exit code="${D}rcCmd
48586         CleanUp
48587         exit ${D}rcCmd
48588     fi
48589 }
48590
48591 # main routine
48592 # setup globals
48593 cmdLine=${D}*
48594 outFile=""
48595 outimpFile=""
48596 inputFiles=""
48597 renameScript=""
48598 description=""
48599 CC=gcc.exe
48600 CFLAGS="-s -Zcrtdll"
48601 EXTRA_CFLAGS=""
48602 EXPORT_BY_ORDINALS=0
48603 exclude_symbols=""
48604 library_flags=""
48605 curDir=\`pwd\`
48606 curDirS=curDir
48607 case ${D}curDirS in
48608 */)
48609   ;;
48610 *)
48611   curDirS=${D}{curDirS}"/"
48612   ;;
48613 esac
48614 # Parse commandline
48615 libsToLink=0
48616 omfLinking=0
48617 while [ ${D}1 ]; do
48618     case ${D}1 in
48619     -ord*)
48620         EXPORT_BY_ORDINALS=1;
48621         ;;
48622     -o*)
48623         shift
48624         outFile=${D}1
48625         ;;
48626     -i*)
48627         shift
48628         outimpFile=${D}1
48629         ;;
48630     -name-mangler-script)
48631         shift
48632         renameScript=${D}1
48633         ;;
48634     -d*)
48635         shift
48636         description=${D}1
48637         ;;
48638     -f*)
48639         shift
48640         CFLAGS=${D}1
48641         ;;
48642     -c*)
48643         shift
48644         CC=${D}1
48645         ;;
48646     -h*)
48647         PrintHelp
48648         ;;
48649     -ex*)
48650         shift
48651         exclude_symbols=${D}{exclude_symbols}${D}1" "
48652         ;;
48653     -libf*)
48654         shift
48655         library_flags=${D}{library_flags}${D}1" "
48656         ;;
48657     -nocrt*)
48658         CFLAGS="-s"
48659         ;;
48660     -nolxl*)
48661         flag_USE_LXLITE=0
48662         ;;
48663     -* | /*)
48664         case ${D}1 in
48665         -L* | -l*)
48666             libsToLink=1
48667             ;;
48668         -Zomf)
48669             omfLinking=1
48670             ;;
48671         *)
48672             ;;
48673         esac
48674         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48675         ;;
48676     *.dll)
48677         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48678         if [ ${D}omfLinking -eq 1 ]; then
48679             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48680         else
48681             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48682         fi
48683         ;;
48684     *)
48685         found=0;
48686         if [ ${D}libsToLink -ne 0 ]; then
48687             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48688         else
48689             for file in ${D}1 ; do
48690                 if [ -f ${D}file ]; then
48691                     inputFiles="${D}{inputFiles} ${D}file"
48692                     found=1
48693                 fi
48694             done
48695             if [ ${D}found -eq 0 ]; then
48696                 echo "ERROR: No file(s) found: "${D}1
48697                 exit 8
48698             fi
48699         fi
48700       ;;
48701     esac
48702     shift
48703 done # iterate cmdline words
48704
48705 #
48706 if [ -z "${D}inputFiles" ]; then
48707     echo "dllar: no input files"
48708     PrintHelp
48709 fi
48710
48711 # Now extract all .o files from .a files
48712 newInputFiles=""
48713 for file in ${D}inputFiles ; do
48714     case ${D}file in
48715     *.a | *.lib)
48716         case ${D}file in
48717         *.a)
48718             suffix=".a"
48719             AR="ar"
48720             ;;
48721         *.lib)
48722             suffix=".lib"
48723             AR="emxomfar"
48724             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48725             ;;
48726         *)
48727             ;;
48728         esac
48729         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48730         mkdir ${D}dirname
48731         if [ ${D}? -ne 0 ]; then
48732             echo "Failed to create subdirectory ./${D}dirname"
48733             CleanUp
48734             exit 8;
48735         fi
48736         # Append '!' to indicate archive
48737         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48738         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48739         cd ${D}curDir
48740         found=0;
48741         for subfile in ${D}dirname/*.o* ; do
48742             if [ -f ${D}subfile ]; then
48743                 found=1
48744                 if [ -s ${D}subfile ]; then
48745                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48746                     newInputFiles="${D}newInputFiles ${D}subfile"
48747                 fi
48748             fi
48749         done
48750         if [ ${D}found -eq 0 ]; then
48751             echo "WARNING: there are no files in archive \\'${D}file\\'"
48752         fi
48753         ;;
48754     *)
48755         newInputFiles="${D}{newInputFiles} ${D}file"
48756         ;;
48757     esac
48758 done
48759 inputFiles="${D}newInputFiles"
48760
48761 # Output filename(s).
48762 do_backup=0;
48763 if [ -z ${D}outFile ]; then
48764     do_backup=1;
48765     set outFile ${D}inputFiles; outFile=${D}2
48766 fi
48767
48768 # If it is an archive, remove the '!' and the '_%' suffixes
48769 case ${D}outFile in
48770 *_%!)
48771     outFile=\`basnam ${D}outFile _%!\`
48772     ;;
48773 *)
48774     ;;
48775 esac
48776 case ${D}outFile in
48777 *.dll)
48778     outFile=\`basnam ${D}outFile .dll\`
48779     ;;
48780 *.DLL)
48781     outFile=\`basnam ${D}outFile .DLL\`
48782     ;;
48783 *.o)
48784     outFile=\`basnam ${D}outFile .o\`
48785     ;;
48786 *.obj)
48787     outFile=\`basnam ${D}outFile .obj\`
48788     ;;
48789 *.a)
48790     outFile=\`basnam ${D}outFile .a\`
48791     ;;
48792 *.lib)
48793     outFile=\`basnam ${D}outFile .lib\`
48794     ;;
48795 *)
48796     ;;
48797 esac
48798 case ${D}outimpFile in
48799 *.a)
48800     outimpFile=\`basnam ${D}outimpFile .a\`
48801     ;;
48802 *.lib)
48803     outimpFile=\`basnam ${D}outimpFile .lib\`
48804     ;;
48805 *)
48806     ;;
48807 esac
48808 if [ -z ${D}outimpFile ]; then
48809     outimpFile=${D}outFile
48810 fi
48811 defFile="${D}{outFile}.def"
48812 arcFile="${D}{outimpFile}.a"
48813 arcFile2="${D}{outimpFile}.lib"
48814
48815 #create ${D}dllFile as something matching 8.3 restrictions,
48816 if [ -z ${D}renameScript ] ; then
48817     dllFile="${D}outFile"
48818 else
48819     dllFile=\`${D}renameScript ${D}outimpFile\`
48820 fi
48821
48822 if [ ${D}do_backup -ne 0 ] ; then
48823     if [ -f ${D}arcFile ] ; then
48824         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48825     fi
48826     if [ -f ${D}arcFile2 ] ; then
48827         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48828     fi
48829 fi
48830
48831 # Extract public symbols from all the object files.
48832 tmpdefFile=${D}{defFile}_%
48833 rm -f ${D}tmpdefFile
48834 for file in ${D}inputFiles ; do
48835     case ${D}file in
48836     *!)
48837         ;;
48838     *)
48839         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48840         ;;
48841     esac
48842 done
48843
48844 # Create the def file.
48845 rm -f ${D}defFile
48846 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48847 dllFile="${D}{dllFile}.dll"
48848 if [ ! -z ${D}description ]; then
48849     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48850 fi
48851 echo "EXPORTS" >> ${D}defFile
48852
48853 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48854 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48855
48856 # Checks if the export is ok or not.
48857 for word in ${D}exclude_symbols; do
48858     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48859     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48860 done
48861
48862
48863 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48864     sed "=" < ${D}tmpdefFile | \\
48865     sed '
48866       N
48867       : loop
48868       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48869       t loop
48870     ' > ${D}{tmpdefFile}%
48871     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48872 else
48873     rm -f ${D}{tmpdefFile}%
48874 fi
48875 cat ${D}tmpdefFile >> ${D}defFile
48876 rm -f ${D}tmpdefFile
48877
48878 # Do linking, create implib, and apply lxlite.
48879 gccCmdl="";
48880 for file in ${D}inputFiles ; do
48881     case ${D}file in
48882     *!)
48883         ;;
48884     *)
48885         gccCmdl="${D}gccCmdl ${D}file"
48886         ;;
48887     esac
48888 done
48889 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48890 touch "${D}{outFile}.dll"
48891
48892 doCommand "emximp -o ${D}arcFile ${D}defFile"
48893 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48894     add_flags="";
48895     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48896         add_flags="-ynd"
48897     fi
48898     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48899 fi
48900 doCommand "emxomf -s -l ${D}arcFile"
48901
48902 # Successful exit.
48903 CleanUp 1
48904 exit 0
48905 EOF
48906
48907         chmod +x dllar.sh
48908       ;;
48909
48910       powerpc-apple-macos* | \
48911       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48912       *-*-mirbsd* | \
48913       *-*-sunos4* | \
48914       *-*-osf* | \
48915       *-*-dgux5* | \
48916       *-*-sysv5* | \
48917       *-pc-msdosdjgpp )
48918               ;;
48919
48920       *)
48921         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48922 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48923    { (exit 1); exit 1; }; }
48924     esac
48925
48926     if test "x$PIC_FLAG" != "x" ; then
48927         PIC_FLAG="$PIC_FLAG -DPIC"
48928     fi
48929
48930     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48931         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48932     fi
48933     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48934         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48935     fi
48936
48937
48938
48939
48940
48941
48942
48943
48944
48945     USE_SOVERSION=0
48946     USE_SOVERLINUX=0
48947     USE_SOVERSOLARIS=0
48948     USE_SOVERCYGWIN=0
48949     USE_SOSYMLINKS=0
48950     USE_MACVERSION=0
48951     SONAME_FLAG=
48952
48953     case "${BAKEFILE_HOST}" in
48954       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
48955       *-*-k*bsd*-gnu | *-*-mirbsd* )
48956         if test "x$SUNCXX" = "xyes"; then
48957             SONAME_FLAG="-h "
48958         else
48959             SONAME_FLAG="-Wl,-soname,"
48960         fi
48961         USE_SOVERSION=1
48962         USE_SOVERLINUX=1
48963         USE_SOSYMLINKS=1
48964       ;;
48965
48966       *-*-solaris2* )
48967         SONAME_FLAG="-h "
48968         USE_SOVERSION=1
48969         USE_SOVERSOLARIS=1
48970         USE_SOSYMLINKS=1
48971       ;;
48972
48973       *-*-darwin* )
48974         USE_MACVERSION=1
48975         USE_SOVERSION=1
48976         USE_SOSYMLINKS=1
48977       ;;
48978
48979       *-*-cygwin* )
48980         USE_SOVERSION=1
48981         USE_SOVERCYGWIN=1
48982       ;;
48983     esac
48984
48985
48986
48987
48988
48989
48990
48991
48992
48993
48994     # Check whether --enable-dependency-tracking was given.
48995 if test "${enable_dependency_tracking+set}" = set; then
48996   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48997 fi
48998
48999
49000     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49001 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
49002
49003     BK_DEPS=""
49004     if test "x$bk_use_trackdeps" = "xno" ; then
49005         DEPS_TRACKING=0
49006         { echo "$as_me:$LINENO: result: disabled" >&5
49007 echo "${ECHO_T}disabled" >&6; }
49008     else
49009         DEPS_TRACKING=1
49010
49011         if test "x$GCC" = "xyes"; then
49012             DEPSMODE=gcc
49013             case "${BAKEFILE_HOST}" in
49014                 *-*-darwin* )
49015                                                             DEPSFLAG="-no-cpp-precomp -MMD"
49016                 ;;
49017                 * )
49018                     DEPSFLAG="-MMD"
49019                 ;;
49020             esac
49021             { echo "$as_me:$LINENO: result: gcc" >&5
49022 echo "${ECHO_T}gcc" >&6; }
49023         elif test "x$MWCC" = "xyes"; then
49024             DEPSMODE=mwcc
49025             DEPSFLAG="-MM"
49026             { echo "$as_me:$LINENO: result: mwcc" >&5
49027 echo "${ECHO_T}mwcc" >&6; }
49028         elif test "x$SUNCC" = "xyes"; then
49029             DEPSMODE=unixcc
49030             DEPSFLAG="-xM1"
49031             { echo "$as_me:$LINENO: result: Sun cc" >&5
49032 echo "${ECHO_T}Sun cc" >&6; }
49033         elif test "x$SGICC" = "xyes"; then
49034             DEPSMODE=unixcc
49035             DEPSFLAG="-M"
49036             { echo "$as_me:$LINENO: result: SGI cc" >&5
49037 echo "${ECHO_T}SGI cc" >&6; }
49038         elif test "x$HPCC" = "xyes"; then
49039             DEPSMODE=unixcc
49040             DEPSFLAG="+make"
49041             { echo "$as_me:$LINENO: result: HP cc" >&5
49042 echo "${ECHO_T}HP cc" >&6; }
49043         elif test "x$COMPAQCC" = "xyes"; then
49044             DEPSMODE=gcc
49045             DEPSFLAG="-MD"
49046             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49047 echo "${ECHO_T}Compaq cc" >&6; }
49048         else
49049             DEPS_TRACKING=0
49050             { echo "$as_me:$LINENO: result: none" >&5
49051 echo "${ECHO_T}none" >&6; }
49052         fi
49053
49054         if test $DEPS_TRACKING = 1 ; then
49055
49056 D='$'
49057 cat <<EOF >bk-deps
49058 #!/bin/sh
49059
49060 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49061 # script. It is used to track C/C++ files dependencies in portable way.
49062 #
49063 # Permission is given to use this file in any way.
49064
49065 DEPSMODE=${DEPSMODE}
49066 DEPSFLAG="${DEPSFLAG}"
49067 DEPSDIRBASE=.deps
49068
49069 if test ${D}DEPSMODE = gcc ; then
49070     ${D}* ${D}{DEPSFLAG}
49071     status=${D}?
49072
49073     # determine location of created files:
49074     while test ${D}# -gt 0; do
49075         case "${D}1" in
49076             -o )
49077                 shift
49078                 objfile=${D}1
49079             ;;
49080             -* )
49081             ;;
49082             * )
49083                 srcfile=${D}1
49084             ;;
49085         esac
49086         shift
49087     done
49088     objfilebase=\`basename ${D}objfile\`
49089     builddir=\`dirname ${D}objfile\`
49090     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49091     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49092     depsdir=${D}builddir/${D}DEPSDIRBASE
49093     mkdir -p ${D}depsdir
49094
49095     # if the compiler failed, we're done:
49096     if test ${D}{status} != 0 ; then
49097         rm -f ${D}depfile
49098         exit ${D}{status}
49099     fi
49100
49101     # move created file to the location we want it in:
49102     if test -f ${D}depfile ; then
49103         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49104         rm -f ${D}depfile
49105     else
49106         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49107         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49108         if test ! -f ${D}depfile ; then
49109             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49110             depfile="${D}objfile.d"
49111         fi
49112         if test -f ${D}depfile ; then
49113             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49114             rm -f ${D}depfile
49115         fi
49116     fi
49117     exit 0
49118
49119 elif test ${D}DEPSMODE = mwcc ; then
49120     ${D}* || exit ${D}?
49121     # Run mwcc again with -MM and redirect into the dep file we want
49122     # NOTE: We can't use shift here because we need ${D}* to be valid
49123     prevarg=
49124     for arg in ${D}* ; do
49125         if test "${D}prevarg" = "-o"; then
49126             objfile=${D}arg
49127         else
49128             case "${D}arg" in
49129                 -* )
49130                 ;;
49131                 * )
49132                     srcfile=${D}arg
49133                 ;;
49134             esac
49135         fi
49136         prevarg="${D}arg"
49137     done
49138
49139     objfilebase=\`basename ${D}objfile\`
49140     builddir=\`dirname ${D}objfile\`
49141     depsdir=${D}builddir/${D}DEPSDIRBASE
49142     mkdir -p ${D}depsdir
49143
49144     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49145     exit 0
49146
49147 elif test ${D}DEPSMODE = unixcc; then
49148     ${D}* || exit ${D}?
49149     # Run compiler again with deps flag and redirect into the dep file.
49150     # It doesn't work if the '-o FILE' option is used, but without it the
49151     # dependency file will contain the wrong name for the object. So it is
49152     # removed from the command line, and the dep file is fixed with sed.
49153     cmd=""
49154     while test ${D}# -gt 0; do
49155         case "${D}1" in
49156             -o )
49157                 shift
49158                 objfile=${D}1
49159             ;;
49160             * )
49161                 eval arg${D}#=\\${D}1
49162                 cmd="${D}cmd \\${D}arg${D}#"
49163             ;;
49164         esac
49165         shift
49166     done
49167
49168     objfilebase=\`basename ${D}objfile\`
49169     builddir=\`dirname ${D}objfile\`
49170     depsdir=${D}builddir/${D}DEPSDIRBASE
49171     mkdir -p ${D}depsdir
49172
49173     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49174     exit 0
49175
49176 else
49177     ${D}*
49178     exit ${D}?
49179 fi
49180 EOF
49181
49182             chmod +x bk-deps
49183                                     BK_DEPS="`pwd`/bk-deps"
49184         fi
49185     fi
49186
49187
49188
49189
49190
49191     case ${BAKEFILE_HOST} in
49192         *-*-cygwin* | *-*-mingw32* )
49193                         if test -n "$ac_tool_prefix"; then
49194   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49195 set dummy ${ac_tool_prefix}windres; ac_word=$2
49196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49198 if test "${ac_cv_prog_WINDRES+set}" = set; then
49199   echo $ECHO_N "(cached) $ECHO_C" >&6
49200 else
49201   if test -n "$WINDRES"; then
49202   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49203 else
49204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49205 for as_dir in $PATH
49206 do
49207   IFS=$as_save_IFS
49208   test -z "$as_dir" && as_dir=.
49209   for ac_exec_ext in '' $ac_executable_extensions; do
49210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49211     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49213     break 2
49214   fi
49215 done
49216 done
49217 IFS=$as_save_IFS
49218
49219 fi
49220 fi
49221 WINDRES=$ac_cv_prog_WINDRES
49222 if test -n "$WINDRES"; then
49223   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49224 echo "${ECHO_T}$WINDRES" >&6; }
49225 else
49226   { echo "$as_me:$LINENO: result: no" >&5
49227 echo "${ECHO_T}no" >&6; }
49228 fi
49229
49230
49231 fi
49232 if test -z "$ac_cv_prog_WINDRES"; then
49233   ac_ct_WINDRES=$WINDRES
49234   # Extract the first word of "windres", so it can be a program name with args.
49235 set dummy windres; ac_word=$2
49236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49238 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49239   echo $ECHO_N "(cached) $ECHO_C" >&6
49240 else
49241   if test -n "$ac_ct_WINDRES"; then
49242   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49243 else
49244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49245 for as_dir in $PATH
49246 do
49247   IFS=$as_save_IFS
49248   test -z "$as_dir" && as_dir=.
49249   for ac_exec_ext in '' $ac_executable_extensions; do
49250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49251     ac_cv_prog_ac_ct_WINDRES="windres"
49252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49253     break 2
49254   fi
49255 done
49256 done
49257 IFS=$as_save_IFS
49258
49259 fi
49260 fi
49261 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49262 if test -n "$ac_ct_WINDRES"; then
49263   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49264 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49265 else
49266   { echo "$as_me:$LINENO: result: no" >&5
49267 echo "${ECHO_T}no" >&6; }
49268 fi
49269
49270   if test "x$ac_ct_WINDRES" = x; then
49271     WINDRES=""
49272   else
49273     case $cross_compiling:$ac_tool_warned in
49274 yes:)
49275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49276 whose name does not start with the host triplet.  If you think this
49277 configuration is useful to you, please write to autoconf@gnu.org." >&5
49278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49279 whose name does not start with the host triplet.  If you think this
49280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49281 ac_tool_warned=yes ;;
49282 esac
49283     WINDRES=$ac_ct_WINDRES
49284   fi
49285 else
49286   WINDRES="$ac_cv_prog_WINDRES"
49287 fi
49288
49289          ;;
49290
49291       *-*-darwin* | powerpc-apple-macos* )
49292             # Extract the first word of "Rez", so it can be a program name with args.
49293 set dummy Rez; ac_word=$2
49294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49296 if test "${ac_cv_prog_REZ+set}" = set; then
49297   echo $ECHO_N "(cached) $ECHO_C" >&6
49298 else
49299   if test -n "$REZ"; then
49300   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49301 else
49302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49303 for as_dir in $PATH
49304 do
49305   IFS=$as_save_IFS
49306   test -z "$as_dir" && as_dir=.
49307   for ac_exec_ext in '' $ac_executable_extensions; do
49308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49309     ac_cv_prog_REZ="Rez"
49310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49311     break 2
49312   fi
49313 done
49314 done
49315 IFS=$as_save_IFS
49316
49317   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49318 fi
49319 fi
49320 REZ=$ac_cv_prog_REZ
49321 if test -n "$REZ"; then
49322   { echo "$as_me:$LINENO: result: $REZ" >&5
49323 echo "${ECHO_T}$REZ" >&6; }
49324 else
49325   { echo "$as_me:$LINENO: result: no" >&5
49326 echo "${ECHO_T}no" >&6; }
49327 fi
49328
49329
49330             # Extract the first word of "SetFile", so it can be a program name with args.
49331 set dummy SetFile; ac_word=$2
49332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49334 if test "${ac_cv_prog_SETFILE+set}" = set; then
49335   echo $ECHO_N "(cached) $ECHO_C" >&6
49336 else
49337   if test -n "$SETFILE"; then
49338   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49339 else
49340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49341 for as_dir in $PATH
49342 do
49343   IFS=$as_save_IFS
49344   test -z "$as_dir" && as_dir=.
49345   for ac_exec_ext in '' $ac_executable_extensions; do
49346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49347     ac_cv_prog_SETFILE="SetFile"
49348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49349     break 2
49350   fi
49351 done
49352 done
49353 IFS=$as_save_IFS
49354
49355   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49356 fi
49357 fi
49358 SETFILE=$ac_cv_prog_SETFILE
49359 if test -n "$SETFILE"; then
49360   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49361 echo "${ECHO_T}$SETFILE" >&6; }
49362 else
49363   { echo "$as_me:$LINENO: result: no" >&5
49364 echo "${ECHO_T}no" >&6; }
49365 fi
49366
49367
49368         ;;
49369     esac
49370
49371
49372
49373
49374
49375
49376
49377
49378
49379     BAKEFILE_BAKEFILE_M4_VERSION="0.2.6"
49380
49381
49382 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.6"
49383
49384
49385
49386     # Check whether --enable-precomp-headers was given.
49387 if test "${enable_precomp_headers+set}" = set; then
49388   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49389 fi
49390
49391
49392     GCC_PCH=0
49393     ICC_PCH=0
49394     USE_PCH=0
49395     BK_MAKE_PCH=""
49396
49397     case ${BAKEFILE_HOST} in
49398         *-*-cygwin* )
49399                                                 bk_use_pch="no"
49400             ;;
49401     esac
49402
49403     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49404         if test "x$GCC" = "xyes"; then
49405                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49406 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49407             cat >conftest.$ac_ext <<_ACEOF
49408 /* confdefs.h.  */
49409 _ACEOF
49410 cat confdefs.h >>conftest.$ac_ext
49411 cat >>conftest.$ac_ext <<_ACEOF
49412 /* end confdefs.h.  */
49413
49414 int
49415 main ()
49416 {
49417
49418                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49419                         There is no PCH support
49420                     #endif
49421                     #if (__GNUC__ < 3)
49422                         There is no PCH support
49423                     #endif
49424                     #if (__GNUC__ == 3) && \
49425                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49426                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49427                        ( defined(__INTEL_COMPILER) )
49428                         There is no PCH support
49429                     #endif
49430
49431   ;
49432   return 0;
49433 }
49434 _ACEOF
49435 rm -f conftest.$ac_objext
49436 if { (ac_try="$ac_compile"
49437 case "(($ac_try" in
49438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49439   *) ac_try_echo=$ac_try;;
49440 esac
49441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49442   (eval "$ac_compile") 2>conftest.er1
49443   ac_status=$?
49444   grep -v '^ *+' conftest.er1 >conftest.err
49445   rm -f conftest.er1
49446   cat conftest.err >&5
49447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49448   (exit $ac_status); } && {
49449          test -z "$ac_c_werror_flag" ||
49450          test ! -s conftest.err
49451        } && test -s conftest.$ac_objext; then
49452
49453                     { echo "$as_me:$LINENO: result: yes" >&5
49454 echo "${ECHO_T}yes" >&6; }
49455                     GCC_PCH=1
49456
49457 else
49458   echo "$as_me: failed program was:" >&5
49459 sed 's/^/| /' conftest.$ac_ext >&5
49460
49461
49462                     if test "$INTELCXX8" = "yes"; then
49463                         { echo "$as_me:$LINENO: result: yes" >&5
49464 echo "${ECHO_T}yes" >&6; }
49465                         ICC_PCH=1
49466                         if test "$INTELCXX10" = "yes"; then
49467                             ICC_PCH_CREATE_SWITCH="-pch-create"
49468                             ICC_PCH_USE_SWITCH="-pch-use"
49469                         else
49470                             ICC_PCH_CREATE_SWITCH="-create-pch"
49471                             ICC_PCH_USE_SWITCH="-use-pch"
49472                         fi
49473                     else
49474                         { echo "$as_me:$LINENO: result: no" >&5
49475 echo "${ECHO_T}no" >&6; }
49476                     fi
49477
49478 fi
49479
49480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49481             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49482                 USE_PCH=1
49483
49484 D='$'
49485 cat <<EOF >bk-make-pch
49486 #!/bin/sh
49487
49488 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49489 # script. It is used to generated precompiled headers.
49490 #
49491 # Permission is given to use this file in any way.
49492
49493 outfile="${D}{1}"
49494 header="${D}{2}"
49495 shift
49496 shift
49497
49498 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49499
49500 compiler=""
49501 headerfile=""
49502
49503 while test ${D}{#} -gt 0; do
49504     add_to_cmdline=1
49505     case "${D}{1}" in
49506         -I* )
49507             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49508             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49509                 headerfile="${D}{incdir}/${D}{header}"
49510             fi
49511         ;;
49512         -use-pch|-use_pch|-pch-use )
49513             shift
49514             add_to_cmdline=0
49515         ;;
49516     esac
49517     if test ${D}add_to_cmdline = 1 ; then
49518         compiler="${D}{compiler} ${D}{1}"
49519     fi
49520     shift
49521 done
49522
49523 if test "x${D}{headerfile}" = "x" ; then
49524     echo "error: can't find header ${D}{header} in include paths" >&2
49525 else
49526     if test -f ${D}{outfile} ; then
49527         rm -f ${D}{outfile}
49528     else
49529         mkdir -p \`dirname ${D}{outfile}\`
49530     fi
49531     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49532     mkdir -p ${D}{builddir}/.deps
49533     if test "x${GCC_PCH}" = "x1" ; then
49534         # can do this because gcc is >= 3.4:
49535         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49536     elif test "x${ICC_PCH}" = "x1" ; then
49537         filename=pch_gen-${D}${D}
49538         file=${D}{filename}.c
49539         dfile=${D}{filename}.d
49540         cat > ${D}file <<EOT
49541 #include "${D}header"
49542 EOT
49543         # using -MF icc complains about differing command lines in creation/use
49544         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49545           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49546           rm -f ${D}file ${D}dfile ${D}{filename}.o
49547     fi
49548     exit ${D}{?}
49549 fi
49550 EOF
49551
49552                 chmod +x bk-make-pch
49553                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49554             fi
49555         fi
49556     fi
49557
49558
49559
49560
49561
49562
49563
49564     COND_BUILD_DEBUG="#"
49565     if test "x$BUILD" = "xdebug" ; then
49566         COND_BUILD_DEBUG=""
49567     fi
49568
49569     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49570     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49571         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49572     fi
49573
49574     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49575     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49576         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49577     fi
49578
49579     COND_BUILD_DEBUG_UNICODE_0="#"
49580     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49581         COND_BUILD_DEBUG_UNICODE_0=""
49582     fi
49583
49584     COND_BUILD_DEBUG_UNICODE_1="#"
49585     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49586         COND_BUILD_DEBUG_UNICODE_1=""
49587     fi
49588
49589     COND_BUILD_RELEASE="#"
49590     if test "x$BUILD" = "xrelease" ; then
49591         COND_BUILD_RELEASE=""
49592     fi
49593
49594     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49595     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49596         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49597     fi
49598
49599     COND_BUILD_RELEASE_UNICODE_0="#"
49600     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49601         COND_BUILD_RELEASE_UNICODE_0=""
49602     fi
49603
49604     COND_BUILD_RELEASE_UNICODE_1="#"
49605     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49606         COND_BUILD_RELEASE_UNICODE_1=""
49607     fi
49608
49609     COND_BUILD_debug="#"
49610     if test "x$BUILD" = "xdebug" ; then
49611         COND_BUILD_debug=""
49612     fi
49613
49614     COND_BUILD_debug_DEBUG_FLAG_default="#"
49615     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49616         COND_BUILD_debug_DEBUG_FLAG_default=""
49617     fi
49618
49619     COND_BUILD_debug_DEBUG_INFO_default="#"
49620     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49621         COND_BUILD_debug_DEBUG_INFO_default=""
49622     fi
49623
49624     COND_BUILD_debug_UNICODE_0="#"
49625     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49626         COND_BUILD_debug_UNICODE_0=""
49627     fi
49628
49629     COND_BUILD_debug_UNICODE_1="#"
49630     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49631         COND_BUILD_debug_UNICODE_1=""
49632     fi
49633
49634     COND_BUILD_release="#"
49635     if test "x$BUILD" = "xrelease" ; then
49636         COND_BUILD_release=""
49637     fi
49638
49639     COND_BUILD_release_DEBUG_INFO_default="#"
49640     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49641         COND_BUILD_release_DEBUG_INFO_default=""
49642     fi
49643
49644     COND_BUILD_release_UNICODE_0="#"
49645     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49646         COND_BUILD_release_UNICODE_0=""
49647     fi
49648
49649     COND_BUILD_release_UNICODE_1="#"
49650     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49651         COND_BUILD_release_UNICODE_1=""
49652     fi
49653
49654     COND_DEBUG_FLAG_1="#"
49655     if test "x$DEBUG_FLAG" = "x1" ; then
49656         COND_DEBUG_FLAG_1=""
49657     fi
49658
49659     COND_DEBUG_INFO_0="#"
49660     if test "x$DEBUG_INFO" = "x0" ; then
49661         COND_DEBUG_INFO_0=""
49662     fi
49663
49664     COND_DEBUG_INFO_1="#"
49665     if test "x$DEBUG_INFO" = "x1" ; then
49666         COND_DEBUG_INFO_1=""
49667     fi
49668
49669     COND_DEPS_TRACKING_0="#"
49670     if test "x$DEPS_TRACKING" = "x0" ; then
49671         COND_DEPS_TRACKING_0=""
49672     fi
49673
49674     COND_DEPS_TRACKING_1="#"
49675     if test "x$DEPS_TRACKING" = "x1" ; then
49676         COND_DEPS_TRACKING_1=""
49677     fi
49678
49679     COND_GCC_PCH_1="#"
49680     if test "x$GCC_PCH" = "x1" ; then
49681         COND_GCC_PCH_1=""
49682     fi
49683
49684     COND_ICC_PCH_1="#"
49685     if test "x$ICC_PCH" = "x1" ; then
49686         COND_ICC_PCH_1=""
49687     fi
49688
49689     COND_MONOLITHIC_0="#"
49690     if test "x$MONOLITHIC" = "x0" ; then
49691         COND_MONOLITHIC_0=""
49692     fi
49693
49694     COND_MONOLITHIC_0_SHARED_0="#"
49695     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49696         COND_MONOLITHIC_0_SHARED_0=""
49697     fi
49698
49699     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49700     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49701         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49702     fi
49703
49704     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49705     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49706         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49707     fi
49708
49709     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49710     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49711         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49712     fi
49713
49714     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49715     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49716         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49717     fi
49718
49719     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49720     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49721         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49722     fi
49723
49724     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49725     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49726         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49727     fi
49728
49729     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49730     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49731         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49732     fi
49733
49734     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49735     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49736         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49737     fi
49738
49739     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49740     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49741         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49742     fi
49743
49744     COND_MONOLITHIC_0_SHARED_1="#"
49745     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49746         COND_MONOLITHIC_0_SHARED_1=""
49747     fi
49748
49749     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49750     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49751         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49752     fi
49753
49754     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49755     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49756         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49757     fi
49758
49759     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49760     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49761         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49762     fi
49763
49764     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49765     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49766         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49767     fi
49768
49769     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49770     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49771         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49772     fi
49773
49774     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49775     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49776         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49777     fi
49778
49779     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49780     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49781         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49782     fi
49783
49784     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49785     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49786         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49787     fi
49788
49789     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49790     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49791         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49792     fi
49793
49794     COND_MONOLITHIC_0_USE_AUI_1="#"
49795     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49796         COND_MONOLITHIC_0_USE_AUI_1=""
49797     fi
49798
49799     COND_MONOLITHIC_0_USE_GUI_1="#"
49800     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49801         COND_MONOLITHIC_0_USE_GUI_1=""
49802     fi
49803
49804     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49805     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49806         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49807     fi
49808
49809     COND_MONOLITHIC_0_USE_HTML_1="#"
49810     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49811         COND_MONOLITHIC_0_USE_HTML_1=""
49812     fi
49813
49814     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49815     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49816         COND_MONOLITHIC_0_USE_MEDIA_1=""
49817     fi
49818
49819     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
49820     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49821         COND_MONOLITHIC_0_USE_PROPGRID_1=""
49822     fi
49823
49824     COND_MONOLITHIC_0_USE_QA_1="#"
49825     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49826         COND_MONOLITHIC_0_USE_QA_1=""
49827     fi
49828
49829     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49830     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49831         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49832     fi
49833
49834     COND_MONOLITHIC_0_USE_STC_1="#"
49835     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49836         COND_MONOLITHIC_0_USE_STC_1=""
49837     fi
49838
49839     COND_MONOLITHIC_0_USE_XRC_1="#"
49840     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49841         COND_MONOLITHIC_0_USE_XRC_1=""
49842     fi
49843
49844     COND_MONOLITHIC_1="#"
49845     if test "x$MONOLITHIC" = "x1" ; then
49846         COND_MONOLITHIC_1=""
49847     fi
49848
49849     COND_MONOLITHIC_1_SHARED_0="#"
49850     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49851         COND_MONOLITHIC_1_SHARED_0=""
49852     fi
49853
49854     COND_MONOLITHIC_1_SHARED_1="#"
49855     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49856         COND_MONOLITHIC_1_SHARED_1=""
49857     fi
49858
49859     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49860     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49861         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49862     fi
49863
49864     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49865     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49866         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49867     fi
49868
49869     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49870     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49871         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49872     fi
49873
49874     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49875     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49876         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49877     fi
49878
49879     COND_PLATFORM_MACOSX_1="#"
49880     if test "x$PLATFORM_MACOSX" = "x1" ; then
49881         COND_PLATFORM_MACOSX_1=""
49882     fi
49883
49884     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
49885     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
49886         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
49887     fi
49888
49889     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
49890     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
49891         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
49892     fi
49893
49894     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
49895     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49896         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
49897     fi
49898
49899     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
49900     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
49901         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
49902     fi
49903
49904     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
49905     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49906         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
49907     fi
49908
49909     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49910     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49911         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49912     fi
49913
49914     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
49915     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49916         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
49917     fi
49918
49919     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49920     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49921         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49922     fi
49923
49924     COND_PLATFORM_MACOS_1="#"
49925     if test "x$PLATFORM_MACOS" = "x1" ; then
49926         COND_PLATFORM_MACOS_1=""
49927     fi
49928
49929     COND_PLATFORM_MAC_0="#"
49930     if test "x$PLATFORM_MAC" = "x0" ; then
49931         COND_PLATFORM_MAC_0=""
49932     fi
49933
49934     COND_PLATFORM_MAC_1="#"
49935     if test "x$PLATFORM_MAC" = "x1" ; then
49936         COND_PLATFORM_MAC_1=""
49937     fi
49938
49939     COND_PLATFORM_MSDOS_0="#"
49940     if test "x$PLATFORM_MSDOS" = "x0" ; then
49941         COND_PLATFORM_MSDOS_0=""
49942     fi
49943
49944     COND_PLATFORM_MSDOS_1="#"
49945     if test "x$PLATFORM_MSDOS" = "x1" ; then
49946         COND_PLATFORM_MSDOS_1=""
49947     fi
49948
49949     COND_PLATFORM_OS2_1="#"
49950     if test "x$PLATFORM_OS2" = "x1" ; then
49951         COND_PLATFORM_OS2_1=""
49952     fi
49953
49954     COND_PLATFORM_UNIX_0="#"
49955     if test "x$PLATFORM_UNIX" = "x0" ; then
49956         COND_PLATFORM_UNIX_0=""
49957     fi
49958
49959     COND_PLATFORM_UNIX_1="#"
49960     if test "x$PLATFORM_UNIX" = "x1" ; then
49961         COND_PLATFORM_UNIX_1=""
49962     fi
49963
49964     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49965     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49966         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49967     fi
49968
49969     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49970     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49971         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49972     fi
49973
49974     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49975     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49976         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49977     fi
49978
49979     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49980     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49981         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49982     fi
49983
49984     COND_PLATFORM_WIN32_0="#"
49985     if test "x$PLATFORM_WIN32" = "x0" ; then
49986         COND_PLATFORM_WIN32_0=""
49987     fi
49988
49989     COND_PLATFORM_WIN32_1="#"
49990     if test "x$PLATFORM_WIN32" = "x1" ; then
49991         COND_PLATFORM_WIN32_1=""
49992     fi
49993
49994     COND_SHARED_0="#"
49995     if test "x$SHARED" = "x0" ; then
49996         COND_SHARED_0=""
49997     fi
49998
49999     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50000     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50001         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50002     fi
50003
50004     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50005     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50006         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50007     fi
50008
50009     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50010     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50011         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50012     fi
50013
50014     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50015     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50016         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50017     fi
50018
50019     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50020     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50021         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50022     fi
50023
50024     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50025     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50026         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50027     fi
50028
50029     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50030     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50031         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50032     fi
50033
50034     COND_SHARED_0_USE_STC_1="#"
50035     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50036         COND_SHARED_0_USE_STC_1=""
50037     fi
50038
50039     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50040     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50041         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50042     fi
50043
50044     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50045     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50046         COND_SHARED_0_wxUSE_REGEX_builtin=""
50047     fi
50048
50049     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50050     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50051         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50052     fi
50053
50054     COND_SHARED_1="#"
50055     if test "x$SHARED" = "x1" ; then
50056         COND_SHARED_1=""
50057     fi
50058
50059     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50060     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50061         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50062     fi
50063
50064     COND_TOOLKIT_="#"
50065     if test "x$TOOLKIT" = "x" ; then
50066         COND_TOOLKIT_=""
50067     fi
50068
50069     COND_TOOLKIT_COCOA="#"
50070     if test "x$TOOLKIT" = "xCOCOA" ; then
50071         COND_TOOLKIT_COCOA=""
50072     fi
50073
50074     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50075     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50076         COND_TOOLKIT_COCOA_USE_GUI_1=""
50077     fi
50078
50079     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50080     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50081         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50082     fi
50083
50084     COND_TOOLKIT_DFB="#"
50085     if test "x$TOOLKIT" = "xDFB" ; then
50086         COND_TOOLKIT_DFB=""
50087     fi
50088
50089     COND_TOOLKIT_DFB_USE_GUI_1="#"
50090     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50091         COND_TOOLKIT_DFB_USE_GUI_1=""
50092     fi
50093
50094     COND_TOOLKIT_GTK="#"
50095     if test "x$TOOLKIT" = "xGTK" ; then
50096         COND_TOOLKIT_GTK=""
50097     fi
50098
50099     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50100     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50101         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50102     fi
50103
50104     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50105     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50106         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50107     fi
50108
50109     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50110     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50111         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50112     fi
50113
50114     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50115     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50116         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50117     fi
50118
50119     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50120     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50121         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50122     fi
50123
50124     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50125     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50126         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50127     fi
50128
50129     COND_TOOLKIT_GTK_USE_GUI_1="#"
50130     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50131         COND_TOOLKIT_GTK_USE_GUI_1=""
50132     fi
50133
50134     COND_TOOLKIT_MAC="#"
50135     if test "x$TOOLKIT" = "xMAC" ; then
50136         COND_TOOLKIT_MAC=""
50137     fi
50138
50139     COND_TOOLKIT_MGL="#"
50140     if test "x$TOOLKIT" = "xMGL" ; then
50141         COND_TOOLKIT_MGL=""
50142     fi
50143
50144     COND_TOOLKIT_MGL_USE_GUI_1="#"
50145     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50146         COND_TOOLKIT_MGL_USE_GUI_1=""
50147     fi
50148
50149     COND_TOOLKIT_MOTIF="#"
50150     if test "x$TOOLKIT" = "xMOTIF" ; then
50151         COND_TOOLKIT_MOTIF=""
50152     fi
50153
50154     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50155     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50156         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50157     fi
50158
50159     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50160     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50161         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50162     fi
50163
50164     COND_TOOLKIT_MSW="#"
50165     if test "x$TOOLKIT" = "xMSW" ; then
50166         COND_TOOLKIT_MSW=""
50167     fi
50168
50169     COND_TOOLKIT_MSW_USE_GUI_1="#"
50170     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50171         COND_TOOLKIT_MSW_USE_GUI_1=""
50172     fi
50173
50174     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50175     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50176         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50177     fi
50178
50179     COND_TOOLKIT_MSW_WXUNIV_0="#"
50180     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50181         COND_TOOLKIT_MSW_WXUNIV_0=""
50182     fi
50183
50184     COND_TOOLKIT_OSX_CARBON="#"
50185     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50186         COND_TOOLKIT_OSX_CARBON=""
50187     fi
50188
50189     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50190     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50191         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50192     fi
50193
50194     COND_TOOLKIT_OSX_COCOA="#"
50195     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50196         COND_TOOLKIT_OSX_COCOA=""
50197     fi
50198
50199     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50200     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50201         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50202     fi
50203
50204     COND_TOOLKIT_OSX_IPHONE="#"
50205     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50206         COND_TOOLKIT_OSX_IPHONE=""
50207     fi
50208
50209     COND_TOOLKIT_PM="#"
50210     if test "x$TOOLKIT" = "xPM" ; then
50211         COND_TOOLKIT_PM=""
50212     fi
50213
50214     COND_TOOLKIT_PM_USE_GUI_1="#"
50215     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50216         COND_TOOLKIT_PM_USE_GUI_1=""
50217     fi
50218
50219     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50220     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50221         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50222     fi
50223
50224     COND_TOOLKIT_WINCE="#"
50225     if test "x$TOOLKIT" = "xWINCE" ; then
50226         COND_TOOLKIT_WINCE=""
50227     fi
50228
50229     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50230     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50231         COND_TOOLKIT_WINCE_USE_GUI_1=""
50232     fi
50233
50234     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50235     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50236         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50237     fi
50238
50239     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50240     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50241         COND_TOOLKIT_WINCE_WXUNIV_0=""
50242     fi
50243
50244     COND_TOOLKIT_X11="#"
50245     if test "x$TOOLKIT" = "xX11" ; then
50246         COND_TOOLKIT_X11=""
50247     fi
50248
50249     COND_TOOLKIT_X11_USE_GUI_1="#"
50250     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50251         COND_TOOLKIT_X11_USE_GUI_1=""
50252     fi
50253
50254     COND_UNICODE_1="#"
50255     if test "x$UNICODE" = "x1" ; then
50256         COND_UNICODE_1=""
50257     fi
50258
50259     COND_USE_EXCEPTIONS_0="#"
50260     if test "x$USE_EXCEPTIONS" = "x0" ; then
50261         COND_USE_EXCEPTIONS_0=""
50262     fi
50263
50264     COND_USE_EXCEPTIONS_1="#"
50265     if test "x$USE_EXCEPTIONS" = "x1" ; then
50266         COND_USE_EXCEPTIONS_1=""
50267     fi
50268
50269     COND_USE_GUI_0="#"
50270     if test "x$USE_GUI" = "x0" ; then
50271         COND_USE_GUI_0=""
50272     fi
50273
50274     COND_USE_GUI_1="#"
50275     if test "x$USE_GUI" = "x1" ; then
50276         COND_USE_GUI_1=""
50277     fi
50278
50279     COND_USE_GUI_1_USE_OPENGL_1="#"
50280     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50281         COND_USE_GUI_1_USE_OPENGL_1=""
50282     fi
50283
50284     COND_USE_GUI_1_WXUNIV_0="#"
50285     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50286         COND_USE_GUI_1_WXUNIV_0=""
50287     fi
50288
50289     COND_USE_GUI_1_WXUNIV_1="#"
50290     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50291         COND_USE_GUI_1_WXUNIV_1=""
50292     fi
50293
50294     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50295     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50296         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50297     fi
50298
50299     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50300     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50301         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50302     fi
50303
50304     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50305     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50306         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50307     fi
50308
50309     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50310     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50311         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50312     fi
50313
50314     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50315     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50316         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50317     fi
50318
50319     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50320     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50321         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50322     fi
50323
50324     COND_USE_OPENGL_1="#"
50325     if test "x$USE_OPENGL" = "x1" ; then
50326         COND_USE_OPENGL_1=""
50327     fi
50328
50329     COND_USE_PCH_1="#"
50330     if test "x$USE_PCH" = "x1" ; then
50331         COND_USE_PCH_1=""
50332     fi
50333
50334     COND_USE_PLUGINS_0="#"
50335     if test "x$USE_PLUGINS" = "x0" ; then
50336         COND_USE_PLUGINS_0=""
50337     fi
50338
50339     COND_USE_RTTI_0="#"
50340     if test "x$USE_RTTI" = "x0" ; then
50341         COND_USE_RTTI_0=""
50342     fi
50343
50344     COND_USE_RTTI_1="#"
50345     if test "x$USE_RTTI" = "x1" ; then
50346         COND_USE_RTTI_1=""
50347     fi
50348
50349     COND_USE_SOSYMLINKS_1="#"
50350     if test "x$USE_SOSYMLINKS" = "x1" ; then
50351         COND_USE_SOSYMLINKS_1=""
50352     fi
50353
50354     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50355     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50356         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50357     fi
50358
50359     COND_USE_SOVERLINUX_1="#"
50360     if test "x$USE_SOVERLINUX" = "x1" ; then
50361         COND_USE_SOVERLINUX_1=""
50362     fi
50363
50364     COND_USE_SOVERSION_0="#"
50365     if test "x$USE_SOVERSION" = "x0" ; then
50366         COND_USE_SOVERSION_0=""
50367     fi
50368
50369     COND_USE_SOVERSOLARIS_1="#"
50370     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50371         COND_USE_SOVERSOLARIS_1=""
50372     fi
50373
50374     COND_USE_STC_1="#"
50375     if test "x$USE_STC" = "x1" ; then
50376         COND_USE_STC_1=""
50377     fi
50378
50379     COND_USE_THREADS_0="#"
50380     if test "x$USE_THREADS" = "x0" ; then
50381         COND_USE_THREADS_0=""
50382     fi
50383
50384     COND_USE_THREADS_1="#"
50385     if test "x$USE_THREADS" = "x1" ; then
50386         COND_USE_THREADS_1=""
50387     fi
50388
50389     COND_USE_XRC_1="#"
50390     if test "x$USE_XRC" = "x1" ; then
50391         COND_USE_XRC_1=""
50392     fi
50393
50394     COND_WINDOWS_IMPLIB_1="#"
50395     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50396         COND_WINDOWS_IMPLIB_1=""
50397     fi
50398
50399     COND_WITH_PLUGIN_SDL_1="#"
50400     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50401         COND_WITH_PLUGIN_SDL_1=""
50402     fi
50403
50404     COND_WXUNIV_0="#"
50405     if test "x$WXUNIV" = "x0" ; then
50406         COND_WXUNIV_0=""
50407     fi
50408
50409     COND_WXUNIV_1="#"
50410     if test "x$WXUNIV" = "x1" ; then
50411         COND_WXUNIV_1=""
50412     fi
50413
50414     COND_WXUSE_EXPAT_BUILTIN="#"
50415     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50416         COND_WXUSE_EXPAT_BUILTIN=""
50417     fi
50418
50419     COND_WXUSE_LIBJPEG_BUILTIN="#"
50420     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50421         COND_WXUSE_LIBJPEG_BUILTIN=""
50422     fi
50423
50424     COND_WXUSE_LIBPNG_BUILTIN="#"
50425     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50426         COND_WXUSE_LIBPNG_BUILTIN=""
50427     fi
50428
50429     COND_WXUSE_LIBTIFF_BUILTIN="#"
50430     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50431         COND_WXUSE_LIBTIFF_BUILTIN=""
50432     fi
50433
50434     COND_WXUSE_REGEX_BUILTIN="#"
50435     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50436         COND_WXUSE_REGEX_BUILTIN=""
50437     fi
50438
50439     COND_WXUSE_ZLIB_BUILTIN="#"
50440     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50441         COND_WXUSE_ZLIB_BUILTIN=""
50442     fi
50443
50444     COND_wxUSE_EXPAT_builtin="#"
50445     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50446         COND_wxUSE_EXPAT_builtin=""
50447     fi
50448
50449     COND_wxUSE_LIBJPEG_builtin="#"
50450     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50451         COND_wxUSE_LIBJPEG_builtin=""
50452     fi
50453
50454     COND_wxUSE_LIBPNG_builtin="#"
50455     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50456         COND_wxUSE_LIBPNG_builtin=""
50457     fi
50458
50459     COND_wxUSE_LIBTIFF_builtin="#"
50460     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50461         COND_wxUSE_LIBTIFF_builtin=""
50462     fi
50463
50464     COND_wxUSE_REGEX_builtin="#"
50465     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50466         COND_wxUSE_REGEX_builtin=""
50467     fi
50468
50469     COND_wxUSE_ZLIB_builtin="#"
50470     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50471         COND_wxUSE_ZLIB_builtin=""
50472     fi
50473
50474
50475
50476     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50477         { { 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
50478 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;}
50479    { (exit 1); exit 1; }; }
50480     fi
50481
50482     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50483         { { 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
50484 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;}
50485    { (exit 1); exit 1; }; }
50486     fi
50487
50488
50489 case ${INSTALL} in
50490   /* ) # Absolute
50491      ;;
50492   ?:* ) # Drive letter, considered as absolute.
50493      ;;
50494   *)
50495      INSTALL=`pwd`/${INSTALL} ;;
50496 esac
50497
50498 if test "$wxUSE_GUI" = "yes"; then
50499
50500 if test "$wxUSE_MSW" = 1 ; then
50501     if test "x$WINDRES" = "x"; then
50502         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50503 echo "$as_me: error: Required windres program not found" >&2;}
50504    { (exit 1); exit 1; }; }
50505     fi
50506
50507     RESCOMP="$WINDRES"
50508 fi
50509
50510 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50511             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50512     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50513
50514         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50515
50516     # Extract the first word of "DeRez", so it can be a program name with args.
50517 set dummy DeRez; ac_word=$2
50518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50520 if test "${ac_cv_prog_DEREZ+set}" = set; then
50521   echo $ECHO_N "(cached) $ECHO_C" >&6
50522 else
50523   if test -n "$DEREZ"; then
50524   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50525 else
50526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50527 for as_dir in $PATH
50528 do
50529   IFS=$as_save_IFS
50530   test -z "$as_dir" && as_dir=.
50531   for ac_exec_ext in '' $ac_executable_extensions; do
50532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50533     ac_cv_prog_DEREZ="DeRez"
50534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50535     break 2
50536   fi
50537 done
50538 done
50539 IFS=$as_save_IFS
50540
50541   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50542 fi
50543 fi
50544 DEREZ=$ac_cv_prog_DEREZ
50545 if test -n "$DEREZ"; then
50546   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50547 echo "${ECHO_T}$DEREZ" >&6; }
50548 else
50549   { echo "$as_me:$LINENO: result: no" >&5
50550 echo "${ECHO_T}no" >&6; }
50551 fi
50552
50553
50554
50555     MACSETFILE="\$(SETFILE)"
50556
50557             if test "$wxUSE_OSX_CARBON" = 1; then
50558         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50559         RESCOMP="$REZ"
50560         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50561     else
50562         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50563         RESCOMP="cat /dev/null \| $REZ"
50564         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50565     fi
50566
50567 else
50568         MACSETFILE="@true"
50569
50570     if test "$wxUSE_PM" = 1; then
50571         RESCOMP="emxbind"
50572         WXCONFIG_RESFLAGS="-ep"
50573
50574                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50575     else
50576         POSTLINK_COMMAND="@true"
50577     fi
50578 fi
50579
50580 fi
50581
50582
50583 if test $GCC_PCH = 1
50584 then
50585     if test "$wx_cv_gcc_pch_bug" = yes; then
50586         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50587 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50588         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50589 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50590         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50591 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50592     fi
50593
50594     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50595     # the headers that benefit from precompilation are mostly C++ headers.
50596     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50597     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50598     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50599 fi
50600
50601
50602 if test "$wxUSE_MAC" = 1 ; then
50603     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50604         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50605         mv temp bk-deps
50606         chmod +x bk-deps
50607     fi
50608 fi
50609
50610 if test "$wxUSE_SHARED" = "yes"; then
50611                 case "${host}" in
50612       *-pc-os2_emx | *-pc-os2-emx )
50613         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50614         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50615         cp -p ${srcdir}/src/os2/dllnames.sh .
50616         cp -p ${srcdir}/src/os2/dllar.sh .
50617       ;;
50618     esac
50619 fi
50620 if test "$wxUSE_OMF" = "yes"; then
50621     case "${host}" in
50622       *-pc-os2_emx | *-pc-os2-emx )
50623         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50624         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50625         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50626       ;;
50627     esac
50628 fi
50629
50630 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50631
50632
50633 case "${host}" in
50634     *-*-solaris2* )
50635                         if test "$GCC" = yes; then
50636             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50637             LIBS=`echo $LIBS | sed 's/-mt//'`
50638             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50639         fi
50640         ;;
50641
50642     *-*-linux* )
50643                         if test "x$SUNCXX" = xyes; then
50644             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50645             LIBS=`echo $LIBS | sed 's/-pthread//'`
50646             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50647         fi
50648         ;;
50649 esac
50650
50651 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50652 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50653 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50654 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50655
50656 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50657
50658
50659
50660
50661
50662
50663
50664
50665
50666
50667
50668
50669
50670
50671
50672
50673
50674
50675
50676
50677
50678
50679
50680
50681
50682
50683
50684
50685
50686
50687
50688
50689
50690
50691
50692
50693
50694
50695
50696
50697
50698
50699
50700
50701
50702
50703
50704
50705
50706
50707
50708
50709
50710
50711
50712
50713
50714
50715
50716
50717 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50719 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50720 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50721   echo $ECHO_N "(cached) $ECHO_C" >&6
50722 else
50723   cat >conftest.make <<\_ACEOF
50724 SHELL = /bin/sh
50725 all:
50726         @echo '@@@%%%=$(MAKE)=@@@%%%'
50727 _ACEOF
50728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50729 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50730   *@@@%%%=?*=@@@%%%*)
50731     eval ac_cv_prog_make_${ac_make}_set=yes;;
50732   *)
50733     eval ac_cv_prog_make_${ac_make}_set=no;;
50734 esac
50735 rm -f conftest.make
50736 fi
50737 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50738   { echo "$as_me:$LINENO: result: yes" >&5
50739 echo "${ECHO_T}yes" >&6; }
50740   SET_MAKE=
50741 else
50742   { echo "$as_me:$LINENO: result: no" >&5
50743 echo "${ECHO_T}no" >&6; }
50744   SET_MAKE="MAKE=${MAKE-make}"
50745 fi
50746
50747
50748
50749 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50750
50751
50752 if test "$USE_WIN32" = 1; then
50753     ac_config_commands="$ac_config_commands rcdefs.h"
50754
50755 fi
50756
50757 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50758
50759
50760 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50761
50762
50763 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50764
50765
50766 if test "$wx_cv_version_script" = "yes"; then
50767     ac_config_files="$ac_config_files version-script"
50768
50769 fi
50770 ac_config_files="$ac_config_files Makefile"
50771
50772
50773 ac_config_commands="$ac_config_commands wx-config"
50774
50775
50776
50777 if test "$wxWITH_SUBDIRS" != "no"; then
50778 if test "$wxUSE_GUI" = "yes"; then
50779     SUBDIRS="samples demos utils"
50780 else
50781             SUBDIRS="samples utils"
50782 fi
50783
50784
50785
50786 # Check whether --with-cppunit-prefix was given.
50787 if test "${with_cppunit_prefix+set}" = set; then
50788   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50789 else
50790   cppunit_config_prefix=""
50791 fi
50792
50793
50794 # Check whether --with-cppunit-exec-prefix was given.
50795 if test "${with_cppunit_exec_prefix+set}" = set; then
50796   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50797 else
50798   cppunit_config_exec_prefix=""
50799 fi
50800
50801
50802   if test x$cppunit_config_exec_prefix != x ; then
50803      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50804      if test x${CPPUNIT_CONFIG+set} != xset ; then
50805         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50806      fi
50807   fi
50808   if test x$cppunit_config_prefix != x ; then
50809      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50810      if test x${CPPUNIT_CONFIG+set} != xset ; then
50811         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50812      fi
50813   fi
50814
50815   # Extract the first word of "cppunit-config", so it can be a program name with args.
50816 set dummy cppunit-config; ac_word=$2
50817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50819 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50820   echo $ECHO_N "(cached) $ECHO_C" >&6
50821 else
50822   case $CPPUNIT_CONFIG in
50823   [\\/]* | ?:[\\/]*)
50824   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50825   ;;
50826   *)
50827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50828 for as_dir in $PATH
50829 do
50830   IFS=$as_save_IFS
50831   test -z "$as_dir" && as_dir=.
50832   for ac_exec_ext in '' $ac_executable_extensions; do
50833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50834     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50836     break 2
50837   fi
50838 done
50839 done
50840 IFS=$as_save_IFS
50841
50842   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50843   ;;
50844 esac
50845 fi
50846 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50847 if test -n "$CPPUNIT_CONFIG"; then
50848   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50849 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50850 else
50851   { echo "$as_me:$LINENO: result: no" >&5
50852 echo "${ECHO_T}no" >&6; }
50853 fi
50854
50855
50856   cppunit_version_min=1.8.0
50857
50858   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50859 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50860   no_cppunit=""
50861   if test "$CPPUNIT_CONFIG" = "no" ; then
50862     { echo "$as_me:$LINENO: result: no" >&5
50863 echo "${ECHO_T}no" >&6; }
50864     no_cppunit=yes
50865   else
50866     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50867     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50868     cppunit_version=`$CPPUNIT_CONFIG --version`
50869
50870     cppunit_major_version=`echo $cppunit_version | \
50871            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50872     cppunit_minor_version=`echo $cppunit_version | \
50873            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50874     cppunit_micro_version=`echo $cppunit_version | \
50875            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50876
50877     cppunit_major_min=`echo $cppunit_version_min | \
50878            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50879     cppunit_minor_min=`echo $cppunit_version_min | \
50880            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50881     cppunit_micro_min=`echo $cppunit_version_min | \
50882            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50883
50884     cppunit_version_proper=`expr \
50885         $cppunit_major_version \> $cppunit_major_min \| \
50886         $cppunit_major_version \= $cppunit_major_min \& \
50887         $cppunit_minor_version \> $cppunit_minor_min \| \
50888         $cppunit_major_version \= $cppunit_major_min \& \
50889         $cppunit_minor_version \= $cppunit_minor_min \& \
50890         $cppunit_micro_version \>= $cppunit_micro_min `
50891
50892     if test "$cppunit_version_proper" = "1" ; then
50893       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50894 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50895     else
50896       { echo "$as_me:$LINENO: result: no" >&5
50897 echo "${ECHO_T}no" >&6; }
50898       no_cppunit=yes
50899     fi
50900   fi
50901
50902   if test "x$no_cppunit" = x ; then
50903      SUBDIRS="$SUBDIRS tests"
50904   else
50905      CPPUNIT_CFLAGS=""
50906      CPPUNIT_LIBS=""
50907      :
50908   fi
50909
50910
50911
50912
50913
50914 for subdir in $SUBDIRS; do
50915     if test -d ${srcdir}/${subdir} ; then
50916         if test "$wxUSE_GUI" = "yes"; then
50917             if test ${subdir} = "samples"; then
50918                                                 makefiles="samples/Makefile.in $makefiles"
50919                 for sample in $SAMPLES_SUBDIRS; do
50920                     if test -d $srcdir/samples/$sample; then
50921                         makefiles="samples/$sample/Makefile.in $makefiles"
50922                     fi
50923                 done
50924             else
50925                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50926                 eval "disabled=\$$disabled_var"
50927                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50928                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50929             fi
50930         else
50931                                     if test ${subdir} = "samples"; then
50932                                                 makefiles="samples/Makefile.in $makefiles"
50933                 for sample in `echo $SAMPLES_SUBDIRS`; do
50934                     if test -d $srcdir/samples/$sample; then
50935                         makefiles="samples/$sample/Makefile.in $makefiles"
50936                     fi
50937                 done
50938             elif test ${subdir} = "utils"; then
50939                 makefiles=""
50940                 for util in ifacecheck ; do
50941                     if test -d $srcdir/utils/$util ; then
50942                         makefiles="utils/$util/src/Makefile.in \
50943                                    $makefiles"
50944                     fi
50945                 done
50946             else
50947                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50948             fi
50949         fi
50950
50951         for mkin in $makefiles ; do
50952             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50953             ac_config_files="$ac_config_files $mk"
50954
50955         done
50956     fi
50957 done
50958 fi
50959 cat >confcache <<\_ACEOF
50960 # This file is a shell script that caches the results of configure
50961 # tests run on this system so they can be shared between configure
50962 # scripts and configure runs, see configure's option --config-cache.
50963 # It is not useful on other systems.  If it contains results you don't
50964 # want to keep, you may remove or edit it.
50965 #
50966 # config.status only pays attention to the cache file if you give it
50967 # the --recheck option to rerun configure.
50968 #
50969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50971 # following values.
50972
50973 _ACEOF
50974
50975 # The following way of writing the cache mishandles newlines in values,
50976 # but we know of no workaround that is simple, portable, and efficient.
50977 # So, we kill variables containing newlines.
50978 # Ultrix sh set writes to stderr and can't be redirected directly,
50979 # and sets the high bit in the cache file unless we assign to the vars.
50980 (
50981   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50982     eval ac_val=\$$ac_var
50983     case $ac_val in #(
50984     *${as_nl}*)
50985       case $ac_var in #(
50986       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50987 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50988       esac
50989       case $ac_var in #(
50990       _ | IFS | as_nl) ;; #(
50991       *) $as_unset $ac_var ;;
50992       esac ;;
50993     esac
50994   done
50995
50996   (set) 2>&1 |
50997     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50998     *${as_nl}ac_space=\ *)
50999       # `set' does not quote correctly, so add quotes (double-quote
51000       # substitution turns \\\\ into \\, and sed turns \\ into \).
51001       sed -n \
51002         "s/'/'\\\\''/g;
51003           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51004       ;; #(
51005     *)
51006       # `set' quotes correctly as required by POSIX, so do not add quotes.
51007       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51008       ;;
51009     esac |
51010     sort
51011 ) |
51012   sed '
51013      /^ac_cv_env_/b end
51014      t clear
51015      :clear
51016      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51017      t end
51018      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51019      :end' >>confcache
51020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51021   if test -w "$cache_file"; then
51022     test "x$cache_file" != "x/dev/null" &&
51023       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51024 echo "$as_me: updating cache $cache_file" >&6;}
51025     cat confcache >$cache_file
51026   else
51027     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51028 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51029   fi
51030 fi
51031 rm -f confcache
51032
51033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51034 # Let make expand exec_prefix.
51035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51036
51037 DEFS=-DHAVE_CONFIG_H
51038
51039 ac_libobjs=
51040 ac_ltlibobjs=
51041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51042   # 1. Remove the extension, and $U if already installed.
51043   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51044   ac_i=`echo "$ac_i" | sed "$ac_script"`
51045   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51046   #    will be set to the directory where LIBOBJS objects are built.
51047   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51048   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51049 done
51050 LIBOBJS=$ac_libobjs
51051
51052 LTLIBOBJS=$ac_ltlibobjs
51053
51054
51055
51056 : ${CONFIG_STATUS=./config.status}
51057 ac_clean_files_save=$ac_clean_files
51058 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51059 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51060 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51061 cat >$CONFIG_STATUS <<_ACEOF
51062 #! $SHELL
51063 # Generated by $as_me.
51064 # Run this file to recreate the current configuration.
51065 # Compiler output produced by configure, useful for debugging
51066 # configure, is in config.log if it exists.
51067
51068 debug=false
51069 ac_cs_recheck=false
51070 ac_cs_silent=false
51071 SHELL=\${CONFIG_SHELL-$SHELL}
51072 _ACEOF
51073
51074 cat >>$CONFIG_STATUS <<\_ACEOF
51075 ## --------------------- ##
51076 ## M4sh Initialization.  ##
51077 ## --------------------- ##
51078
51079 # Be more Bourne compatible
51080 DUALCASE=1; export DUALCASE # for MKS sh
51081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51082   emulate sh
51083   NULLCMD=:
51084   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51085   # is contrary to our usage.  Disable this feature.
51086   alias -g '${1+"$@"}'='"$@"'
51087   setopt NO_GLOB_SUBST
51088 else
51089   case `(set -o) 2>/dev/null` in
51090   *posix*) set -o posix ;;
51091 esac
51092
51093 fi
51094
51095
51096
51097
51098 # PATH needs CR
51099 # Avoid depending upon Character Ranges.
51100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51103 as_cr_digits='0123456789'
51104 as_cr_alnum=$as_cr_Letters$as_cr_digits
51105
51106 # The user is always right.
51107 if test "${PATH_SEPARATOR+set}" != set; then
51108   echo "#! /bin/sh" >conf$$.sh
51109   echo  "exit 0"   >>conf$$.sh
51110   chmod +x conf$$.sh
51111   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51112     PATH_SEPARATOR=';'
51113   else
51114     PATH_SEPARATOR=:
51115   fi
51116   rm -f conf$$.sh
51117 fi
51118
51119 # Support unset when possible.
51120 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51121   as_unset=unset
51122 else
51123   as_unset=false
51124 fi
51125
51126
51127 # IFS
51128 # We need space, tab and new line, in precisely that order.  Quoting is
51129 # there to prevent editors from complaining about space-tab.
51130 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51131 # splitting by setting IFS to empty value.)
51132 as_nl='
51133 '
51134 IFS=" ""        $as_nl"
51135
51136 # Find who we are.  Look in the path if we contain no directory separator.
51137 case $0 in
51138   *[\\/]* ) as_myself=$0 ;;
51139   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51140 for as_dir in $PATH
51141 do
51142   IFS=$as_save_IFS
51143   test -z "$as_dir" && as_dir=.
51144   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51145 done
51146 IFS=$as_save_IFS
51147
51148      ;;
51149 esac
51150 # We did not find ourselves, most probably we were run as `sh COMMAND'
51151 # in which case we are not to be found in the path.
51152 if test "x$as_myself" = x; then
51153   as_myself=$0
51154 fi
51155 if test ! -f "$as_myself"; then
51156   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51157   { (exit 1); exit 1; }
51158 fi
51159
51160 # Work around bugs in pre-3.0 UWIN ksh.
51161 for as_var in ENV MAIL MAILPATH
51162 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51163 done
51164 PS1='$ '
51165 PS2='> '
51166 PS4='+ '
51167
51168 # NLS nuisances.
51169 for as_var in \
51170   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51171   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51172   LC_TELEPHONE LC_TIME
51173 do
51174   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51175     eval $as_var=C; export $as_var
51176   else
51177     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51178   fi
51179 done
51180
51181 # Required to use basename.
51182 if expr a : '\(a\)' >/dev/null 2>&1 &&
51183    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51184   as_expr=expr
51185 else
51186   as_expr=false
51187 fi
51188
51189 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51190   as_basename=basename
51191 else
51192   as_basename=false
51193 fi
51194
51195
51196 # Name of the executable.
51197 as_me=`$as_basename -- "$0" ||
51198 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51199          X"$0" : 'X\(//\)$' \| \
51200          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51201 echo X/"$0" |
51202     sed '/^.*\/\([^/][^/]*\)\/*$/{
51203             s//\1/
51204             q
51205           }
51206           /^X\/\(\/\/\)$/{
51207             s//\1/
51208             q
51209           }
51210           /^X\/\(\/\).*/{
51211             s//\1/
51212             q
51213           }
51214           s/.*/./; q'`
51215
51216 # CDPATH.
51217 $as_unset CDPATH
51218
51219
51220
51221   as_lineno_1=$LINENO
51222   as_lineno_2=$LINENO
51223   test "x$as_lineno_1" != "x$as_lineno_2" &&
51224   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51225
51226   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51227   # uniformly replaced by the line number.  The first 'sed' inserts a
51228   # line-number line after each line using $LINENO; the second 'sed'
51229   # does the real work.  The second script uses 'N' to pair each
51230   # line-number line with the line containing $LINENO, and appends
51231   # trailing '-' during substitution so that $LINENO is not a special
51232   # case at line end.
51233   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51234   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51235   # E. McMahon (1931-1989) for sed's syntax.  :-)
51236   sed -n '
51237     p
51238     /[$]LINENO/=
51239   ' <$as_myself |
51240     sed '
51241       s/[$]LINENO.*/&-/
51242       t lineno
51243       b
51244       :lineno
51245       N
51246       :loop
51247       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51248       t loop
51249       s/-\n.*//
51250     ' >$as_me.lineno &&
51251   chmod +x "$as_me.lineno" ||
51252     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51253    { (exit 1); exit 1; }; }
51254
51255   # Don't try to exec as it changes $[0], causing all sort of problems
51256   # (the dirname of $[0] is not the place where we might find the
51257   # original and so on.  Autoconf is especially sensitive to this).
51258   . "./$as_me.lineno"
51259   # Exit status is that of the last command.
51260   exit
51261 }
51262
51263
51264 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51265   as_dirname=dirname
51266 else
51267   as_dirname=false
51268 fi
51269
51270 ECHO_C= ECHO_N= ECHO_T=
51271 case `echo -n x` in
51272 -n*)
51273   case `echo 'x\c'` in
51274   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51275   *)   ECHO_C='\c';;
51276   esac;;
51277 *)
51278   ECHO_N='-n';;
51279 esac
51280
51281 if expr a : '\(a\)' >/dev/null 2>&1 &&
51282    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51283   as_expr=expr
51284 else
51285   as_expr=false
51286 fi
51287
51288 rm -f conf$$ conf$$.exe conf$$.file
51289 if test -d conf$$.dir; then
51290   rm -f conf$$.dir/conf$$.file
51291 else
51292   rm -f conf$$.dir
51293   mkdir conf$$.dir
51294 fi
51295 echo >conf$$.file
51296 if ln -s conf$$.file conf$$ 2>/dev/null; then
51297   as_ln_s='ln -s'
51298   # ... but there are two gotchas:
51299   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51300   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51301   # In both cases, we have to default to `cp -p'.
51302   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51303     as_ln_s='cp -p'
51304 elif ln conf$$.file conf$$ 2>/dev/null; then
51305   as_ln_s=ln
51306 else
51307   as_ln_s='cp -p'
51308 fi
51309 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51310 rmdir conf$$.dir 2>/dev/null
51311
51312 if mkdir -p . 2>/dev/null; then
51313   as_mkdir_p=:
51314 else
51315   test -d ./-p && rmdir ./-p
51316   as_mkdir_p=false
51317 fi
51318
51319 if test -x / >/dev/null 2>&1; then
51320   as_test_x='test -x'
51321 else
51322   if ls -dL / >/dev/null 2>&1; then
51323     as_ls_L_option=L
51324   else
51325     as_ls_L_option=
51326   fi
51327   as_test_x='
51328     eval sh -c '\''
51329       if test -d "$1"; then
51330         test -d "$1/.";
51331       else
51332         case $1 in
51333         -*)set "./$1";;
51334         esac;
51335         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51336         ???[sx]*):;;*)false;;esac;fi
51337     '\'' sh
51338   '
51339 fi
51340 as_executable_p=$as_test_x
51341
51342 # Sed expression to map a string onto a valid CPP name.
51343 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51344
51345 # Sed expression to map a string onto a valid variable name.
51346 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51347
51348
51349 exec 6>&1
51350
51351 # Save the log message, to keep $[0] and so on meaningful, and to
51352 # report actual input values of CONFIG_FILES etc. instead of their
51353 # values after options handling.
51354 ac_log="
51355 This file was extended by wxWidgets $as_me 2.9.0, which was
51356 generated by GNU Autoconf 2.61.  Invocation command line was
51357
51358   CONFIG_FILES    = $CONFIG_FILES
51359   CONFIG_HEADERS  = $CONFIG_HEADERS
51360   CONFIG_LINKS    = $CONFIG_LINKS
51361   CONFIG_COMMANDS = $CONFIG_COMMANDS
51362   $ $0 $@
51363
51364 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51365 "
51366
51367 _ACEOF
51368
51369 cat >>$CONFIG_STATUS <<_ACEOF
51370 # Files that config.status was made for.
51371 config_files="$ac_config_files"
51372 config_headers="$ac_config_headers"
51373 config_commands="$ac_config_commands"
51374
51375 _ACEOF
51376
51377 cat >>$CONFIG_STATUS <<\_ACEOF
51378 ac_cs_usage="\
51379 \`$as_me' instantiates files from templates according to the
51380 current configuration.
51381
51382 Usage: $0 [OPTIONS] [FILE]...
51383
51384   -h, --help       print this help, then exit
51385   -V, --version    print version number and configuration settings, then exit
51386   -q, --quiet      do not print progress messages
51387   -d, --debug      don't remove temporary files
51388       --recheck    update $as_me by reconfiguring in the same conditions
51389   --file=FILE[:TEMPLATE]
51390                    instantiate the configuration file FILE
51391   --header=FILE[:TEMPLATE]
51392                    instantiate the configuration header FILE
51393
51394 Configuration files:
51395 $config_files
51396
51397 Configuration headers:
51398 $config_headers
51399
51400 Configuration commands:
51401 $config_commands
51402
51403 Report bugs to <bug-autoconf@gnu.org>."
51404
51405 _ACEOF
51406 cat >>$CONFIG_STATUS <<_ACEOF
51407 ac_cs_version="\\
51408 wxWidgets config.status 2.9.0
51409 configured by $0, generated by GNU Autoconf 2.61,
51410   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51411
51412 Copyright (C) 2006 Free Software Foundation, Inc.
51413 This config.status script is free software; the Free Software Foundation
51414 gives unlimited permission to copy, distribute and modify it."
51415
51416 ac_pwd='$ac_pwd'
51417 srcdir='$srcdir'
51418 INSTALL='$INSTALL'
51419 _ACEOF
51420
51421 cat >>$CONFIG_STATUS <<\_ACEOF
51422 # If no file are specified by the user, then we need to provide default
51423 # value.  By we need to know if files were specified by the user.
51424 ac_need_defaults=:
51425 while test $# != 0
51426 do
51427   case $1 in
51428   --*=*)
51429     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51430     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51431     ac_shift=:
51432     ;;
51433   *)
51434     ac_option=$1
51435     ac_optarg=$2
51436     ac_shift=shift
51437     ;;
51438   esac
51439
51440   case $ac_option in
51441   # Handling of the options.
51442   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51443     ac_cs_recheck=: ;;
51444   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51445     echo "$ac_cs_version"; exit ;;
51446   --debug | --debu | --deb | --de | --d | -d )
51447     debug=: ;;
51448   --file | --fil | --fi | --f )
51449     $ac_shift
51450     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51451     ac_need_defaults=false;;
51452   --header | --heade | --head | --hea )
51453     $ac_shift
51454     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51455     ac_need_defaults=false;;
51456   --he | --h)
51457     # Conflict between --help and --header
51458     { echo "$as_me: error: ambiguous option: $1
51459 Try \`$0 --help' for more information." >&2
51460    { (exit 1); exit 1; }; };;
51461   --help | --hel | -h )
51462     echo "$ac_cs_usage"; exit ;;
51463   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51464   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51465     ac_cs_silent=: ;;
51466
51467   # This is an error.
51468   -*) { echo "$as_me: error: unrecognized option: $1
51469 Try \`$0 --help' for more information." >&2
51470    { (exit 1); exit 1; }; } ;;
51471
51472   *) ac_config_targets="$ac_config_targets $1"
51473      ac_need_defaults=false ;;
51474
51475   esac
51476   shift
51477 done
51478
51479 ac_configure_extra_args=
51480
51481 if $ac_cs_silent; then
51482   exec 6>/dev/null
51483   ac_configure_extra_args="$ac_configure_extra_args --silent"
51484 fi
51485
51486 _ACEOF
51487 cat >>$CONFIG_STATUS <<_ACEOF
51488 if \$ac_cs_recheck; then
51489   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51490   CONFIG_SHELL=$SHELL
51491   export CONFIG_SHELL
51492   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51493 fi
51494
51495 _ACEOF
51496 cat >>$CONFIG_STATUS <<\_ACEOF
51497 exec 5>>config.log
51498 {
51499   echo
51500   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51501 ## Running $as_me. ##
51502 _ASBOX
51503   echo "$ac_log"
51504 } >&5
51505
51506 _ACEOF
51507 cat >>$CONFIG_STATUS <<_ACEOF
51508 #
51509 # INIT-COMMANDS
51510 #
51511
51512             CPP="$CPP"
51513             infile="$srcdir/include/wx/msw/genrcdefs.h"
51514             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51515
51516
51517  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51518  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51519  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51520                      LN_S="${LN_S}"
51521
51522
51523 _ACEOF
51524
51525 cat >>$CONFIG_STATUS <<\_ACEOF
51526
51527 # Handling of arguments.
51528 for ac_config_target in $ac_config_targets
51529 do
51530   case $ac_config_target in
51531     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51532     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51533     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51534     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51535     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51536     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51537     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51538     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51539     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51540
51541   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51542 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51543    { (exit 1); exit 1; }; };;
51544   esac
51545 done
51546
51547
51548 # If the user did not use the arguments to specify the items to instantiate,
51549 # then the envvar interface is used.  Set only those that are not.
51550 # We use the long form for the default assignment because of an extremely
51551 # bizarre bug on SunOS 4.1.3.
51552 if $ac_need_defaults; then
51553   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51554   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51555   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51556 fi
51557
51558 # Have a temporary directory for convenience.  Make it in the build tree
51559 # simply because there is no reason against having it here, and in addition,
51560 # creating and moving files from /tmp can sometimes cause problems.
51561 # Hook for its removal unless debugging.
51562 # Note that there is a small window in which the directory will not be cleaned:
51563 # after its creation but before its name has been assigned to `$tmp'.
51564 $debug ||
51565 {
51566   tmp=
51567   trap 'exit_status=$?
51568   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51569 ' 0
51570   trap '{ (exit 1); exit 1; }' 1 2 13 15
51571 }
51572 # Create a (secure) tmp directory for tmp files.
51573
51574 {
51575   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51576   test -n "$tmp" && test -d "$tmp"
51577 }  ||
51578 {
51579   tmp=./conf$$-$RANDOM
51580   (umask 077 && mkdir "$tmp")
51581 } ||
51582 {
51583    echo "$me: cannot create a temporary directory in ." >&2
51584    { (exit 1); exit 1; }
51585 }
51586
51587 #
51588 # Set up the sed scripts for CONFIG_FILES section.
51589 #
51590
51591 # No need to generate the scripts if there are no CONFIG_FILES.
51592 # This happens for instance when ./config.status config.h
51593 if test -n "$CONFIG_FILES"; then
51594
51595 _ACEOF
51596
51597
51598
51599 ac_delim='%!_!# '
51600 for ac_last_try in false false false false false :; do
51601   cat >conf$$subs.sed <<_ACEOF
51602 SHELL!$SHELL$ac_delim
51603 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51604 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51605 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51606 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51607 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51608 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51609 exec_prefix!$exec_prefix$ac_delim
51610 prefix!$prefix$ac_delim
51611 program_transform_name!$program_transform_name$ac_delim
51612 bindir!$bindir$ac_delim
51613 sbindir!$sbindir$ac_delim
51614 libexecdir!$libexecdir$ac_delim
51615 datarootdir!$datarootdir$ac_delim
51616 datadir!$datadir$ac_delim
51617 sysconfdir!$sysconfdir$ac_delim
51618 sharedstatedir!$sharedstatedir$ac_delim
51619 localstatedir!$localstatedir$ac_delim
51620 includedir!$includedir$ac_delim
51621 oldincludedir!$oldincludedir$ac_delim
51622 docdir!$docdir$ac_delim
51623 infodir!$infodir$ac_delim
51624 htmldir!$htmldir$ac_delim
51625 dvidir!$dvidir$ac_delim
51626 pdfdir!$pdfdir$ac_delim
51627 psdir!$psdir$ac_delim
51628 libdir!$libdir$ac_delim
51629 localedir!$localedir$ac_delim
51630 mandir!$mandir$ac_delim
51631 DEFS!$DEFS$ac_delim
51632 ECHO_C!$ECHO_C$ac_delim
51633 ECHO_N!$ECHO_N$ac_delim
51634 ECHO_T!$ECHO_T$ac_delim
51635 LIBS!$LIBS$ac_delim
51636 build_alias!$build_alias$ac_delim
51637 host_alias!$host_alias$ac_delim
51638 target_alias!$target_alias$ac_delim
51639 build!$build$ac_delim
51640 build_cpu!$build_cpu$ac_delim
51641 build_vendor!$build_vendor$ac_delim
51642 build_os!$build_os$ac_delim
51643 host!$host$ac_delim
51644 host_cpu!$host_cpu$ac_delim
51645 host_vendor!$host_vendor$ac_delim
51646 host_os!$host_os$ac_delim
51647 wx_top_builddir!$wx_top_builddir$ac_delim
51648 CC!$CC$ac_delim
51649 CFLAGS!$CFLAGS$ac_delim
51650 LDFLAGS!$LDFLAGS$ac_delim
51651 CPPFLAGS!$CPPFLAGS$ac_delim
51652 ac_ct_CC!$ac_ct_CC$ac_delim
51653 EXEEXT!$EXEEXT$ac_delim
51654 OBJEXT!$OBJEXT$ac_delim
51655 CPP!$CPP$ac_delim
51656 GREP!$GREP$ac_delim
51657 EGREP!$EGREP$ac_delim
51658 CXX!$CXX$ac_delim
51659 CXXFLAGS!$CXXFLAGS$ac_delim
51660 ac_ct_CXX!$ac_ct_CXX$ac_delim
51661 AR!$AR$ac_delim
51662 subdirs!$subdirs$ac_delim
51663 PKG_CONFIG!$PKG_CONFIG$ac_delim
51664 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51665 GTK_LIBS!$GTK_LIBS$ac_delim
51666 GTK_CONFIG!$GTK_CONFIG$ac_delim
51667 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51668 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51669 XMKMF!$XMKMF$ac_delim
51670 X_CFLAGS!$X_CFLAGS$ac_delim
51671 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51672 X_LIBS!$X_LIBS$ac_delim
51673 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51674 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51675 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51676 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51677 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51678 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51679 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51680 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51681 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51682 LIBICONV!$LIBICONV$ac_delim
51683 GXX_VERSION!$GXX_VERSION$ac_delim
51684 SDL_CONFIG!$SDL_CONFIG$ac_delim
51685 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51686 SDL_LIBS!$SDL_LIBS$ac_delim
51687 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51688 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51689 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51690 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51691 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51692 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51693 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51694 HILDON_LIBS!$HILDON_LIBS$ac_delim
51695 PYTHON!$PYTHON$ac_delim
51696 COND_PYTHON!$COND_PYTHON$ac_delim
51697 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51698 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51699 _ACEOF
51700
51701   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51702     break
51703   elif $ac_last_try; then
51704     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51705 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51706    { (exit 1); exit 1; }; }
51707   else
51708     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51709   fi
51710 done
51711
51712 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51713 if test -n "$ac_eof"; then
51714   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51715   ac_eof=`expr $ac_eof + 1`
51716 fi
51717
51718 cat >>$CONFIG_STATUS <<_ACEOF
51719 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51721 _ACEOF
51722 sed '
51723 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51724 s/^/s,@/; s/!/@,|#_!!_#|/
51725 :n
51726 t n
51727 s/'"$ac_delim"'$/,g/; t
51728 s/$/\\/; p
51729 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51730 ' >>$CONFIG_STATUS <conf$$subs.sed
51731 rm -f conf$$subs.sed
51732 cat >>$CONFIG_STATUS <<_ACEOF
51733 CEOF$ac_eof
51734 _ACEOF
51735
51736
51737 ac_delim='%!_!# '
51738 for ac_last_try in false false false false false :; do
51739   cat >conf$$subs.sed <<_ACEOF
51740 GST_CFLAGS!$GST_CFLAGS$ac_delim
51741 GST_LIBS!$GST_LIBS$ac_delim
51742 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51743 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51744 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51745 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51746 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51747 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51748 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51749 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51750 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51751 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51752 VENDOR!$VENDOR$ac_delim
51753 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51754 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51755 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51756 WXUNIV!$WXUNIV$ac_delim
51757 MONOLITHIC!$MONOLITHIC$ac_delim
51758 USE_PLUGINS!$USE_PLUGINS$ac_delim
51759 CXXWARNINGS!$CXXWARNINGS$ac_delim
51760 EXTRALIBS!$EXTRALIBS$ac_delim
51761 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51762 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51763 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51764 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51765 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51766 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51767 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51768 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51769 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51770 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51771 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51772 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51773 UNICODE!$UNICODE$ac_delim
51774 BUILD!$BUILD$ac_delim
51775 DEBUG_INFO!$DEBUG_INFO$ac_delim
51776 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51777 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51778 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51779 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
51780 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
51781 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51782 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
51783 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51784 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51785 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51786 RANLIB!$RANLIB$ac_delim
51787 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51788 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51789 INSTALL_DATA!$INSTALL_DATA$ac_delim
51790 LN_S!$LN_S$ac_delim
51791 SET_MAKE!$SET_MAKE$ac_delim
51792 MAKE_SET!$MAKE_SET$ac_delim
51793 AROPTIONS!$AROPTIONS$ac_delim
51794 STRIP!$STRIP$ac_delim
51795 NM!$NM$ac_delim
51796 INSTALL_DIR!$INSTALL_DIR$ac_delim
51797 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51798 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51799 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51800 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51801 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51802 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51803 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51804 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51805 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51806 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51807 SO_SUFFIX!$SO_SUFFIX$ac_delim
51808 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51809 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51810 LIBPREFIX!$LIBPREFIX$ac_delim
51811 LIBEXT!$LIBEXT$ac_delim
51812 DLLPREFIX!$DLLPREFIX$ac_delim
51813 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51814 dlldir!$dlldir$ac_delim
51815 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51816 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51817 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51818 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51819 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51820 PIC_FLAG!$PIC_FLAG$ac_delim
51821 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51822 USE_SOVERSION!$USE_SOVERSION$ac_delim
51823 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51824 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51825 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51826 USE_MACVERSION!$USE_MACVERSION$ac_delim
51827 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51828 SONAME_FLAG!$SONAME_FLAG$ac_delim
51829 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51830 BK_DEPS!$BK_DEPS$ac_delim
51831 WINDRES!$WINDRES$ac_delim
51832 REZ!$REZ$ac_delim
51833 SETFILE!$SETFILE$ac_delim
51834 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
51835 GCC_PCH!$GCC_PCH$ac_delim
51836 ICC_PCH!$ICC_PCH$ac_delim
51837 _ACEOF
51838
51839   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51840     break
51841   elif $ac_last_try; then
51842     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51843 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51844    { (exit 1); exit 1; }; }
51845   else
51846     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51847   fi
51848 done
51849
51850 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51851 if test -n "$ac_eof"; then
51852   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51853   ac_eof=`expr $ac_eof + 1`
51854 fi
51855
51856 cat >>$CONFIG_STATUS <<_ACEOF
51857 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51859 _ACEOF
51860 sed '
51861 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51862 s/^/s,@/; s/!/@,|#_!!_#|/
51863 :n
51864 t n
51865 s/'"$ac_delim"'$/,g/; t
51866 s/$/\\/; p
51867 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51868 ' >>$CONFIG_STATUS <conf$$subs.sed
51869 rm -f conf$$subs.sed
51870 cat >>$CONFIG_STATUS <<_ACEOF
51871 CEOF$ac_eof
51872 _ACEOF
51873
51874
51875 ac_delim='%!_!# '
51876 for ac_last_try in false false false false false :; do
51877   cat >conf$$subs.sed <<_ACEOF
51878 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
51879 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
51880 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51881 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51882 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51883 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51884 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51885 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51886 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51887 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51888 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51889 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51890 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
51891 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
51892 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
51893 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
51894 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
51895 COND_BUILD_release!$COND_BUILD_release$ac_delim
51896 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
51897 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
51898 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
51899 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51900 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51901 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51902 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51903 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51904 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51905 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51906 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51907 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51908 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51909 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51910 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51911 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51912 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51913 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
51914 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51915 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51916 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51917 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51918 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51919 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51920 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51921 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51922 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51923 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
51924 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51925 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51926 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51927 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51928 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51929 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51930 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51931 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51932 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
51933 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51934 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51935 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51936 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51937 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51938 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
51939 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
51940 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
51941 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
51942 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
51943 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
51944 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
51945 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
51946 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
51947 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
51948 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
51949 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
51950 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
51951 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
51952 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
51953 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
51954 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
51955 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
51956 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
51957 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
51958 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
51959 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
51960 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
51961 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
51962 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
51963 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51964 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51965 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51966 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51967 COND_SHARED_0!$COND_SHARED_0$ac_delim
51968 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51969 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51970 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51971 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51972 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
51973 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
51974 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
51975 _ACEOF
51976
51977   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51978     break
51979   elif $ac_last_try; then
51980     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51981 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51982    { (exit 1); exit 1; }; }
51983   else
51984     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51985   fi
51986 done
51987
51988 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51989 if test -n "$ac_eof"; then
51990   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51991   ac_eof=`expr $ac_eof + 1`
51992 fi
51993
51994 cat >>$CONFIG_STATUS <<_ACEOF
51995 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51997 _ACEOF
51998 sed '
51999 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52000 s/^/s,@/; s/!/@,|#_!!_#|/
52001 :n
52002 t n
52003 s/'"$ac_delim"'$/,g/; t
52004 s/$/\\/; p
52005 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52006 ' >>$CONFIG_STATUS <conf$$subs.sed
52007 rm -f conf$$subs.sed
52008 cat >>$CONFIG_STATUS <<_ACEOF
52009 CEOF$ac_eof
52010 _ACEOF
52011
52012
52013 ac_delim='%!_!# '
52014 for ac_last_try in false false false false false :; do
52015   cat >conf$$subs.sed <<_ACEOF
52016 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
52017 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
52018 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
52019 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
52020 COND_SHARED_1!$COND_SHARED_1$ac_delim
52021 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
52022 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
52023 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
52024 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
52025 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52026 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
52027 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
52028 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
52029 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52030 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52031 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52032 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52033 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52034 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52035 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52036 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52037 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52038 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52039 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52040 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52041 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52042 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52043 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52044 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52045 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52046 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52047 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52048 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52049 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52050 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52051 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52052 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52053 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52054 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52055 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52056 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52057 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52058 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52059 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52060 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52061 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52062 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52063 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52064 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52065 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52066 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52067 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52068 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52069 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52070 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52071 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52072 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52073 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52074 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52075 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52076 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52077 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52078 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52079 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52080 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52081 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52082 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52083 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52084 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52085 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52086 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52087 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52088 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52089 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52090 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52091 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52092 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52093 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52094 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52095 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52096 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52097 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52098 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52099 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52100 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52101 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52102 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52103 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52104 DEREZ!$DEREZ$ac_delim
52105 SHARED!$SHARED$ac_delim
52106 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52107 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52108 USE_GUI!$USE_GUI$ac_delim
52109 AFMINSTALL!$AFMINSTALL$ac_delim
52110 WIN32INSTALL!$WIN32INSTALL$ac_delim
52111 TOOLKIT!$TOOLKIT$ac_delim
52112 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52113 _ACEOF
52114
52115   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52116     break
52117   elif $ac_last_try; then
52118     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52119 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52120    { (exit 1); exit 1; }; }
52121   else
52122     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52123   fi
52124 done
52125
52126 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52127 if test -n "$ac_eof"; then
52128   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52129   ac_eof=`expr $ac_eof + 1`
52130 fi
52131
52132 cat >>$CONFIG_STATUS <<_ACEOF
52133 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52135 _ACEOF
52136 sed '
52137 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52138 s/^/s,@/; s/!/@,|#_!!_#|/
52139 :n
52140 t n
52141 s/'"$ac_delim"'$/,g/; t
52142 s/$/\\/; p
52143 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52144 ' >>$CONFIG_STATUS <conf$$subs.sed
52145 rm -f conf$$subs.sed
52146 cat >>$CONFIG_STATUS <<_ACEOF
52147 CEOF$ac_eof
52148 _ACEOF
52149
52150
52151 ac_delim='%!_!# '
52152 for ac_last_try in false false false false false :; do
52153   cat >conf$$subs.sed <<_ACEOF
52154 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52155 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52156 cross_compiling!$cross_compiling$ac_delim
52157 WIDGET_SET!$WIDGET_SET$ac_delim
52158 WX_RELEASE!$WX_RELEASE$ac_delim
52159 WX_VERSION!$WX_VERSION$ac_delim
52160 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52161 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52162 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
52163 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52164 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52165 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52166 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52167 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52168 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52169 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52170 GUIDIST!$GUIDIST$ac_delim
52171 DISTDIR!$DISTDIR$ac_delim
52172 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52173 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52174 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52175 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52176 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52177 RESCOMP!$RESCOMP$ac_delim
52178 RESFLAGS!$RESFLAGS$ac_delim
52179 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52180 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52181 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52182 LIBWXMACRES!$LIBWXMACRES$ac_delim
52183 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52184 MACSETFILE!$MACSETFILE$ac_delim
52185 GCC!$GCC$ac_delim
52186 DLLTOOL!$DLLTOOL$ac_delim
52187 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52188 LIBOBJS!$LIBOBJS$ac_delim
52189 LTLIBOBJS!$LTLIBOBJS$ac_delim
52190 _ACEOF
52191
52192   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
52193     break
52194   elif $ac_last_try; then
52195     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52196 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52197    { (exit 1); exit 1; }; }
52198   else
52199     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52200   fi
52201 done
52202
52203 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52204 if test -n "$ac_eof"; then
52205   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52206   ac_eof=`expr $ac_eof + 1`
52207 fi
52208
52209 cat >>$CONFIG_STATUS <<_ACEOF
52210 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52212 _ACEOF
52213 sed '
52214 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52215 s/^/s,@/; s/!/@,|#_!!_#|/
52216 :n
52217 t n
52218 s/'"$ac_delim"'$/,g/; t
52219 s/$/\\/; p
52220 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52221 ' >>$CONFIG_STATUS <conf$$subs.sed
52222 rm -f conf$$subs.sed
52223 cat >>$CONFIG_STATUS <<_ACEOF
52224 :end
52225 s/|#_!!_#|//g
52226 CEOF$ac_eof
52227 _ACEOF
52228
52229
52230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52232 # trailing colons and then remove the whole line if VPATH becomes empty
52233 # (actually we leave an empty line to preserve line numbers).
52234 if test "x$srcdir" = x.; then
52235   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52236 s/:*\$(srcdir):*/:/
52237 s/:*\${srcdir}:*/:/
52238 s/:*@srcdir@:*/:/
52239 s/^\([^=]*=[     ]*\):*/\1/
52240 s/:*$//
52241 s/^[^=]*=[       ]*$//
52242 }'
52243 fi
52244
52245 cat >>$CONFIG_STATUS <<\_ACEOF
52246 fi # test -n "$CONFIG_FILES"
52247
52248
52249 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52250 do
52251   case $ac_tag in
52252   :[FHLC]) ac_mode=$ac_tag; continue;;
52253   esac
52254   case $ac_mode$ac_tag in
52255   :[FHL]*:*);;
52256   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52257 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52258    { (exit 1); exit 1; }; };;
52259   :[FH]-) ac_tag=-:-;;
52260   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52261   esac
52262   ac_save_IFS=$IFS
52263   IFS=:
52264   set x $ac_tag
52265   IFS=$ac_save_IFS
52266   shift
52267   ac_file=$1
52268   shift
52269
52270   case $ac_mode in
52271   :L) ac_source=$1;;
52272   :[FH])
52273     ac_file_inputs=
52274     for ac_f
52275     do
52276       case $ac_f in
52277       -) ac_f="$tmp/stdin";;
52278       *) # Look for the file first in the build tree, then in the source tree
52279          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52280          # because $ac_f cannot contain `:'.
52281          test -f "$ac_f" ||
52282            case $ac_f in
52283            [\\/$]*) false;;
52284            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52285            esac ||
52286            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52287 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52288    { (exit 1); exit 1; }; };;
52289       esac
52290       ac_file_inputs="$ac_file_inputs $ac_f"
52291     done
52292
52293     # Let's still pretend it is `configure' which instantiates (i.e., don't
52294     # use $as_me), people would be surprised to read:
52295     #    /* config.h.  Generated by config.status.  */
52296     configure_input="Generated from "`IFS=:
52297           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52298     if test x"$ac_file" != x-; then
52299       configure_input="$ac_file.  $configure_input"
52300       { echo "$as_me:$LINENO: creating $ac_file" >&5
52301 echo "$as_me: creating $ac_file" >&6;}
52302     fi
52303
52304     case $ac_tag in
52305     *:-:* | *:-) cat >"$tmp/stdin";;
52306     esac
52307     ;;
52308   esac
52309
52310   ac_dir=`$as_dirname -- "$ac_file" ||
52311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52312          X"$ac_file" : 'X\(//\)[^/]' \| \
52313          X"$ac_file" : 'X\(//\)$' \| \
52314          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52315 echo X"$ac_file" |
52316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52317             s//\1/
52318             q
52319           }
52320           /^X\(\/\/\)[^/].*/{
52321             s//\1/
52322             q
52323           }
52324           /^X\(\/\/\)$/{
52325             s//\1/
52326             q
52327           }
52328           /^X\(\/\).*/{
52329             s//\1/
52330             q
52331           }
52332           s/.*/./; q'`
52333   { as_dir="$ac_dir"
52334   case $as_dir in #(
52335   -*) as_dir=./$as_dir;;
52336   esac
52337   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52338     as_dirs=
52339     while :; do
52340       case $as_dir in #(
52341       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52342       *) as_qdir=$as_dir;;
52343       esac
52344       as_dirs="'$as_qdir' $as_dirs"
52345       as_dir=`$as_dirname -- "$as_dir" ||
52346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52347          X"$as_dir" : 'X\(//\)[^/]' \| \
52348          X"$as_dir" : 'X\(//\)$' \| \
52349          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52350 echo X"$as_dir" |
52351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52352             s//\1/
52353             q
52354           }
52355           /^X\(\/\/\)[^/].*/{
52356             s//\1/
52357             q
52358           }
52359           /^X\(\/\/\)$/{
52360             s//\1/
52361             q
52362           }
52363           /^X\(\/\).*/{
52364             s//\1/
52365             q
52366           }
52367           s/.*/./; q'`
52368       test -d "$as_dir" && break
52369     done
52370     test -z "$as_dirs" || eval "mkdir $as_dirs"
52371   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52372 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52373    { (exit 1); exit 1; }; }; }
52374   ac_builddir=.
52375
52376 case "$ac_dir" in
52377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52378 *)
52379   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52380   # A ".." for each directory in $ac_dir_suffix.
52381   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52382   case $ac_top_builddir_sub in
52383   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52384   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52385   esac ;;
52386 esac
52387 ac_abs_top_builddir=$ac_pwd
52388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52389 # for backward compatibility:
52390 ac_top_builddir=$ac_top_build_prefix
52391
52392 case $srcdir in
52393   .)  # We are building in place.
52394     ac_srcdir=.
52395     ac_top_srcdir=$ac_top_builddir_sub
52396     ac_abs_top_srcdir=$ac_pwd ;;
52397   [\\/]* | ?:[\\/]* )  # Absolute name.
52398     ac_srcdir=$srcdir$ac_dir_suffix;
52399     ac_top_srcdir=$srcdir
52400     ac_abs_top_srcdir=$srcdir ;;
52401   *) # Relative name.
52402     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52403     ac_top_srcdir=$ac_top_build_prefix$srcdir
52404     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52405 esac
52406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52407
52408
52409   case $ac_mode in
52410   :F)
52411   #
52412   # CONFIG_FILE
52413   #
52414
52415   case $INSTALL in
52416   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52417   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52418   esac
52419 _ACEOF
52420
52421 cat >>$CONFIG_STATUS <<\_ACEOF
52422 # If the template does not know about datarootdir, expand it.
52423 # FIXME: This hack should be removed a few years after 2.60.
52424 ac_datarootdir_hack=; ac_datarootdir_seen=
52425
52426 case `sed -n '/datarootdir/ {
52427   p
52428   q
52429 }
52430 /@datadir@/p
52431 /@docdir@/p
52432 /@infodir@/p
52433 /@localedir@/p
52434 /@mandir@/p
52435 ' $ac_file_inputs` in
52436 *datarootdir*) ac_datarootdir_seen=yes;;
52437 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52438   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52439 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52440 _ACEOF
52441 cat >>$CONFIG_STATUS <<_ACEOF
52442   ac_datarootdir_hack='
52443   s&@datadir@&$datadir&g
52444   s&@docdir@&$docdir&g
52445   s&@infodir@&$infodir&g
52446   s&@localedir@&$localedir&g
52447   s&@mandir@&$mandir&g
52448     s&\\\${datarootdir}&$datarootdir&g' ;;
52449 esac
52450 _ACEOF
52451
52452 # Neutralize VPATH when `$srcdir' = `.'.
52453 # Shell code in configure.ac might set extrasub.
52454 # FIXME: do we really want to maintain this feature?
52455 cat >>$CONFIG_STATUS <<_ACEOF
52456   sed "$ac_vpsub
52457 $extrasub
52458 _ACEOF
52459 cat >>$CONFIG_STATUS <<\_ACEOF
52460 :t
52461 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52462 s&@configure_input@&$configure_input&;t t
52463 s&@top_builddir@&$ac_top_builddir_sub&;t t
52464 s&@srcdir@&$ac_srcdir&;t t
52465 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52466 s&@top_srcdir@&$ac_top_srcdir&;t t
52467 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52468 s&@builddir@&$ac_builddir&;t t
52469 s&@abs_builddir@&$ac_abs_builddir&;t t
52470 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52471 s&@INSTALL@&$ac_INSTALL&;t t
52472 $ac_datarootdir_hack
52473 " $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
52474
52475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52476   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52477   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52478   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52479 which seems to be undefined.  Please make sure it is defined." >&5
52480 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52481 which seems to be undefined.  Please make sure it is defined." >&2;}
52482
52483   rm -f "$tmp/stdin"
52484   case $ac_file in
52485   -) cat "$tmp/out"; rm -f "$tmp/out";;
52486   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52487   esac
52488  ;;
52489   :H)
52490   #
52491   # CONFIG_HEADER
52492   #
52493 _ACEOF
52494
52495 # Transform confdefs.h into a sed script `conftest.defines', that
52496 # substitutes the proper values into config.h.in to produce config.h.
52497 rm -f conftest.defines conftest.tail
52498 # First, append a space to every undef/define line, to ease matching.
52499 echo 's/$/ /' >conftest.defines
52500 # Then, protect against being on the right side of a sed subst, or in
52501 # an unquoted here document, in config.status.  If some macros were
52502 # called several times there might be several #defines for the same
52503 # symbol, which is useless.  But do not sort them, since the last
52504 # AC_DEFINE must be honored.
52505 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52506 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52507 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52508 # PARAMS is the parameter list in the macro definition--in most cases, it's
52509 # just an empty string.
52510 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52511 ac_dB='\\)[      (].*,\\1define\\2'
52512 ac_dC=' '
52513 ac_dD=' ,'
52514
52515 uniq confdefs.h |
52516   sed -n '
52517         t rset
52518         :rset
52519         s/^[     ]*#[    ]*define[       ][      ]*//
52520         t ok
52521         d
52522         :ok
52523         s/[\\&,]/\\&/g
52524         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52525         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52526   ' >>conftest.defines
52527
52528 # Remove the space that was appended to ease matching.
52529 # Then replace #undef with comments.  This is necessary, for
52530 # example, in the case of _POSIX_SOURCE, which is predefined and required
52531 # on some systems where configure will not decide to define it.
52532 # (The regexp can be short, since the line contains either #define or #undef.)
52533 echo 's/ $//
52534 s,^[     #]*u.*,/* & */,' >>conftest.defines
52535
52536 # Break up conftest.defines:
52537 ac_max_sed_lines=50
52538
52539 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52540 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52541 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52542 # et cetera.
52543 ac_in='$ac_file_inputs'
52544 ac_out='"$tmp/out1"'
52545 ac_nxt='"$tmp/out2"'
52546
52547 while :
52548 do
52549   # Write a here document:
52550     cat >>$CONFIG_STATUS <<_ACEOF
52551     # First, check the format of the line:
52552     cat >"\$tmp/defines.sed" <<\\CEOF
52553 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52554 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52555 b
52556 :def
52557 _ACEOF
52558   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52559   echo 'CEOF
52560     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52561   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52562   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52563   grep . conftest.tail >/dev/null || break
52564   rm -f conftest.defines
52565   mv conftest.tail conftest.defines
52566 done
52567 rm -f conftest.defines conftest.tail
52568
52569 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52570 cat >>$CONFIG_STATUS <<\_ACEOF
52571   if test x"$ac_file" != x-; then
52572     echo "/* $configure_input  */" >"$tmp/config.h"
52573     cat "$ac_result" >>"$tmp/config.h"
52574     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52575       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52576 echo "$as_me: $ac_file is unchanged" >&6;}
52577     else
52578       rm -f $ac_file
52579       mv "$tmp/config.h" $ac_file
52580     fi
52581   else
52582     echo "/* $configure_input  */"
52583     cat "$ac_result"
52584   fi
52585   rm -f "$tmp/out12"
52586  ;;
52587
52588   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52589 echo "$as_me: executing $ac_file commands" >&6;}
52590  ;;
52591   esac
52592
52593
52594   case $ac_file$ac_mode in
52595     "rcdefs.h":C)
52596             mkdir -p $outdir &&
52597             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52598          ;;
52599     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52600     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52601     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52602     "wx-config":C)  rm -f wx-config
52603                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52604                     ;;
52605
52606   esac
52607 done # for ac_tag
52608
52609
52610 { (exit 0); exit 0; }
52611 _ACEOF
52612 chmod +x $CONFIG_STATUS
52613 ac_clean_files=$ac_clean_files_save
52614
52615
52616 # configure is writing to config.log, and then calls config.status.
52617 # config.status does its own redirection, appending to config.log.
52618 # Unfortunately, on DOS this fails, as config.log is still kept open
52619 # by configure, so config.status won't be able to write to it; its
52620 # output is simply discarded.  So we exec the FD to /dev/null,
52621 # effectively closing config.log, so it can be properly (re)opened and
52622 # appended to by config.status.  When coming back to configure, we
52623 # need to make the FD available again.
52624 if test "$no_create" != yes; then
52625   ac_cs_success=:
52626   ac_config_status_args=
52627   test "$silent" = yes &&
52628     ac_config_status_args="$ac_config_status_args --quiet"
52629   exec 5>/dev/null
52630   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52631   exec 5>>config.log
52632   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52633   # would make configure fail if this is the last instruction.
52634   $ac_cs_success || { (exit 1); exit 1; }
52635 fi
52636
52637 #
52638 # CONFIG_SUBDIRS section.
52639 #
52640 if test "$no_recursion" != yes; then
52641
52642   # Remove --cache-file and --srcdir arguments so they do not pile up.
52643   ac_sub_configure_args=
52644   ac_prev=
52645   eval "set x $ac_configure_args"
52646   shift
52647   for ac_arg
52648   do
52649     if test -n "$ac_prev"; then
52650       ac_prev=
52651       continue
52652     fi
52653     case $ac_arg in
52654     -cache-file | --cache-file | --cache-fil | --cache-fi \
52655     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52656       ac_prev=cache_file ;;
52657     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52658     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52659     | --c=*)
52660       ;;
52661     --config-cache | -C)
52662       ;;
52663     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52664       ac_prev=srcdir ;;
52665     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52666       ;;
52667     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52668       ac_prev=prefix ;;
52669     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52670       ;;
52671     *)
52672       case $ac_arg in
52673       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52674       esac
52675       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52676     esac
52677   done
52678
52679   # Always prepend --prefix to ensure using the same prefix
52680   # in subdir configurations.
52681   ac_arg="--prefix=$prefix"
52682   case $ac_arg in
52683   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52684   esac
52685   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52686
52687   # Pass --silent
52688   if test "$silent" = yes; then
52689     ac_sub_configure_args="--silent $ac_sub_configure_args"
52690   fi
52691
52692   ac_popdir=`pwd`
52693   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52694
52695     # Do not complain, so a configure script can configure whichever
52696     # parts of a large source tree are present.
52697     test -d "$srcdir/$ac_dir" || continue
52698
52699     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52700     echo "$as_me:$LINENO: $ac_msg" >&5
52701     echo "$ac_msg" >&6
52702     { as_dir="$ac_dir"
52703   case $as_dir in #(
52704   -*) as_dir=./$as_dir;;
52705   esac
52706   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52707     as_dirs=
52708     while :; do
52709       case $as_dir in #(
52710       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52711       *) as_qdir=$as_dir;;
52712       esac
52713       as_dirs="'$as_qdir' $as_dirs"
52714       as_dir=`$as_dirname -- "$as_dir" ||
52715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52716          X"$as_dir" : 'X\(//\)[^/]' \| \
52717          X"$as_dir" : 'X\(//\)$' \| \
52718          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52719 echo X"$as_dir" |
52720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52721             s//\1/
52722             q
52723           }
52724           /^X\(\/\/\)[^/].*/{
52725             s//\1/
52726             q
52727           }
52728           /^X\(\/\/\)$/{
52729             s//\1/
52730             q
52731           }
52732           /^X\(\/\).*/{
52733             s//\1/
52734             q
52735           }
52736           s/.*/./; q'`
52737       test -d "$as_dir" && break
52738     done
52739     test -z "$as_dirs" || eval "mkdir $as_dirs"
52740   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52741 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52742    { (exit 1); exit 1; }; }; }
52743     ac_builddir=.
52744
52745 case "$ac_dir" in
52746 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52747 *)
52748   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52749   # A ".." for each directory in $ac_dir_suffix.
52750   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52751   case $ac_top_builddir_sub in
52752   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52753   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52754   esac ;;
52755 esac
52756 ac_abs_top_builddir=$ac_pwd
52757 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52758 # for backward compatibility:
52759 ac_top_builddir=$ac_top_build_prefix
52760
52761 case $srcdir in
52762   .)  # We are building in place.
52763     ac_srcdir=.
52764     ac_top_srcdir=$ac_top_builddir_sub
52765     ac_abs_top_srcdir=$ac_pwd ;;
52766   [\\/]* | ?:[\\/]* )  # Absolute name.
52767     ac_srcdir=$srcdir$ac_dir_suffix;
52768     ac_top_srcdir=$srcdir
52769     ac_abs_top_srcdir=$srcdir ;;
52770   *) # Relative name.
52771     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52772     ac_top_srcdir=$ac_top_build_prefix$srcdir
52773     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52774 esac
52775 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52776
52777
52778     cd "$ac_dir"
52779
52780     # Check for guested configure; otherwise get Cygnus style configure.
52781     if test -f "$ac_srcdir/configure.gnu"; then
52782       ac_sub_configure=$ac_srcdir/configure.gnu
52783     elif test -f "$ac_srcdir/configure"; then
52784       ac_sub_configure=$ac_srcdir/configure
52785     elif test -f "$ac_srcdir/configure.in"; then
52786       # This should be Cygnus configure.
52787       ac_sub_configure=$ac_aux_dir/configure
52788     else
52789       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52790 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52791       ac_sub_configure=
52792     fi
52793
52794     # The recursion is here.
52795     if test -n "$ac_sub_configure"; then
52796       # Make the cache file name correct relative to the subdirectory.
52797       case $cache_file in
52798       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52799       *) # Relative name.
52800         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52801       esac
52802
52803       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52804 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52805       # The eval makes quoting arguments work.
52806       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
52807            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
52808         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52809 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52810    { (exit 1); exit 1; }; }
52811     fi
52812
52813     cd "$ac_popdir"
52814   done
52815 fi
52816
52817
52818 echo
52819 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52820 echo ""
52821 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52822 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52823
52824 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52825 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52826 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52827 if test "$wxUSE_UNICODE" = "yes"; then
52828     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52829         echo " (using UTF-8)"
52830     else
52831         echo " (using wchar_t)"
52832     fi
52833 else
52834     echo
52835 fi
52836
52837 echo "  What level of wxWidgets compatibility should be enabled?"
52838 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52839 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52840
52841 echo "  Which libraries should wxWidgets use?"
52842 echo "                                       STL                ${wxUSE_STL}"
52843 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52844 echo "                                       png                ${wxUSE_LIBPNG-none}"
52845 echo "                                       regex              ${wxUSE_REGEX}"
52846 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52847 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52848 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52849 fi
52850 echo "                                       zlib               ${wxUSE_ZLIB}"
52851 echo "                                       expat              ${wxUSE_EXPAT}"
52852 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52853 echo "                                       sdl                ${wxUSE_LIBSDL}"
52854
52855 echo ""
52856