Be more paranoid about parent window possibly being NULL (partly fixes #11115).
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.1.
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.1'
579 PACKAGE_STRING='wxWidgets 2.9.1'
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 DEBUG_INFO
751 DEBUG_FLAG
752 TOOLKIT_LOWERCASE
753 TOOLKIT_VERSION
754 DYLIB_RPATH_INSTALL
755 DYLIB_RPATH_POSTLINK
756 SAMPLES_RPATH_FLAG
757 HEADER_PAD_OPTION
758 HOST_SUFFIX
759 CPPUNIT_CFLAGS
760 CPPUNIT_LIBS
761 RANLIB
762 INSTALL_PROGRAM
763 INSTALL_SCRIPT
764 INSTALL_DATA
765 LN_S
766 SET_MAKE
767 MAKE_SET
768 AROPTIONS
769 STRIP
770 NM
771 INSTALL_DIR
772 LDFLAGS_GUI
773 IF_GNU_MAKE
774 PLATFORM_UNIX
775 PLATFORM_WIN32
776 PLATFORM_MSDOS
777 PLATFORM_MAC
778 PLATFORM_MACOS
779 PLATFORM_MACOSX
780 PLATFORM_OS2
781 PLATFORM_BEOS
782 SO_SUFFIX
783 SO_SUFFIX_MODULE
784 DLLIMP_SUFFIX
785 LIBPREFIX
786 LIBEXT
787 DLLPREFIX
788 DLLPREFIX_MODULE
789 dlldir
790 AIX_CXX_LD
791 SHARED_LD_CC
792 SHARED_LD_CXX
793 SHARED_LD_MODULE_CC
794 SHARED_LD_MODULE_CXX
795 PIC_FLAG
796 WINDOWS_IMPLIB
797 USE_SOVERSION
798 USE_SOVERLINUX
799 USE_SOVERSOLARIS
800 USE_SOVERCYGWIN
801 USE_MACVERSION
802 USE_SOSYMLINKS
803 SONAME_FLAG
804 DEPS_TRACKING
805 BK_DEPS
806 WINDRES
807 REZ
808 SETFILE
809 OBJCXXFLAGS
810 GCC_PCH
811 ICC_PCH
812 ICC_PCH_CREATE_SWITCH
813 ICC_PCH_USE_SWITCH
814 BK_MAKE_PCH
815 COND_BUILD_DEBUG
816 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
817 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
818 COND_BUILD_DEBUG_UNICODE_0
819 COND_BUILD_DEBUG_UNICODE_1
820 COND_BUILD_RELEASE
821 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
822 COND_BUILD_RELEASE_UNICODE_0
823 COND_BUILD_RELEASE_UNICODE_1
824 COND_BUILD_debug
825 COND_BUILD_debug_DEBUG_FLAG_default
826 COND_BUILD_debug_DEBUG_INFO_default
827 COND_BUILD_debug_UNICODE_0
828 COND_BUILD_debug_UNICODE_1
829 COND_BUILD_release
830 COND_BUILD_release_DEBUG_INFO_default
831 COND_BUILD_release_UNICODE_0
832 COND_BUILD_release_UNICODE_1
833 COND_DEBUG_FLAG_0
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 WXCONFIG_CPPFLAGS
1016 WXCONFIG_CFLAGS
1017 WXCONFIG_CXXFLAGS
1018 WXCONFIG_LIBS
1019 WXCONFIG_RPATH
1020 WXCONFIG_LDFLAGS_GUI
1021 WXCONFIG_RESFLAGS
1022 GUIDIST
1023 DISTDIR
1024 SAMPLES_SUBDIRS
1025 LDFLAGS_GL
1026 OPENGL_LIBS
1027 DMALLOC_LIBS
1028 WX_VERSION_TAG
1029 RESCOMP
1030 RESFLAGS
1031 RESPROGRAMOBJ
1032 WX_RESOURCES_MACOSX_ASCII
1033 WX_RESOURCES_MACOSX_DATA
1034 LIBWXMACRES
1035 POSTLINK_COMMAND
1036 MACSETFILE
1037 GCC
1038 DLLTOOL
1039 CPPUNIT_CONFIG
1040 LIBOBJS
1041 LTLIBOBJS'
1042 ac_subst_files=''
1043       ac_precious_vars='build_alias
1044 host_alias
1045 target_alias
1046 CC
1047 CFLAGS
1048 LDFLAGS
1049 LIBS
1050 CPPFLAGS
1051 CPP
1052 CXX
1053 CXXFLAGS
1054 CCC
1055 PKG_CONFIG
1056 DIRECTFB_CFLAGS
1057 DIRECTFB_LIBS
1058 XMKMF
1059 PANGOX_CFLAGS
1060 PANGOX_LIBS
1061 PANGOFT2_CFLAGS
1062 PANGOFT2_LIBS
1063 PANGOXFT_CFLAGS
1064 PANGOXFT_LIBS
1065 GTKPRINT_CFLAGS
1066 GTKPRINT_LIBS
1067 LIBGNOMEPRINTUI_CFLAGS
1068 LIBGNOMEPRINTUI_LIBS
1069 GNOMEVFS_CFLAGS
1070 GNOMEVFS_LIBS
1071 HILDON_CFLAGS
1072 HILDON_LIBS
1073 CAIRO_CFLAGS
1074 CAIRO_LIBS
1075 GST_CFLAGS
1076 GST_LIBS'
1077 ac_subdirs_all='src/tiff
1078 src/expat'
1079
1080 # Initialize some variables set by options.
1081 ac_init_help=
1082 ac_init_version=false
1083 # The variables have the same names as the options, with
1084 # dashes changed to underlines.
1085 cache_file=/dev/null
1086 exec_prefix=NONE
1087 no_create=
1088 no_recursion=
1089 prefix=NONE
1090 program_prefix=NONE
1091 program_suffix=NONE
1092 program_transform_name=s,x,x,
1093 silent=
1094 site=
1095 srcdir=
1096 verbose=
1097 x_includes=NONE
1098 x_libraries=NONE
1099
1100 # Installation directory options.
1101 # These are left unexpanded so users can "make install exec_prefix=/foo"
1102 # and all the variables that are supposed to be based on exec_prefix
1103 # by default will actually change.
1104 # Use braces instead of parens because sh, perl, etc. also accept them.
1105 # (The list follows the same order as the GNU Coding Standards.)
1106 bindir='${exec_prefix}/bin'
1107 sbindir='${exec_prefix}/sbin'
1108 libexecdir='${exec_prefix}/libexec'
1109 datarootdir='${prefix}/share'
1110 datadir='${datarootdir}'
1111 sysconfdir='${prefix}/etc'
1112 sharedstatedir='${prefix}/com'
1113 localstatedir='${prefix}/var'
1114 includedir='${prefix}/include'
1115 oldincludedir='/usr/include'
1116 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1117 infodir='${datarootdir}/info'
1118 htmldir='${docdir}'
1119 dvidir='${docdir}'
1120 pdfdir='${docdir}'
1121 psdir='${docdir}'
1122 libdir='${exec_prefix}/lib'
1123 localedir='${datarootdir}/locale'
1124 mandir='${datarootdir}/man'
1125
1126 ac_prev=
1127 ac_dashdash=
1128 for ac_option
1129 do
1130   # If the previous option needs an argument, assign it.
1131   if test -n "$ac_prev"; then
1132     eval $ac_prev=\$ac_option
1133     ac_prev=
1134     continue
1135   fi
1136
1137   case $ac_option in
1138   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1139   *)    ac_optarg=yes ;;
1140   esac
1141
1142   # Accept the important Cygnus configure options, so we can diagnose typos.
1143
1144   case $ac_dashdash$ac_option in
1145   --)
1146     ac_dashdash=yes ;;
1147
1148   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1149     ac_prev=bindir ;;
1150   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1151     bindir=$ac_optarg ;;
1152
1153   -build | --build | --buil | --bui | --bu)
1154     ac_prev=build_alias ;;
1155   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1156     build_alias=$ac_optarg ;;
1157
1158   -cache-file | --cache-file | --cache-fil | --cache-fi \
1159   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1160     ac_prev=cache_file ;;
1161   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1162   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1163     cache_file=$ac_optarg ;;
1164
1165   --config-cache | -C)
1166     cache_file=config.cache ;;
1167
1168   -datadir | --datadir | --datadi | --datad)
1169     ac_prev=datadir ;;
1170   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1171     datadir=$ac_optarg ;;
1172
1173   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1174   | --dataroo | --dataro | --datar)
1175     ac_prev=datarootdir ;;
1176   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1177   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1178     datarootdir=$ac_optarg ;;
1179
1180   -disable-* | --disable-*)
1181     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1185    { (exit 1); exit 1; }; }
1186     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1187     eval enable_$ac_feature=no ;;
1188
1189   -docdir | --docdir | --docdi | --doc | --do)
1190     ac_prev=docdir ;;
1191   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1192     docdir=$ac_optarg ;;
1193
1194   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195     ac_prev=dvidir ;;
1196   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1197     dvidir=$ac_optarg ;;
1198
1199   -enable-* | --enable-*)
1200     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1206     eval enable_$ac_feature=\$ac_optarg ;;
1207
1208   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1209   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1210   | --exec | --exe | --ex)
1211     ac_prev=exec_prefix ;;
1212   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1213   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1214   | --exec=* | --exe=* | --ex=*)
1215     exec_prefix=$ac_optarg ;;
1216
1217   -gas | --gas | --ga | --g)
1218     # Obsolete; use --with-gas.
1219     with_gas=yes ;;
1220
1221   -help | --help | --hel | --he | -h)
1222     ac_init_help=long ;;
1223   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1224     ac_init_help=recursive ;;
1225   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1226     ac_init_help=short ;;
1227
1228   -host | --host | --hos | --ho)
1229     ac_prev=host_alias ;;
1230   -host=* | --host=* | --hos=* | --ho=*)
1231     host_alias=$ac_optarg ;;
1232
1233   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1234     ac_prev=htmldir ;;
1235   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1236   | --ht=*)
1237     htmldir=$ac_optarg ;;
1238
1239   -includedir | --includedir | --includedi | --included | --include \
1240   | --includ | --inclu | --incl | --inc)
1241     ac_prev=includedir ;;
1242   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1243   | --includ=* | --inclu=* | --incl=* | --inc=*)
1244     includedir=$ac_optarg ;;
1245
1246   -infodir | --infodir | --infodi | --infod | --info | --inf)
1247     ac_prev=infodir ;;
1248   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1249     infodir=$ac_optarg ;;
1250
1251   -libdir | --libdir | --libdi | --libd)
1252     ac_prev=libdir ;;
1253   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1254     libdir=$ac_optarg ;;
1255
1256   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1257   | --libexe | --libex | --libe)
1258     ac_prev=libexecdir ;;
1259   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1260   | --libexe=* | --libex=* | --libe=*)
1261     libexecdir=$ac_optarg ;;
1262
1263   -localedir | --localedir | --localedi | --localed | --locale)
1264     ac_prev=localedir ;;
1265   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1266     localedir=$ac_optarg ;;
1267
1268   -localstatedir | --localstatedir | --localstatedi | --localstated \
1269   | --localstate | --localstat | --localsta | --localst | --locals)
1270     ac_prev=localstatedir ;;
1271   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1272   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1273     localstatedir=$ac_optarg ;;
1274
1275   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1276     ac_prev=mandir ;;
1277   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1278     mandir=$ac_optarg ;;
1279
1280   -nfp | --nfp | --nf)
1281     # Obsolete; use --without-fp.
1282     with_fp=no ;;
1283
1284   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1285   | --no-cr | --no-c | -n)
1286     no_create=yes ;;
1287
1288   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1289   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1290     no_recursion=yes ;;
1291
1292   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1293   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1294   | --oldin | --oldi | --old | --ol | --o)
1295     ac_prev=oldincludedir ;;
1296   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1297   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1298   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1299     oldincludedir=$ac_optarg ;;
1300
1301   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1302     ac_prev=prefix ;;
1303   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1304     prefix=$ac_optarg ;;
1305
1306   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1307   | --program-pre | --program-pr | --program-p)
1308     ac_prev=program_prefix ;;
1309   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1310   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1311     program_prefix=$ac_optarg ;;
1312
1313   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1314   | --program-suf | --program-su | --program-s)
1315     ac_prev=program_suffix ;;
1316   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1317   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1318     program_suffix=$ac_optarg ;;
1319
1320   -program-transform-name | --program-transform-name \
1321   | --program-transform-nam | --program-transform-na \
1322   | --program-transform-n | --program-transform- \
1323   | --program-transform | --program-transfor \
1324   | --program-transfo | --program-transf \
1325   | --program-trans | --program-tran \
1326   | --progr-tra | --program-tr | --program-t)
1327     ac_prev=program_transform_name ;;
1328   -program-transform-name=* | --program-transform-name=* \
1329   | --program-transform-nam=* | --program-transform-na=* \
1330   | --program-transform-n=* | --program-transform-=* \
1331   | --program-transform=* | --program-transfor=* \
1332   | --program-transfo=* | --program-transf=* \
1333   | --program-trans=* | --program-tran=* \
1334   | --progr-tra=* | --program-tr=* | --program-t=*)
1335     program_transform_name=$ac_optarg ;;
1336
1337   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1338     ac_prev=pdfdir ;;
1339   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1340     pdfdir=$ac_optarg ;;
1341
1342   -psdir | --psdir | --psdi | --psd | --ps)
1343     ac_prev=psdir ;;
1344   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1345     psdir=$ac_optarg ;;
1346
1347   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348   | -silent | --silent | --silen | --sile | --sil)
1349     silent=yes ;;
1350
1351   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1352     ac_prev=sbindir ;;
1353   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1354   | --sbi=* | --sb=*)
1355     sbindir=$ac_optarg ;;
1356
1357   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1358   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1359   | --sharedst | --shareds | --shared | --share | --shar \
1360   | --sha | --sh)
1361     ac_prev=sharedstatedir ;;
1362   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1363   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1364   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1365   | --sha=* | --sh=*)
1366     sharedstatedir=$ac_optarg ;;
1367
1368   -site | --site | --sit)
1369     ac_prev=site ;;
1370   -site=* | --site=* | --sit=*)
1371     site=$ac_optarg ;;
1372
1373   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1374     ac_prev=srcdir ;;
1375   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1376     srcdir=$ac_optarg ;;
1377
1378   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1379   | --syscon | --sysco | --sysc | --sys | --sy)
1380     ac_prev=sysconfdir ;;
1381   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1382   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1383     sysconfdir=$ac_optarg ;;
1384
1385   -target | --target | --targe | --targ | --tar | --ta | --t)
1386     ac_prev=target_alias ;;
1387   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1388     target_alias=$ac_optarg ;;
1389
1390   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1391     verbose=yes ;;
1392
1393   -version | --version | --versio | --versi | --vers | -V)
1394     ac_init_version=: ;;
1395
1396   -with-* | --with-*)
1397     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1398     # Reject names that are not valid shell variable names.
1399     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       { echo "$as_me: error: invalid package name: $ac_package" >&2
1401    { (exit 1); exit 1; }; }
1402     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403     eval with_$ac_package=\$ac_optarg ;;
1404
1405   -without-* | --without-*)
1406     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1407     # Reject names that are not valid shell variable names.
1408     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409       { echo "$as_me: error: invalid package name: $ac_package" >&2
1410    { (exit 1); exit 1; }; }
1411     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1412     eval with_$ac_package=no ;;
1413
1414   --x)
1415     # Obsolete; use --with-x.
1416     with_x=yes ;;
1417
1418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419   | --x-incl | --x-inc | --x-in | --x-i)
1420     ac_prev=x_includes ;;
1421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423     x_includes=$ac_optarg ;;
1424
1425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427     ac_prev=x_libraries ;;
1428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430     x_libraries=$ac_optarg ;;
1431
1432   -*) { echo "$as_me: error: unrecognized option: $ac_option
1433 Try \`$0 --help' for more information." >&2
1434    { (exit 1); exit 1; }; }
1435     ;;
1436
1437   *=*)
1438     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1439     # Reject names that are not valid shell variable names.
1440     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1441       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1442    { (exit 1); exit 1; }; }
1443     eval $ac_envvar=\$ac_optarg
1444     export $ac_envvar ;;
1445
1446   *)
1447     # FIXME: should be removed in autoconf 3.0.
1448     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1452     ;;
1453
1454   esac
1455 done
1456
1457 if test -n "$ac_prev"; then
1458   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1459   { echo "$as_me: error: missing argument to $ac_option" >&2
1460    { (exit 1); exit 1; }; }
1461 fi
1462
1463 # Be sure to have absolute directory names.
1464 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1465                 datadir sysconfdir sharedstatedir localstatedir includedir \
1466                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1467                 libdir localedir mandir
1468 do
1469   eval ac_val=\$$ac_var
1470   case $ac_val in
1471     [\\/$]* | ?:[\\/]* )  continue;;
1472     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1473   esac
1474   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1475    { (exit 1); exit 1; }; }
1476 done
1477
1478 # There might be people who depend on the old broken behavior: `$host'
1479 # used to hold the argument of --host etc.
1480 # FIXME: To remove some day.
1481 build=$build_alias
1482 host=$host_alias
1483 target=$target_alias
1484
1485 # FIXME: To remove some day.
1486 if test "x$host_alias" != x; then
1487   if test "x$build_alias" = x; then
1488     cross_compiling=maybe
1489     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1490     If a cross compiler is detected then cross compile mode will be used." >&2
1491   elif test "x$build_alias" != "x$host_alias"; then
1492     cross_compiling=yes
1493   fi
1494 fi
1495
1496 ac_tool_prefix=
1497 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498
1499 test "$silent" = yes && exec 6>/dev/null
1500
1501
1502 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503 ac_ls_di=`ls -di .` &&
1504 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505   { echo "$as_me: error: Working directory cannot be determined" >&2
1506    { (exit 1); exit 1; }; }
1507 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1508   { echo "$as_me: error: pwd does not report name of working directory" >&2
1509    { (exit 1); exit 1; }; }
1510
1511
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514   ac_srcdir_defaulted=yes
1515   # Try the directory containing this script, then the parent directory.
1516   ac_confdir=`$as_dirname -- "$0" ||
1517 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518          X"$0" : 'X\(//\)[^/]' \| \
1519          X"$0" : 'X\(//\)$' \| \
1520          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1521 echo X"$0" |
1522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523             s//\1/
1524             q
1525           }
1526           /^X\(\/\/\)[^/].*/{
1527             s//\1/
1528             q
1529           }
1530           /^X\(\/\/\)$/{
1531             s//\1/
1532             q
1533           }
1534           /^X\(\/\).*/{
1535             s//\1/
1536             q
1537           }
1538           s/.*/./; q'`
1539   srcdir=$ac_confdir
1540   if test ! -r "$srcdir/$ac_unique_file"; then
1541     srcdir=..
1542   fi
1543 else
1544   ac_srcdir_defaulted=no
1545 fi
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1549    { (exit 1); exit 1; }; }
1550 fi
1551 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1552 ac_abs_confdir=`(
1553         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1554    { (exit 1); exit 1; }; }
1555         pwd)`
1556 # When building in place, set srcdir=.
1557 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558   srcdir=.
1559 fi
1560 # Remove unnecessary trailing slashes from srcdir.
1561 # Double slashes in file names in object file debugging info
1562 # mess up M-x gdb in Emacs.
1563 case $srcdir in
1564 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 esac
1566 for ac_var in $ac_precious_vars; do
1567   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568   eval ac_env_${ac_var}_value=\$${ac_var}
1569   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571 done
1572
1573 #
1574 # Report the --help message.
1575 #
1576 if test "$ac_init_help" = "long"; then
1577   # Omit some internal or obsolete options to make the list less imposing.
1578   # This message is too long to be a string in the A/UX 3.1 sh.
1579   cat <<_ACEOF
1580 \`configure' configures wxWidgets 2.9.1 to adapt to many kinds of systems.
1581
1582 Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585 VAR=VALUE.  See below for descriptions of some of the useful variables.
1586
1587 Defaults for the options are specified in brackets.
1588
1589 Configuration:
1590   -h, --help              display this help and exit
1591       --help=short        display options specific to this package
1592       --help=recursive    display the short help of all the included packages
1593   -V, --version           display version information and exit
1594   -q, --quiet, --silent   do not print \`checking...' messages
1595       --cache-file=FILE   cache test results in FILE [disabled]
1596   -C, --config-cache      alias for \`--cache-file=config.cache'
1597   -n, --no-create         do not create output files
1598       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1599
1600 Installation directories:
1601   --prefix=PREFIX         install architecture-independent files in PREFIX
1602                           [$ac_default_prefix]
1603   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1604                           [PREFIX]
1605
1606 By default, \`make install' will install all the files in
1607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609 for instance \`--prefix=\$HOME'.
1610
1611 For better control, use the options below.
1612
1613 Fine tuning of the installation directories:
1614   --bindir=DIR           user executables [EPREFIX/bin]
1615   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1616   --libexecdir=DIR       program executables [EPREFIX/libexec]
1617   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1618   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1619   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1620   --libdir=DIR           object code libraries [EPREFIX/lib]
1621   --includedir=DIR       C header files [PREFIX/include]
1622   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1623   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1624   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1625   --infodir=DIR          info documentation [DATAROOTDIR/info]
1626   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1627   --mandir=DIR           man documentation [DATAROOTDIR/man]
1628   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1629   --htmldir=DIR          html documentation [DOCDIR]
1630   --dvidir=DIR           dvi documentation [DOCDIR]
1631   --pdfdir=DIR           pdf documentation [DOCDIR]
1632   --psdir=DIR            ps documentation [DOCDIR]
1633 _ACEOF
1634
1635   cat <<\_ACEOF
1636
1637 X features:
1638   --x-includes=DIR    X include files are in DIR
1639   --x-libraries=DIR   X library files are in DIR
1640
1641 System types:
1642   --build=BUILD     configure for building on BUILD [guessed]
1643   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1644 _ACEOF
1645 fi
1646
1647 if test -n "$ac_init_help"; then
1648   case $ac_init_help in
1649      short | recursive ) echo "Configuration of wxWidgets 2.9.1:";;
1650    esac
1651   cat <<\_ACEOF
1652
1653 Optional Features:
1654   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1655   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1656   --disable-gui           don't build GUI parts of the library
1657   --enable-monolithic     build wxWidgets as single library
1658   --enable-plugins        build parts of wxWidgets as loadable components
1659   --enable-official_build official build of wxWidgets (win32 DLL only)
1660   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1661   --disable-all-features  disable all optional features to build minimal library
1662   --enable-universal      use wxWidgets GUI controls instead of native ones
1663   --enable-nanox          use NanoX
1664   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1665   --enable-gpe            use GNOME PDA Environment features if possible
1666   --enable-debug          build library for debugging
1667   --disable-debug_flag    disable all debugging support
1668   --enable-debug_info     generate debug information
1669   --enable-debug_gdb      create code with extra GDB debugging information
1670   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1671   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1672   --disable-shared        create static library instead of shared
1673   --enable-stl            use STL for containers
1674   --enable-std_iostreams  use standard C++ stream classes
1675   --enable-std_string     use standard C++ string classes
1676   --disable-unicode       compile without Unicode support
1677   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1678   --enable-utf8           use UTF-8 representation for strings (Unix only)
1679   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1680   --enable-extended_rtti  use extended RTTI (XTI)
1681   --enable-omf            use OMF object format
1682   --disable-optimise      compile without optimisations
1683   --enable-profile        create code with profiling information
1684   --enable-no_rtti        create code without RTTI information
1685   --enable-no_exceptions  create code without C++ exceptions handling
1686   --enable-permissive     compile code disregarding strict ANSI
1687   --enable-no_deps        create code without dependency information
1688   --disable-vararg_macros don't use vararg macros, even if they are supported
1689   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1690   --enable-compat26       enable wxWidgets 2.6 compatibility
1691   --disable-compat28      disable wxWidgets 2.8 compatibility
1692   --disable-rpath         disable use of rpath for uninstalled builds
1693   --enable-objc_uniquifying enable Objective-C class name uniquifying
1694   --disable-visibility    disable use of ELF symbols visibility even if supported
1695   --disable-tls           disable use of compiler TLS support
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.1
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.1, 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=1
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   ;;
2886
2887   *-*-beos* )
2888         USE_BEOS=1
2889     cat >>confdefs.h <<\_ACEOF
2890 #define __BEOS__ 1
2891 _ACEOF
2892
2893   ;;
2894
2895   *)
2896     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2897 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2898     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2899 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2900
2901     DEFAULT_DEFAULT_wxUSE_X11=1
2902     DEFAULT_wxUSE_SHARED=no
2903 esac
2904
2905
2906
2907 DEFAULT_wxUSE_ALL_FEATURES=yes
2908
2909 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2910 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2911
2912 DEFAULT_wxUSE_DMALLOC=no
2913 DEFAULT_wxUSE_LIBGNOMEVFS=no
2914 DEFAULT_wxUSE_LIBHILDON=no
2915 DEFAULT_wxUSE_LIBMSPACK=no
2916 DEFAULT_wxUSE_LIBSDL=no
2917
2918 DEFAULT_wxUSE_ACCESSIBILITY=no
2919 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2920 DEFAULT_wxUSE_IPV6=no
2921 DEFAULT_wxUSE_GSTREAMER8=no
2922
2923 DEFAULT_wxUSE_UNICODE_UTF8=auto
2924 DEFAULT_wxUSE_OPENGL=auto
2925 DEFAULT_wxUSE_MEDIACTRL=auto
2926 DEFAULT_wxUSE_COMPILER_TLS=auto
2927
2928 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2929
2930 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2931
2932 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2933
2934 DEFAULT_wxUSE_GTK2=yes
2935
2936 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2937
2938
2939
2940
2941
2942           enablestring=disable
2943           defaultval=
2944           if test -z "$defaultval"; then
2945               if test x"$enablestring" = xdisable; then
2946                   defaultval=yes
2947               else
2948                   defaultval=no
2949               fi
2950           fi
2951
2952           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2953 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2954           # Check whether --enable-gui was given.
2955 if test "${enable_gui+set}" = set; then
2956   enableval=$enable_gui;
2957                           if test "$enableval" = yes; then
2958                             wx_cv_use_gui='wxUSE_GUI=yes'
2959                           else
2960                             wx_cv_use_gui='wxUSE_GUI=no'
2961                           fi
2962
2963 else
2964
2965                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2966
2967 fi
2968
2969
2970           eval "$wx_cv_use_gui"
2971
2972           if test x"$enablestring" = xdisable; then
2973             if test $wxUSE_GUI = no; then
2974               result=yes
2975             else
2976               result=no
2977             fi
2978           else
2979             result=$wxUSE_GUI
2980           fi
2981
2982           { echo "$as_me:$LINENO: result: $result" >&5
2983 echo "${ECHO_T}$result" >&6; }
2984
2985
2986           enablestring=
2987           defaultval=
2988           if test -z "$defaultval"; then
2989               if test x"$enablestring" = xdisable; then
2990                   defaultval=yes
2991               else
2992                   defaultval=no
2993               fi
2994           fi
2995
2996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2997 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
2998           # Check whether --enable-monolithic was given.
2999 if test "${enable_monolithic+set}" = set; then
3000   enableval=$enable_monolithic;
3001                           if test "$enableval" = yes; then
3002                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3003                           else
3004                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3005                           fi
3006
3007 else
3008
3009                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3010
3011 fi
3012
3013
3014           eval "$wx_cv_use_monolithic"
3015
3016           if test x"$enablestring" = xdisable; then
3017             if test $wxUSE_MONOLITHIC = no; then
3018               result=yes
3019             else
3020               result=no
3021             fi
3022           else
3023             result=$wxUSE_MONOLITHIC
3024           fi
3025
3026           { echo "$as_me:$LINENO: result: $result" >&5
3027 echo "${ECHO_T}$result" >&6; }
3028
3029
3030           enablestring=
3031           defaultval=
3032           if test -z "$defaultval"; then
3033               if test x"$enablestring" = xdisable; then
3034                   defaultval=yes
3035               else
3036                   defaultval=no
3037               fi
3038           fi
3039
3040           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3041 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3042           # Check whether --enable-plugins was given.
3043 if test "${enable_plugins+set}" = set; then
3044   enableval=$enable_plugins;
3045                           if test "$enableval" = yes; then
3046                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3047                           else
3048                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3049                           fi
3050
3051 else
3052
3053                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3054
3055 fi
3056
3057
3058           eval "$wx_cv_use_plugins"
3059
3060           if test x"$enablestring" = xdisable; then
3061             if test $wxUSE_PLUGINS = no; then
3062               result=yes
3063             else
3064               result=no
3065             fi
3066           else
3067             result=$wxUSE_PLUGINS
3068           fi
3069
3070           { echo "$as_me:$LINENO: result: $result" >&5
3071 echo "${ECHO_T}$result" >&6; }
3072
3073
3074           withstring=without
3075           defaultval=$wxUSE_ALL_FEATURES
3076           if test -z "$defaultval"; then
3077               if test x"$withstring" = xwithout; then
3078                   defaultval=yes
3079               else
3080                   defaultval=no
3081               fi
3082           fi
3083           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3084 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3085
3086 # Check whether --with-subdirs was given.
3087 if test "${with_subdirs+set}" = set; then
3088   withval=$with_subdirs;
3089                         if test "$withval" = yes; then
3090                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3091                         else
3092                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3093                         fi
3094
3095 else
3096
3097                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3098
3099 fi
3100
3101
3102           eval "$wx_cv_use_subdirs"
3103
3104           if test x"$withstring" = xwithout; then
3105             if test $wxWITH_SUBDIRS = yes; then
3106               result=no
3107             else
3108               result=yes
3109             fi
3110           else
3111             result=$wxWITH_SUBDIRS
3112           fi
3113
3114           { echo "$as_me:$LINENO: result: $result" >&5
3115 echo "${ECHO_T}$result" >&6; }
3116
3117
3118 # Check whether --with-flavour was given.
3119 if test "${with_flavour+set}" = set; then
3120   withval=$with_flavour; WX_FLAVOUR="$withval"
3121 fi
3122
3123
3124           enablestring=
3125           defaultval=
3126           if test -z "$defaultval"; then
3127               if test x"$enablestring" = xdisable; then
3128                   defaultval=yes
3129               else
3130                   defaultval=no
3131               fi
3132           fi
3133
3134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3135 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3136           # Check whether --enable-official_build was given.
3137 if test "${enable_official_build+set}" = set; then
3138   enableval=$enable_official_build;
3139                           if test "$enableval" = yes; then
3140                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3141                           else
3142                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3143                           fi
3144
3145 else
3146
3147                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3148
3149 fi
3150
3151
3152           eval "$wx_cv_use_official_build"
3153
3154           if test x"$enablestring" = xdisable; then
3155             if test $wxUSE_OFFICIAL_BUILD = no; then
3156               result=yes
3157             else
3158               result=no
3159             fi
3160           else
3161             result=$wxUSE_OFFICIAL_BUILD
3162           fi
3163
3164           { echo "$as_me:$LINENO: result: $result" >&5
3165 echo "${ECHO_T}$result" >&6; }
3166
3167 # Check whether --enable-vendor was given.
3168 if test "${enable_vendor+set}" = set; then
3169   enableval=$enable_vendor; VENDOR="$enableval"
3170 fi
3171
3172 if test "x$VENDOR" = "x"; then
3173     VENDOR="custom"
3174 fi
3175
3176
3177           enablestring=disable
3178           defaultval=
3179           if test -z "$defaultval"; then
3180               if test x"$enablestring" = xdisable; then
3181                   defaultval=yes
3182               else
3183                   defaultval=no
3184               fi
3185           fi
3186
3187           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3188 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3189           # Check whether --enable-all-features was given.
3190 if test "${enable_all_features+set}" = set; then
3191   enableval=$enable_all_features;
3192                           if test "$enableval" = yes; then
3193                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3194                           else
3195                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3196                           fi
3197
3198 else
3199
3200                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3201
3202 fi
3203
3204
3205           eval "$wx_cv_use_all_features"
3206
3207           if test x"$enablestring" = xdisable; then
3208             if test $wxUSE_ALL_FEATURES = no; then
3209               result=yes
3210             else
3211               result=no
3212             fi
3213           else
3214             result=$wxUSE_ALL_FEATURES
3215           fi
3216
3217           { echo "$as_me:$LINENO: result: $result" >&5
3218 echo "${ECHO_T}$result" >&6; }
3219
3220
3221 if test "$wxUSE_ALL_FEATURES" = "no"; then
3222                     DEFAULT_wxUSE_MEDIACTRL=no
3223 fi
3224
3225
3226 if test "$wxUSE_GUI" = "yes"; then
3227
3228
3229           enablestring=
3230           defaultval=
3231           if test -z "$defaultval"; then
3232               if test x"$enablestring" = xdisable; then
3233                   defaultval=yes
3234               else
3235                   defaultval=no
3236               fi
3237           fi
3238
3239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3240 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3241           # Check whether --enable-universal was given.
3242 if test "${enable_universal+set}" = set; then
3243   enableval=$enable_universal;
3244                           if test "$enableval" = yes; then
3245                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3246                           else
3247                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3248                           fi
3249
3250 else
3251
3252                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3253
3254 fi
3255
3256
3257           eval "$wx_cv_use_universal"
3258
3259           if test x"$enablestring" = xdisable; then
3260             if test $wxUSE_UNIVERSAL = no; then
3261               result=yes
3262             else
3263               result=no
3264             fi
3265           else
3266             result=$wxUSE_UNIVERSAL
3267           fi
3268
3269           { echo "$as_me:$LINENO: result: $result" >&5
3270 echo "${ECHO_T}$result" >&6; }
3271
3272 if test "$wxUSE_UNIVERSAL" = "yes"; then
3273
3274 # Check whether --with-themes was given.
3275 if test "${with_themes+set}" = set; then
3276   withval=$with_themes; wxUNIV_THEMES="$withval"
3277 fi
3278
3279 fi
3280
3281
3282 # Check whether --with-gtk was given.
3283 if test "${with_gtk+set}" = set; then
3284   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3285 fi
3286
3287
3288 # Check whether --with-motif was given.
3289 if test "${with_motif+set}" = set; then
3290   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3291 fi
3292
3293
3294 # Check whether --with-osx_carbon was given.
3295 if test "${with_osx_carbon+set}" = set; then
3296   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3297 fi
3298
3299
3300 # Check whether --with-osx_cocoa was given.
3301 if test "${with_osx_cocoa+set}" = set; then
3302   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3303 fi
3304
3305
3306 # Check whether --with-mac was given.
3307 if test "${with_mac+set}" = set; then
3308   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3309 fi
3310
3311
3312 # Check whether --with-cocoa was given.
3313 if test "${with_cocoa+set}" = set; then
3314   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3315 fi
3316
3317
3318 # Check whether --with-wine was given.
3319 if test "${with_wine+set}" = set; then
3320   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3321 fi
3322
3323
3324 # Check whether --with-msw was given.
3325 if test "${with_msw+set}" = set; then
3326   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3327 fi
3328
3329
3330 # Check whether --with-pm was given.
3331 if test "${with_pm+set}" = set; then
3332   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3333 fi
3334
3335
3336 # Check whether --with-mgl was given.
3337 if test "${with_mgl+set}" = set; then
3338   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3339 fi
3340
3341
3342 # Check whether --with-directfb was given.
3343 if test "${with_directfb+set}" = set; then
3344   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3345 fi
3346
3347
3348 # Check whether --with-microwin was given.
3349 if test "${with_microwin+set}" = set; then
3350   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3351 fi
3352
3353
3354 # Check whether --with-x11 was given.
3355 if test "${with_x11+set}" = set; then
3356   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3357 fi
3358
3359
3360           enablestring=
3361           defaultval=
3362           if test -z "$defaultval"; then
3363               if test x"$enablestring" = xdisable; then
3364                   defaultval=yes
3365               else
3366                   defaultval=no
3367               fi
3368           fi
3369
3370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3371 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3372           # Check whether --enable-nanox was given.
3373 if test "${enable_nanox+set}" = set; then
3374   enableval=$enable_nanox;
3375                           if test "$enableval" = yes; then
3376                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3377                           else
3378                             wx_cv_use_nanox='wxUSE_NANOX=no'
3379                           fi
3380
3381 else
3382
3383                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3384
3385 fi
3386
3387
3388           eval "$wx_cv_use_nanox"
3389
3390           if test x"$enablestring" = xdisable; then
3391             if test $wxUSE_NANOX = no; then
3392               result=yes
3393             else
3394               result=no
3395             fi
3396           else
3397             result=$wxUSE_NANOX
3398           fi
3399
3400           { echo "$as_me:$LINENO: result: $result" >&5
3401 echo "${ECHO_T}$result" >&6; }
3402
3403
3404 # Check whether --enable-gtk2 was given.
3405 if test "${enable_gtk2+set}" = set; then
3406   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3407 fi
3408
3409
3410           enablestring=
3411           defaultval=
3412           if test -z "$defaultval"; then
3413               if test x"$enablestring" = xdisable; then
3414                   defaultval=yes
3415               else
3416                   defaultval=no
3417               fi
3418           fi
3419
3420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3421 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3422           # Check whether --enable-gpe was given.
3423 if test "${enable_gpe+set}" = set; then
3424   enableval=$enable_gpe;
3425                           if test "$enableval" = yes; then
3426                             wx_cv_use_gpe='wxUSE_GPE=yes'
3427                           else
3428                             wx_cv_use_gpe='wxUSE_GPE=no'
3429                           fi
3430
3431 else
3432
3433                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3434
3435 fi
3436
3437
3438           eval "$wx_cv_use_gpe"
3439
3440           if test x"$enablestring" = xdisable; then
3441             if test $wxUSE_GPE = no; then
3442               result=yes
3443             else
3444               result=no
3445             fi
3446           else
3447             result=$wxUSE_GPE
3448           fi
3449
3450           { echo "$as_me:$LINENO: result: $result" >&5
3451 echo "${ECHO_T}$result" >&6; }
3452
3453
3454
3455 { echo "$as_me:$LINENO: checking for toolkit" >&5
3456 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3457
3458
3459
3460 # In Wine, we need to default to MSW, not GTK or MOTIF
3461 if test "$wxUSE_WINE" = "yes"; then
3462     DEFAULT_DEFAULT_wxUSE_GTK=0
3463     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3464     DEFAULT_DEFAULT_wxUSE_MSW=1
3465     wxUSE_SHARED=no
3466     CC=${CC:-winegcc}
3467     CXX=${CXX:-wineg++}
3468 fi
3469
3470
3471 if test "$wxUSE_GUI" = "yes"; then
3472
3473     if test "$USE_BEOS" = 1; then
3474         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3475 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3476    { (exit 1); exit 1; }; }
3477     fi
3478
3479     if test "$TOOLKIT_GIVEN" = 1; then
3480             for toolkit in $ALL_TOOLKITS; do
3481         var=wxUSE_$toolkit
3482         eval "value=\$${var}"
3483         if test "x$value" = "xno"; then
3484           eval "$var=0"
3485         elif test "x$value" != "x"; then
3486           eval "$var=1"
3487         fi
3488
3489         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3490           eval "wx${toolkit}_VERSION=$value"
3491         fi
3492       done
3493     else
3494             for toolkit in $ALL_TOOLKITS; do
3495         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3496         eval "wxUSE_$toolkit=\$${var}"
3497       done
3498     fi
3499
3500             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3501                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3502                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3503
3504         case "${host}" in
3505       *-pc-os2_emx | *-pc-os2-emx )
3506         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3507     esac
3508
3509     case "$NUM_TOOLKITS" in
3510       1)
3511       ;;
3512       0)
3513         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3514 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3515    { (exit 1); exit 1; }; }
3516       ;;
3517       *)
3518         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3519 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3520    { (exit 1); exit 1; }; }
3521     esac
3522
3523     # to be removed when --disable-gtk2 isn't needed
3524     if test "x$wxUSE_GTK2" = "xyes"; then
3525         wxGTK_VERSION=2
3526     elif test "x$wxUSE_GTK2" = "xno"; then
3527         wxGTK_VERSION=1
3528     fi
3529
3530     for toolkit in $ALL_TOOLKITS; do
3531         var=wxUSE_$toolkit
3532         eval "value=\$${var}"
3533         if test "$value" = 1; then
3534           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3535           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3536 echo "${ECHO_T}$toolkit_echo" >&6; }
3537         fi
3538     done
3539 else
3540     if test "x$host_alias" != "x"; then
3541         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3542 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3543     else
3544         { echo "$as_me:$LINENO: result: base only" >&5
3545 echo "${ECHO_T}base only" >&6; }
3546     fi
3547 fi
3548
3549 wxUSE_MAC=0
3550 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3551     wxUSE_MAC=1
3552 fi
3553
3554
3555
3556           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3557 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3558
3559 # Check whether --with-libpng was given.
3560 if test "${with_libpng+set}" = set; then
3561   withval=$with_libpng;
3562                         if test "$withval" = yes; then
3563                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3564                         elif test "$withval" = no; then
3565                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3566                         elif test "$withval" = sys; then
3567                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3568                         elif test "$withval" = builtin; then
3569                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3570                         else
3571                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3572 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3573    { (exit 1); exit 1; }; }
3574                         fi
3575
3576 else
3577
3578                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3579
3580 fi
3581
3582
3583           eval "$wx_cv_use_libpng"
3584
3585           if test "$wxUSE_LIBPNG" = yes; then
3586             { echo "$as_me:$LINENO: result: yes" >&5
3587 echo "${ECHO_T}yes" >&6; }
3588           elif test "$wxUSE_LIBPNG" = no; then
3589             { echo "$as_me:$LINENO: result: no" >&5
3590 echo "${ECHO_T}no" >&6; }
3591           elif test "$wxUSE_LIBPNG" = sys; then
3592             { echo "$as_me:$LINENO: result: system version" >&5
3593 echo "${ECHO_T}system version" >&6; }
3594           elif test "$wxUSE_LIBPNG" = builtin; then
3595             { echo "$as_me:$LINENO: result: builtin version" >&5
3596 echo "${ECHO_T}builtin version" >&6; }
3597           else
3598             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3599 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3600    { (exit 1); exit 1; }; }
3601           fi
3602
3603
3604           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3605 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3606
3607 # Check whether --with-libjpeg was given.
3608 if test "${with_libjpeg+set}" = set; then
3609   withval=$with_libjpeg;
3610                         if test "$withval" = yes; then
3611                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3612                         elif test "$withval" = no; then
3613                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3614                         elif test "$withval" = sys; then
3615                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3616                         elif test "$withval" = builtin; then
3617                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3618                         else
3619                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3620 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3621    { (exit 1); exit 1; }; }
3622                         fi
3623
3624 else
3625
3626                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3627
3628 fi
3629
3630
3631           eval "$wx_cv_use_libjpeg"
3632
3633           if test "$wxUSE_LIBJPEG" = yes; then
3634             { echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6; }
3636           elif test "$wxUSE_LIBJPEG" = no; then
3637             { echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6; }
3639           elif test "$wxUSE_LIBJPEG" = sys; then
3640             { echo "$as_me:$LINENO: result: system version" >&5
3641 echo "${ECHO_T}system version" >&6; }
3642           elif test "$wxUSE_LIBJPEG" = builtin; then
3643             { echo "$as_me:$LINENO: result: builtin version" >&5
3644 echo "${ECHO_T}builtin version" >&6; }
3645           else
3646             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3647 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3648    { (exit 1); exit 1; }; }
3649           fi
3650
3651
3652           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3653 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3654
3655 # Check whether --with-libtiff was given.
3656 if test "${with_libtiff+set}" = set; then
3657   withval=$with_libtiff;
3658                         if test "$withval" = yes; then
3659                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3660                         elif test "$withval" = no; then
3661                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3662                         elif test "$withval" = sys; then
3663                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3664                         elif test "$withval" = builtin; then
3665                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3666                         else
3667                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3668 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3669    { (exit 1); exit 1; }; }
3670                         fi
3671
3672 else
3673
3674                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3675
3676 fi
3677
3678
3679           eval "$wx_cv_use_libtiff"
3680
3681           if test "$wxUSE_LIBTIFF" = yes; then
3682             { echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6; }
3684           elif test "$wxUSE_LIBTIFF" = no; then
3685             { echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6; }
3687           elif test "$wxUSE_LIBTIFF" = sys; then
3688             { echo "$as_me:$LINENO: result: system version" >&5
3689 echo "${ECHO_T}system version" >&6; }
3690           elif test "$wxUSE_LIBTIFF" = builtin; then
3691             { echo "$as_me:$LINENO: result: builtin version" >&5
3692 echo "${ECHO_T}builtin version" >&6; }
3693           else
3694             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3695 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3696    { (exit 1); exit 1; }; }
3697           fi
3698
3699
3700           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3701 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3702
3703 # Check whether --with-libxpm was given.
3704 if test "${with_libxpm+set}" = set; then
3705   withval=$with_libxpm;
3706                         if test "$withval" = yes; then
3707                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3708                         elif test "$withval" = no; then
3709                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3710                         elif test "$withval" = sys; then
3711                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3712                         elif test "$withval" = builtin; then
3713                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3714                         else
3715                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3716 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3717    { (exit 1); exit 1; }; }
3718                         fi
3719
3720 else
3721
3722                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3723
3724 fi
3725
3726
3727           eval "$wx_cv_use_libxpm"
3728
3729           if test "$wxUSE_LIBXPM" = yes; then
3730             { echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6; }
3732           elif test "$wxUSE_LIBXPM" = no; then
3733             { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3735           elif test "$wxUSE_LIBXPM" = sys; then
3736             { echo "$as_me:$LINENO: result: system version" >&5
3737 echo "${ECHO_T}system version" >&6; }
3738           elif test "$wxUSE_LIBXPM" = builtin; then
3739             { echo "$as_me:$LINENO: result: builtin version" >&5
3740 echo "${ECHO_T}builtin version" >&6; }
3741           else
3742             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3743 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3744    { (exit 1); exit 1; }; }
3745           fi
3746
3747
3748           withstring=
3749           defaultval=$wxUSE_ALL_FEATURES
3750           if test -z "$defaultval"; then
3751               if test x"$withstring" = xwithout; then
3752                   defaultval=yes
3753               else
3754                   defaultval=no
3755               fi
3756           fi
3757           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3758 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3759
3760 # Check whether --with-libiconv was given.
3761 if test "${with_libiconv+set}" = set; then
3762   withval=$with_libiconv;
3763                         if test "$withval" = yes; then
3764                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3765                         else
3766                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3767                         fi
3768
3769 else
3770
3771                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3772
3773 fi
3774
3775
3776           eval "$wx_cv_use_libiconv"
3777
3778           if test x"$withstring" = xwithout; then
3779             if test $wxUSE_LIBICONV = yes; then
3780               result=no
3781             else
3782               result=yes
3783             fi
3784           else
3785             result=$wxUSE_LIBICONV
3786           fi
3787
3788           { echo "$as_me:$LINENO: result: $result" >&5
3789 echo "${ECHO_T}$result" >&6; }
3790
3791
3792           withstring=
3793           defaultval=$wxUSE_ALL_FEATURES
3794           if test -z "$defaultval"; then
3795               if test x"$withstring" = xwithout; then
3796                   defaultval=yes
3797               else
3798                   defaultval=no
3799               fi
3800           fi
3801           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3802 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3803
3804 # Check whether --with-libmspack was given.
3805 if test "${with_libmspack+set}" = set; then
3806   withval=$with_libmspack;
3807                         if test "$withval" = yes; then
3808                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3809                         else
3810                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3811                         fi
3812
3813 else
3814
3815                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3816
3817 fi
3818
3819
3820           eval "$wx_cv_use_libmspack"
3821
3822           if test x"$withstring" = xwithout; then
3823             if test $wxUSE_LIBMSPACK = yes; then
3824               result=no
3825             else
3826               result=yes
3827             fi
3828           else
3829             result=$wxUSE_LIBMSPACK
3830           fi
3831
3832           { echo "$as_me:$LINENO: result: $result" >&5
3833 echo "${ECHO_T}$result" >&6; }
3834
3835
3836           withstring=without
3837           defaultval=$wxUSE_ALL_FEATURES
3838           if test -z "$defaultval"; then
3839               if test x"$withstring" = xwithout; then
3840                   defaultval=yes
3841               else
3842                   defaultval=no
3843               fi
3844           fi
3845           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3846 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3847
3848 # Check whether --with-gtkprint was given.
3849 if test "${with_gtkprint+set}" = set; then
3850   withval=$with_gtkprint;
3851                         if test "$withval" = yes; then
3852                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3853                         else
3854                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3855                         fi
3856
3857 else
3858
3859                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3860
3861 fi
3862
3863
3864           eval "$wx_cv_use_gtkprint"
3865
3866           if test x"$withstring" = xwithout; then
3867             if test $wxUSE_GTKPRINT = yes; then
3868               result=no
3869             else
3870               result=yes
3871             fi
3872           else
3873             result=$wxUSE_GTKPRINT
3874           fi
3875
3876           { echo "$as_me:$LINENO: result: $result" >&5
3877 echo "${ECHO_T}$result" >&6; }
3878
3879
3880           withstring=without
3881           defaultval=$wxUSE_ALL_FEATURES
3882           if test -z "$defaultval"; then
3883               if test x"$withstring" = xwithout; then
3884                   defaultval=yes
3885               else
3886                   defaultval=no
3887               fi
3888           fi
3889           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3890 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3891
3892 # Check whether --with-gnomeprint was given.
3893 if test "${with_gnomeprint+set}" = set; then
3894   withval=$with_gnomeprint;
3895                         if test "$withval" = yes; then
3896                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3897                         else
3898                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3899                         fi
3900
3901 else
3902
3903                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3904
3905 fi
3906
3907
3908           eval "$wx_cv_use_gnomeprint"
3909
3910           if test x"$withstring" = xwithout; then
3911             if test $wxUSE_LIBGNOMEPRINT = yes; then
3912               result=no
3913             else
3914               result=yes
3915             fi
3916           else
3917             result=$wxUSE_LIBGNOMEPRINT
3918           fi
3919
3920           { echo "$as_me:$LINENO: result: $result" >&5
3921 echo "${ECHO_T}$result" >&6; }
3922
3923
3924           withstring=
3925           defaultval=$wxUSE_ALL_FEATURES
3926           if test -z "$defaultval"; then
3927               if test x"$withstring" = xwithout; then
3928                   defaultval=yes
3929               else
3930                   defaultval=no
3931               fi
3932           fi
3933           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3934 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3935
3936 # Check whether --with-gnomevfs was given.
3937 if test "${with_gnomevfs+set}" = set; then
3938   withval=$with_gnomevfs;
3939                         if test "$withval" = yes; then
3940                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3941                         else
3942                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3943                         fi
3944
3945 else
3946
3947                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3948
3949 fi
3950
3951
3952           eval "$wx_cv_use_gnomevfs"
3953
3954           if test x"$withstring" = xwithout; then
3955             if test $wxUSE_LIBGNOMEVFS = yes; then
3956               result=no
3957             else
3958               result=yes
3959             fi
3960           else
3961             result=$wxUSE_LIBGNOMEVFS
3962           fi
3963
3964           { echo "$as_me:$LINENO: result: $result" >&5
3965 echo "${ECHO_T}$result" >&6; }
3966
3967
3968           withstring=
3969           defaultval=$wxUSE_ALL_FEATURES
3970           if test -z "$defaultval"; then
3971               if test x"$withstring" = xwithout; then
3972                   defaultval=yes
3973               else
3974                   defaultval=no
3975               fi
3976           fi
3977           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3978 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3979
3980 # Check whether --with-hildon was given.
3981 if test "${with_hildon+set}" = set; then
3982   withval=$with_hildon;
3983                         if test "$withval" = yes; then
3984                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3985                         else
3986                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3987                         fi
3988
3989 else
3990
3991                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3992
3993 fi
3994
3995
3996           eval "$wx_cv_use_hildon"
3997
3998           if test x"$withstring" = xwithout; then
3999             if test $wxUSE_LIBHILDON = yes; then
4000               result=no
4001             else
4002               result=yes
4003             fi
4004           else
4005             result=$wxUSE_LIBHILDON
4006           fi
4007
4008           { echo "$as_me:$LINENO: result: $result" >&5
4009 echo "${ECHO_T}$result" >&6; }
4010
4011
4012           withstring=
4013           defaultval=$wxUSE_ALL_FEATURES
4014           if test -z "$defaultval"; then
4015               if test x"$withstring" = xwithout; then
4016                   defaultval=yes
4017               else
4018                   defaultval=no
4019               fi
4020           fi
4021           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4022 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4023
4024 # Check whether --with-opengl was given.
4025 if test "${with_opengl+set}" = set; then
4026   withval=$with_opengl;
4027                         if test "$withval" = yes; then
4028                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4029                         else
4030                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4031                         fi
4032
4033 else
4034
4035                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4036
4037 fi
4038
4039
4040           eval "$wx_cv_use_opengl"
4041
4042           if test x"$withstring" = xwithout; then
4043             if test $wxUSE_OPENGL = yes; then
4044               result=no
4045             else
4046               result=yes
4047             fi
4048           else
4049             result=$wxUSE_OPENGL
4050           fi
4051
4052           { echo "$as_me:$LINENO: result: $result" >&5
4053 echo "${ECHO_T}$result" >&6; }
4054
4055
4056 fi
4057
4058
4059           withstring=
4060           defaultval=$wxUSE_ALL_FEATURES
4061           if test -z "$defaultval"; then
4062               if test x"$withstring" = xwithout; then
4063                   defaultval=yes
4064               else
4065                   defaultval=no
4066               fi
4067           fi
4068           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4069 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4070
4071 # Check whether --with-dmalloc was given.
4072 if test "${with_dmalloc+set}" = set; then
4073   withval=$with_dmalloc;
4074                         if test "$withval" = yes; then
4075                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4076                         else
4077                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4078                         fi
4079
4080 else
4081
4082                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4083
4084 fi
4085
4086
4087           eval "$wx_cv_use_dmalloc"
4088
4089           if test x"$withstring" = xwithout; then
4090             if test $wxUSE_DMALLOC = yes; then
4091               result=no
4092             else
4093               result=yes
4094             fi
4095           else
4096             result=$wxUSE_DMALLOC
4097           fi
4098
4099           { echo "$as_me:$LINENO: result: $result" >&5
4100 echo "${ECHO_T}$result" >&6; }
4101
4102
4103           withstring=
4104           defaultval=$wxUSE_ALL_FEATURES
4105           if test -z "$defaultval"; then
4106               if test x"$withstring" = xwithout; then
4107                   defaultval=yes
4108               else
4109                   defaultval=no
4110               fi
4111           fi
4112           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4113 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4114
4115 # Check whether --with-sdl was given.
4116 if test "${with_sdl+set}" = set; then
4117   withval=$with_sdl;
4118                         if test "$withval" = yes; then
4119                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4120                         else
4121                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4122                         fi
4123
4124 else
4125
4126                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4127
4128 fi
4129
4130
4131           eval "$wx_cv_use_sdl"
4132
4133           if test x"$withstring" = xwithout; then
4134             if test $wxUSE_LIBSDL = yes; then
4135               result=no
4136             else
4137               result=yes
4138             fi
4139           else
4140             result=$wxUSE_LIBSDL
4141           fi
4142
4143           { echo "$as_me:$LINENO: result: $result" >&5
4144 echo "${ECHO_T}$result" >&6; }
4145
4146
4147           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4148 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4149
4150 # Check whether --with-regex was given.
4151 if test "${with_regex+set}" = set; then
4152   withval=$with_regex;
4153                         if test "$withval" = yes; then
4154                           wx_cv_use_regex='wxUSE_REGEX=yes'
4155                         elif test "$withval" = no; then
4156                           wx_cv_use_regex='wxUSE_REGEX=no'
4157                         elif test "$withval" = sys; then
4158                           wx_cv_use_regex='wxUSE_REGEX=sys'
4159                         elif test "$withval" = builtin; then
4160                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4161                         else
4162                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4163 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4164    { (exit 1); exit 1; }; }
4165                         fi
4166
4167 else
4168
4169                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4170
4171 fi
4172
4173
4174           eval "$wx_cv_use_regex"
4175
4176           if test "$wxUSE_REGEX" = yes; then
4177             { echo "$as_me:$LINENO: result: yes" >&5
4178 echo "${ECHO_T}yes" >&6; }
4179           elif test "$wxUSE_REGEX" = no; then
4180             { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4182           elif test "$wxUSE_REGEX" = sys; then
4183             { echo "$as_me:$LINENO: result: system version" >&5
4184 echo "${ECHO_T}system version" >&6; }
4185           elif test "$wxUSE_REGEX" = builtin; then
4186             { echo "$as_me:$LINENO: result: builtin version" >&5
4187 echo "${ECHO_T}builtin version" >&6; }
4188           else
4189             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4190 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4191    { (exit 1); exit 1; }; }
4192           fi
4193
4194
4195           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4196 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4197
4198 # Check whether --with-zlib was given.
4199 if test "${with_zlib+set}" = set; then
4200   withval=$with_zlib;
4201                         if test "$withval" = yes; then
4202                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4203                         elif test "$withval" = no; then
4204                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4205                         elif test "$withval" = sys; then
4206                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4207                         elif test "$withval" = builtin; then
4208                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4209                         else
4210                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4211 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4212    { (exit 1); exit 1; }; }
4213                         fi
4214
4215 else
4216
4217                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4218
4219 fi
4220
4221
4222           eval "$wx_cv_use_zlib"
4223
4224           if test "$wxUSE_ZLIB" = yes; then
4225             { echo "$as_me:$LINENO: result: yes" >&5
4226 echo "${ECHO_T}yes" >&6; }
4227           elif test "$wxUSE_ZLIB" = no; then
4228             { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4230           elif test "$wxUSE_ZLIB" = sys; then
4231             { echo "$as_me:$LINENO: result: system version" >&5
4232 echo "${ECHO_T}system version" >&6; }
4233           elif test "$wxUSE_ZLIB" = builtin; then
4234             { echo "$as_me:$LINENO: result: builtin version" >&5
4235 echo "${ECHO_T}builtin version" >&6; }
4236           else
4237             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4238 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4239    { (exit 1); exit 1; }; }
4240           fi
4241
4242
4243           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4244 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4245
4246 # Check whether --with-expat was given.
4247 if test "${with_expat+set}" = set; then
4248   withval=$with_expat;
4249                         if test "$withval" = yes; then
4250                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4251                         elif test "$withval" = no; then
4252                           wx_cv_use_expat='wxUSE_EXPAT=no'
4253                         elif test "$withval" = sys; then
4254                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4255                         elif test "$withval" = builtin; then
4256                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4257                         else
4258                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4259 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4260    { (exit 1); exit 1; }; }
4261                         fi
4262
4263 else
4264
4265                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4266
4267 fi
4268
4269
4270           eval "$wx_cv_use_expat"
4271
4272           if test "$wxUSE_EXPAT" = yes; then
4273             { echo "$as_me:$LINENO: result: yes" >&5
4274 echo "${ECHO_T}yes" >&6; }
4275           elif test "$wxUSE_EXPAT" = no; then
4276             { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4278           elif test "$wxUSE_EXPAT" = sys; then
4279             { echo "$as_me:$LINENO: result: system version" >&5
4280 echo "${ECHO_T}system version" >&6; }
4281           elif test "$wxUSE_EXPAT" = builtin; then
4282             { echo "$as_me:$LINENO: result: builtin version" >&5
4283 echo "${ECHO_T}builtin version" >&6; }
4284           else
4285             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4286 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4287    { (exit 1); exit 1; }; }
4288           fi
4289
4290
4291 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4292 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4293
4294 # Check whether --with-macosx-sdk was given.
4295 if test "${with_macosx_sdk+set}" = set; then
4296   withval=$with_macosx_sdk;
4297         wxUSE_MACOSX_SDK=$withval
4298         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4299
4300 fi
4301
4302 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4303 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4304
4305 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4306 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4307
4308 # Check whether --with-macosx-version-min was given.
4309 if test "${with_macosx_version_min+set}" = set; then
4310   withval=$with_macosx_version_min;
4311         wxUSE_MACOSX_VERSION_MIN=$withval
4312         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4313
4314 fi
4315
4316 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4317 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4318
4319
4320 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4321 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4322 # Check whether --enable-debug was given.
4323 if test "${enable_debug+set}" = set; then
4324   enableval=$enable_debug;
4325         if test "$enableval" = yes; then
4326             wxUSE_DEBUG=yes
4327         elif test "$enableval" = no; then
4328             wxUSE_DEBUG=no
4329         elif test "$enableval" = max; then
4330             wxUSE_DEBUG=yes
4331             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4332         else
4333             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4334 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4335    { (exit 1); exit 1; }; }
4336         fi
4337
4338
4339 else
4340   wxUSE_DEBUG=default
4341
4342 fi
4343
4344
4345 case "$wxUSE_DEBUG" in
4346     yes)
4347                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4348         DEFAULT_wxUSE_DEBUG_INFO=yes
4349
4350                         DEFAULT_wxUSE_OPTIMISE=no
4351         ;;
4352
4353     no)
4354                         DEFAULT_wxUSE_DEBUG_FLAG=no
4355         DEFAULT_wxUSE_DEBUG_INFO=no
4356         ;;
4357
4358     default)
4359                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4360         DEFAULT_wxUSE_DEBUG_INFO=no
4361         ;;
4362 esac
4363
4364
4365           enablestring=disable
4366           defaultval=
4367           if test -z "$defaultval"; then
4368               if test x"$enablestring" = xdisable; then
4369                   defaultval=yes
4370               else
4371                   defaultval=no
4372               fi
4373           fi
4374
4375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4376 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4377           # Check whether --enable-debug_flag was given.
4378 if test "${enable_debug_flag+set}" = set; then
4379   enableval=$enable_debug_flag;
4380                           if test "$enableval" = yes; then
4381                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4382                           else
4383                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4384                           fi
4385
4386 else
4387
4388                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4389
4390 fi
4391
4392
4393           eval "$wx_cv_use_debug_flag"
4394
4395           if test x"$enablestring" = xdisable; then
4396             if test $wxUSE_DEBUG_FLAG = no; then
4397               result=yes
4398             else
4399               result=no
4400             fi
4401           else
4402             result=$wxUSE_DEBUG_FLAG
4403           fi
4404
4405           { echo "$as_me:$LINENO: result: $result" >&5
4406 echo "${ECHO_T}$result" >&6; }
4407
4408
4409           enablestring=
4410           defaultval=
4411           if test -z "$defaultval"; then
4412               if test x"$enablestring" = xdisable; then
4413                   defaultval=yes
4414               else
4415                   defaultval=no
4416               fi
4417           fi
4418
4419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4420 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4421           # Check whether --enable-debug_info was given.
4422 if test "${enable_debug_info+set}" = set; then
4423   enableval=$enable_debug_info;
4424                           if test "$enableval" = yes; then
4425                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4426                           else
4427                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4428                           fi
4429
4430 else
4431
4432                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4433
4434 fi
4435
4436
4437           eval "$wx_cv_use_debug_info"
4438
4439           if test x"$enablestring" = xdisable; then
4440             if test $wxUSE_DEBUG_INFO = no; then
4441               result=yes
4442             else
4443               result=no
4444             fi
4445           else
4446             result=$wxUSE_DEBUG_INFO
4447           fi
4448
4449           { echo "$as_me:$LINENO: result: $result" >&5
4450 echo "${ECHO_T}$result" >&6; }
4451
4452
4453
4454
4455           enablestring=
4456           defaultval=
4457           if test -z "$defaultval"; then
4458               if test x"$enablestring" = xdisable; then
4459                   defaultval=yes
4460               else
4461                   defaultval=no
4462               fi
4463           fi
4464
4465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4466 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4467           # Check whether --enable-debug_gdb was given.
4468 if test "${enable_debug_gdb+set}" = set; then
4469   enableval=$enable_debug_gdb;
4470                           if test "$enableval" = yes; then
4471                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4472                           else
4473                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4474                           fi
4475
4476 else
4477
4478                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4479
4480 fi
4481
4482
4483           eval "$wx_cv_use_debug_gdb"
4484
4485           if test x"$enablestring" = xdisable; then
4486             if test $wxUSE_DEBUG_GDB = no; then
4487               result=yes
4488             else
4489               result=no
4490             fi
4491           else
4492             result=$wxUSE_DEBUG_GDB
4493           fi
4494
4495           { echo "$as_me:$LINENO: result: $result" >&5
4496 echo "${ECHO_T}$result" >&6; }
4497
4498
4499           enablestring=
4500           defaultval=
4501           if test -z "$defaultval"; then
4502               if test x"$enablestring" = xdisable; then
4503                   defaultval=yes
4504               else
4505                   defaultval=no
4506               fi
4507           fi
4508
4509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4510 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4511           # Check whether --enable-debug_cntxt was given.
4512 if test "${enable_debug_cntxt+set}" = set; then
4513   enableval=$enable_debug_cntxt;
4514                           if test "$enableval" = yes; then
4515                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4516                           else
4517                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4518                           fi
4519
4520 else
4521
4522                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4523
4524 fi
4525
4526
4527           eval "$wx_cv_use_debug_cntxt"
4528
4529           if test x"$enablestring" = xdisable; then
4530             if test $wxUSE_DEBUG_CONTEXT = no; then
4531               result=yes
4532             else
4533               result=no
4534             fi
4535           else
4536             result=$wxUSE_DEBUG_CONTEXT
4537           fi
4538
4539           { echo "$as_me:$LINENO: result: $result" >&5
4540 echo "${ECHO_T}$result" >&6; }
4541
4542
4543           enablestring=
4544           defaultval=
4545           if test -z "$defaultval"; then
4546               if test x"$enablestring" = xdisable; then
4547                   defaultval=yes
4548               else
4549                   defaultval=no
4550               fi
4551           fi
4552
4553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4554 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4555           # Check whether --enable-mem_tracing was given.
4556 if test "${enable_mem_tracing+set}" = set; then
4557   enableval=$enable_mem_tracing;
4558                           if test "$enableval" = yes; then
4559                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4560                           else
4561                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4562                           fi
4563
4564 else
4565
4566                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4567
4568 fi
4569
4570
4571           eval "$wx_cv_use_mem_tracing"
4572
4573           if test x"$enablestring" = xdisable; then
4574             if test $wxUSE_MEM_TRACING = no; then
4575               result=yes
4576             else
4577               result=no
4578             fi
4579           else
4580             result=$wxUSE_MEM_TRACING
4581           fi
4582
4583           { echo "$as_me:$LINENO: result: $result" >&5
4584 echo "${ECHO_T}$result" >&6; }
4585
4586
4587
4588
4589           enablestring=disable
4590           defaultval=
4591           if test -z "$defaultval"; then
4592               if test x"$enablestring" = xdisable; then
4593                   defaultval=yes
4594               else
4595                   defaultval=no
4596               fi
4597           fi
4598
4599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4600 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4601           # Check whether --enable-shared was given.
4602 if test "${enable_shared+set}" = set; then
4603   enableval=$enable_shared;
4604                           if test "$enableval" = yes; then
4605                             wx_cv_use_shared='wxUSE_SHARED=yes'
4606                           else
4607                             wx_cv_use_shared='wxUSE_SHARED=no'
4608                           fi
4609
4610 else
4611
4612                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4613
4614 fi
4615
4616
4617           eval "$wx_cv_use_shared"
4618
4619           if test x"$enablestring" = xdisable; then
4620             if test $wxUSE_SHARED = no; then
4621               result=yes
4622             else
4623               result=no
4624             fi
4625           else
4626             result=$wxUSE_SHARED
4627           fi
4628
4629           { echo "$as_me:$LINENO: result: $result" >&5
4630 echo "${ECHO_T}$result" >&6; }
4631
4632
4633           enablestring=
4634           defaultval=
4635           if test -z "$defaultval"; then
4636               if test x"$enablestring" = xdisable; then
4637                   defaultval=yes
4638               else
4639                   defaultval=no
4640               fi
4641           fi
4642
4643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4644 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4645           # Check whether --enable-stl was given.
4646 if test "${enable_stl+set}" = set; then
4647   enableval=$enable_stl;
4648                           if test "$enableval" = yes; then
4649                             wx_cv_use_stl='wxUSE_STL=yes'
4650                           else
4651                             wx_cv_use_stl='wxUSE_STL=no'
4652                           fi
4653
4654 else
4655
4656                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4657
4658 fi
4659
4660
4661           eval "$wx_cv_use_stl"
4662
4663           if test x"$enablestring" = xdisable; then
4664             if test $wxUSE_STL = no; then
4665               result=yes
4666             else
4667               result=no
4668             fi
4669           else
4670             result=$wxUSE_STL
4671           fi
4672
4673           { echo "$as_me:$LINENO: result: $result" >&5
4674 echo "${ECHO_T}$result" >&6; }
4675
4676
4677           enablestring=
4678           defaultval=
4679           if test -z "$defaultval"; then
4680               if test x"$enablestring" = xdisable; then
4681                   defaultval=yes
4682               else
4683                   defaultval=no
4684               fi
4685           fi
4686
4687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4688 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4689           # Check whether --enable-std_iostreams was given.
4690 if test "${enable_std_iostreams+set}" = set; then
4691   enableval=$enable_std_iostreams;
4692                           if test "$enableval" = yes; then
4693                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4694                           else
4695                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4696                           fi
4697
4698 else
4699
4700                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4701
4702 fi
4703
4704
4705           eval "$wx_cv_use_std_iostreams"
4706
4707           if test x"$enablestring" = xdisable; then
4708             if test $wxUSE_STD_IOSTREAM = no; then
4709               result=yes
4710             else
4711               result=no
4712             fi
4713           else
4714             result=$wxUSE_STD_IOSTREAM
4715           fi
4716
4717           { echo "$as_me:$LINENO: result: $result" >&5
4718 echo "${ECHO_T}$result" >&6; }
4719
4720
4721           enablestring=
4722           defaultval=
4723           if test -z "$defaultval"; then
4724               if test x"$enablestring" = xdisable; then
4725                   defaultval=yes
4726               else
4727                   defaultval=no
4728               fi
4729           fi
4730
4731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4732 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4733           # Check whether --enable-std_string was given.
4734 if test "${enable_std_string+set}" = set; then
4735   enableval=$enable_std_string;
4736                           if test "$enableval" = yes; then
4737                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4738                           else
4739                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4740                           fi
4741
4742 else
4743
4744                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4745
4746 fi
4747
4748
4749           eval "$wx_cv_use_std_string"
4750
4751           if test x"$enablestring" = xdisable; then
4752             if test $wxUSE_STD_STRING = no; then
4753               result=yes
4754             else
4755               result=no
4756             fi
4757           else
4758             result=$wxUSE_STD_STRING
4759           fi
4760
4761           { echo "$as_me:$LINENO: result: $result" >&5
4762 echo "${ECHO_T}$result" >&6; }
4763
4764
4765           enablestring=disable
4766           defaultval=
4767           if test -z "$defaultval"; then
4768               if test x"$enablestring" = xdisable; then
4769                   defaultval=yes
4770               else
4771                   defaultval=no
4772               fi
4773           fi
4774
4775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4776 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4777           # Check whether --enable-unicode was given.
4778 if test "${enable_unicode+set}" = set; then
4779   enableval=$enable_unicode;
4780                           if test "$enableval" = yes; then
4781                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4782                           else
4783                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4784                           fi
4785
4786 else
4787
4788                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4789
4790 fi
4791
4792
4793           eval "$wx_cv_use_unicode"
4794
4795           if test x"$enablestring" = xdisable; then
4796             if test $wxUSE_UNICODE = no; then
4797               result=yes
4798             else
4799               result=no
4800             fi
4801           else
4802             result=$wxUSE_UNICODE
4803           fi
4804
4805           { echo "$as_me:$LINENO: result: $result" >&5
4806 echo "${ECHO_T}$result" >&6; }
4807
4808
4809           enablestring=
4810           defaultval=
4811           if test -z "$defaultval"; then
4812               if test x"$enablestring" = xdisable; then
4813                   defaultval=yes
4814               else
4815                   defaultval=no
4816               fi
4817           fi
4818
4819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4820 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4821           # Check whether --enable-mslu was given.
4822 if test "${enable_mslu+set}" = set; then
4823   enableval=$enable_mslu;
4824                           if test "$enableval" = yes; then
4825                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4826                           else
4827                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4828                           fi
4829
4830 else
4831
4832                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4833
4834 fi
4835
4836
4837           eval "$wx_cv_use_mslu"
4838
4839           if test x"$enablestring" = xdisable; then
4840             if test $wxUSE_UNICODE_MSLU = no; then
4841               result=yes
4842             else
4843               result=no
4844             fi
4845           else
4846             result=$wxUSE_UNICODE_MSLU
4847           fi
4848
4849           { echo "$as_me:$LINENO: result: $result" >&5
4850 echo "${ECHO_T}$result" >&6; }
4851
4852
4853           enablestring=
4854           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4855 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4856           # Check whether --enable-utf8 was given.
4857 if test "${enable_utf8+set}" = set; then
4858   enableval=$enable_utf8;
4859                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4860
4861 else
4862
4863                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4864
4865 fi
4866
4867
4868           eval "$wx_cv_use_utf8"
4869
4870           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4871 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4872
4873
4874           enablestring=
4875           defaultval=
4876           if test -z "$defaultval"; then
4877               if test x"$enablestring" = xdisable; then
4878                   defaultval=yes
4879               else
4880                   defaultval=no
4881               fi
4882           fi
4883
4884           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4885 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4886           # Check whether --enable-utf8only was given.
4887 if test "${enable_utf8only+set}" = set; then
4888   enableval=$enable_utf8only;
4889                           if test "$enableval" = yes; then
4890                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4891                           else
4892                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4893                           fi
4894
4895 else
4896
4897                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4898
4899 fi
4900
4901
4902           eval "$wx_cv_use_utf8only"
4903
4904           if test x"$enablestring" = xdisable; then
4905             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
4906               result=yes
4907             else
4908               result=no
4909             fi
4910           else
4911             result=$wxUSE_UNICODE_UTF8_LOCALE
4912           fi
4913
4914           { echo "$as_me:$LINENO: result: $result" >&5
4915 echo "${ECHO_T}$result" >&6; }
4916
4917
4918           enablestring=
4919           defaultval=
4920           if test -z "$defaultval"; then
4921               if test x"$enablestring" = xdisable; then
4922                   defaultval=yes
4923               else
4924                   defaultval=no
4925               fi
4926           fi
4927
4928           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4929 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4930           # Check whether --enable-extended_rtti was given.
4931 if test "${enable_extended_rtti+set}" = set; then
4932   enableval=$enable_extended_rtti;
4933                           if test "$enableval" = yes; then
4934                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4935                           else
4936                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4937                           fi
4938
4939 else
4940
4941                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4942
4943 fi
4944
4945
4946           eval "$wx_cv_use_extended_rtti"
4947
4948           if test x"$enablestring" = xdisable; then
4949             if test $wxUSE_EXTENDED_RTTI = no; then
4950               result=yes
4951             else
4952               result=no
4953             fi
4954           else
4955             result=$wxUSE_EXTENDED_RTTI
4956           fi
4957
4958           { echo "$as_me:$LINENO: result: $result" >&5
4959 echo "${ECHO_T}$result" >&6; }
4960
4961 if test "$USE_OS2" = 1; then
4962     DEFAULT_wxUSE_OMF=no
4963
4964           enablestring=
4965           defaultval=
4966           if test -z "$defaultval"; then
4967               if test x"$enablestring" = xdisable; then
4968                   defaultval=yes
4969               else
4970                   defaultval=no
4971               fi
4972           fi
4973
4974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4975 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4976           # Check whether --enable-omf was given.
4977 if test "${enable_omf+set}" = set; then
4978   enableval=$enable_omf;
4979                           if test "$enableval" = yes; then
4980                             wx_cv_use_omf='wxUSE_OMF=yes'
4981                           else
4982                             wx_cv_use_omf='wxUSE_OMF=no'
4983                           fi
4984
4985 else
4986
4987                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4988
4989 fi
4990
4991
4992           eval "$wx_cv_use_omf"
4993
4994           if test x"$enablestring" = xdisable; then
4995             if test $wxUSE_OMF = no; then
4996               result=yes
4997             else
4998               result=no
4999             fi
5000           else
5001             result=$wxUSE_OMF
5002           fi
5003
5004           { echo "$as_me:$LINENO: result: $result" >&5
5005 echo "${ECHO_T}$result" >&6; }
5006
5007 fi
5008
5009
5010           enablestring=disable
5011           defaultval=
5012           if test -z "$defaultval"; then
5013               if test x"$enablestring" = xdisable; then
5014                   defaultval=yes
5015               else
5016                   defaultval=no
5017               fi
5018           fi
5019
5020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5021 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5022           # Check whether --enable-optimise was given.
5023 if test "${enable_optimise+set}" = set; then
5024   enableval=$enable_optimise;
5025                           if test "$enableval" = yes; then
5026                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5027                           else
5028                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5029                           fi
5030
5031 else
5032
5033                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5034
5035 fi
5036
5037
5038           eval "$wx_cv_use_optimise"
5039
5040           if test x"$enablestring" = xdisable; then
5041             if test $wxUSE_OPTIMISE = no; then
5042               result=yes
5043             else
5044               result=no
5045             fi
5046           else
5047             result=$wxUSE_OPTIMISE
5048           fi
5049
5050           { echo "$as_me:$LINENO: result: $result" >&5
5051 echo "${ECHO_T}$result" >&6; }
5052
5053
5054
5055           enablestring=
5056           defaultval=
5057           if test -z "$defaultval"; then
5058               if test x"$enablestring" = xdisable; then
5059                   defaultval=yes
5060               else
5061                   defaultval=no
5062               fi
5063           fi
5064
5065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5066 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5067           # Check whether --enable-profile was given.
5068 if test "${enable_profile+set}" = set; then
5069   enableval=$enable_profile;
5070                           if test "$enableval" = yes; then
5071                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5072                           else
5073                             wx_cv_use_profile='wxUSE_PROFILE=no'
5074                           fi
5075
5076 else
5077
5078                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5079
5080 fi
5081
5082
5083           eval "$wx_cv_use_profile"
5084
5085           if test x"$enablestring" = xdisable; then
5086             if test $wxUSE_PROFILE = no; then
5087               result=yes
5088             else
5089               result=no
5090             fi
5091           else
5092             result=$wxUSE_PROFILE
5093           fi
5094
5095           { echo "$as_me:$LINENO: result: $result" >&5
5096 echo "${ECHO_T}$result" >&6; }
5097
5098
5099           enablestring=
5100           defaultval=
5101           if test -z "$defaultval"; then
5102               if test x"$enablestring" = xdisable; then
5103                   defaultval=yes
5104               else
5105                   defaultval=no
5106               fi
5107           fi
5108
5109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5110 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5111           # Check whether --enable-no_rtti was given.
5112 if test "${enable_no_rtti+set}" = set; then
5113   enableval=$enable_no_rtti;
5114                           if test "$enableval" = yes; then
5115                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5116                           else
5117                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5118                           fi
5119
5120 else
5121
5122                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5123
5124 fi
5125
5126
5127           eval "$wx_cv_use_no_rtti"
5128
5129           if test x"$enablestring" = xdisable; then
5130             if test $wxUSE_NO_RTTI = no; then
5131               result=yes
5132             else
5133               result=no
5134             fi
5135           else
5136             result=$wxUSE_NO_RTTI
5137           fi
5138
5139           { echo "$as_me:$LINENO: result: $result" >&5
5140 echo "${ECHO_T}$result" >&6; }
5141
5142
5143           enablestring=
5144           defaultval=
5145           if test -z "$defaultval"; then
5146               if test x"$enablestring" = xdisable; then
5147                   defaultval=yes
5148               else
5149                   defaultval=no
5150               fi
5151           fi
5152
5153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5154 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5155           # Check whether --enable-no_exceptions was given.
5156 if test "${enable_no_exceptions+set}" = set; then
5157   enableval=$enable_no_exceptions;
5158                           if test "$enableval" = yes; then
5159                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5160                           else
5161                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5162                           fi
5163
5164 else
5165
5166                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5167
5168 fi
5169
5170
5171           eval "$wx_cv_use_no_exceptions"
5172
5173           if test x"$enablestring" = xdisable; then
5174             if test $wxUSE_NO_EXCEPTIONS = no; then
5175               result=yes
5176             else
5177               result=no
5178             fi
5179           else
5180             result=$wxUSE_NO_EXCEPTIONS
5181           fi
5182
5183           { echo "$as_me:$LINENO: result: $result" >&5
5184 echo "${ECHO_T}$result" >&6; }
5185
5186
5187           enablestring=
5188           defaultval=
5189           if test -z "$defaultval"; then
5190               if test x"$enablestring" = xdisable; then
5191                   defaultval=yes
5192               else
5193                   defaultval=no
5194               fi
5195           fi
5196
5197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5198 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5199           # Check whether --enable-permissive was given.
5200 if test "${enable_permissive+set}" = set; then
5201   enableval=$enable_permissive;
5202                           if test "$enableval" = yes; then
5203                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5204                           else
5205                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5206                           fi
5207
5208 else
5209
5210                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5211
5212 fi
5213
5214
5215           eval "$wx_cv_use_permissive"
5216
5217           if test x"$enablestring" = xdisable; then
5218             if test $wxUSE_PERMISSIVE = no; then
5219               result=yes
5220             else
5221               result=no
5222             fi
5223           else
5224             result=$wxUSE_PERMISSIVE
5225           fi
5226
5227           { echo "$as_me:$LINENO: result: $result" >&5
5228 echo "${ECHO_T}$result" >&6; }
5229
5230
5231           enablestring=
5232           defaultval=
5233           if test -z "$defaultval"; then
5234               if test x"$enablestring" = xdisable; then
5235                   defaultval=yes
5236               else
5237                   defaultval=no
5238               fi
5239           fi
5240
5241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5242 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5243           # Check whether --enable-no_deps was given.
5244 if test "${enable_no_deps+set}" = set; then
5245   enableval=$enable_no_deps;
5246                           if test "$enableval" = yes; then
5247                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5248                           else
5249                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5250                           fi
5251
5252 else
5253
5254                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5255
5256 fi
5257
5258
5259           eval "$wx_cv_use_no_deps"
5260
5261           if test x"$enablestring" = xdisable; then
5262             if test $wxUSE_NO_DEPS = no; then
5263               result=yes
5264             else
5265               result=no
5266             fi
5267           else
5268             result=$wxUSE_NO_DEPS
5269           fi
5270
5271           { echo "$as_me:$LINENO: result: $result" >&5
5272 echo "${ECHO_T}$result" >&6; }
5273
5274
5275           enablestring=disable
5276           defaultval=
5277           if test -z "$defaultval"; then
5278               if test x"$enablestring" = xdisable; then
5279                   defaultval=yes
5280               else
5281                   defaultval=no
5282               fi
5283           fi
5284
5285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5286 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5287           # Check whether --enable-vararg_macros was given.
5288 if test "${enable_vararg_macros+set}" = set; then
5289   enableval=$enable_vararg_macros;
5290                           if test "$enableval" = yes; then
5291                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5292                           else
5293                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5294                           fi
5295
5296 else
5297
5298                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5299
5300 fi
5301
5302
5303           eval "$wx_cv_use_vararg_macros"
5304
5305           if test x"$enablestring" = xdisable; then
5306             if test $wxUSE_VARARG_MACROS = no; then
5307               result=yes
5308             else
5309               result=no
5310             fi
5311           else
5312             result=$wxUSE_VARARG_MACROS
5313           fi
5314
5315           { echo "$as_me:$LINENO: result: $result" >&5
5316 echo "${ECHO_T}$result" >&6; }
5317
5318
5319           enablestring=
5320           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5321 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5322           # Check whether --enable-universal_binary was given.
5323 if test "${enable_universal_binary+set}" = set; then
5324   enableval=$enable_universal_binary;
5325                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5326
5327 else
5328
5329                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5330
5331 fi
5332
5333
5334           eval "$wx_cv_use_universal_binary"
5335
5336           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5337 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5338
5339
5340
5341           enablestring=
5342           defaultval=
5343           if test -z "$defaultval"; then
5344               if test x"$enablestring" = xdisable; then
5345                   defaultval=yes
5346               else
5347                   defaultval=no
5348               fi
5349           fi
5350
5351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5352 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5353           # Check whether --enable-compat26 was given.
5354 if test "${enable_compat26+set}" = set; then
5355   enableval=$enable_compat26;
5356                           if test "$enableval" = yes; then
5357                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5358                           else
5359                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5360                           fi
5361
5362 else
5363
5364                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5365
5366 fi
5367
5368
5369           eval "$wx_cv_use_compat26"
5370
5371           if test x"$enablestring" = xdisable; then
5372             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5373               result=yes
5374             else
5375               result=no
5376             fi
5377           else
5378             result=$WXWIN_COMPATIBILITY_2_6
5379           fi
5380
5381           { echo "$as_me:$LINENO: result: $result" >&5
5382 echo "${ECHO_T}$result" >&6; }
5383
5384
5385           enablestring=disable
5386           defaultval=
5387           if test -z "$defaultval"; then
5388               if test x"$enablestring" = xdisable; then
5389                   defaultval=yes
5390               else
5391                   defaultval=no
5392               fi
5393           fi
5394
5395           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5396 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5397           # Check whether --enable-compat28 was given.
5398 if test "${enable_compat28+set}" = set; then
5399   enableval=$enable_compat28;
5400                           if test "$enableval" = yes; then
5401                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5402                           else
5403                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5404                           fi
5405
5406 else
5407
5408                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5409
5410 fi
5411
5412
5413           eval "$wx_cv_use_compat28"
5414
5415           if test x"$enablestring" = xdisable; then
5416             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5417               result=yes
5418             else
5419               result=no
5420             fi
5421           else
5422             result=$WXWIN_COMPATIBILITY_2_8
5423           fi
5424
5425           { echo "$as_me:$LINENO: result: $result" >&5
5426 echo "${ECHO_T}$result" >&6; }
5427
5428
5429
5430           enablestring=disable
5431           defaultval=
5432           if test -z "$defaultval"; then
5433               if test x"$enablestring" = xdisable; then
5434                   defaultval=yes
5435               else
5436                   defaultval=no
5437               fi
5438           fi
5439
5440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5441 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5442           # Check whether --enable-rpath was given.
5443 if test "${enable_rpath+set}" = set; then
5444   enableval=$enable_rpath;
5445                           if test "$enableval" = yes; then
5446                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5447                           else
5448                             wx_cv_use_rpath='wxUSE_RPATH=no'
5449                           fi
5450
5451 else
5452
5453                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5454
5455 fi
5456
5457
5458           eval "$wx_cv_use_rpath"
5459
5460           if test x"$enablestring" = xdisable; then
5461             if test $wxUSE_RPATH = no; then
5462               result=yes
5463             else
5464               result=no
5465             fi
5466           else
5467             result=$wxUSE_RPATH
5468           fi
5469
5470           { echo "$as_me:$LINENO: result: $result" >&5
5471 echo "${ECHO_T}$result" >&6; }
5472
5473
5474
5475           enablestring=
5476           defaultval=
5477           if test -z "$defaultval"; then
5478               if test x"$enablestring" = xdisable; then
5479                   defaultval=yes
5480               else
5481                   defaultval=no
5482               fi
5483           fi
5484
5485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5486 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5487           # Check whether --enable-objc_uniquifying was given.
5488 if test "${enable_objc_uniquifying+set}" = set; then
5489   enableval=$enable_objc_uniquifying;
5490                           if test "$enableval" = yes; then
5491                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5492                           else
5493                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5494                           fi
5495
5496 else
5497
5498                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5499
5500 fi
5501
5502
5503           eval "$wx_cv_use_objc_uniquifying"
5504
5505           if test x"$enablestring" = xdisable; then
5506             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5507               result=yes
5508             else
5509               result=no
5510             fi
5511           else
5512             result=$wxUSE_OBJC_UNIQUIFYING
5513           fi
5514
5515           { echo "$as_me:$LINENO: result: $result" >&5
5516 echo "${ECHO_T}$result" >&6; }
5517
5518
5519
5520           enablestring=disable
5521           defaultval=
5522           if test -z "$defaultval"; then
5523               if test x"$enablestring" = xdisable; then
5524                   defaultval=yes
5525               else
5526                   defaultval=no
5527               fi
5528           fi
5529
5530           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5531 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5532           # Check whether --enable-visibility was given.
5533 if test "${enable_visibility+set}" = set; then
5534   enableval=$enable_visibility;
5535                           if test "$enableval" = yes; then
5536                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5537                           else
5538                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5539                           fi
5540
5541 else
5542
5543                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5544
5545 fi
5546
5547
5548           eval "$wx_cv_use_visibility"
5549
5550           if test x"$enablestring" = xdisable; then
5551             if test $wxUSE_VISIBILITY = no; then
5552               result=yes
5553             else
5554               result=no
5555             fi
5556           else
5557             result=$wxUSE_VISIBILITY
5558           fi
5559
5560           { echo "$as_me:$LINENO: result: $result" >&5
5561 echo "${ECHO_T}$result" >&6; }
5562
5563
5564           enablestring=disable
5565           defaultval=
5566           if test -z "$defaultval"; then
5567               if test x"$enablestring" = xdisable; then
5568                   defaultval=yes
5569               else
5570                   defaultval=no
5571               fi
5572           fi
5573
5574           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5575 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5576           # Check whether --enable-tls was given.
5577 if test "${enable_tls+set}" = set; then
5578   enableval=$enable_tls;
5579                           if test "$enableval" = yes; then
5580                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5581                           else
5582                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5583                           fi
5584
5585 else
5586
5587                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5588
5589 fi
5590
5591
5592           eval "$wx_cv_use_tls"
5593
5594           if test x"$enablestring" = xdisable; then
5595             if test $wxUSE_COMPILER_TLS = no; then
5596               result=yes
5597             else
5598               result=no
5599             fi
5600           else
5601             result=$wxUSE_COMPILER_TLS
5602           fi
5603
5604           { echo "$as_me:$LINENO: result: $result" >&5
5605 echo "${ECHO_T}$result" >&6; }
5606
5607
5608
5609
5610           enablestring=
5611           defaultval=$wxUSE_ALL_FEATURES
5612           if test -z "$defaultval"; then
5613               if test x"$enablestring" = xdisable; then
5614                   defaultval=yes
5615               else
5616                   defaultval=no
5617               fi
5618           fi
5619
5620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5621 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5622           # Check whether --enable-intl was given.
5623 if test "${enable_intl+set}" = set; then
5624   enableval=$enable_intl;
5625                           if test "$enableval" = yes; then
5626                             wx_cv_use_intl='wxUSE_INTL=yes'
5627                           else
5628                             wx_cv_use_intl='wxUSE_INTL=no'
5629                           fi
5630
5631 else
5632
5633                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5634
5635 fi
5636
5637
5638           eval "$wx_cv_use_intl"
5639
5640           if test x"$enablestring" = xdisable; then
5641             if test $wxUSE_INTL = no; then
5642               result=yes
5643             else
5644               result=no
5645             fi
5646           else
5647             result=$wxUSE_INTL
5648           fi
5649
5650           { echo "$as_me:$LINENO: result: $result" >&5
5651 echo "${ECHO_T}$result" >&6; }
5652
5653
5654           enablestring=
5655           defaultval=$wxUSE_ALL_FEATURES
5656           if test -z "$defaultval"; then
5657               if test x"$enablestring" = xdisable; then
5658                   defaultval=yes
5659               else
5660                   defaultval=no
5661               fi
5662           fi
5663
5664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5665 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5666           # Check whether --enable-xlocale was given.
5667 if test "${enable_xlocale+set}" = set; then
5668   enableval=$enable_xlocale;
5669                           if test "$enableval" = yes; then
5670                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5671                           else
5672                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5673                           fi
5674
5675 else
5676
5677                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5678
5679 fi
5680
5681
5682           eval "$wx_cv_use_xlocale"
5683
5684           if test x"$enablestring" = xdisable; then
5685             if test $wxUSE_XLOCALE = no; then
5686               result=yes
5687             else
5688               result=no
5689             fi
5690           else
5691             result=$wxUSE_XLOCALE
5692           fi
5693
5694           { echo "$as_me:$LINENO: result: $result" >&5
5695 echo "${ECHO_T}$result" >&6; }
5696
5697
5698           enablestring=
5699           defaultval=$wxUSE_ALL_FEATURES
5700           if test -z "$defaultval"; then
5701               if test x"$enablestring" = xdisable; then
5702                   defaultval=yes
5703               else
5704                   defaultval=no
5705               fi
5706           fi
5707
5708           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5709 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5710           # Check whether --enable-config was given.
5711 if test "${enable_config+set}" = set; then
5712   enableval=$enable_config;
5713                           if test "$enableval" = yes; then
5714                             wx_cv_use_config='wxUSE_CONFIG=yes'
5715                           else
5716                             wx_cv_use_config='wxUSE_CONFIG=no'
5717                           fi
5718
5719 else
5720
5721                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5722
5723 fi
5724
5725
5726           eval "$wx_cv_use_config"
5727
5728           if test x"$enablestring" = xdisable; then
5729             if test $wxUSE_CONFIG = no; then
5730               result=yes
5731             else
5732               result=no
5733             fi
5734           else
5735             result=$wxUSE_CONFIG
5736           fi
5737
5738           { echo "$as_me:$LINENO: result: $result" >&5
5739 echo "${ECHO_T}$result" >&6; }
5740
5741
5742
5743           enablestring=
5744           defaultval=$wxUSE_ALL_FEATURES
5745           if test -z "$defaultval"; then
5746               if test x"$enablestring" = xdisable; then
5747                   defaultval=yes
5748               else
5749                   defaultval=no
5750               fi
5751           fi
5752
5753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5754 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5755           # Check whether --enable-protocols was given.
5756 if test "${enable_protocols+set}" = set; then
5757   enableval=$enable_protocols;
5758                           if test "$enableval" = yes; then
5759                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5760                           else
5761                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5762                           fi
5763
5764 else
5765
5766                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5767
5768 fi
5769
5770
5771           eval "$wx_cv_use_protocols"
5772
5773           if test x"$enablestring" = xdisable; then
5774             if test $wxUSE_PROTOCOL = no; then
5775               result=yes
5776             else
5777               result=no
5778             fi
5779           else
5780             result=$wxUSE_PROTOCOL
5781           fi
5782
5783           { echo "$as_me:$LINENO: result: $result" >&5
5784 echo "${ECHO_T}$result" >&6; }
5785
5786
5787           enablestring=
5788           defaultval=$wxUSE_ALL_FEATURES
5789           if test -z "$defaultval"; then
5790               if test x"$enablestring" = xdisable; then
5791                   defaultval=yes
5792               else
5793                   defaultval=no
5794               fi
5795           fi
5796
5797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5798 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5799           # Check whether --enable-ftp was given.
5800 if test "${enable_ftp+set}" = set; then
5801   enableval=$enable_ftp;
5802                           if test "$enableval" = yes; then
5803                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5804                           else
5805                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5806                           fi
5807
5808 else
5809
5810                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5811
5812 fi
5813
5814
5815           eval "$wx_cv_use_ftp"
5816
5817           if test x"$enablestring" = xdisable; then
5818             if test $wxUSE_PROTOCOL_FTP = no; then
5819               result=yes
5820             else
5821               result=no
5822             fi
5823           else
5824             result=$wxUSE_PROTOCOL_FTP
5825           fi
5826
5827           { echo "$as_me:$LINENO: result: $result" >&5
5828 echo "${ECHO_T}$result" >&6; }
5829
5830
5831           enablestring=
5832           defaultval=$wxUSE_ALL_FEATURES
5833           if test -z "$defaultval"; then
5834               if test x"$enablestring" = xdisable; then
5835                   defaultval=yes
5836               else
5837                   defaultval=no
5838               fi
5839           fi
5840
5841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5842 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5843           # Check whether --enable-http was given.
5844 if test "${enable_http+set}" = set; then
5845   enableval=$enable_http;
5846                           if test "$enableval" = yes; then
5847                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5848                           else
5849                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5850                           fi
5851
5852 else
5853
5854                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5855
5856 fi
5857
5858
5859           eval "$wx_cv_use_http"
5860
5861           if test x"$enablestring" = xdisable; then
5862             if test $wxUSE_PROTOCOL_HTTP = no; then
5863               result=yes
5864             else
5865               result=no
5866             fi
5867           else
5868             result=$wxUSE_PROTOCOL_HTTP
5869           fi
5870
5871           { echo "$as_me:$LINENO: result: $result" >&5
5872 echo "${ECHO_T}$result" >&6; }
5873
5874
5875           enablestring=
5876           defaultval=$wxUSE_ALL_FEATURES
5877           if test -z "$defaultval"; then
5878               if test x"$enablestring" = xdisable; then
5879                   defaultval=yes
5880               else
5881                   defaultval=no
5882               fi
5883           fi
5884
5885           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5886 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5887           # Check whether --enable-fileproto was given.
5888 if test "${enable_fileproto+set}" = set; then
5889   enableval=$enable_fileproto;
5890                           if test "$enableval" = yes; then
5891                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5892                           else
5893                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5894                           fi
5895
5896 else
5897
5898                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5899
5900 fi
5901
5902
5903           eval "$wx_cv_use_fileproto"
5904
5905           if test x"$enablestring" = xdisable; then
5906             if test $wxUSE_PROTOCOL_FILE = no; then
5907               result=yes
5908             else
5909               result=no
5910             fi
5911           else
5912             result=$wxUSE_PROTOCOL_FILE
5913           fi
5914
5915           { echo "$as_me:$LINENO: result: $result" >&5
5916 echo "${ECHO_T}$result" >&6; }
5917
5918
5919           enablestring=
5920           defaultval=$wxUSE_ALL_FEATURES
5921           if test -z "$defaultval"; then
5922               if test x"$enablestring" = xdisable; then
5923                   defaultval=yes
5924               else
5925                   defaultval=no
5926               fi
5927           fi
5928
5929           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5930 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5931           # Check whether --enable-sockets was given.
5932 if test "${enable_sockets+set}" = set; then
5933   enableval=$enable_sockets;
5934                           if test "$enableval" = yes; then
5935                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5936                           else
5937                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5938                           fi
5939
5940 else
5941
5942                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5943
5944 fi
5945
5946
5947           eval "$wx_cv_use_sockets"
5948
5949           if test x"$enablestring" = xdisable; then
5950             if test $wxUSE_SOCKETS = no; then
5951               result=yes
5952             else
5953               result=no
5954             fi
5955           else
5956             result=$wxUSE_SOCKETS
5957           fi
5958
5959           { echo "$as_me:$LINENO: result: $result" >&5
5960 echo "${ECHO_T}$result" >&6; }
5961
5962
5963           enablestring=
5964           defaultval=$wxUSE_ALL_FEATURES
5965           if test -z "$defaultval"; then
5966               if test x"$enablestring" = xdisable; then
5967                   defaultval=yes
5968               else
5969                   defaultval=no
5970               fi
5971           fi
5972
5973           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5974 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5975           # Check whether --enable-ipv6 was given.
5976 if test "${enable_ipv6+set}" = set; then
5977   enableval=$enable_ipv6;
5978                           if test "$enableval" = yes; then
5979                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5980                           else
5981                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5982                           fi
5983
5984 else
5985
5986                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5987
5988 fi
5989
5990
5991           eval "$wx_cv_use_ipv6"
5992
5993           if test x"$enablestring" = xdisable; then
5994             if test $wxUSE_IPV6 = no; then
5995               result=yes
5996             else
5997               result=no
5998             fi
5999           else
6000             result=$wxUSE_IPV6
6001           fi
6002
6003           { echo "$as_me:$LINENO: result: $result" >&5
6004 echo "${ECHO_T}$result" >&6; }
6005
6006
6007           enablestring=
6008           defaultval=$wxUSE_ALL_FEATURES
6009           if test -z "$defaultval"; then
6010               if test x"$enablestring" = xdisable; then
6011                   defaultval=yes
6012               else
6013                   defaultval=no
6014               fi
6015           fi
6016
6017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6018 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6019           # Check whether --enable-ole was given.
6020 if test "${enable_ole+set}" = set; then
6021   enableval=$enable_ole;
6022                           if test "$enableval" = yes; then
6023                             wx_cv_use_ole='wxUSE_OLE=yes'
6024                           else
6025                             wx_cv_use_ole='wxUSE_OLE=no'
6026                           fi
6027
6028 else
6029
6030                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6031
6032 fi
6033
6034
6035           eval "$wx_cv_use_ole"
6036
6037           if test x"$enablestring" = xdisable; then
6038             if test $wxUSE_OLE = no; then
6039               result=yes
6040             else
6041               result=no
6042             fi
6043           else
6044             result=$wxUSE_OLE
6045           fi
6046
6047           { echo "$as_me:$LINENO: result: $result" >&5
6048 echo "${ECHO_T}$result" >&6; }
6049
6050
6051           enablestring=
6052           defaultval=$wxUSE_ALL_FEATURES
6053           if test -z "$defaultval"; then
6054               if test x"$enablestring" = xdisable; then
6055                   defaultval=yes
6056               else
6057                   defaultval=no
6058               fi
6059           fi
6060
6061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6062 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6063           # Check whether --enable-dataobj was given.
6064 if test "${enable_dataobj+set}" = set; then
6065   enableval=$enable_dataobj;
6066                           if test "$enableval" = yes; then
6067                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6068                           else
6069                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6070                           fi
6071
6072 else
6073
6074                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6075
6076 fi
6077
6078
6079           eval "$wx_cv_use_dataobj"
6080
6081           if test x"$enablestring" = xdisable; then
6082             if test $wxUSE_DATAOBJ = no; then
6083               result=yes
6084             else
6085               result=no
6086             fi
6087           else
6088             result=$wxUSE_DATAOBJ
6089           fi
6090
6091           { echo "$as_me:$LINENO: result: $result" >&5
6092 echo "${ECHO_T}$result" >&6; }
6093
6094
6095
6096           enablestring=
6097           defaultval=$wxUSE_ALL_FEATURES
6098           if test -z "$defaultval"; then
6099               if test x"$enablestring" = xdisable; then
6100                   defaultval=yes
6101               else
6102                   defaultval=no
6103               fi
6104           fi
6105
6106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6107 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6108           # Check whether --enable-ipc was given.
6109 if test "${enable_ipc+set}" = set; then
6110   enableval=$enable_ipc;
6111                           if test "$enableval" = yes; then
6112                             wx_cv_use_ipc='wxUSE_IPC=yes'
6113                           else
6114                             wx_cv_use_ipc='wxUSE_IPC=no'
6115                           fi
6116
6117 else
6118
6119                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6120
6121 fi
6122
6123
6124           eval "$wx_cv_use_ipc"
6125
6126           if test x"$enablestring" = xdisable; then
6127             if test $wxUSE_IPC = no; then
6128               result=yes
6129             else
6130               result=no
6131             fi
6132           else
6133             result=$wxUSE_IPC
6134           fi
6135
6136           { echo "$as_me:$LINENO: result: $result" >&5
6137 echo "${ECHO_T}$result" >&6; }
6138
6139
6140
6141           enablestring=
6142           defaultval=$wxUSE_ALL_FEATURES
6143           if test -z "$defaultval"; then
6144               if test x"$enablestring" = xdisable; then
6145                   defaultval=yes
6146               else
6147                   defaultval=no
6148               fi
6149           fi
6150
6151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6152 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6153           # Check whether --enable-baseevtloop was given.
6154 if test "${enable_baseevtloop+set}" = set; then
6155   enableval=$enable_baseevtloop;
6156                           if test "$enableval" = yes; then
6157                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6158                           else
6159                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6160                           fi
6161
6162 else
6163
6164                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6165
6166 fi
6167
6168
6169           eval "$wx_cv_use_baseevtloop"
6170
6171           if test x"$enablestring" = xdisable; then
6172             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6173               result=yes
6174             else
6175               result=no
6176             fi
6177           else
6178             result=$wxUSE_CONSOLE_EVENTLOOP
6179           fi
6180
6181           { echo "$as_me:$LINENO: result: $result" >&5
6182 echo "${ECHO_T}$result" >&6; }
6183
6184
6185           enablestring=
6186           defaultval=$wxUSE_ALL_FEATURES
6187           if test -z "$defaultval"; then
6188               if test x"$enablestring" = xdisable; then
6189                   defaultval=yes
6190               else
6191                   defaultval=no
6192               fi
6193           fi
6194
6195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6196 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6197           # Check whether --enable-epollloop was given.
6198 if test "${enable_epollloop+set}" = set; then
6199   enableval=$enable_epollloop;
6200                           if test "$enableval" = yes; then
6201                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6202                           else
6203                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6204                           fi
6205
6206 else
6207
6208                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6209
6210 fi
6211
6212
6213           eval "$wx_cv_use_epollloop"
6214
6215           if test x"$enablestring" = xdisable; then
6216             if test $wxUSE_EPOLL_DISPATCHER = no; then
6217               result=yes
6218             else
6219               result=no
6220             fi
6221           else
6222             result=$wxUSE_EPOLL_DISPATCHER
6223           fi
6224
6225           { echo "$as_me:$LINENO: result: $result" >&5
6226 echo "${ECHO_T}$result" >&6; }
6227
6228
6229           enablestring=
6230           defaultval=$wxUSE_ALL_FEATURES
6231           if test -z "$defaultval"; then
6232               if test x"$enablestring" = xdisable; then
6233                   defaultval=yes
6234               else
6235                   defaultval=no
6236               fi
6237           fi
6238
6239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6240 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6241           # Check whether --enable-selectloop was given.
6242 if test "${enable_selectloop+set}" = set; then
6243   enableval=$enable_selectloop;
6244                           if test "$enableval" = yes; then
6245                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6246                           else
6247                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6248                           fi
6249
6250 else
6251
6252                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6253
6254 fi
6255
6256
6257           eval "$wx_cv_use_selectloop"
6258
6259           if test x"$enablestring" = xdisable; then
6260             if test $wxUSE_SELECT_DISPATCHER = no; then
6261               result=yes
6262             else
6263               result=no
6264             fi
6265           else
6266             result=$wxUSE_SELECT_DISPATCHER
6267           fi
6268
6269           { echo "$as_me:$LINENO: result: $result" >&5
6270 echo "${ECHO_T}$result" >&6; }
6271
6272
6273
6274           enablestring=
6275           defaultval=$wxUSE_ALL_FEATURES
6276           if test -z "$defaultval"; then
6277               if test x"$enablestring" = xdisable; then
6278                   defaultval=yes
6279               else
6280                   defaultval=no
6281               fi
6282           fi
6283
6284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6285 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6286           # Check whether --enable-apple_ieee was given.
6287 if test "${enable_apple_ieee+set}" = set; then
6288   enableval=$enable_apple_ieee;
6289                           if test "$enableval" = yes; then
6290                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6291                           else
6292                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6293                           fi
6294
6295 else
6296
6297                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6298
6299 fi
6300
6301
6302           eval "$wx_cv_use_apple_ieee"
6303
6304           if test x"$enablestring" = xdisable; then
6305             if test $wxUSE_APPLE_IEEE = no; then
6306               result=yes
6307             else
6308               result=no
6309             fi
6310           else
6311             result=$wxUSE_APPLE_IEEE
6312           fi
6313
6314           { echo "$as_me:$LINENO: result: $result" >&5
6315 echo "${ECHO_T}$result" >&6; }
6316
6317
6318           enablestring=
6319           defaultval=$wxUSE_ALL_FEATURES
6320           if test -z "$defaultval"; then
6321               if test x"$enablestring" = xdisable; then
6322                   defaultval=yes
6323               else
6324                   defaultval=no
6325               fi
6326           fi
6327
6328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6329 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6330           # Check whether --enable-arcstream was given.
6331 if test "${enable_arcstream+set}" = set; then
6332   enableval=$enable_arcstream;
6333                           if test "$enableval" = yes; then
6334                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6335                           else
6336                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6337                           fi
6338
6339 else
6340
6341                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6342
6343 fi
6344
6345
6346           eval "$wx_cv_use_arcstream"
6347
6348           if test x"$enablestring" = xdisable; then
6349             if test $wxUSE_ARCHIVE_STREAMS = no; then
6350               result=yes
6351             else
6352               result=no
6353             fi
6354           else
6355             result=$wxUSE_ARCHIVE_STREAMS
6356           fi
6357
6358           { echo "$as_me:$LINENO: result: $result" >&5
6359 echo "${ECHO_T}$result" >&6; }
6360
6361
6362           enablestring=
6363           defaultval=$wxUSE_ALL_FEATURES
6364           if test -z "$defaultval"; then
6365               if test x"$enablestring" = xdisable; then
6366                   defaultval=yes
6367               else
6368                   defaultval=no
6369               fi
6370           fi
6371
6372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6373 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6374           # Check whether --enable-base64 was given.
6375 if test "${enable_base64+set}" = set; then
6376   enableval=$enable_base64;
6377                           if test "$enableval" = yes; then
6378                             wx_cv_use_base64='wxUSE_BASE64=yes'
6379                           else
6380                             wx_cv_use_base64='wxUSE_BASE64=no'
6381                           fi
6382
6383 else
6384
6385                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6386
6387 fi
6388
6389
6390           eval "$wx_cv_use_base64"
6391
6392           if test x"$enablestring" = xdisable; then
6393             if test $wxUSE_BASE64 = no; then
6394               result=yes
6395             else
6396               result=no
6397             fi
6398           else
6399             result=$wxUSE_BASE64
6400           fi
6401
6402           { echo "$as_me:$LINENO: result: $result" >&5
6403 echo "${ECHO_T}$result" >&6; }
6404
6405
6406           enablestring=
6407           defaultval=$wxUSE_ALL_FEATURES
6408           if test -z "$defaultval"; then
6409               if test x"$enablestring" = xdisable; then
6410                   defaultval=yes
6411               else
6412                   defaultval=no
6413               fi
6414           fi
6415
6416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6417 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6418           # Check whether --enable-backtrace was given.
6419 if test "${enable_backtrace+set}" = set; then
6420   enableval=$enable_backtrace;
6421                           if test "$enableval" = yes; then
6422                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6423                           else
6424                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6425                           fi
6426
6427 else
6428
6429                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6430
6431 fi
6432
6433
6434           eval "$wx_cv_use_backtrace"
6435
6436           if test x"$enablestring" = xdisable; then
6437             if test $wxUSE_STACKWALKER = no; then
6438               result=yes
6439             else
6440               result=no
6441             fi
6442           else
6443             result=$wxUSE_STACKWALKER
6444           fi
6445
6446           { echo "$as_me:$LINENO: result: $result" >&5
6447 echo "${ECHO_T}$result" >&6; }
6448
6449
6450           enablestring=
6451           defaultval=$wxUSE_ALL_FEATURES
6452           if test -z "$defaultval"; then
6453               if test x"$enablestring" = xdisable; then
6454                   defaultval=yes
6455               else
6456                   defaultval=no
6457               fi
6458           fi
6459
6460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6461 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6462           # Check whether --enable-catch_segvs was given.
6463 if test "${enable_catch_segvs+set}" = set; then
6464   enableval=$enable_catch_segvs;
6465                           if test "$enableval" = yes; then
6466                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6467                           else
6468                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6469                           fi
6470
6471 else
6472
6473                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6474
6475 fi
6476
6477
6478           eval "$wx_cv_use_catch_segvs"
6479
6480           if test x"$enablestring" = xdisable; then
6481             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6482               result=yes
6483             else
6484               result=no
6485             fi
6486           else
6487             result=$wxUSE_ON_FATAL_EXCEPTION
6488           fi
6489
6490           { echo "$as_me:$LINENO: result: $result" >&5
6491 echo "${ECHO_T}$result" >&6; }
6492
6493
6494           enablestring=
6495           defaultval=$wxUSE_ALL_FEATURES
6496           if test -z "$defaultval"; then
6497               if test x"$enablestring" = xdisable; then
6498                   defaultval=yes
6499               else
6500                   defaultval=no
6501               fi
6502           fi
6503
6504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6505 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6506           # Check whether --enable-cmdline was given.
6507 if test "${enable_cmdline+set}" = set; then
6508   enableval=$enable_cmdline;
6509                           if test "$enableval" = yes; then
6510                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6511                           else
6512                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6513                           fi
6514
6515 else
6516
6517                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6518
6519 fi
6520
6521
6522           eval "$wx_cv_use_cmdline"
6523
6524           if test x"$enablestring" = xdisable; then
6525             if test $wxUSE_CMDLINE_PARSER = no; then
6526               result=yes
6527             else
6528               result=no
6529             fi
6530           else
6531             result=$wxUSE_CMDLINE_PARSER
6532           fi
6533
6534           { echo "$as_me:$LINENO: result: $result" >&5
6535 echo "${ECHO_T}$result" >&6; }
6536
6537
6538           enablestring=
6539           defaultval=$wxUSE_ALL_FEATURES
6540           if test -z "$defaultval"; then
6541               if test x"$enablestring" = xdisable; then
6542                   defaultval=yes
6543               else
6544                   defaultval=no
6545               fi
6546           fi
6547
6548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6549 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6550           # Check whether --enable-datetime was given.
6551 if test "${enable_datetime+set}" = set; then
6552   enableval=$enable_datetime;
6553                           if test "$enableval" = yes; then
6554                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6555                           else
6556                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6557                           fi
6558
6559 else
6560
6561                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6562
6563 fi
6564
6565
6566           eval "$wx_cv_use_datetime"
6567
6568           if test x"$enablestring" = xdisable; then
6569             if test $wxUSE_DATETIME = no; then
6570               result=yes
6571             else
6572               result=no
6573             fi
6574           else
6575             result=$wxUSE_DATETIME
6576           fi
6577
6578           { echo "$as_me:$LINENO: result: $result" >&5
6579 echo "${ECHO_T}$result" >&6; }
6580
6581
6582           enablestring=
6583           defaultval=$wxUSE_ALL_FEATURES
6584           if test -z "$defaultval"; then
6585               if test x"$enablestring" = xdisable; then
6586                   defaultval=yes
6587               else
6588                   defaultval=no
6589               fi
6590           fi
6591
6592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6593 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6594           # Check whether --enable-debugreport was given.
6595 if test "${enable_debugreport+set}" = set; then
6596   enableval=$enable_debugreport;
6597                           if test "$enableval" = yes; then
6598                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6599                           else
6600                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6601                           fi
6602
6603 else
6604
6605                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6606
6607 fi
6608
6609
6610           eval "$wx_cv_use_debugreport"
6611
6612           if test x"$enablestring" = xdisable; then
6613             if test $wxUSE_DEBUGREPORT = no; then
6614               result=yes
6615             else
6616               result=no
6617             fi
6618           else
6619             result=$wxUSE_DEBUGREPORT
6620           fi
6621
6622           { echo "$as_me:$LINENO: result: $result" >&5
6623 echo "${ECHO_T}$result" >&6; }
6624
6625
6626           enablestring=
6627           defaultval=$wxUSE_ALL_FEATURES
6628           if test -z "$defaultval"; then
6629               if test x"$enablestring" = xdisable; then
6630                   defaultval=yes
6631               else
6632                   defaultval=no
6633               fi
6634           fi
6635
6636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6637 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6638           # Check whether --enable-dialupman was given.
6639 if test "${enable_dialupman+set}" = set; then
6640   enableval=$enable_dialupman;
6641                           if test "$enableval" = yes; then
6642                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6643                           else
6644                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6645                           fi
6646
6647 else
6648
6649                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6650
6651 fi
6652
6653
6654           eval "$wx_cv_use_dialupman"
6655
6656           if test x"$enablestring" = xdisable; then
6657             if test $wxUSE_DIALUP_MANAGER = no; then
6658               result=yes
6659             else
6660               result=no
6661             fi
6662           else
6663             result=$wxUSE_DIALUP_MANAGER
6664           fi
6665
6666           { echo "$as_me:$LINENO: result: $result" >&5
6667 echo "${ECHO_T}$result" >&6; }
6668
6669
6670           enablestring=
6671           defaultval=$wxUSE_ALL_FEATURES
6672           if test -z "$defaultval"; then
6673               if test x"$enablestring" = xdisable; then
6674                   defaultval=yes
6675               else
6676                   defaultval=no
6677               fi
6678           fi
6679
6680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6681 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6682           # Check whether --enable-dynlib was given.
6683 if test "${enable_dynlib+set}" = set; then
6684   enableval=$enable_dynlib;
6685                           if test "$enableval" = yes; then
6686                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6687                           else
6688                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6689                           fi
6690
6691 else
6692
6693                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6694
6695 fi
6696
6697
6698           eval "$wx_cv_use_dynlib"
6699
6700           if test x"$enablestring" = xdisable; then
6701             if test $wxUSE_DYNLIB_CLASS = no; then
6702               result=yes
6703             else
6704               result=no
6705             fi
6706           else
6707             result=$wxUSE_DYNLIB_CLASS
6708           fi
6709
6710           { echo "$as_me:$LINENO: result: $result" >&5
6711 echo "${ECHO_T}$result" >&6; }
6712
6713
6714           enablestring=
6715           defaultval=$wxUSE_ALL_FEATURES
6716           if test -z "$defaultval"; then
6717               if test x"$enablestring" = xdisable; then
6718                   defaultval=yes
6719               else
6720                   defaultval=no
6721               fi
6722           fi
6723
6724           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6725 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6726           # Check whether --enable-dynamicloader was given.
6727 if test "${enable_dynamicloader+set}" = set; then
6728   enableval=$enable_dynamicloader;
6729                           if test "$enableval" = yes; then
6730                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6731                           else
6732                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6733                           fi
6734
6735 else
6736
6737                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6738
6739 fi
6740
6741
6742           eval "$wx_cv_use_dynamicloader"
6743
6744           if test x"$enablestring" = xdisable; then
6745             if test $wxUSE_DYNAMIC_LOADER = no; then
6746               result=yes
6747             else
6748               result=no
6749             fi
6750           else
6751             result=$wxUSE_DYNAMIC_LOADER
6752           fi
6753
6754           { echo "$as_me:$LINENO: result: $result" >&5
6755 echo "${ECHO_T}$result" >&6; }
6756
6757
6758           enablestring=
6759           defaultval=$wxUSE_ALL_FEATURES
6760           if test -z "$defaultval"; then
6761               if test x"$enablestring" = xdisable; then
6762                   defaultval=yes
6763               else
6764                   defaultval=no
6765               fi
6766           fi
6767
6768           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6769 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6770           # Check whether --enable-exceptions was given.
6771 if test "${enable_exceptions+set}" = set; then
6772   enableval=$enable_exceptions;
6773                           if test "$enableval" = yes; then
6774                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6775                           else
6776                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6777                           fi
6778
6779 else
6780
6781                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6782
6783 fi
6784
6785
6786           eval "$wx_cv_use_exceptions"
6787
6788           if test x"$enablestring" = xdisable; then
6789             if test $wxUSE_EXCEPTIONS = no; then
6790               result=yes
6791             else
6792               result=no
6793             fi
6794           else
6795             result=$wxUSE_EXCEPTIONS
6796           fi
6797
6798           { echo "$as_me:$LINENO: result: $result" >&5
6799 echo "${ECHO_T}$result" >&6; }
6800
6801
6802           enablestring=
6803           defaultval=$wxUSE_ALL_FEATURES
6804           if test -z "$defaultval"; then
6805               if test x"$enablestring" = xdisable; then
6806                   defaultval=yes
6807               else
6808                   defaultval=no
6809               fi
6810           fi
6811
6812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6813 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6814           # Check whether --enable-ffile was given.
6815 if test "${enable_ffile+set}" = set; then
6816   enableval=$enable_ffile;
6817                           if test "$enableval" = yes; then
6818                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6819                           else
6820                             wx_cv_use_ffile='wxUSE_FFILE=no'
6821                           fi
6822
6823 else
6824
6825                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6826
6827 fi
6828
6829
6830           eval "$wx_cv_use_ffile"
6831
6832           if test x"$enablestring" = xdisable; then
6833             if test $wxUSE_FFILE = no; then
6834               result=yes
6835             else
6836               result=no
6837             fi
6838           else
6839             result=$wxUSE_FFILE
6840           fi
6841
6842           { echo "$as_me:$LINENO: result: $result" >&5
6843 echo "${ECHO_T}$result" >&6; }
6844
6845
6846           enablestring=
6847           defaultval=$wxUSE_ALL_FEATURES
6848           if test -z "$defaultval"; then
6849               if test x"$enablestring" = xdisable; then
6850                   defaultval=yes
6851               else
6852                   defaultval=no
6853               fi
6854           fi
6855
6856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6857 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6858           # Check whether --enable-file was given.
6859 if test "${enable_file+set}" = set; then
6860   enableval=$enable_file;
6861                           if test "$enableval" = yes; then
6862                             wx_cv_use_file='wxUSE_FILE=yes'
6863                           else
6864                             wx_cv_use_file='wxUSE_FILE=no'
6865                           fi
6866
6867 else
6868
6869                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6870
6871 fi
6872
6873
6874           eval "$wx_cv_use_file"
6875
6876           if test x"$enablestring" = xdisable; then
6877             if test $wxUSE_FILE = no; then
6878               result=yes
6879             else
6880               result=no
6881             fi
6882           else
6883             result=$wxUSE_FILE
6884           fi
6885
6886           { echo "$as_me:$LINENO: result: $result" >&5
6887 echo "${ECHO_T}$result" >&6; }
6888
6889
6890           enablestring=
6891           defaultval=$wxUSE_ALL_FEATURES
6892           if test -z "$defaultval"; then
6893               if test x"$enablestring" = xdisable; then
6894                   defaultval=yes
6895               else
6896                   defaultval=no
6897               fi
6898           fi
6899
6900           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6901 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6902           # Check whether --enable-filesystem was given.
6903 if test "${enable_filesystem+set}" = set; then
6904   enableval=$enable_filesystem;
6905                           if test "$enableval" = yes; then
6906                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6907                           else
6908                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6909                           fi
6910
6911 else
6912
6913                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6914
6915 fi
6916
6917
6918           eval "$wx_cv_use_filesystem"
6919
6920           if test x"$enablestring" = xdisable; then
6921             if test $wxUSE_FILESYSTEM = no; then
6922               result=yes
6923             else
6924               result=no
6925             fi
6926           else
6927             result=$wxUSE_FILESYSTEM
6928           fi
6929
6930           { echo "$as_me:$LINENO: result: $result" >&5
6931 echo "${ECHO_T}$result" >&6; }
6932
6933
6934           enablestring=
6935           defaultval=$wxUSE_ALL_FEATURES
6936           if test -z "$defaultval"; then
6937               if test x"$enablestring" = xdisable; then
6938                   defaultval=yes
6939               else
6940                   defaultval=no
6941               fi
6942           fi
6943
6944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6945 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6946           # Check whether --enable-fontenum was given.
6947 if test "${enable_fontenum+set}" = set; then
6948   enableval=$enable_fontenum;
6949                           if test "$enableval" = yes; then
6950                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6951                           else
6952                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6953                           fi
6954
6955 else
6956
6957                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6958
6959 fi
6960
6961
6962           eval "$wx_cv_use_fontenum"
6963
6964           if test x"$enablestring" = xdisable; then
6965             if test $wxUSE_FONTENUM = no; then
6966               result=yes
6967             else
6968               result=no
6969             fi
6970           else
6971             result=$wxUSE_FONTENUM
6972           fi
6973
6974           { echo "$as_me:$LINENO: result: $result" >&5
6975 echo "${ECHO_T}$result" >&6; }
6976
6977
6978           enablestring=
6979           defaultval=$wxUSE_ALL_FEATURES
6980           if test -z "$defaultval"; then
6981               if test x"$enablestring" = xdisable; then
6982                   defaultval=yes
6983               else
6984                   defaultval=no
6985               fi
6986           fi
6987
6988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6989 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6990           # Check whether --enable-fontmap was given.
6991 if test "${enable_fontmap+set}" = set; then
6992   enableval=$enable_fontmap;
6993                           if test "$enableval" = yes; then
6994                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6995                           else
6996                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6997                           fi
6998
6999 else
7000
7001                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7002
7003 fi
7004
7005
7006           eval "$wx_cv_use_fontmap"
7007
7008           if test x"$enablestring" = xdisable; then
7009             if test $wxUSE_FONTMAP = no; then
7010               result=yes
7011             else
7012               result=no
7013             fi
7014           else
7015             result=$wxUSE_FONTMAP
7016           fi
7017
7018           { echo "$as_me:$LINENO: result: $result" >&5
7019 echo "${ECHO_T}$result" >&6; }
7020
7021
7022           enablestring=
7023           defaultval=$wxUSE_ALL_FEATURES
7024           if test -z "$defaultval"; then
7025               if test x"$enablestring" = xdisable; then
7026                   defaultval=yes
7027               else
7028                   defaultval=no
7029               fi
7030           fi
7031
7032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7033 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7034           # Check whether --enable-fs_archive was given.
7035 if test "${enable_fs_archive+set}" = set; then
7036   enableval=$enable_fs_archive;
7037                           if test "$enableval" = yes; then
7038                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7039                           else
7040                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7041                           fi
7042
7043 else
7044
7045                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7046
7047 fi
7048
7049
7050           eval "$wx_cv_use_fs_archive"
7051
7052           if test x"$enablestring" = xdisable; then
7053             if test $wxUSE_FS_ARCHIVE = no; then
7054               result=yes
7055             else
7056               result=no
7057             fi
7058           else
7059             result=$wxUSE_FS_ARCHIVE
7060           fi
7061
7062           { echo "$as_me:$LINENO: result: $result" >&5
7063 echo "${ECHO_T}$result" >&6; }
7064
7065
7066           enablestring=
7067           defaultval=$wxUSE_ALL_FEATURES
7068           if test -z "$defaultval"; then
7069               if test x"$enablestring" = xdisable; then
7070                   defaultval=yes
7071               else
7072                   defaultval=no
7073               fi
7074           fi
7075
7076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7077 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7078           # Check whether --enable-fs_inet was given.
7079 if test "${enable_fs_inet+set}" = set; then
7080   enableval=$enable_fs_inet;
7081                           if test "$enableval" = yes; then
7082                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7083                           else
7084                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7085                           fi
7086
7087 else
7088
7089                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7090
7091 fi
7092
7093
7094           eval "$wx_cv_use_fs_inet"
7095
7096           if test x"$enablestring" = xdisable; then
7097             if test $wxUSE_FS_INET = no; then
7098               result=yes
7099             else
7100               result=no
7101             fi
7102           else
7103             result=$wxUSE_FS_INET
7104           fi
7105
7106           { echo "$as_me:$LINENO: result: $result" >&5
7107 echo "${ECHO_T}$result" >&6; }
7108
7109
7110           enablestring=
7111           defaultval=$wxUSE_ALL_FEATURES
7112           if test -z "$defaultval"; then
7113               if test x"$enablestring" = xdisable; then
7114                   defaultval=yes
7115               else
7116                   defaultval=no
7117               fi
7118           fi
7119
7120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7121 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7122           # Check whether --enable-fs_zip was given.
7123 if test "${enable_fs_zip+set}" = set; then
7124   enableval=$enable_fs_zip;
7125                           if test "$enableval" = yes; then
7126                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7127                           else
7128                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7129                           fi
7130
7131 else
7132
7133                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7134
7135 fi
7136
7137
7138           eval "$wx_cv_use_fs_zip"
7139
7140           if test x"$enablestring" = xdisable; then
7141             if test $wxUSE_FS_ZIP = no; then
7142               result=yes
7143             else
7144               result=no
7145             fi
7146           else
7147             result=$wxUSE_FS_ZIP
7148           fi
7149
7150           { echo "$as_me:$LINENO: result: $result" >&5
7151 echo "${ECHO_T}$result" >&6; }
7152
7153
7154           enablestring=
7155           defaultval=$wxUSE_ALL_FEATURES
7156           if test -z "$defaultval"; then
7157               if test x"$enablestring" = xdisable; then
7158                   defaultval=yes
7159               else
7160                   defaultval=no
7161               fi
7162           fi
7163
7164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7165 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7166           # Check whether --enable-geometry was given.
7167 if test "${enable_geometry+set}" = set; then
7168   enableval=$enable_geometry;
7169                           if test "$enableval" = yes; then
7170                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7171                           else
7172                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7173                           fi
7174
7175 else
7176
7177                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7178
7179 fi
7180
7181
7182           eval "$wx_cv_use_geometry"
7183
7184           if test x"$enablestring" = xdisable; then
7185             if test $wxUSE_GEOMETRY = no; then
7186               result=yes
7187             else
7188               result=no
7189             fi
7190           else
7191             result=$wxUSE_GEOMETRY
7192           fi
7193
7194           { echo "$as_me:$LINENO: result: $result" >&5
7195 echo "${ECHO_T}$result" >&6; }
7196
7197
7198           enablestring=
7199           defaultval=$wxUSE_ALL_FEATURES
7200           if test -z "$defaultval"; then
7201               if test x"$enablestring" = xdisable; then
7202                   defaultval=yes
7203               else
7204                   defaultval=no
7205               fi
7206           fi
7207
7208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7209 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7210           # Check whether --enable-log was given.
7211 if test "${enable_log+set}" = set; then
7212   enableval=$enable_log;
7213                           if test "$enableval" = yes; then
7214                             wx_cv_use_log='wxUSE_LOG=yes'
7215                           else
7216                             wx_cv_use_log='wxUSE_LOG=no'
7217                           fi
7218
7219 else
7220
7221                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7222
7223 fi
7224
7225
7226           eval "$wx_cv_use_log"
7227
7228           if test x"$enablestring" = xdisable; then
7229             if test $wxUSE_LOG = no; then
7230               result=yes
7231             else
7232               result=no
7233             fi
7234           else
7235             result=$wxUSE_LOG
7236           fi
7237
7238           { echo "$as_me:$LINENO: result: $result" >&5
7239 echo "${ECHO_T}$result" >&6; }
7240
7241
7242           enablestring=
7243           defaultval=$wxUSE_ALL_FEATURES
7244           if test -z "$defaultval"; then
7245               if test x"$enablestring" = xdisable; then
7246                   defaultval=yes
7247               else
7248                   defaultval=no
7249               fi
7250           fi
7251
7252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7253 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7254           # Check whether --enable-longlong was given.
7255 if test "${enable_longlong+set}" = set; then
7256   enableval=$enable_longlong;
7257                           if test "$enableval" = yes; then
7258                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7259                           else
7260                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7261                           fi
7262
7263 else
7264
7265                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7266
7267 fi
7268
7269
7270           eval "$wx_cv_use_longlong"
7271
7272           if test x"$enablestring" = xdisable; then
7273             if test $wxUSE_LONGLONG = no; then
7274               result=yes
7275             else
7276               result=no
7277             fi
7278           else
7279             result=$wxUSE_LONGLONG
7280           fi
7281
7282           { echo "$as_me:$LINENO: result: $result" >&5
7283 echo "${ECHO_T}$result" >&6; }
7284
7285
7286           enablestring=
7287           defaultval=$wxUSE_ALL_FEATURES
7288           if test -z "$defaultval"; then
7289               if test x"$enablestring" = xdisable; then
7290                   defaultval=yes
7291               else
7292                   defaultval=no
7293               fi
7294           fi
7295
7296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7297 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7298           # Check whether --enable-mimetype was given.
7299 if test "${enable_mimetype+set}" = set; then
7300   enableval=$enable_mimetype;
7301                           if test "$enableval" = yes; then
7302                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7303                           else
7304                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7305                           fi
7306
7307 else
7308
7309                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7310
7311 fi
7312
7313
7314           eval "$wx_cv_use_mimetype"
7315
7316           if test x"$enablestring" = xdisable; then
7317             if test $wxUSE_MIMETYPE = no; then
7318               result=yes
7319             else
7320               result=no
7321             fi
7322           else
7323             result=$wxUSE_MIMETYPE
7324           fi
7325
7326           { echo "$as_me:$LINENO: result: $result" >&5
7327 echo "${ECHO_T}$result" >&6; }
7328
7329
7330           enablestring=
7331           defaultval=$wxUSE_ALL_FEATURES
7332           if test -z "$defaultval"; then
7333               if test x"$enablestring" = xdisable; then
7334                   defaultval=yes
7335               else
7336                   defaultval=no
7337               fi
7338           fi
7339
7340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7341 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7342           # Check whether --enable-printfposparam was given.
7343 if test "${enable_printfposparam+set}" = set; then
7344   enableval=$enable_printfposparam;
7345                           if test "$enableval" = yes; then
7346                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7347                           else
7348                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7349                           fi
7350
7351 else
7352
7353                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7354
7355 fi
7356
7357
7358           eval "$wx_cv_use_printfposparam"
7359
7360           if test x"$enablestring" = xdisable; then
7361             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7362               result=yes
7363             else
7364               result=no
7365             fi
7366           else
7367             result=$wxUSE_PRINTF_POS_PARAMS
7368           fi
7369
7370           { echo "$as_me:$LINENO: result: $result" >&5
7371 echo "${ECHO_T}$result" >&6; }
7372
7373
7374           enablestring=
7375           defaultval=$wxUSE_ALL_FEATURES
7376           if test -z "$defaultval"; then
7377               if test x"$enablestring" = xdisable; then
7378                   defaultval=yes
7379               else
7380                   defaultval=no
7381               fi
7382           fi
7383
7384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7385 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7386           # Check whether --enable-snglinst was given.
7387 if test "${enable_snglinst+set}" = set; then
7388   enableval=$enable_snglinst;
7389                           if test "$enableval" = yes; then
7390                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7391                           else
7392                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7393                           fi
7394
7395 else
7396
7397                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7398
7399 fi
7400
7401
7402           eval "$wx_cv_use_snglinst"
7403
7404           if test x"$enablestring" = xdisable; then
7405             if test $wxUSE_SNGLINST_CHECKER = no; then
7406               result=yes
7407             else
7408               result=no
7409             fi
7410           else
7411             result=$wxUSE_SNGLINST_CHECKER
7412           fi
7413
7414           { echo "$as_me:$LINENO: result: $result" >&5
7415 echo "${ECHO_T}$result" >&6; }
7416
7417
7418           enablestring=
7419           defaultval=$wxUSE_ALL_FEATURES
7420           if test -z "$defaultval"; then
7421               if test x"$enablestring" = xdisable; then
7422                   defaultval=yes
7423               else
7424                   defaultval=no
7425               fi
7426           fi
7427
7428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7429 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7430           # Check whether --enable-sound was given.
7431 if test "${enable_sound+set}" = set; then
7432   enableval=$enable_sound;
7433                           if test "$enableval" = yes; then
7434                             wx_cv_use_sound='wxUSE_SOUND=yes'
7435                           else
7436                             wx_cv_use_sound='wxUSE_SOUND=no'
7437                           fi
7438
7439 else
7440
7441                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7442
7443 fi
7444
7445
7446           eval "$wx_cv_use_sound"
7447
7448           if test x"$enablestring" = xdisable; then
7449             if test $wxUSE_SOUND = no; then
7450               result=yes
7451             else
7452               result=no
7453             fi
7454           else
7455             result=$wxUSE_SOUND
7456           fi
7457
7458           { echo "$as_me:$LINENO: result: $result" >&5
7459 echo "${ECHO_T}$result" >&6; }
7460
7461
7462           enablestring=
7463           defaultval=$wxUSE_ALL_FEATURES
7464           if test -z "$defaultval"; then
7465               if test x"$enablestring" = xdisable; then
7466                   defaultval=yes
7467               else
7468                   defaultval=no
7469               fi
7470           fi
7471
7472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7473 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7474           # Check whether --enable-stdpaths was given.
7475 if test "${enable_stdpaths+set}" = set; then
7476   enableval=$enable_stdpaths;
7477                           if test "$enableval" = yes; then
7478                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7479                           else
7480                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7481                           fi
7482
7483 else
7484
7485                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7486
7487 fi
7488
7489
7490           eval "$wx_cv_use_stdpaths"
7491
7492           if test x"$enablestring" = xdisable; then
7493             if test $wxUSE_STDPATHS = no; then
7494               result=yes
7495             else
7496               result=no
7497             fi
7498           else
7499             result=$wxUSE_STDPATHS
7500           fi
7501
7502           { echo "$as_me:$LINENO: result: $result" >&5
7503 echo "${ECHO_T}$result" >&6; }
7504
7505
7506           enablestring=
7507           defaultval=$wxUSE_ALL_FEATURES
7508           if test -z "$defaultval"; then
7509               if test x"$enablestring" = xdisable; then
7510                   defaultval=yes
7511               else
7512                   defaultval=no
7513               fi
7514           fi
7515
7516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7517 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7518           # Check whether --enable-stopwatch was given.
7519 if test "${enable_stopwatch+set}" = set; then
7520   enableval=$enable_stopwatch;
7521                           if test "$enableval" = yes; then
7522                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7523                           else
7524                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7525                           fi
7526
7527 else
7528
7529                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7530
7531 fi
7532
7533
7534           eval "$wx_cv_use_stopwatch"
7535
7536           if test x"$enablestring" = xdisable; then
7537             if test $wxUSE_STOPWATCH = no; then
7538               result=yes
7539             else
7540               result=no
7541             fi
7542           else
7543             result=$wxUSE_STOPWATCH
7544           fi
7545
7546           { echo "$as_me:$LINENO: result: $result" >&5
7547 echo "${ECHO_T}$result" >&6; }
7548
7549
7550           enablestring=
7551           defaultval=$wxUSE_ALL_FEATURES
7552           if test -z "$defaultval"; then
7553               if test x"$enablestring" = xdisable; then
7554                   defaultval=yes
7555               else
7556                   defaultval=no
7557               fi
7558           fi
7559
7560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7561 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7562           # Check whether --enable-streams was given.
7563 if test "${enable_streams+set}" = set; then
7564   enableval=$enable_streams;
7565                           if test "$enableval" = yes; then
7566                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7567                           else
7568                             wx_cv_use_streams='wxUSE_STREAMS=no'
7569                           fi
7570
7571 else
7572
7573                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7574
7575 fi
7576
7577
7578           eval "$wx_cv_use_streams"
7579
7580           if test x"$enablestring" = xdisable; then
7581             if test $wxUSE_STREAMS = no; then
7582               result=yes
7583             else
7584               result=no
7585             fi
7586           else
7587             result=$wxUSE_STREAMS
7588           fi
7589
7590           { echo "$as_me:$LINENO: result: $result" >&5
7591 echo "${ECHO_T}$result" >&6; }
7592
7593
7594           enablestring=
7595           defaultval=$wxUSE_ALL_FEATURES
7596           if test -z "$defaultval"; then
7597               if test x"$enablestring" = xdisable; then
7598                   defaultval=yes
7599               else
7600                   defaultval=no
7601               fi
7602           fi
7603
7604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7605 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7606           # Check whether --enable-system_options was given.
7607 if test "${enable_system_options+set}" = set; then
7608   enableval=$enable_system_options;
7609                           if test "$enableval" = yes; then
7610                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7611                           else
7612                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7613                           fi
7614
7615 else
7616
7617                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7618
7619 fi
7620
7621
7622           eval "$wx_cv_use_system_options"
7623
7624           if test x"$enablestring" = xdisable; then
7625             if test $wxUSE_SYSTEM_OPTIONS = no; then
7626               result=yes
7627             else
7628               result=no
7629             fi
7630           else
7631             result=$wxUSE_SYSTEM_OPTIONS
7632           fi
7633
7634           { echo "$as_me:$LINENO: result: $result" >&5
7635 echo "${ECHO_T}$result" >&6; }
7636
7637
7638           enablestring=
7639           defaultval=$wxUSE_ALL_FEATURES
7640           if test -z "$defaultval"; then
7641               if test x"$enablestring" = xdisable; then
7642                   defaultval=yes
7643               else
7644                   defaultval=no
7645               fi
7646           fi
7647
7648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7649 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7650           # Check whether --enable-tarstream was given.
7651 if test "${enable_tarstream+set}" = set; then
7652   enableval=$enable_tarstream;
7653                           if test "$enableval" = yes; then
7654                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7655                           else
7656                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7657                           fi
7658
7659 else
7660
7661                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7662
7663 fi
7664
7665
7666           eval "$wx_cv_use_tarstream"
7667
7668           if test x"$enablestring" = xdisable; then
7669             if test $wxUSE_TARSTREAM = no; then
7670               result=yes
7671             else
7672               result=no
7673             fi
7674           else
7675             result=$wxUSE_TARSTREAM
7676           fi
7677
7678           { echo "$as_me:$LINENO: result: $result" >&5
7679 echo "${ECHO_T}$result" >&6; }
7680
7681
7682           enablestring=
7683           defaultval=$wxUSE_ALL_FEATURES
7684           if test -z "$defaultval"; then
7685               if test x"$enablestring" = xdisable; then
7686                   defaultval=yes
7687               else
7688                   defaultval=no
7689               fi
7690           fi
7691
7692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7693 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7694           # Check whether --enable-textbuf was given.
7695 if test "${enable_textbuf+set}" = set; then
7696   enableval=$enable_textbuf;
7697                           if test "$enableval" = yes; then
7698                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7699                           else
7700                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7701                           fi
7702
7703 else
7704
7705                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7706
7707 fi
7708
7709
7710           eval "$wx_cv_use_textbuf"
7711
7712           if test x"$enablestring" = xdisable; then
7713             if test $wxUSE_TEXTBUFFER = no; then
7714               result=yes
7715             else
7716               result=no
7717             fi
7718           else
7719             result=$wxUSE_TEXTBUFFER
7720           fi
7721
7722           { echo "$as_me:$LINENO: result: $result" >&5
7723 echo "${ECHO_T}$result" >&6; }
7724
7725
7726           enablestring=
7727           defaultval=$wxUSE_ALL_FEATURES
7728           if test -z "$defaultval"; then
7729               if test x"$enablestring" = xdisable; then
7730                   defaultval=yes
7731               else
7732                   defaultval=no
7733               fi
7734           fi
7735
7736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7737 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7738           # Check whether --enable-textfile was given.
7739 if test "${enable_textfile+set}" = set; then
7740   enableval=$enable_textfile;
7741                           if test "$enableval" = yes; then
7742                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7743                           else
7744                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7745                           fi
7746
7747 else
7748
7749                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7750
7751 fi
7752
7753
7754           eval "$wx_cv_use_textfile"
7755
7756           if test x"$enablestring" = xdisable; then
7757             if test $wxUSE_TEXTFILE = no; then
7758               result=yes
7759             else
7760               result=no
7761             fi
7762           else
7763             result=$wxUSE_TEXTFILE
7764           fi
7765
7766           { echo "$as_me:$LINENO: result: $result" >&5
7767 echo "${ECHO_T}$result" >&6; }
7768
7769
7770           enablestring=
7771           defaultval=$wxUSE_ALL_FEATURES
7772           if test -z "$defaultval"; then
7773               if test x"$enablestring" = xdisable; then
7774                   defaultval=yes
7775               else
7776                   defaultval=no
7777               fi
7778           fi
7779
7780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7781 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7782           # Check whether --enable-timer was given.
7783 if test "${enable_timer+set}" = set; then
7784   enableval=$enable_timer;
7785                           if test "$enableval" = yes; then
7786                             wx_cv_use_timer='wxUSE_TIMER=yes'
7787                           else
7788                             wx_cv_use_timer='wxUSE_TIMER=no'
7789                           fi
7790
7791 else
7792
7793                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7794
7795 fi
7796
7797
7798           eval "$wx_cv_use_timer"
7799
7800           if test x"$enablestring" = xdisable; then
7801             if test $wxUSE_TIMER = no; then
7802               result=yes
7803             else
7804               result=no
7805             fi
7806           else
7807             result=$wxUSE_TIMER
7808           fi
7809
7810           { echo "$as_me:$LINENO: result: $result" >&5
7811 echo "${ECHO_T}$result" >&6; }
7812
7813
7814           enablestring=
7815           defaultval=$wxUSE_ALL_FEATURES
7816           if test -z "$defaultval"; then
7817               if test x"$enablestring" = xdisable; then
7818                   defaultval=yes
7819               else
7820                   defaultval=no
7821               fi
7822           fi
7823
7824           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7825 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7826           # Check whether --enable-variant was given.
7827 if test "${enable_variant+set}" = set; then
7828   enableval=$enable_variant;
7829                           if test "$enableval" = yes; then
7830                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7831                           else
7832                             wx_cv_use_variant='wxUSE_VARIANT=no'
7833                           fi
7834
7835 else
7836
7837                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7838
7839 fi
7840
7841
7842           eval "$wx_cv_use_variant"
7843
7844           if test x"$enablestring" = xdisable; then
7845             if test $wxUSE_VARIANT = no; then
7846               result=yes
7847             else
7848               result=no
7849             fi
7850           else
7851             result=$wxUSE_VARIANT
7852           fi
7853
7854           { echo "$as_me:$LINENO: result: $result" >&5
7855 echo "${ECHO_T}$result" >&6; }
7856
7857
7858           enablestring=
7859           defaultval=$wxUSE_ALL_FEATURES
7860           if test -z "$defaultval"; then
7861               if test x"$enablestring" = xdisable; then
7862                   defaultval=yes
7863               else
7864                   defaultval=no
7865               fi
7866           fi
7867
7868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7869 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7870           # Check whether --enable-zipstream was given.
7871 if test "${enable_zipstream+set}" = set; then
7872   enableval=$enable_zipstream;
7873                           if test "$enableval" = yes; then
7874                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7875                           else
7876                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7877                           fi
7878
7879 else
7880
7881                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7882
7883 fi
7884
7885
7886           eval "$wx_cv_use_zipstream"
7887
7888           if test x"$enablestring" = xdisable; then
7889             if test $wxUSE_ZIPSTREAM = no; then
7890               result=yes
7891             else
7892               result=no
7893             fi
7894           else
7895             result=$wxUSE_ZIPSTREAM
7896           fi
7897
7898           { echo "$as_me:$LINENO: result: $result" >&5
7899 echo "${ECHO_T}$result" >&6; }
7900
7901
7902
7903           enablestring=
7904           defaultval=$wxUSE_ALL_FEATURES
7905           if test -z "$defaultval"; then
7906               if test x"$enablestring" = xdisable; then
7907                   defaultval=yes
7908               else
7909                   defaultval=no
7910               fi
7911           fi
7912
7913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7914 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7915           # Check whether --enable-url was given.
7916 if test "${enable_url+set}" = set; then
7917   enableval=$enable_url;
7918                           if test "$enableval" = yes; then
7919                             wx_cv_use_url='wxUSE_URL=yes'
7920                           else
7921                             wx_cv_use_url='wxUSE_URL=no'
7922                           fi
7923
7924 else
7925
7926                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7927
7928 fi
7929
7930
7931           eval "$wx_cv_use_url"
7932
7933           if test x"$enablestring" = xdisable; then
7934             if test $wxUSE_URL = no; then
7935               result=yes
7936             else
7937               result=no
7938             fi
7939           else
7940             result=$wxUSE_URL
7941           fi
7942
7943           { echo "$as_me:$LINENO: result: $result" >&5
7944 echo "${ECHO_T}$result" >&6; }
7945
7946
7947           enablestring=
7948           defaultval=$wxUSE_ALL_FEATURES
7949           if test -z "$defaultval"; then
7950               if test x"$enablestring" = xdisable; then
7951                   defaultval=yes
7952               else
7953                   defaultval=no
7954               fi
7955           fi
7956
7957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7958 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7959           # Check whether --enable-protocol was given.
7960 if test "${enable_protocol+set}" = set; then
7961   enableval=$enable_protocol;
7962                           if test "$enableval" = yes; then
7963                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7964                           else
7965                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7966                           fi
7967
7968 else
7969
7970                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7971
7972 fi
7973
7974
7975           eval "$wx_cv_use_protocol"
7976
7977           if test x"$enablestring" = xdisable; then
7978             if test $wxUSE_PROTOCOL = no; then
7979               result=yes
7980             else
7981               result=no
7982             fi
7983           else
7984             result=$wxUSE_PROTOCOL
7985           fi
7986
7987           { echo "$as_me:$LINENO: result: $result" >&5
7988 echo "${ECHO_T}$result" >&6; }
7989
7990
7991           enablestring=
7992           defaultval=$wxUSE_ALL_FEATURES
7993           if test -z "$defaultval"; then
7994               if test x"$enablestring" = xdisable; then
7995                   defaultval=yes
7996               else
7997                   defaultval=no
7998               fi
7999           fi
8000
8001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8002 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8003           # Check whether --enable-protocol_http was given.
8004 if test "${enable_protocol_http+set}" = set; then
8005   enableval=$enable_protocol_http;
8006                           if test "$enableval" = yes; then
8007                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8008                           else
8009                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8010                           fi
8011
8012 else
8013
8014                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8015
8016 fi
8017
8018
8019           eval "$wx_cv_use_protocol_http"
8020
8021           if test x"$enablestring" = xdisable; then
8022             if test $wxUSE_PROTOCOL_HTTP = no; then
8023               result=yes
8024             else
8025               result=no
8026             fi
8027           else
8028             result=$wxUSE_PROTOCOL_HTTP
8029           fi
8030
8031           { echo "$as_me:$LINENO: result: $result" >&5
8032 echo "${ECHO_T}$result" >&6; }
8033
8034
8035           enablestring=
8036           defaultval=$wxUSE_ALL_FEATURES
8037           if test -z "$defaultval"; then
8038               if test x"$enablestring" = xdisable; then
8039                   defaultval=yes
8040               else
8041                   defaultval=no
8042               fi
8043           fi
8044
8045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8046 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8047           # Check whether --enable-protocol_ftp was given.
8048 if test "${enable_protocol_ftp+set}" = set; then
8049   enableval=$enable_protocol_ftp;
8050                           if test "$enableval" = yes; then
8051                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8052                           else
8053                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8054                           fi
8055
8056 else
8057
8058                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8059
8060 fi
8061
8062
8063           eval "$wx_cv_use_protocol_ftp"
8064
8065           if test x"$enablestring" = xdisable; then
8066             if test $wxUSE_PROTOCOL_FTP = no; then
8067               result=yes
8068             else
8069               result=no
8070             fi
8071           else
8072             result=$wxUSE_PROTOCOL_FTP
8073           fi
8074
8075           { echo "$as_me:$LINENO: result: $result" >&5
8076 echo "${ECHO_T}$result" >&6; }
8077
8078
8079           enablestring=
8080           defaultval=$wxUSE_ALL_FEATURES
8081           if test -z "$defaultval"; then
8082               if test x"$enablestring" = xdisable; then
8083                   defaultval=yes
8084               else
8085                   defaultval=no
8086               fi
8087           fi
8088
8089           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8090 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8091           # Check whether --enable-protocol_file was given.
8092 if test "${enable_protocol_file+set}" = set; then
8093   enableval=$enable_protocol_file;
8094                           if test "$enableval" = yes; then
8095                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8096                           else
8097                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8098                           fi
8099
8100 else
8101
8102                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8103
8104 fi
8105
8106
8107           eval "$wx_cv_use_protocol_file"
8108
8109           if test x"$enablestring" = xdisable; then
8110             if test $wxUSE_PROTOCOL_FILE = no; then
8111               result=yes
8112             else
8113               result=no
8114             fi
8115           else
8116             result=$wxUSE_PROTOCOL_FILE
8117           fi
8118
8119           { echo "$as_me:$LINENO: result: $result" >&5
8120 echo "${ECHO_T}$result" >&6; }
8121
8122
8123
8124           enablestring=
8125           defaultval=$wxUSE_ALL_FEATURES
8126           if test -z "$defaultval"; then
8127               if test x"$enablestring" = xdisable; then
8128                   defaultval=yes
8129               else
8130                   defaultval=no
8131               fi
8132           fi
8133
8134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8135 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8136           # Check whether --enable-threads was given.
8137 if test "${enable_threads+set}" = set; then
8138   enableval=$enable_threads;
8139                           if test "$enableval" = yes; then
8140                             wx_cv_use_threads='wxUSE_THREADS=yes'
8141                           else
8142                             wx_cv_use_threads='wxUSE_THREADS=no'
8143                           fi
8144
8145 else
8146
8147                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8148
8149 fi
8150
8151
8152           eval "$wx_cv_use_threads"
8153
8154           if test x"$enablestring" = xdisable; then
8155             if test $wxUSE_THREADS = no; then
8156               result=yes
8157             else
8158               result=no
8159             fi
8160           else
8161             result=$wxUSE_THREADS
8162           fi
8163
8164           { echo "$as_me:$LINENO: result: $result" >&5
8165 echo "${ECHO_T}$result" >&6; }
8166
8167
8168
8169           enablestring=
8170           defaultval=
8171           if test -z "$defaultval"; then
8172               if test x"$enablestring" = xdisable; then
8173                   defaultval=yes
8174               else
8175                   defaultval=no
8176               fi
8177           fi
8178
8179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8180 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8181           # Check whether --enable-iniconf was given.
8182 if test "${enable_iniconf+set}" = set; then
8183   enableval=$enable_iniconf;
8184                           if test "$enableval" = yes; then
8185                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8186                           else
8187                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8188                           fi
8189
8190 else
8191
8192                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8193
8194 fi
8195
8196
8197           eval "$wx_cv_use_iniconf"
8198
8199           if test x"$enablestring" = xdisable; then
8200             if test $wxUSE_INICONF = no; then
8201               result=yes
8202             else
8203               result=no
8204             fi
8205           else
8206             result=$wxUSE_INICONF
8207           fi
8208
8209           { echo "$as_me:$LINENO: result: $result" >&5
8210 echo "${ECHO_T}$result" >&6; }
8211
8212
8213           enablestring=
8214           defaultval=$wxUSE_ALL_FEATURES
8215           if test -z "$defaultval"; then
8216               if test x"$enablestring" = xdisable; then
8217                   defaultval=yes
8218               else
8219                   defaultval=no
8220               fi
8221           fi
8222
8223           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8224 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8225           # Check whether --enable-regkey was given.
8226 if test "${enable_regkey+set}" = set; then
8227   enableval=$enable_regkey;
8228                           if test "$enableval" = yes; then
8229                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8230                           else
8231                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8232                           fi
8233
8234 else
8235
8236                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8237
8238 fi
8239
8240
8241           eval "$wx_cv_use_regkey"
8242
8243           if test x"$enablestring" = xdisable; then
8244             if test $wxUSE_REGKEY = no; then
8245               result=yes
8246             else
8247               result=no
8248             fi
8249           else
8250             result=$wxUSE_REGKEY
8251           fi
8252
8253           { echo "$as_me:$LINENO: result: $result" >&5
8254 echo "${ECHO_T}$result" >&6; }
8255
8256
8257 if test "$wxUSE_GUI" = "yes"; then
8258
8259
8260
8261           enablestring=
8262           defaultval=$wxUSE_ALL_FEATURES
8263           if test -z "$defaultval"; then
8264               if test x"$enablestring" = xdisable; then
8265                   defaultval=yes
8266               else
8267                   defaultval=no
8268               fi
8269           fi
8270
8271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8272 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8273           # Check whether --enable-docview was given.
8274 if test "${enable_docview+set}" = set; then
8275   enableval=$enable_docview;
8276                           if test "$enableval" = yes; then
8277                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8278                           else
8279                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8280                           fi
8281
8282 else
8283
8284                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8285
8286 fi
8287
8288
8289           eval "$wx_cv_use_docview"
8290
8291           if test x"$enablestring" = xdisable; then
8292             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8293               result=yes
8294             else
8295               result=no
8296             fi
8297           else
8298             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8299           fi
8300
8301           { echo "$as_me:$LINENO: result: $result" >&5
8302 echo "${ECHO_T}$result" >&6; }
8303
8304
8305           enablestring=
8306           defaultval=$wxUSE_ALL_FEATURES
8307           if test -z "$defaultval"; then
8308               if test x"$enablestring" = xdisable; then
8309                   defaultval=yes
8310               else
8311                   defaultval=no
8312               fi
8313           fi
8314
8315           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8316 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8317           # Check whether --enable-help was given.
8318 if test "${enable_help+set}" = set; then
8319   enableval=$enable_help;
8320                           if test "$enableval" = yes; then
8321                             wx_cv_use_help='wxUSE_HELP=yes'
8322                           else
8323                             wx_cv_use_help='wxUSE_HELP=no'
8324                           fi
8325
8326 else
8327
8328                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8329
8330 fi
8331
8332
8333           eval "$wx_cv_use_help"
8334
8335           if test x"$enablestring" = xdisable; then
8336             if test $wxUSE_HELP = no; then
8337               result=yes
8338             else
8339               result=no
8340             fi
8341           else
8342             result=$wxUSE_HELP
8343           fi
8344
8345           { echo "$as_me:$LINENO: result: $result" >&5
8346 echo "${ECHO_T}$result" >&6; }
8347
8348
8349           enablestring=
8350           defaultval=$wxUSE_ALL_FEATURES
8351           if test -z "$defaultval"; then
8352               if test x"$enablestring" = xdisable; then
8353                   defaultval=yes
8354               else
8355                   defaultval=no
8356               fi
8357           fi
8358
8359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8360 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8361           # Check whether --enable-mshtmlhelp was given.
8362 if test "${enable_mshtmlhelp+set}" = set; then
8363   enableval=$enable_mshtmlhelp;
8364                           if test "$enableval" = yes; then
8365                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8366                           else
8367                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8368                           fi
8369
8370 else
8371
8372                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8373
8374 fi
8375
8376
8377           eval "$wx_cv_use_mshtmlhelp"
8378
8379           if test x"$enablestring" = xdisable; then
8380             if test $wxUSE_MS_HTML_HELP = no; then
8381               result=yes
8382             else
8383               result=no
8384             fi
8385           else
8386             result=$wxUSE_MS_HTML_HELP
8387           fi
8388
8389           { echo "$as_me:$LINENO: result: $result" >&5
8390 echo "${ECHO_T}$result" >&6; }
8391
8392
8393           enablestring=
8394           defaultval=$wxUSE_ALL_FEATURES
8395           if test -z "$defaultval"; then
8396               if test x"$enablestring" = xdisable; then
8397                   defaultval=yes
8398               else
8399                   defaultval=no
8400               fi
8401           fi
8402
8403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8404 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8405           # Check whether --enable-html was given.
8406 if test "${enable_html+set}" = set; then
8407   enableval=$enable_html;
8408                           if test "$enableval" = yes; then
8409                             wx_cv_use_html='wxUSE_HTML=yes'
8410                           else
8411                             wx_cv_use_html='wxUSE_HTML=no'
8412                           fi
8413
8414 else
8415
8416                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8417
8418 fi
8419
8420
8421           eval "$wx_cv_use_html"
8422
8423           if test x"$enablestring" = xdisable; then
8424             if test $wxUSE_HTML = no; then
8425               result=yes
8426             else
8427               result=no
8428             fi
8429           else
8430             result=$wxUSE_HTML
8431           fi
8432
8433           { echo "$as_me:$LINENO: result: $result" >&5
8434 echo "${ECHO_T}$result" >&6; }
8435
8436
8437           enablestring=
8438           defaultval=$wxUSE_ALL_FEATURES
8439           if test -z "$defaultval"; then
8440               if test x"$enablestring" = xdisable; then
8441                   defaultval=yes
8442               else
8443                   defaultval=no
8444               fi
8445           fi
8446
8447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8448 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8449           # Check whether --enable-htmlhelp was given.
8450 if test "${enable_htmlhelp+set}" = set; then
8451   enableval=$enable_htmlhelp;
8452                           if test "$enableval" = yes; then
8453                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8454                           else
8455                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8456                           fi
8457
8458 else
8459
8460                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8461
8462 fi
8463
8464
8465           eval "$wx_cv_use_htmlhelp"
8466
8467           if test x"$enablestring" = xdisable; then
8468             if test $wxUSE_WXHTML_HELP = no; then
8469               result=yes
8470             else
8471               result=no
8472             fi
8473           else
8474             result=$wxUSE_WXHTML_HELP
8475           fi
8476
8477           { echo "$as_me:$LINENO: result: $result" >&5
8478 echo "${ECHO_T}$result" >&6; }
8479
8480
8481           enablestring=
8482           defaultval=$wxUSE_ALL_FEATURES
8483           if test -z "$defaultval"; then
8484               if test x"$enablestring" = xdisable; then
8485                   defaultval=yes
8486               else
8487                   defaultval=no
8488               fi
8489           fi
8490
8491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8492 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8493           # Check whether --enable-xrc was given.
8494 if test "${enable_xrc+set}" = set; then
8495   enableval=$enable_xrc;
8496                           if test "$enableval" = yes; then
8497                             wx_cv_use_xrc='wxUSE_XRC=yes'
8498                           else
8499                             wx_cv_use_xrc='wxUSE_XRC=no'
8500                           fi
8501
8502 else
8503
8504                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8505
8506 fi
8507
8508
8509           eval "$wx_cv_use_xrc"
8510
8511           if test x"$enablestring" = xdisable; then
8512             if test $wxUSE_XRC = no; then
8513               result=yes
8514             else
8515               result=no
8516             fi
8517           else
8518             result=$wxUSE_XRC
8519           fi
8520
8521           { echo "$as_me:$LINENO: result: $result" >&5
8522 echo "${ECHO_T}$result" >&6; }
8523
8524
8525           enablestring=
8526           defaultval=$wxUSE_ALL_FEATURES
8527           if test -z "$defaultval"; then
8528               if test x"$enablestring" = xdisable; then
8529                   defaultval=yes
8530               else
8531                   defaultval=no
8532               fi
8533           fi
8534
8535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8536 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8537           # Check whether --enable-aui was given.
8538 if test "${enable_aui+set}" = set; then
8539   enableval=$enable_aui;
8540                           if test "$enableval" = yes; then
8541                             wx_cv_use_aui='wxUSE_AUI=yes'
8542                           else
8543                             wx_cv_use_aui='wxUSE_AUI=no'
8544                           fi
8545
8546 else
8547
8548                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8549
8550 fi
8551
8552
8553           eval "$wx_cv_use_aui"
8554
8555           if test x"$enablestring" = xdisable; then
8556             if test $wxUSE_AUI = no; then
8557               result=yes
8558             else
8559               result=no
8560             fi
8561           else
8562             result=$wxUSE_AUI
8563           fi
8564
8565           { echo "$as_me:$LINENO: result: $result" >&5
8566 echo "${ECHO_T}$result" >&6; }
8567
8568
8569           enablestring=
8570           defaultval=$wxUSE_ALL_FEATURES
8571           if test -z "$defaultval"; then
8572               if test x"$enablestring" = xdisable; then
8573                   defaultval=yes
8574               else
8575                   defaultval=no
8576               fi
8577           fi
8578
8579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8580 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8581           # Check whether --enable-propgrid was given.
8582 if test "${enable_propgrid+set}" = set; then
8583   enableval=$enable_propgrid;
8584                           if test "$enableval" = yes; then
8585                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8586                           else
8587                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8588                           fi
8589
8590 else
8591
8592                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8593
8594 fi
8595
8596
8597           eval "$wx_cv_use_propgrid"
8598
8599           if test x"$enablestring" = xdisable; then
8600             if test $wxUSE_PROPGRID = no; then
8601               result=yes
8602             else
8603               result=no
8604             fi
8605           else
8606             result=$wxUSE_PROPGRID
8607           fi
8608
8609           { echo "$as_me:$LINENO: result: $result" >&5
8610 echo "${ECHO_T}$result" >&6; }
8611
8612
8613           enablestring=
8614           defaultval=$wxUSE_ALL_FEATURES
8615           if test -z "$defaultval"; then
8616               if test x"$enablestring" = xdisable; then
8617                   defaultval=yes
8618               else
8619                   defaultval=no
8620               fi
8621           fi
8622
8623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8624 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8625           # Check whether --enable-stc was given.
8626 if test "${enable_stc+set}" = set; then
8627   enableval=$enable_stc;
8628                           if test "$enableval" = yes; then
8629                             wx_cv_use_stc='wxUSE_STC=yes'
8630                           else
8631                             wx_cv_use_stc='wxUSE_STC=no'
8632                           fi
8633
8634 else
8635
8636                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8637
8638 fi
8639
8640
8641           eval "$wx_cv_use_stc"
8642
8643           if test x"$enablestring" = xdisable; then
8644             if test $wxUSE_STC = no; then
8645               result=yes
8646             else
8647               result=no
8648             fi
8649           else
8650             result=$wxUSE_STC
8651           fi
8652
8653           { echo "$as_me:$LINENO: result: $result" >&5
8654 echo "${ECHO_T}$result" >&6; }
8655
8656
8657           enablestring=
8658           defaultval=$wxUSE_ALL_FEATURES
8659           if test -z "$defaultval"; then
8660               if test x"$enablestring" = xdisable; then
8661                   defaultval=yes
8662               else
8663                   defaultval=no
8664               fi
8665           fi
8666
8667           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8668 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8669           # Check whether --enable-constraints was given.
8670 if test "${enable_constraints+set}" = set; then
8671   enableval=$enable_constraints;
8672                           if test "$enableval" = yes; then
8673                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8674                           else
8675                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8676                           fi
8677
8678 else
8679
8680                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8681
8682 fi
8683
8684
8685           eval "$wx_cv_use_constraints"
8686
8687           if test x"$enablestring" = xdisable; then
8688             if test $wxUSE_CONSTRAINTS = no; then
8689               result=yes
8690             else
8691               result=no
8692             fi
8693           else
8694             result=$wxUSE_CONSTRAINTS
8695           fi
8696
8697           { echo "$as_me:$LINENO: result: $result" >&5
8698 echo "${ECHO_T}$result" >&6; }
8699
8700
8701           enablestring=
8702           defaultval=$wxUSE_ALL_FEATURES
8703           if test -z "$defaultval"; then
8704               if test x"$enablestring" = xdisable; then
8705                   defaultval=yes
8706               else
8707                   defaultval=no
8708               fi
8709           fi
8710
8711           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8712 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8713           # Check whether --enable-loggui was given.
8714 if test "${enable_loggui+set}" = set; then
8715   enableval=$enable_loggui;
8716                           if test "$enableval" = yes; then
8717                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8718                           else
8719                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8720                           fi
8721
8722 else
8723
8724                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8725
8726 fi
8727
8728
8729           eval "$wx_cv_use_loggui"
8730
8731           if test x"$enablestring" = xdisable; then
8732             if test $wxUSE_LOGGUI = no; then
8733               result=yes
8734             else
8735               result=no
8736             fi
8737           else
8738             result=$wxUSE_LOGGUI
8739           fi
8740
8741           { echo "$as_me:$LINENO: result: $result" >&5
8742 echo "${ECHO_T}$result" >&6; }
8743
8744
8745           enablestring=
8746           defaultval=$wxUSE_ALL_FEATURES
8747           if test -z "$defaultval"; then
8748               if test x"$enablestring" = xdisable; then
8749                   defaultval=yes
8750               else
8751                   defaultval=no
8752               fi
8753           fi
8754
8755           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8756 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8757           # Check whether --enable-logwin was given.
8758 if test "${enable_logwin+set}" = set; then
8759   enableval=$enable_logwin;
8760                           if test "$enableval" = yes; then
8761                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8762                           else
8763                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8764                           fi
8765
8766 else
8767
8768                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8769
8770 fi
8771
8772
8773           eval "$wx_cv_use_logwin"
8774
8775           if test x"$enablestring" = xdisable; then
8776             if test $wxUSE_LOGWINDOW = no; then
8777               result=yes
8778             else
8779               result=no
8780             fi
8781           else
8782             result=$wxUSE_LOGWINDOW
8783           fi
8784
8785           { echo "$as_me:$LINENO: result: $result" >&5
8786 echo "${ECHO_T}$result" >&6; }
8787
8788
8789           enablestring=
8790           defaultval=$wxUSE_ALL_FEATURES
8791           if test -z "$defaultval"; then
8792               if test x"$enablestring" = xdisable; then
8793                   defaultval=yes
8794               else
8795                   defaultval=no
8796               fi
8797           fi
8798
8799           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8800 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8801           # Check whether --enable-logdialog was given.
8802 if test "${enable_logdialog+set}" = set; then
8803   enableval=$enable_logdialog;
8804                           if test "$enableval" = yes; then
8805                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8806                           else
8807                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8808                           fi
8809
8810 else
8811
8812                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8813
8814 fi
8815
8816
8817           eval "$wx_cv_use_logdialog"
8818
8819           if test x"$enablestring" = xdisable; then
8820             if test $wxUSE_LOGDIALOG = no; then
8821               result=yes
8822             else
8823               result=no
8824             fi
8825           else
8826             result=$wxUSE_LOGDIALOG
8827           fi
8828
8829           { echo "$as_me:$LINENO: result: $result" >&5
8830 echo "${ECHO_T}$result" >&6; }
8831
8832
8833           enablestring=
8834           defaultval=$wxUSE_ALL_FEATURES
8835           if test -z "$defaultval"; then
8836               if test x"$enablestring" = xdisable; then
8837                   defaultval=yes
8838               else
8839                   defaultval=no
8840               fi
8841           fi
8842
8843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8844 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8845           # Check whether --enable-mdi was given.
8846 if test "${enable_mdi+set}" = set; then
8847   enableval=$enable_mdi;
8848                           if test "$enableval" = yes; then
8849                             wx_cv_use_mdi='wxUSE_MDI=yes'
8850                           else
8851                             wx_cv_use_mdi='wxUSE_MDI=no'
8852                           fi
8853
8854 else
8855
8856                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8857
8858 fi
8859
8860
8861           eval "$wx_cv_use_mdi"
8862
8863           if test x"$enablestring" = xdisable; then
8864             if test $wxUSE_MDI = no; then
8865               result=yes
8866             else
8867               result=no
8868             fi
8869           else
8870             result=$wxUSE_MDI
8871           fi
8872
8873           { echo "$as_me:$LINENO: result: $result" >&5
8874 echo "${ECHO_T}$result" >&6; }
8875
8876
8877           enablestring=
8878           defaultval=$wxUSE_ALL_FEATURES
8879           if test -z "$defaultval"; then
8880               if test x"$enablestring" = xdisable; then
8881                   defaultval=yes
8882               else
8883                   defaultval=no
8884               fi
8885           fi
8886
8887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8888 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8889           # Check whether --enable-mdidoc was given.
8890 if test "${enable_mdidoc+set}" = set; then
8891   enableval=$enable_mdidoc;
8892                           if test "$enableval" = yes; then
8893                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8894                           else
8895                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8896                           fi
8897
8898 else
8899
8900                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8901
8902 fi
8903
8904
8905           eval "$wx_cv_use_mdidoc"
8906
8907           if test x"$enablestring" = xdisable; then
8908             if test $wxUSE_MDI_ARCHITECTURE = no; then
8909               result=yes
8910             else
8911               result=no
8912             fi
8913           else
8914             result=$wxUSE_MDI_ARCHITECTURE
8915           fi
8916
8917           { echo "$as_me:$LINENO: result: $result" >&5
8918 echo "${ECHO_T}$result" >&6; }
8919
8920
8921           enablestring=
8922           defaultval=$wxUSE_ALL_FEATURES
8923           if test -z "$defaultval"; then
8924               if test x"$enablestring" = xdisable; then
8925                   defaultval=yes
8926               else
8927                   defaultval=no
8928               fi
8929           fi
8930
8931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8932 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8933           # Check whether --enable-mediactrl was given.
8934 if test "${enable_mediactrl+set}" = set; then
8935   enableval=$enable_mediactrl;
8936                           if test "$enableval" = yes; then
8937                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8938                           else
8939                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8940                           fi
8941
8942 else
8943
8944                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8945
8946 fi
8947
8948
8949           eval "$wx_cv_use_mediactrl"
8950
8951           if test x"$enablestring" = xdisable; then
8952             if test $wxUSE_MEDIACTRL = no; then
8953               result=yes
8954             else
8955               result=no
8956             fi
8957           else
8958             result=$wxUSE_MEDIACTRL
8959           fi
8960
8961           { echo "$as_me:$LINENO: result: $result" >&5
8962 echo "${ECHO_T}$result" >&6; }
8963
8964
8965           enablestring=
8966           defaultval=$wxUSE_ALL_FEATURES
8967           if test -z "$defaultval"; then
8968               if test x"$enablestring" = xdisable; then
8969                   defaultval=yes
8970               else
8971                   defaultval=no
8972               fi
8973           fi
8974
8975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8976 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8977           # Check whether --enable-gstreamer8 was given.
8978 if test "${enable_gstreamer8+set}" = set; then
8979   enableval=$enable_gstreamer8;
8980                           if test "$enableval" = yes; then
8981                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8982                           else
8983                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8984                           fi
8985
8986 else
8987
8988                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8989
8990 fi
8991
8992
8993           eval "$wx_cv_use_gstreamer8"
8994
8995           if test x"$enablestring" = xdisable; then
8996             if test $wxUSE_GSTREAMER8 = no; then
8997               result=yes
8998             else
8999               result=no
9000             fi
9001           else
9002             result=$wxUSE_GSTREAMER8
9003           fi
9004
9005           { echo "$as_me:$LINENO: result: $result" >&5
9006 echo "${ECHO_T}$result" >&6; }
9007
9008
9009           enablestring=
9010           defaultval=$wxUSE_ALL_FEATURES
9011           if test -z "$defaultval"; then
9012               if test x"$enablestring" = xdisable; then
9013                   defaultval=yes
9014               else
9015                   defaultval=no
9016               fi
9017           fi
9018
9019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9020 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9021           # Check whether --enable-webkit was given.
9022 if test "${enable_webkit+set}" = set; then
9023   enableval=$enable_webkit;
9024                           if test "$enableval" = yes; then
9025                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9026                           else
9027                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9028                           fi
9029
9030 else
9031
9032                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9033
9034 fi
9035
9036
9037           eval "$wx_cv_use_webkit"
9038
9039           if test x"$enablestring" = xdisable; then
9040             if test $wxUSE_WEBKIT = no; then
9041               result=yes
9042             else
9043               result=no
9044             fi
9045           else
9046             result=$wxUSE_WEBKIT
9047           fi
9048
9049           { echo "$as_me:$LINENO: result: $result" >&5
9050 echo "${ECHO_T}$result" >&6; }
9051
9052
9053           enablestring=
9054           defaultval=$wxUSE_ALL_FEATURES
9055           if test -z "$defaultval"; then
9056               if test x"$enablestring" = xdisable; then
9057                   defaultval=yes
9058               else
9059                   defaultval=no
9060               fi
9061           fi
9062
9063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9064 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9065           # Check whether --enable-richtext was given.
9066 if test "${enable_richtext+set}" = set; then
9067   enableval=$enable_richtext;
9068                           if test "$enableval" = yes; then
9069                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9070                           else
9071                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9072                           fi
9073
9074 else
9075
9076                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9077
9078 fi
9079
9080
9081           eval "$wx_cv_use_richtext"
9082
9083           if test x"$enablestring" = xdisable; then
9084             if test $wxUSE_RICHTEXT = no; then
9085               result=yes
9086             else
9087               result=no
9088             fi
9089           else
9090             result=$wxUSE_RICHTEXT
9091           fi
9092
9093           { echo "$as_me:$LINENO: result: $result" >&5
9094 echo "${ECHO_T}$result" >&6; }
9095
9096
9097           enablestring=
9098           defaultval=$wxUSE_ALL_FEATURES
9099           if test -z "$defaultval"; then
9100               if test x"$enablestring" = xdisable; then
9101                   defaultval=yes
9102               else
9103                   defaultval=no
9104               fi
9105           fi
9106
9107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9108 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9109           # Check whether --enable-graphics_ctx was given.
9110 if test "${enable_graphics_ctx+set}" = set; then
9111   enableval=$enable_graphics_ctx;
9112                           if test "$enableval" = yes; then
9113                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9114                           else
9115                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9116                           fi
9117
9118 else
9119
9120                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9121
9122 fi
9123
9124
9125           eval "$wx_cv_use_graphics_ctx"
9126
9127           if test x"$enablestring" = xdisable; then
9128             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9129               result=yes
9130             else
9131               result=no
9132             fi
9133           else
9134             result=$wxUSE_GRAPHICS_CONTEXT
9135           fi
9136
9137           { echo "$as_me:$LINENO: result: $result" >&5
9138 echo "${ECHO_T}$result" >&6; }
9139
9140
9141           enablestring=
9142           defaultval=$wxUSE_ALL_FEATURES
9143           if test -z "$defaultval"; then
9144               if test x"$enablestring" = xdisable; then
9145                   defaultval=yes
9146               else
9147                   defaultval=no
9148               fi
9149           fi
9150
9151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9152 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9153           # Check whether --enable-postscript was given.
9154 if test "${enable_postscript+set}" = set; then
9155   enableval=$enable_postscript;
9156                           if test "$enableval" = yes; then
9157                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9158                           else
9159                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9160                           fi
9161
9162 else
9163
9164                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9165
9166 fi
9167
9168
9169           eval "$wx_cv_use_postscript"
9170
9171           if test x"$enablestring" = xdisable; then
9172             if test $wxUSE_POSTSCRIPT = no; then
9173               result=yes
9174             else
9175               result=no
9176             fi
9177           else
9178             result=$wxUSE_POSTSCRIPT
9179           fi
9180
9181           { echo "$as_me:$LINENO: result: $result" >&5
9182 echo "${ECHO_T}$result" >&6; }
9183
9184
9185           enablestring=
9186           defaultval=$wxUSE_ALL_FEATURES
9187           if test -z "$defaultval"; then
9188               if test x"$enablestring" = xdisable; then
9189                   defaultval=yes
9190               else
9191                   defaultval=no
9192               fi
9193           fi
9194
9195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9196 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9197           # Check whether --enable-printarch was given.
9198 if test "${enable_printarch+set}" = set; then
9199   enableval=$enable_printarch;
9200                           if test "$enableval" = yes; then
9201                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9202                           else
9203                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9204                           fi
9205
9206 else
9207
9208                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9209
9210 fi
9211
9212
9213           eval "$wx_cv_use_printarch"
9214
9215           if test x"$enablestring" = xdisable; then
9216             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9217               result=yes
9218             else
9219               result=no
9220             fi
9221           else
9222             result=$wxUSE_PRINTING_ARCHITECTURE
9223           fi
9224
9225           { echo "$as_me:$LINENO: result: $result" >&5
9226 echo "${ECHO_T}$result" >&6; }
9227
9228
9229           enablestring=
9230           defaultval=$wxUSE_ALL_FEATURES
9231           if test -z "$defaultval"; then
9232               if test x"$enablestring" = xdisable; then
9233                   defaultval=yes
9234               else
9235                   defaultval=no
9236               fi
9237           fi
9238
9239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9240 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9241           # Check whether --enable-svg was given.
9242 if test "${enable_svg+set}" = set; then
9243   enableval=$enable_svg;
9244                           if test "$enableval" = yes; then
9245                             wx_cv_use_svg='wxUSE_SVG=yes'
9246                           else
9247                             wx_cv_use_svg='wxUSE_SVG=no'
9248                           fi
9249
9250 else
9251
9252                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9253
9254 fi
9255
9256
9257           eval "$wx_cv_use_svg"
9258
9259           if test x"$enablestring" = xdisable; then
9260             if test $wxUSE_SVG = no; then
9261               result=yes
9262             else
9263               result=no
9264             fi
9265           else
9266             result=$wxUSE_SVG
9267           fi
9268
9269           { echo "$as_me:$LINENO: result: $result" >&5
9270 echo "${ECHO_T}$result" >&6; }
9271
9272
9273
9274
9275           enablestring=
9276           defaultval=$wxUSE_ALL_FEATURES
9277           if test -z "$defaultval"; then
9278               if test x"$enablestring" = xdisable; then
9279                   defaultval=yes
9280               else
9281                   defaultval=no
9282               fi
9283           fi
9284
9285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9286 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9287           # Check whether --enable-clipboard was given.
9288 if test "${enable_clipboard+set}" = set; then
9289   enableval=$enable_clipboard;
9290                           if test "$enableval" = yes; then
9291                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9292                           else
9293                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9294                           fi
9295
9296 else
9297
9298                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9299
9300 fi
9301
9302
9303           eval "$wx_cv_use_clipboard"
9304
9305           if test x"$enablestring" = xdisable; then
9306             if test $wxUSE_CLIPBOARD = no; then
9307               result=yes
9308             else
9309               result=no
9310             fi
9311           else
9312             result=$wxUSE_CLIPBOARD
9313           fi
9314
9315           { echo "$as_me:$LINENO: result: $result" >&5
9316 echo "${ECHO_T}$result" >&6; }
9317
9318
9319           enablestring=
9320           defaultval=$wxUSE_ALL_FEATURES
9321           if test -z "$defaultval"; then
9322               if test x"$enablestring" = xdisable; then
9323                   defaultval=yes
9324               else
9325                   defaultval=no
9326               fi
9327           fi
9328
9329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9330 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9331           # Check whether --enable-dnd was given.
9332 if test "${enable_dnd+set}" = set; then
9333   enableval=$enable_dnd;
9334                           if test "$enableval" = yes; then
9335                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9336                           else
9337                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9338                           fi
9339
9340 else
9341
9342                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9343
9344 fi
9345
9346
9347           eval "$wx_cv_use_dnd"
9348
9349           if test x"$enablestring" = xdisable; then
9350             if test $wxUSE_DRAG_AND_DROP = no; then
9351               result=yes
9352             else
9353               result=no
9354             fi
9355           else
9356             result=$wxUSE_DRAG_AND_DROP
9357           fi
9358
9359           { echo "$as_me:$LINENO: result: $result" >&5
9360 echo "${ECHO_T}$result" >&6; }
9361
9362
9363           enablestring=
9364           defaultval=$wxUSE_ALL_FEATURES
9365           if test -z "$defaultval"; then
9366               if test x"$enablestring" = xdisable; then
9367                   defaultval=yes
9368               else
9369                   defaultval=no
9370               fi
9371           fi
9372
9373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9374 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9375           # Check whether --enable-metafile was given.
9376 if test "${enable_metafile+set}" = set; then
9377   enableval=$enable_metafile;
9378                           if test "$enableval" = yes; then
9379                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9380                           else
9381                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9382                           fi
9383
9384 else
9385
9386                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9387
9388 fi
9389
9390
9391           eval "$wx_cv_use_metafile"
9392
9393           if test x"$enablestring" = xdisable; then
9394             if test $wxUSE_METAFILE = no; then
9395               result=yes
9396             else
9397               result=no
9398             fi
9399           else
9400             result=$wxUSE_METAFILE
9401           fi
9402
9403           { echo "$as_me:$LINENO: result: $result" >&5
9404 echo "${ECHO_T}$result" >&6; }
9405
9406
9407
9408 DEFAULT_wxUSE_CONTROLS=none
9409
9410           enablestring=disable
9411           defaultval=
9412           if test -z "$defaultval"; then
9413               if test x"$enablestring" = xdisable; then
9414                   defaultval=yes
9415               else
9416                   defaultval=no
9417               fi
9418           fi
9419
9420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9421 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9422           # Check whether --enable-controls was given.
9423 if test "${enable_controls+set}" = set; then
9424   enableval=$enable_controls;
9425                           if test "$enableval" = yes; then
9426                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9427                           else
9428                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9429                           fi
9430
9431 else
9432
9433                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9434
9435 fi
9436
9437
9438           eval "$wx_cv_use_controls"
9439
9440           if test x"$enablestring" = xdisable; then
9441             if test $wxUSE_CONTROLS = no; then
9442               result=yes
9443             else
9444               result=no
9445             fi
9446           else
9447             result=$wxUSE_CONTROLS
9448           fi
9449
9450           { echo "$as_me:$LINENO: result: $result" >&5
9451 echo "${ECHO_T}$result" >&6; }
9452
9453
9454 if test "$wxUSE_CONTROLS" = "no"; then
9455     DEFAULT_wxUSE_ACCEL=no
9456     DEFAULT_wxUSE_ANIMATIONCTRL=no
9457     DEFAULT_wxUSE_BMPBUTTON=no
9458     DEFAULT_wxUSE_BUTTON=no
9459     DEFAULT_wxUSE_CALCTRL=no
9460     DEFAULT_wxUSE_CARET=no
9461     DEFAULT_wxUSE_CHECKBOX=no
9462     DEFAULT_wxUSE_CHECKLISTBOX=no
9463     DEFAULT_wxUSE_CHOICE=no
9464     DEFAULT_wxUSE_CHOICEBOOK=no
9465     DEFAULT_wxUSE_COLLPANE=no
9466     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9467     DEFAULT_wxUSE_COMBOBOX=no
9468     DEFAULT_wxUSE_COMBOBOX=no
9469     DEFAULT_wxUSE_DATAVIEWCTRL=no
9470     DEFAULT_wxUSE_DATEPICKCTRL=no
9471     DEFAULT_wxUSE_DETECT_SM=no
9472     DEFAULT_wxUSE_DIRPICKERCTRL=no
9473     DEFAULT_wxUSE_DISPLAY=no
9474     DEFAULT_wxUSE_FILECTRL=no
9475     DEFAULT_wxUSE_FILEPICKERCTRL=no
9476     DEFAULT_wxUSE_FONTPICKERCTRL=no
9477     DEFAULT_wxUSE_GAUGE=no
9478     DEFAULT_wxUSE_GRID=no
9479     DEFAULT_wxUSE_HEADERCTRL=no
9480     DEFAULT_wxUSE_HYPERLINKCTRL=no
9481     DEFAULT_wxUSE_IMAGLIST=no
9482     DEFAULT_wxUSE_LISTBOOK=no
9483     DEFAULT_wxUSE_LISTBOX=no
9484     DEFAULT_wxUSE_LISTCTRL=no
9485     DEFAULT_wxUSE_NOTEBOOK=no
9486     DEFAULT_wxUSE_POPUPWIN=no
9487     DEFAULT_wxUSE_RADIOBOX=no
9488     DEFAULT_wxUSE_RADIOBTN=no
9489     DEFAULT_wxUSE_REARRANGECTRL=no
9490     DEFAULT_wxUSE_SASH=no
9491     DEFAULT_wxUSE_SCROLLBAR=no
9492     DEFAULT_wxUSE_SEARCHCTRL=no
9493     DEFAULT_wxUSE_SLIDER=no
9494     DEFAULT_wxUSE_SPINBTN=no
9495     DEFAULT_wxUSE_SPINCTRL=no
9496     DEFAULT_wxUSE_SPLITTER=no
9497     DEFAULT_wxUSE_STATBMP=no
9498     DEFAULT_wxUSE_STATBOX=no
9499     DEFAULT_wxUSE_STATLINE=no
9500     DEFAULT_wxUSE_STATUSBAR=no
9501     DEFAULT_wxUSE_TIPWINDOW=no
9502     DEFAULT_wxUSE_TOGGLEBTN=no
9503     DEFAULT_wxUSE_TOOLBAR=no
9504     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9505     DEFAULT_wxUSE_TOOLBOOK=no
9506     DEFAULT_wxUSE_TOOLTIPS=no
9507     DEFAULT_wxUSE_TREEBOOK=no
9508     DEFAULT_wxUSE_TREECTRL=no
9509 fi
9510
9511
9512           enablestring=
9513           defaultval=$wxUSE_ALL_FEATURES
9514           if test -z "$defaultval"; then
9515               if test x"$enablestring" = xdisable; then
9516                   defaultval=yes
9517               else
9518                   defaultval=no
9519               fi
9520           fi
9521
9522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9523 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9524           # Check whether --enable-accel was given.
9525 if test "${enable_accel+set}" = set; then
9526   enableval=$enable_accel;
9527                           if test "$enableval" = yes; then
9528                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9529                           else
9530                             wx_cv_use_accel='wxUSE_ACCEL=no'
9531                           fi
9532
9533 else
9534
9535                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9536
9537 fi
9538
9539
9540           eval "$wx_cv_use_accel"
9541
9542           if test x"$enablestring" = xdisable; then
9543             if test $wxUSE_ACCEL = no; then
9544               result=yes
9545             else
9546               result=no
9547             fi
9548           else
9549             result=$wxUSE_ACCEL
9550           fi
9551
9552           { echo "$as_me:$LINENO: result: $result" >&5
9553 echo "${ECHO_T}$result" >&6; }
9554
9555
9556           enablestring=
9557           defaultval=$wxUSE_ALL_FEATURES
9558           if test -z "$defaultval"; then
9559               if test x"$enablestring" = xdisable; then
9560                   defaultval=yes
9561               else
9562                   defaultval=no
9563               fi
9564           fi
9565
9566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9567 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9568           # Check whether --enable-animatectrl was given.
9569 if test "${enable_animatectrl+set}" = set; then
9570   enableval=$enable_animatectrl;
9571                           if test "$enableval" = yes; then
9572                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9573                           else
9574                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9575                           fi
9576
9577 else
9578
9579                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9580
9581 fi
9582
9583
9584           eval "$wx_cv_use_animatectrl"
9585
9586           if test x"$enablestring" = xdisable; then
9587             if test $wxUSE_ANIMATIONCTRL = no; then
9588               result=yes
9589             else
9590               result=no
9591             fi
9592           else
9593             result=$wxUSE_ANIMATIONCTRL
9594           fi
9595
9596           { echo "$as_me:$LINENO: result: $result" >&5
9597 echo "${ECHO_T}$result" >&6; }
9598
9599
9600           enablestring=
9601           defaultval=$wxUSE_ALL_FEATURES
9602           if test -z "$defaultval"; then
9603               if test x"$enablestring" = xdisable; then
9604                   defaultval=yes
9605               else
9606                   defaultval=no
9607               fi
9608           fi
9609
9610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9611 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9612           # Check whether --enable-bmpbutton was given.
9613 if test "${enable_bmpbutton+set}" = set; then
9614   enableval=$enable_bmpbutton;
9615                           if test "$enableval" = yes; then
9616                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9617                           else
9618                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9619                           fi
9620
9621 else
9622
9623                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9624
9625 fi
9626
9627
9628           eval "$wx_cv_use_bmpbutton"
9629
9630           if test x"$enablestring" = xdisable; then
9631             if test $wxUSE_BMPBUTTON = no; then
9632               result=yes
9633             else
9634               result=no
9635             fi
9636           else
9637             result=$wxUSE_BMPBUTTON
9638           fi
9639
9640           { echo "$as_me:$LINENO: result: $result" >&5
9641 echo "${ECHO_T}$result" >&6; }
9642
9643
9644           enablestring=
9645           defaultval=$wxUSE_ALL_FEATURES
9646           if test -z "$defaultval"; then
9647               if test x"$enablestring" = xdisable; then
9648                   defaultval=yes
9649               else
9650                   defaultval=no
9651               fi
9652           fi
9653
9654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9655 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9656           # Check whether --enable-bmpcombobox was given.
9657 if test "${enable_bmpcombobox+set}" = set; then
9658   enableval=$enable_bmpcombobox;
9659                           if test "$enableval" = yes; then
9660                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9661                           else
9662                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9663                           fi
9664
9665 else
9666
9667                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9668
9669 fi
9670
9671
9672           eval "$wx_cv_use_bmpcombobox"
9673
9674           if test x"$enablestring" = xdisable; then
9675             if test $wxUSE_BITMAPCOMBOBOX = no; then
9676               result=yes
9677             else
9678               result=no
9679             fi
9680           else
9681             result=$wxUSE_BITMAPCOMBOBOX
9682           fi
9683
9684           { echo "$as_me:$LINENO: result: $result" >&5
9685 echo "${ECHO_T}$result" >&6; }
9686
9687
9688           enablestring=
9689           defaultval=$wxUSE_ALL_FEATURES
9690           if test -z "$defaultval"; then
9691               if test x"$enablestring" = xdisable; then
9692                   defaultval=yes
9693               else
9694                   defaultval=no
9695               fi
9696           fi
9697
9698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9699 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9700           # Check whether --enable-button was given.
9701 if test "${enable_button+set}" = set; then
9702   enableval=$enable_button;
9703                           if test "$enableval" = yes; then
9704                             wx_cv_use_button='wxUSE_BUTTON=yes'
9705                           else
9706                             wx_cv_use_button='wxUSE_BUTTON=no'
9707                           fi
9708
9709 else
9710
9711                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9712
9713 fi
9714
9715
9716           eval "$wx_cv_use_button"
9717
9718           if test x"$enablestring" = xdisable; then
9719             if test $wxUSE_BUTTON = no; then
9720               result=yes
9721             else
9722               result=no
9723             fi
9724           else
9725             result=$wxUSE_BUTTON
9726           fi
9727
9728           { echo "$as_me:$LINENO: result: $result" >&5
9729 echo "${ECHO_T}$result" >&6; }
9730
9731
9732           enablestring=
9733           defaultval=$wxUSE_ALL_FEATURES
9734           if test -z "$defaultval"; then
9735               if test x"$enablestring" = xdisable; then
9736                   defaultval=yes
9737               else
9738                   defaultval=no
9739               fi
9740           fi
9741
9742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9743 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9744           # Check whether --enable-calendar was given.
9745 if test "${enable_calendar+set}" = set; then
9746   enableval=$enable_calendar;
9747                           if test "$enableval" = yes; then
9748                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9749                           else
9750                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9751                           fi
9752
9753 else
9754
9755                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9756
9757 fi
9758
9759
9760           eval "$wx_cv_use_calendar"
9761
9762           if test x"$enablestring" = xdisable; then
9763             if test $wxUSE_CALCTRL = no; then
9764               result=yes
9765             else
9766               result=no
9767             fi
9768           else
9769             result=$wxUSE_CALCTRL
9770           fi
9771
9772           { echo "$as_me:$LINENO: result: $result" >&5
9773 echo "${ECHO_T}$result" >&6; }
9774
9775
9776           enablestring=
9777           defaultval=$wxUSE_ALL_FEATURES
9778           if test -z "$defaultval"; then
9779               if test x"$enablestring" = xdisable; then
9780                   defaultval=yes
9781               else
9782                   defaultval=no
9783               fi
9784           fi
9785
9786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9787 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9788           # Check whether --enable-caret was given.
9789 if test "${enable_caret+set}" = set; then
9790   enableval=$enable_caret;
9791                           if test "$enableval" = yes; then
9792                             wx_cv_use_caret='wxUSE_CARET=yes'
9793                           else
9794                             wx_cv_use_caret='wxUSE_CARET=no'
9795                           fi
9796
9797 else
9798
9799                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9800
9801 fi
9802
9803
9804           eval "$wx_cv_use_caret"
9805
9806           if test x"$enablestring" = xdisable; then
9807             if test $wxUSE_CARET = no; then
9808               result=yes
9809             else
9810               result=no
9811             fi
9812           else
9813             result=$wxUSE_CARET
9814           fi
9815
9816           { echo "$as_me:$LINENO: result: $result" >&5
9817 echo "${ECHO_T}$result" >&6; }
9818
9819
9820           enablestring=
9821           defaultval=$wxUSE_ALL_FEATURES
9822           if test -z "$defaultval"; then
9823               if test x"$enablestring" = xdisable; then
9824                   defaultval=yes
9825               else
9826                   defaultval=no
9827               fi
9828           fi
9829
9830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9831 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9832           # Check whether --enable-checkbox was given.
9833 if test "${enable_checkbox+set}" = set; then
9834   enableval=$enable_checkbox;
9835                           if test "$enableval" = yes; then
9836                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9837                           else
9838                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9839                           fi
9840
9841 else
9842
9843                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9844
9845 fi
9846
9847
9848           eval "$wx_cv_use_checkbox"
9849
9850           if test x"$enablestring" = xdisable; then
9851             if test $wxUSE_CHECKBOX = no; then
9852               result=yes
9853             else
9854               result=no
9855             fi
9856           else
9857             result=$wxUSE_CHECKBOX
9858           fi
9859
9860           { echo "$as_me:$LINENO: result: $result" >&5
9861 echo "${ECHO_T}$result" >&6; }
9862
9863
9864           enablestring=
9865           defaultval=$wxUSE_ALL_FEATURES
9866           if test -z "$defaultval"; then
9867               if test x"$enablestring" = xdisable; then
9868                   defaultval=yes
9869               else
9870                   defaultval=no
9871               fi
9872           fi
9873
9874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9875 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9876           # Check whether --enable-checklst was given.
9877 if test "${enable_checklst+set}" = set; then
9878   enableval=$enable_checklst;
9879                           if test "$enableval" = yes; then
9880                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9881                           else
9882                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9883                           fi
9884
9885 else
9886
9887                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9888
9889 fi
9890
9891
9892           eval "$wx_cv_use_checklst"
9893
9894           if test x"$enablestring" = xdisable; then
9895             if test $wxUSE_CHECKLST = no; then
9896               result=yes
9897             else
9898               result=no
9899             fi
9900           else
9901             result=$wxUSE_CHECKLST
9902           fi
9903
9904           { echo "$as_me:$LINENO: result: $result" >&5
9905 echo "${ECHO_T}$result" >&6; }
9906
9907
9908           enablestring=
9909           defaultval=$wxUSE_ALL_FEATURES
9910           if test -z "$defaultval"; then
9911               if test x"$enablestring" = xdisable; then
9912                   defaultval=yes
9913               else
9914                   defaultval=no
9915               fi
9916           fi
9917
9918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9919 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9920           # Check whether --enable-choice was given.
9921 if test "${enable_choice+set}" = set; then
9922   enableval=$enable_choice;
9923                           if test "$enableval" = yes; then
9924                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9925                           else
9926                             wx_cv_use_choice='wxUSE_CHOICE=no'
9927                           fi
9928
9929 else
9930
9931                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9932
9933 fi
9934
9935
9936           eval "$wx_cv_use_choice"
9937
9938           if test x"$enablestring" = xdisable; then
9939             if test $wxUSE_CHOICE = no; then
9940               result=yes
9941             else
9942               result=no
9943             fi
9944           else
9945             result=$wxUSE_CHOICE
9946           fi
9947
9948           { echo "$as_me:$LINENO: result: $result" >&5
9949 echo "${ECHO_T}$result" >&6; }
9950
9951
9952           enablestring=
9953           defaultval=$wxUSE_ALL_FEATURES
9954           if test -z "$defaultval"; then
9955               if test x"$enablestring" = xdisable; then
9956                   defaultval=yes
9957               else
9958                   defaultval=no
9959               fi
9960           fi
9961
9962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9963 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9964           # Check whether --enable-choicebook was given.
9965 if test "${enable_choicebook+set}" = set; then
9966   enableval=$enable_choicebook;
9967                           if test "$enableval" = yes; then
9968                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9969                           else
9970                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9971                           fi
9972
9973 else
9974
9975                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9976
9977 fi
9978
9979
9980           eval "$wx_cv_use_choicebook"
9981
9982           if test x"$enablestring" = xdisable; then
9983             if test $wxUSE_CHOICEBOOK = no; then
9984               result=yes
9985             else
9986               result=no
9987             fi
9988           else
9989             result=$wxUSE_CHOICEBOOK
9990           fi
9991
9992           { echo "$as_me:$LINENO: result: $result" >&5
9993 echo "${ECHO_T}$result" >&6; }
9994
9995
9996           enablestring=
9997           defaultval=$wxUSE_ALL_FEATURES
9998           if test -z "$defaultval"; then
9999               if test x"$enablestring" = xdisable; then
10000                   defaultval=yes
10001               else
10002                   defaultval=no
10003               fi
10004           fi
10005
10006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10007 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10008           # Check whether --enable-collpane was given.
10009 if test "${enable_collpane+set}" = set; then
10010   enableval=$enable_collpane;
10011                           if test "$enableval" = yes; then
10012                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10013                           else
10014                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10015                           fi
10016
10017 else
10018
10019                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10020
10021 fi
10022
10023
10024           eval "$wx_cv_use_collpane"
10025
10026           if test x"$enablestring" = xdisable; then
10027             if test $wxUSE_COLLPANE = no; then
10028               result=yes
10029             else
10030               result=no
10031             fi
10032           else
10033             result=$wxUSE_COLLPANE
10034           fi
10035
10036           { echo "$as_me:$LINENO: result: $result" >&5
10037 echo "${ECHO_T}$result" >&6; }
10038
10039
10040           enablestring=
10041           defaultval=$wxUSE_ALL_FEATURES
10042           if test -z "$defaultval"; then
10043               if test x"$enablestring" = xdisable; then
10044                   defaultval=yes
10045               else
10046                   defaultval=no
10047               fi
10048           fi
10049
10050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10051 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10052           # Check whether --enable-colourpicker was given.
10053 if test "${enable_colourpicker+set}" = set; then
10054   enableval=$enable_colourpicker;
10055                           if test "$enableval" = yes; then
10056                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10057                           else
10058                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10059                           fi
10060
10061 else
10062
10063                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10064
10065 fi
10066
10067
10068           eval "$wx_cv_use_colourpicker"
10069
10070           if test x"$enablestring" = xdisable; then
10071             if test $wxUSE_COLOURPICKERCTRL = no; then
10072               result=yes
10073             else
10074               result=no
10075             fi
10076           else
10077             result=$wxUSE_COLOURPICKERCTRL
10078           fi
10079
10080           { echo "$as_me:$LINENO: result: $result" >&5
10081 echo "${ECHO_T}$result" >&6; }
10082
10083
10084           enablestring=
10085           defaultval=$wxUSE_ALL_FEATURES
10086           if test -z "$defaultval"; then
10087               if test x"$enablestring" = xdisable; then
10088                   defaultval=yes
10089               else
10090                   defaultval=no
10091               fi
10092           fi
10093
10094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10095 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10096           # Check whether --enable-combobox was given.
10097 if test "${enable_combobox+set}" = set; then
10098   enableval=$enable_combobox;
10099                           if test "$enableval" = yes; then
10100                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10101                           else
10102                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10103                           fi
10104
10105 else
10106
10107                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10108
10109 fi
10110
10111
10112           eval "$wx_cv_use_combobox"
10113
10114           if test x"$enablestring" = xdisable; then
10115             if test $wxUSE_COMBOBOX = no; then
10116               result=yes
10117             else
10118               result=no
10119             fi
10120           else
10121             result=$wxUSE_COMBOBOX
10122           fi
10123
10124           { echo "$as_me:$LINENO: result: $result" >&5
10125 echo "${ECHO_T}$result" >&6; }
10126
10127
10128           enablestring=
10129           defaultval=$wxUSE_ALL_FEATURES
10130           if test -z "$defaultval"; then
10131               if test x"$enablestring" = xdisable; then
10132                   defaultval=yes
10133               else
10134                   defaultval=no
10135               fi
10136           fi
10137
10138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10139 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10140           # Check whether --enable-comboctrl was given.
10141 if test "${enable_comboctrl+set}" = set; then
10142   enableval=$enable_comboctrl;
10143                           if test "$enableval" = yes; then
10144                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10145                           else
10146                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10147                           fi
10148
10149 else
10150
10151                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10152
10153 fi
10154
10155
10156           eval "$wx_cv_use_comboctrl"
10157
10158           if test x"$enablestring" = xdisable; then
10159             if test $wxUSE_COMBOCTRL = no; then
10160               result=yes
10161             else
10162               result=no
10163             fi
10164           else
10165             result=$wxUSE_COMBOCTRL
10166           fi
10167
10168           { echo "$as_me:$LINENO: result: $result" >&5
10169 echo "${ECHO_T}$result" >&6; }
10170
10171
10172           enablestring=
10173           defaultval=$wxUSE_ALL_FEATURES
10174           if test -z "$defaultval"; then
10175               if test x"$enablestring" = xdisable; then
10176                   defaultval=yes
10177               else
10178                   defaultval=no
10179               fi
10180           fi
10181
10182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10183 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10184           # Check whether --enable-dataviewctrl was given.
10185 if test "${enable_dataviewctrl+set}" = set; then
10186   enableval=$enable_dataviewctrl;
10187                           if test "$enableval" = yes; then
10188                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10189                           else
10190                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10191                           fi
10192
10193 else
10194
10195                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10196
10197 fi
10198
10199
10200           eval "$wx_cv_use_dataviewctrl"
10201
10202           if test x"$enablestring" = xdisable; then
10203             if test $wxUSE_DATAVIEWCTRL = no; then
10204               result=yes
10205             else
10206               result=no
10207             fi
10208           else
10209             result=$wxUSE_DATAVIEWCTRL
10210           fi
10211
10212           { echo "$as_me:$LINENO: result: $result" >&5
10213 echo "${ECHO_T}$result" >&6; }
10214
10215
10216           enablestring=
10217           defaultval=$wxUSE_ALL_FEATURES
10218           if test -z "$defaultval"; then
10219               if test x"$enablestring" = xdisable; then
10220                   defaultval=yes
10221               else
10222                   defaultval=no
10223               fi
10224           fi
10225
10226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10227 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10228           # Check whether --enable-datepick was given.
10229 if test "${enable_datepick+set}" = set; then
10230   enableval=$enable_datepick;
10231                           if test "$enableval" = yes; then
10232                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10233                           else
10234                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10235                           fi
10236
10237 else
10238
10239                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10240
10241 fi
10242
10243
10244           eval "$wx_cv_use_datepick"
10245
10246           if test x"$enablestring" = xdisable; then
10247             if test $wxUSE_DATEPICKCTRL = no; then
10248               result=yes
10249             else
10250               result=no
10251             fi
10252           else
10253             result=$wxUSE_DATEPICKCTRL
10254           fi
10255
10256           { echo "$as_me:$LINENO: result: $result" >&5
10257 echo "${ECHO_T}$result" >&6; }
10258
10259
10260           enablestring=
10261           defaultval=$wxUSE_ALL_FEATURES
10262           if test -z "$defaultval"; then
10263               if test x"$enablestring" = xdisable; then
10264                   defaultval=yes
10265               else
10266                   defaultval=no
10267               fi
10268           fi
10269
10270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10271 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10272           # Check whether --enable-detect_sm was given.
10273 if test "${enable_detect_sm+set}" = set; then
10274   enableval=$enable_detect_sm;
10275                           if test "$enableval" = yes; then
10276                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10277                           else
10278                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10279                           fi
10280
10281 else
10282
10283                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10284
10285 fi
10286
10287
10288           eval "$wx_cv_use_detect_sm"
10289
10290           if test x"$enablestring" = xdisable; then
10291             if test $wxUSE_DETECT_SM = no; then
10292               result=yes
10293             else
10294               result=no
10295             fi
10296           else
10297             result=$wxUSE_DETECT_SM
10298           fi
10299
10300           { echo "$as_me:$LINENO: result: $result" >&5
10301 echo "${ECHO_T}$result" >&6; }
10302
10303
10304           enablestring=
10305           defaultval=$wxUSE_ALL_FEATURES
10306           if test -z "$defaultval"; then
10307               if test x"$enablestring" = xdisable; then
10308                   defaultval=yes
10309               else
10310                   defaultval=no
10311               fi
10312           fi
10313
10314           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10315 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10316           # Check whether --enable-dirpicker was given.
10317 if test "${enable_dirpicker+set}" = set; then
10318   enableval=$enable_dirpicker;
10319                           if test "$enableval" = yes; then
10320                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10321                           else
10322                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10323                           fi
10324
10325 else
10326
10327                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10328
10329 fi
10330
10331
10332           eval "$wx_cv_use_dirpicker"
10333
10334           if test x"$enablestring" = xdisable; then
10335             if test $wxUSE_DIRPICKERCTRL = no; then
10336               result=yes
10337             else
10338               result=no
10339             fi
10340           else
10341             result=$wxUSE_DIRPICKERCTRL
10342           fi
10343
10344           { echo "$as_me:$LINENO: result: $result" >&5
10345 echo "${ECHO_T}$result" >&6; }
10346
10347
10348           enablestring=
10349           defaultval=$wxUSE_ALL_FEATURES
10350           if test -z "$defaultval"; then
10351               if test x"$enablestring" = xdisable; then
10352                   defaultval=yes
10353               else
10354                   defaultval=no
10355               fi
10356           fi
10357
10358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10359 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10360           # Check whether --enable-display was given.
10361 if test "${enable_display+set}" = set; then
10362   enableval=$enable_display;
10363                           if test "$enableval" = yes; then
10364                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10365                           else
10366                             wx_cv_use_display='wxUSE_DISPLAY=no'
10367                           fi
10368
10369 else
10370
10371                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10372
10373 fi
10374
10375
10376           eval "$wx_cv_use_display"
10377
10378           if test x"$enablestring" = xdisable; then
10379             if test $wxUSE_DISPLAY = no; then
10380               result=yes
10381             else
10382               result=no
10383             fi
10384           else
10385             result=$wxUSE_DISPLAY
10386           fi
10387
10388           { echo "$as_me:$LINENO: result: $result" >&5
10389 echo "${ECHO_T}$result" >&6; }
10390
10391
10392           enablestring=
10393           defaultval=$wxUSE_ALL_FEATURES
10394           if test -z "$defaultval"; then
10395               if test x"$enablestring" = xdisable; then
10396                   defaultval=yes
10397               else
10398                   defaultval=no
10399               fi
10400           fi
10401
10402           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10403 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10404           # Check whether --enable-editablebox was given.
10405 if test "${enable_editablebox+set}" = set; then
10406   enableval=$enable_editablebox;
10407                           if test "$enableval" = yes; then
10408                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10409                           else
10410                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10411                           fi
10412
10413 else
10414
10415                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10416
10417 fi
10418
10419
10420           eval "$wx_cv_use_editablebox"
10421
10422           if test x"$enablestring" = xdisable; then
10423             if test $wxUSE_EDITABLELISTBOX = no; then
10424               result=yes
10425             else
10426               result=no
10427             fi
10428           else
10429             result=$wxUSE_EDITABLELISTBOX
10430           fi
10431
10432           { echo "$as_me:$LINENO: result: $result" >&5
10433 echo "${ECHO_T}$result" >&6; }
10434
10435
10436           enablestring=
10437           defaultval=$wxUSE_ALL_FEATURES
10438           if test -z "$defaultval"; then
10439               if test x"$enablestring" = xdisable; then
10440                   defaultval=yes
10441               else
10442                   defaultval=no
10443               fi
10444           fi
10445
10446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10447 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10448           # Check whether --enable-filectrl was given.
10449 if test "${enable_filectrl+set}" = set; then
10450   enableval=$enable_filectrl;
10451                           if test "$enableval" = yes; then
10452                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10453                           else
10454                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10455                           fi
10456
10457 else
10458
10459                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10460
10461 fi
10462
10463
10464           eval "$wx_cv_use_filectrl"
10465
10466           if test x"$enablestring" = xdisable; then
10467             if test $wxUSE_FILECTRL = no; then
10468               result=yes
10469             else
10470               result=no
10471             fi
10472           else
10473             result=$wxUSE_FILECTRL
10474           fi
10475
10476           { echo "$as_me:$LINENO: result: $result" >&5
10477 echo "${ECHO_T}$result" >&6; }
10478
10479
10480           enablestring=
10481           defaultval=$wxUSE_ALL_FEATURES
10482           if test -z "$defaultval"; then
10483               if test x"$enablestring" = xdisable; then
10484                   defaultval=yes
10485               else
10486                   defaultval=no
10487               fi
10488           fi
10489
10490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10491 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10492           # Check whether --enable-filepicker was given.
10493 if test "${enable_filepicker+set}" = set; then
10494   enableval=$enable_filepicker;
10495                           if test "$enableval" = yes; then
10496                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10497                           else
10498                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10499                           fi
10500
10501 else
10502
10503                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10504
10505 fi
10506
10507
10508           eval "$wx_cv_use_filepicker"
10509
10510           if test x"$enablestring" = xdisable; then
10511             if test $wxUSE_FILEPICKERCTRL = no; then
10512               result=yes
10513             else
10514               result=no
10515             fi
10516           else
10517             result=$wxUSE_FILEPICKERCTRL
10518           fi
10519
10520           { echo "$as_me:$LINENO: result: $result" >&5
10521 echo "${ECHO_T}$result" >&6; }
10522
10523
10524           enablestring=
10525           defaultval=$wxUSE_ALL_FEATURES
10526           if test -z "$defaultval"; then
10527               if test x"$enablestring" = xdisable; then
10528                   defaultval=yes
10529               else
10530                   defaultval=no
10531               fi
10532           fi
10533
10534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10535 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10536           # Check whether --enable-fontpicker was given.
10537 if test "${enable_fontpicker+set}" = set; then
10538   enableval=$enable_fontpicker;
10539                           if test "$enableval" = yes; then
10540                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10541                           else
10542                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10543                           fi
10544
10545 else
10546
10547                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10548
10549 fi
10550
10551
10552           eval "$wx_cv_use_fontpicker"
10553
10554           if test x"$enablestring" = xdisable; then
10555             if test $wxUSE_FONTPICKERCTRL = no; then
10556               result=yes
10557             else
10558               result=no
10559             fi
10560           else
10561             result=$wxUSE_FONTPICKERCTRL
10562           fi
10563
10564           { echo "$as_me:$LINENO: result: $result" >&5
10565 echo "${ECHO_T}$result" >&6; }
10566
10567
10568           enablestring=
10569           defaultval=$wxUSE_ALL_FEATURES
10570           if test -z "$defaultval"; then
10571               if test x"$enablestring" = xdisable; then
10572                   defaultval=yes
10573               else
10574                   defaultval=no
10575               fi
10576           fi
10577
10578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10579 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10580           # Check whether --enable-gauge was given.
10581 if test "${enable_gauge+set}" = set; then
10582   enableval=$enable_gauge;
10583                           if test "$enableval" = yes; then
10584                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10585                           else
10586                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10587                           fi
10588
10589 else
10590
10591                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10592
10593 fi
10594
10595
10596           eval "$wx_cv_use_gauge"
10597
10598           if test x"$enablestring" = xdisable; then
10599             if test $wxUSE_GAUGE = no; then
10600               result=yes
10601             else
10602               result=no
10603             fi
10604           else
10605             result=$wxUSE_GAUGE
10606           fi
10607
10608           { echo "$as_me:$LINENO: result: $result" >&5
10609 echo "${ECHO_T}$result" >&6; }
10610
10611
10612           enablestring=
10613           defaultval=$wxUSE_ALL_FEATURES
10614           if test -z "$defaultval"; then
10615               if test x"$enablestring" = xdisable; then
10616                   defaultval=yes
10617               else
10618                   defaultval=no
10619               fi
10620           fi
10621
10622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10623 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10624           # Check whether --enable-grid was given.
10625 if test "${enable_grid+set}" = set; then
10626   enableval=$enable_grid;
10627                           if test "$enableval" = yes; then
10628                             wx_cv_use_grid='wxUSE_GRID=yes'
10629                           else
10630                             wx_cv_use_grid='wxUSE_GRID=no'
10631                           fi
10632
10633 else
10634
10635                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10636
10637 fi
10638
10639
10640           eval "$wx_cv_use_grid"
10641
10642           if test x"$enablestring" = xdisable; then
10643             if test $wxUSE_GRID = no; then
10644               result=yes
10645             else
10646               result=no
10647             fi
10648           else
10649             result=$wxUSE_GRID
10650           fi
10651
10652           { echo "$as_me:$LINENO: result: $result" >&5
10653 echo "${ECHO_T}$result" >&6; }
10654
10655
10656           enablestring=
10657           defaultval=$wxUSE_ALL_FEATURES
10658           if test -z "$defaultval"; then
10659               if test x"$enablestring" = xdisable; then
10660                   defaultval=yes
10661               else
10662                   defaultval=no
10663               fi
10664           fi
10665
10666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10667 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10668           # Check whether --enable-headerctrl was given.
10669 if test "${enable_headerctrl+set}" = set; then
10670   enableval=$enable_headerctrl;
10671                           if test "$enableval" = yes; then
10672                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10673                           else
10674                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10675                           fi
10676
10677 else
10678
10679                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10680
10681 fi
10682
10683
10684           eval "$wx_cv_use_headerctrl"
10685
10686           if test x"$enablestring" = xdisable; then
10687             if test $wxUSE_HEADERCTRL = no; then
10688               result=yes
10689             else
10690               result=no
10691             fi
10692           else
10693             result=$wxUSE_HEADERCTRL
10694           fi
10695
10696           { echo "$as_me:$LINENO: result: $result" >&5
10697 echo "${ECHO_T}$result" >&6; }
10698
10699
10700           enablestring=
10701           defaultval=$wxUSE_ALL_FEATURES
10702           if test -z "$defaultval"; then
10703               if test x"$enablestring" = xdisable; then
10704                   defaultval=yes
10705               else
10706                   defaultval=no
10707               fi
10708           fi
10709
10710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10711 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10712           # Check whether --enable-hyperlink was given.
10713 if test "${enable_hyperlink+set}" = set; then
10714   enableval=$enable_hyperlink;
10715                           if test "$enableval" = yes; then
10716                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10717                           else
10718                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10719                           fi
10720
10721 else
10722
10723                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10724
10725 fi
10726
10727
10728           eval "$wx_cv_use_hyperlink"
10729
10730           if test x"$enablestring" = xdisable; then
10731             if test $wxUSE_HYPERLINKCTRL = no; then
10732               result=yes
10733             else
10734               result=no
10735             fi
10736           else
10737             result=$wxUSE_HYPERLINKCTRL
10738           fi
10739
10740           { echo "$as_me:$LINENO: result: $result" >&5
10741 echo "${ECHO_T}$result" >&6; }
10742
10743
10744           enablestring=
10745           defaultval=$wxUSE_ALL_FEATURES
10746           if test -z "$defaultval"; then
10747               if test x"$enablestring" = xdisable; then
10748                   defaultval=yes
10749               else
10750                   defaultval=no
10751               fi
10752           fi
10753
10754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10755 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10756           # Check whether --enable-imaglist was given.
10757 if test "${enable_imaglist+set}" = set; then
10758   enableval=$enable_imaglist;
10759                           if test "$enableval" = yes; then
10760                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10761                           else
10762                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10763                           fi
10764
10765 else
10766
10767                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10768
10769 fi
10770
10771
10772           eval "$wx_cv_use_imaglist"
10773
10774           if test x"$enablestring" = xdisable; then
10775             if test $wxUSE_IMAGLIST = no; then
10776               result=yes
10777             else
10778               result=no
10779             fi
10780           else
10781             result=$wxUSE_IMAGLIST
10782           fi
10783
10784           { echo "$as_me:$LINENO: result: $result" >&5
10785 echo "${ECHO_T}$result" >&6; }
10786
10787
10788           enablestring=
10789           defaultval=$wxUSE_ALL_FEATURES
10790           if test -z "$defaultval"; then
10791               if test x"$enablestring" = xdisable; then
10792                   defaultval=yes
10793               else
10794                   defaultval=no
10795               fi
10796           fi
10797
10798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10799 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10800           # Check whether --enable-listbook was given.
10801 if test "${enable_listbook+set}" = set; then
10802   enableval=$enable_listbook;
10803                           if test "$enableval" = yes; then
10804                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10805                           else
10806                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10807                           fi
10808
10809 else
10810
10811                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10812
10813 fi
10814
10815
10816           eval "$wx_cv_use_listbook"
10817
10818           if test x"$enablestring" = xdisable; then
10819             if test $wxUSE_LISTBOOK = no; then
10820               result=yes
10821             else
10822               result=no
10823             fi
10824           else
10825             result=$wxUSE_LISTBOOK
10826           fi
10827
10828           { echo "$as_me:$LINENO: result: $result" >&5
10829 echo "${ECHO_T}$result" >&6; }
10830
10831
10832           enablestring=
10833           defaultval=$wxUSE_ALL_FEATURES
10834           if test -z "$defaultval"; then
10835               if test x"$enablestring" = xdisable; then
10836                   defaultval=yes
10837               else
10838                   defaultval=no
10839               fi
10840           fi
10841
10842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10843 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10844           # Check whether --enable-listbox was given.
10845 if test "${enable_listbox+set}" = set; then
10846   enableval=$enable_listbox;
10847                           if test "$enableval" = yes; then
10848                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10849                           else
10850                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10851                           fi
10852
10853 else
10854
10855                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10856
10857 fi
10858
10859
10860           eval "$wx_cv_use_listbox"
10861
10862           if test x"$enablestring" = xdisable; then
10863             if test $wxUSE_LISTBOX = no; then
10864               result=yes
10865             else
10866               result=no
10867             fi
10868           else
10869             result=$wxUSE_LISTBOX
10870           fi
10871
10872           { echo "$as_me:$LINENO: result: $result" >&5
10873 echo "${ECHO_T}$result" >&6; }
10874
10875
10876           enablestring=
10877           defaultval=$wxUSE_ALL_FEATURES
10878           if test -z "$defaultval"; then
10879               if test x"$enablestring" = xdisable; then
10880                   defaultval=yes
10881               else
10882                   defaultval=no
10883               fi
10884           fi
10885
10886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10887 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10888           # Check whether --enable-listctrl was given.
10889 if test "${enable_listctrl+set}" = set; then
10890   enableval=$enable_listctrl;
10891                           if test "$enableval" = yes; then
10892                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10893                           else
10894                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10895                           fi
10896
10897 else
10898
10899                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10900
10901 fi
10902
10903
10904           eval "$wx_cv_use_listctrl"
10905
10906           if test x"$enablestring" = xdisable; then
10907             if test $wxUSE_LISTCTRL = no; then
10908               result=yes
10909             else
10910               result=no
10911             fi
10912           else
10913             result=$wxUSE_LISTCTRL
10914           fi
10915
10916           { echo "$as_me:$LINENO: result: $result" >&5
10917 echo "${ECHO_T}$result" >&6; }
10918
10919
10920           enablestring=
10921           defaultval=$wxUSE_ALL_FEATURES
10922           if test -z "$defaultval"; then
10923               if test x"$enablestring" = xdisable; then
10924                   defaultval=yes
10925               else
10926                   defaultval=no
10927               fi
10928           fi
10929
10930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10931 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10932           # Check whether --enable-notebook was given.
10933 if test "${enable_notebook+set}" = set; then
10934   enableval=$enable_notebook;
10935                           if test "$enableval" = yes; then
10936                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10937                           else
10938                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10939                           fi
10940
10941 else
10942
10943                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10944
10945 fi
10946
10947
10948           eval "$wx_cv_use_notebook"
10949
10950           if test x"$enablestring" = xdisable; then
10951             if test $wxUSE_NOTEBOOK = no; then
10952               result=yes
10953             else
10954               result=no
10955             fi
10956           else
10957             result=$wxUSE_NOTEBOOK
10958           fi
10959
10960           { echo "$as_me:$LINENO: result: $result" >&5
10961 echo "${ECHO_T}$result" >&6; }
10962
10963
10964           enablestring=
10965           defaultval=$wxUSE_ALL_FEATURES
10966           if test -z "$defaultval"; then
10967               if test x"$enablestring" = xdisable; then
10968                   defaultval=yes
10969               else
10970                   defaultval=no
10971               fi
10972           fi
10973
10974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10975 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10976           # Check whether --enable-notifmsg was given.
10977 if test "${enable_notifmsg+set}" = set; then
10978   enableval=$enable_notifmsg;
10979                           if test "$enableval" = yes; then
10980                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10981                           else
10982                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10983                           fi
10984
10985 else
10986
10987                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10988
10989 fi
10990
10991
10992           eval "$wx_cv_use_notifmsg"
10993
10994           if test x"$enablestring" = xdisable; then
10995             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
10996               result=yes
10997             else
10998               result=no
10999             fi
11000           else
11001             result=$wxUSE_NOTIFICATION_MESSAGE
11002           fi
11003
11004           { echo "$as_me:$LINENO: result: $result" >&5
11005 echo "${ECHO_T}$result" >&6; }
11006
11007
11008           enablestring=
11009           defaultval=$wxUSE_ALL_FEATURES
11010           if test -z "$defaultval"; then
11011               if test x"$enablestring" = xdisable; then
11012                   defaultval=yes
11013               else
11014                   defaultval=no
11015               fi
11016           fi
11017
11018           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11019 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11020           # Check whether --enable-odcombobox was given.
11021 if test "${enable_odcombobox+set}" = set; then
11022   enableval=$enable_odcombobox;
11023                           if test "$enableval" = yes; then
11024                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11025                           else
11026                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11027                           fi
11028
11029 else
11030
11031                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11032
11033 fi
11034
11035
11036           eval "$wx_cv_use_odcombobox"
11037
11038           if test x"$enablestring" = xdisable; then
11039             if test $wxUSE_ODCOMBOBOX = no; then
11040               result=yes
11041             else
11042               result=no
11043             fi
11044           else
11045             result=$wxUSE_ODCOMBOBOX
11046           fi
11047
11048           { echo "$as_me:$LINENO: result: $result" >&5
11049 echo "${ECHO_T}$result" >&6; }
11050
11051
11052           enablestring=
11053           defaultval=$wxUSE_ALL_FEATURES
11054           if test -z "$defaultval"; then
11055               if test x"$enablestring" = xdisable; then
11056                   defaultval=yes
11057               else
11058                   defaultval=no
11059               fi
11060           fi
11061
11062           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11063 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11064           # Check whether --enable-popupwin was given.
11065 if test "${enable_popupwin+set}" = set; then
11066   enableval=$enable_popupwin;
11067                           if test "$enableval" = yes; then
11068                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11069                           else
11070                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11071                           fi
11072
11073 else
11074
11075                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11076
11077 fi
11078
11079
11080           eval "$wx_cv_use_popupwin"
11081
11082           if test x"$enablestring" = xdisable; then
11083             if test $wxUSE_POPUPWIN = no; then
11084               result=yes
11085             else
11086               result=no
11087             fi
11088           else
11089             result=$wxUSE_POPUPWIN
11090           fi
11091
11092           { echo "$as_me:$LINENO: result: $result" >&5
11093 echo "${ECHO_T}$result" >&6; }
11094
11095
11096           enablestring=
11097           defaultval=$wxUSE_ALL_FEATURES
11098           if test -z "$defaultval"; then
11099               if test x"$enablestring" = xdisable; then
11100                   defaultval=yes
11101               else
11102                   defaultval=no
11103               fi
11104           fi
11105
11106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11107 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11108           # Check whether --enable-radiobox was given.
11109 if test "${enable_radiobox+set}" = set; then
11110   enableval=$enable_radiobox;
11111                           if test "$enableval" = yes; then
11112                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11113                           else
11114                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11115                           fi
11116
11117 else
11118
11119                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11120
11121 fi
11122
11123
11124           eval "$wx_cv_use_radiobox"
11125
11126           if test x"$enablestring" = xdisable; then
11127             if test $wxUSE_RADIOBOX = no; then
11128               result=yes
11129             else
11130               result=no
11131             fi
11132           else
11133             result=$wxUSE_RADIOBOX
11134           fi
11135
11136           { echo "$as_me:$LINENO: result: $result" >&5
11137 echo "${ECHO_T}$result" >&6; }
11138
11139
11140           enablestring=
11141           defaultval=$wxUSE_ALL_FEATURES
11142           if test -z "$defaultval"; then
11143               if test x"$enablestring" = xdisable; then
11144                   defaultval=yes
11145               else
11146                   defaultval=no
11147               fi
11148           fi
11149
11150           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11151 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11152           # Check whether --enable-radiobtn was given.
11153 if test "${enable_radiobtn+set}" = set; then
11154   enableval=$enable_radiobtn;
11155                           if test "$enableval" = yes; then
11156                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11157                           else
11158                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11159                           fi
11160
11161 else
11162
11163                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11164
11165 fi
11166
11167
11168           eval "$wx_cv_use_radiobtn"
11169
11170           if test x"$enablestring" = xdisable; then
11171             if test $wxUSE_RADIOBTN = no; then
11172               result=yes
11173             else
11174               result=no
11175             fi
11176           else
11177             result=$wxUSE_RADIOBTN
11178           fi
11179
11180           { echo "$as_me:$LINENO: result: $result" >&5
11181 echo "${ECHO_T}$result" >&6; }
11182
11183
11184           enablestring=
11185           defaultval=$wxUSE_ALL_FEATURES
11186           if test -z "$defaultval"; then
11187               if test x"$enablestring" = xdisable; then
11188                   defaultval=yes
11189               else
11190                   defaultval=no
11191               fi
11192           fi
11193
11194           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11195 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11196           # Check whether --enable-rearrangectrl was given.
11197 if test "${enable_rearrangectrl+set}" = set; then
11198   enableval=$enable_rearrangectrl;
11199                           if test "$enableval" = yes; then
11200                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11201                           else
11202                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11203                           fi
11204
11205 else
11206
11207                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11208
11209 fi
11210
11211
11212           eval "$wx_cv_use_rearrangectrl"
11213
11214           if test x"$enablestring" = xdisable; then
11215             if test $wxUSE_REARRANGECTRL = no; then
11216               result=yes
11217             else
11218               result=no
11219             fi
11220           else
11221             result=$wxUSE_REARRANGECTRL
11222           fi
11223
11224           { echo "$as_me:$LINENO: result: $result" >&5
11225 echo "${ECHO_T}$result" >&6; }
11226
11227
11228           enablestring=
11229           defaultval=$wxUSE_ALL_FEATURES
11230           if test -z "$defaultval"; then
11231               if test x"$enablestring" = xdisable; then
11232                   defaultval=yes
11233               else
11234                   defaultval=no
11235               fi
11236           fi
11237
11238           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11239 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11240           # Check whether --enable-sash was given.
11241 if test "${enable_sash+set}" = set; then
11242   enableval=$enable_sash;
11243                           if test "$enableval" = yes; then
11244                             wx_cv_use_sash='wxUSE_SASH=yes'
11245                           else
11246                             wx_cv_use_sash='wxUSE_SASH=no'
11247                           fi
11248
11249 else
11250
11251                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11252
11253 fi
11254
11255
11256           eval "$wx_cv_use_sash"
11257
11258           if test x"$enablestring" = xdisable; then
11259             if test $wxUSE_SASH = no; then
11260               result=yes
11261             else
11262               result=no
11263             fi
11264           else
11265             result=$wxUSE_SASH
11266           fi
11267
11268           { echo "$as_me:$LINENO: result: $result" >&5
11269 echo "${ECHO_T}$result" >&6; }
11270
11271
11272           enablestring=
11273           defaultval=$wxUSE_ALL_FEATURES
11274           if test -z "$defaultval"; then
11275               if test x"$enablestring" = xdisable; then
11276                   defaultval=yes
11277               else
11278                   defaultval=no
11279               fi
11280           fi
11281
11282           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11283 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11284           # Check whether --enable-scrollbar was given.
11285 if test "${enable_scrollbar+set}" = set; then
11286   enableval=$enable_scrollbar;
11287                           if test "$enableval" = yes; then
11288                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11289                           else
11290                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11291                           fi
11292
11293 else
11294
11295                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11296
11297 fi
11298
11299
11300           eval "$wx_cv_use_scrollbar"
11301
11302           if test x"$enablestring" = xdisable; then
11303             if test $wxUSE_SCROLLBAR = no; then
11304               result=yes
11305             else
11306               result=no
11307             fi
11308           else
11309             result=$wxUSE_SCROLLBAR
11310           fi
11311
11312           { echo "$as_me:$LINENO: result: $result" >&5
11313 echo "${ECHO_T}$result" >&6; }
11314
11315
11316           enablestring=
11317           defaultval=$wxUSE_ALL_FEATURES
11318           if test -z "$defaultval"; then
11319               if test x"$enablestring" = xdisable; then
11320                   defaultval=yes
11321               else
11322                   defaultval=no
11323               fi
11324           fi
11325
11326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11327 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11328           # Check whether --enable-searchctrl was given.
11329 if test "${enable_searchctrl+set}" = set; then
11330   enableval=$enable_searchctrl;
11331                           if test "$enableval" = yes; then
11332                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11333                           else
11334                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11335                           fi
11336
11337 else
11338
11339                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11340
11341 fi
11342
11343
11344           eval "$wx_cv_use_searchctrl"
11345
11346           if test x"$enablestring" = xdisable; then
11347             if test $wxUSE_SEARCHCTRL = no; then
11348               result=yes
11349             else
11350               result=no
11351             fi
11352           else
11353             result=$wxUSE_SEARCHCTRL
11354           fi
11355
11356           { echo "$as_me:$LINENO: result: $result" >&5
11357 echo "${ECHO_T}$result" >&6; }
11358
11359
11360           enablestring=
11361           defaultval=$wxUSE_ALL_FEATURES
11362           if test -z "$defaultval"; then
11363               if test x"$enablestring" = xdisable; then
11364                   defaultval=yes
11365               else
11366                   defaultval=no
11367               fi
11368           fi
11369
11370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11371 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11372           # Check whether --enable-slider was given.
11373 if test "${enable_slider+set}" = set; then
11374   enableval=$enable_slider;
11375                           if test "$enableval" = yes; then
11376                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11377                           else
11378                             wx_cv_use_slider='wxUSE_SLIDER=no'
11379                           fi
11380
11381 else
11382
11383                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11384
11385 fi
11386
11387
11388           eval "$wx_cv_use_slider"
11389
11390           if test x"$enablestring" = xdisable; then
11391             if test $wxUSE_SLIDER = no; then
11392               result=yes
11393             else
11394               result=no
11395             fi
11396           else
11397             result=$wxUSE_SLIDER
11398           fi
11399
11400           { echo "$as_me:$LINENO: result: $result" >&5
11401 echo "${ECHO_T}$result" >&6; }
11402
11403
11404           enablestring=
11405           defaultval=$wxUSE_ALL_FEATURES
11406           if test -z "$defaultval"; then
11407               if test x"$enablestring" = xdisable; then
11408                   defaultval=yes
11409               else
11410                   defaultval=no
11411               fi
11412           fi
11413
11414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11415 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11416           # Check whether --enable-spinbtn was given.
11417 if test "${enable_spinbtn+set}" = set; then
11418   enableval=$enable_spinbtn;
11419                           if test "$enableval" = yes; then
11420                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11421                           else
11422                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11423                           fi
11424
11425 else
11426
11427                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11428
11429 fi
11430
11431
11432           eval "$wx_cv_use_spinbtn"
11433
11434           if test x"$enablestring" = xdisable; then
11435             if test $wxUSE_SPINBTN = no; then
11436               result=yes
11437             else
11438               result=no
11439             fi
11440           else
11441             result=$wxUSE_SPINBTN
11442           fi
11443
11444           { echo "$as_me:$LINENO: result: $result" >&5
11445 echo "${ECHO_T}$result" >&6; }
11446
11447
11448           enablestring=
11449           defaultval=$wxUSE_ALL_FEATURES
11450           if test -z "$defaultval"; then
11451               if test x"$enablestring" = xdisable; then
11452                   defaultval=yes
11453               else
11454                   defaultval=no
11455               fi
11456           fi
11457
11458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11459 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11460           # Check whether --enable-spinctrl was given.
11461 if test "${enable_spinctrl+set}" = set; then
11462   enableval=$enable_spinctrl;
11463                           if test "$enableval" = yes; then
11464                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11465                           else
11466                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11467                           fi
11468
11469 else
11470
11471                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11472
11473 fi
11474
11475
11476           eval "$wx_cv_use_spinctrl"
11477
11478           if test x"$enablestring" = xdisable; then
11479             if test $wxUSE_SPINCTRL = no; then
11480               result=yes
11481             else
11482               result=no
11483             fi
11484           else
11485             result=$wxUSE_SPINCTRL
11486           fi
11487
11488           { echo "$as_me:$LINENO: result: $result" >&5
11489 echo "${ECHO_T}$result" >&6; }
11490
11491
11492           enablestring=
11493           defaultval=$wxUSE_ALL_FEATURES
11494           if test -z "$defaultval"; then
11495               if test x"$enablestring" = xdisable; then
11496                   defaultval=yes
11497               else
11498                   defaultval=no
11499               fi
11500           fi
11501
11502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11503 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11504           # Check whether --enable-splitter was given.
11505 if test "${enable_splitter+set}" = set; then
11506   enableval=$enable_splitter;
11507                           if test "$enableval" = yes; then
11508                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11509                           else
11510                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11511                           fi
11512
11513 else
11514
11515                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11516
11517 fi
11518
11519
11520           eval "$wx_cv_use_splitter"
11521
11522           if test x"$enablestring" = xdisable; then
11523             if test $wxUSE_SPLITTER = no; then
11524               result=yes
11525             else
11526               result=no
11527             fi
11528           else
11529             result=$wxUSE_SPLITTER
11530           fi
11531
11532           { echo "$as_me:$LINENO: result: $result" >&5
11533 echo "${ECHO_T}$result" >&6; }
11534
11535
11536           enablestring=
11537           defaultval=$wxUSE_ALL_FEATURES
11538           if test -z "$defaultval"; then
11539               if test x"$enablestring" = xdisable; then
11540                   defaultval=yes
11541               else
11542                   defaultval=no
11543               fi
11544           fi
11545
11546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11547 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11548           # Check whether --enable-statbmp was given.
11549 if test "${enable_statbmp+set}" = set; then
11550   enableval=$enable_statbmp;
11551                           if test "$enableval" = yes; then
11552                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11553                           else
11554                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11555                           fi
11556
11557 else
11558
11559                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11560
11561 fi
11562
11563
11564           eval "$wx_cv_use_statbmp"
11565
11566           if test x"$enablestring" = xdisable; then
11567             if test $wxUSE_STATBMP = no; then
11568               result=yes
11569             else
11570               result=no
11571             fi
11572           else
11573             result=$wxUSE_STATBMP
11574           fi
11575
11576           { echo "$as_me:$LINENO: result: $result" >&5
11577 echo "${ECHO_T}$result" >&6; }
11578
11579
11580           enablestring=
11581           defaultval=$wxUSE_ALL_FEATURES
11582           if test -z "$defaultval"; then
11583               if test x"$enablestring" = xdisable; then
11584                   defaultval=yes
11585               else
11586                   defaultval=no
11587               fi
11588           fi
11589
11590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11591 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11592           # Check whether --enable-statbox was given.
11593 if test "${enable_statbox+set}" = set; then
11594   enableval=$enable_statbox;
11595                           if test "$enableval" = yes; then
11596                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11597                           else
11598                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11599                           fi
11600
11601 else
11602
11603                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11604
11605 fi
11606
11607
11608           eval "$wx_cv_use_statbox"
11609
11610           if test x"$enablestring" = xdisable; then
11611             if test $wxUSE_STATBOX = no; then
11612               result=yes
11613             else
11614               result=no
11615             fi
11616           else
11617             result=$wxUSE_STATBOX
11618           fi
11619
11620           { echo "$as_me:$LINENO: result: $result" >&5
11621 echo "${ECHO_T}$result" >&6; }
11622
11623
11624           enablestring=
11625           defaultval=$wxUSE_ALL_FEATURES
11626           if test -z "$defaultval"; then
11627               if test x"$enablestring" = xdisable; then
11628                   defaultval=yes
11629               else
11630                   defaultval=no
11631               fi
11632           fi
11633
11634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11635 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11636           # Check whether --enable-statline was given.
11637 if test "${enable_statline+set}" = set; then
11638   enableval=$enable_statline;
11639                           if test "$enableval" = yes; then
11640                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11641                           else
11642                             wx_cv_use_statline='wxUSE_STATLINE=no'
11643                           fi
11644
11645 else
11646
11647                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11648
11649 fi
11650
11651
11652           eval "$wx_cv_use_statline"
11653
11654           if test x"$enablestring" = xdisable; then
11655             if test $wxUSE_STATLINE = no; then
11656               result=yes
11657             else
11658               result=no
11659             fi
11660           else
11661             result=$wxUSE_STATLINE
11662           fi
11663
11664           { echo "$as_me:$LINENO: result: $result" >&5
11665 echo "${ECHO_T}$result" >&6; }
11666
11667
11668           enablestring=
11669           defaultval=$wxUSE_ALL_FEATURES
11670           if test -z "$defaultval"; then
11671               if test x"$enablestring" = xdisable; then
11672                   defaultval=yes
11673               else
11674                   defaultval=no
11675               fi
11676           fi
11677
11678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11679 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11680           # Check whether --enable-stattext was given.
11681 if test "${enable_stattext+set}" = set; then
11682   enableval=$enable_stattext;
11683                           if test "$enableval" = yes; then
11684                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11685                           else
11686                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11687                           fi
11688
11689 else
11690
11691                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11692
11693 fi
11694
11695
11696           eval "$wx_cv_use_stattext"
11697
11698           if test x"$enablestring" = xdisable; then
11699             if test $wxUSE_STATTEXT = no; then
11700               result=yes
11701             else
11702               result=no
11703             fi
11704           else
11705             result=$wxUSE_STATTEXT
11706           fi
11707
11708           { echo "$as_me:$LINENO: result: $result" >&5
11709 echo "${ECHO_T}$result" >&6; }
11710
11711
11712           enablestring=
11713           defaultval=$wxUSE_ALL_FEATURES
11714           if test -z "$defaultval"; then
11715               if test x"$enablestring" = xdisable; then
11716                   defaultval=yes
11717               else
11718                   defaultval=no
11719               fi
11720           fi
11721
11722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11723 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11724           # Check whether --enable-statusbar was given.
11725 if test "${enable_statusbar+set}" = set; then
11726   enableval=$enable_statusbar;
11727                           if test "$enableval" = yes; then
11728                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11729                           else
11730                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11731                           fi
11732
11733 else
11734
11735                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11736
11737 fi
11738
11739
11740           eval "$wx_cv_use_statusbar"
11741
11742           if test x"$enablestring" = xdisable; then
11743             if test $wxUSE_STATUSBAR = no; then
11744               result=yes
11745             else
11746               result=no
11747             fi
11748           else
11749             result=$wxUSE_STATUSBAR
11750           fi
11751
11752           { echo "$as_me:$LINENO: result: $result" >&5
11753 echo "${ECHO_T}$result" >&6; }
11754
11755
11756           enablestring=
11757           defaultval=$wxUSE_ALL_FEATURES
11758           if test -z "$defaultval"; then
11759               if test x"$enablestring" = xdisable; then
11760                   defaultval=yes
11761               else
11762                   defaultval=no
11763               fi
11764           fi
11765
11766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11767 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11768           # Check whether --enable-taskbaricon was given.
11769 if test "${enable_taskbaricon+set}" = set; then
11770   enableval=$enable_taskbaricon;
11771                           if test "$enableval" = yes; then
11772                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11773                           else
11774                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11775                           fi
11776
11777 else
11778
11779                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11780
11781 fi
11782
11783
11784           eval "$wx_cv_use_taskbaricon"
11785
11786           if test x"$enablestring" = xdisable; then
11787             if test $wxUSE_TASKBARICON = no; then
11788               result=yes
11789             else
11790               result=no
11791             fi
11792           else
11793             result=$wxUSE_TASKBARICON
11794           fi
11795
11796           { echo "$as_me:$LINENO: result: $result" >&5
11797 echo "${ECHO_T}$result" >&6; }
11798
11799
11800           enablestring=
11801           defaultval=$wxUSE_ALL_FEATURES
11802           if test -z "$defaultval"; then
11803               if test x"$enablestring" = xdisable; then
11804                   defaultval=yes
11805               else
11806                   defaultval=no
11807               fi
11808           fi
11809
11810           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11811 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11812           # Check whether --enable-tbarnative was given.
11813 if test "${enable_tbarnative+set}" = set; then
11814   enableval=$enable_tbarnative;
11815                           if test "$enableval" = yes; then
11816                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11817                           else
11818                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11819                           fi
11820
11821 else
11822
11823                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11824
11825 fi
11826
11827
11828           eval "$wx_cv_use_tbarnative"
11829
11830           if test x"$enablestring" = xdisable; then
11831             if test $wxUSE_TOOLBAR_NATIVE = no; then
11832               result=yes
11833             else
11834               result=no
11835             fi
11836           else
11837             result=$wxUSE_TOOLBAR_NATIVE
11838           fi
11839
11840           { echo "$as_me:$LINENO: result: $result" >&5
11841 echo "${ECHO_T}$result" >&6; }
11842
11843
11844           enablestring=
11845           defaultval=$wxUSE_ALL_FEATURES
11846           if test -z "$defaultval"; then
11847               if test x"$enablestring" = xdisable; then
11848                   defaultval=yes
11849               else
11850                   defaultval=no
11851               fi
11852           fi
11853
11854           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11855 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11856           # Check whether --enable-textctrl was given.
11857 if test "${enable_textctrl+set}" = set; then
11858   enableval=$enable_textctrl;
11859                           if test "$enableval" = yes; then
11860                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11861                           else
11862                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11863                           fi
11864
11865 else
11866
11867                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11868
11869 fi
11870
11871
11872           eval "$wx_cv_use_textctrl"
11873
11874           if test x"$enablestring" = xdisable; then
11875             if test $wxUSE_TEXTCTRL = no; then
11876               result=yes
11877             else
11878               result=no
11879             fi
11880           else
11881             result=$wxUSE_TEXTCTRL
11882           fi
11883
11884           { echo "$as_me:$LINENO: result: $result" >&5
11885 echo "${ECHO_T}$result" >&6; }
11886
11887
11888           enablestring=
11889           defaultval=$wxUSE_ALL_FEATURES
11890           if test -z "$defaultval"; then
11891               if test x"$enablestring" = xdisable; then
11892                   defaultval=yes
11893               else
11894                   defaultval=no
11895               fi
11896           fi
11897
11898           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11899 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11900           # Check whether --enable-tipwindow was given.
11901 if test "${enable_tipwindow+set}" = set; then
11902   enableval=$enable_tipwindow;
11903                           if test "$enableval" = yes; then
11904                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11905                           else
11906                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11907                           fi
11908
11909 else
11910
11911                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11912
11913 fi
11914
11915
11916           eval "$wx_cv_use_tipwindow"
11917
11918           if test x"$enablestring" = xdisable; then
11919             if test $wxUSE_TIPWINDOW = no; then
11920               result=yes
11921             else
11922               result=no
11923             fi
11924           else
11925             result=$wxUSE_TIPWINDOW
11926           fi
11927
11928           { echo "$as_me:$LINENO: result: $result" >&5
11929 echo "${ECHO_T}$result" >&6; }
11930
11931
11932           enablestring=
11933           defaultval=$wxUSE_ALL_FEATURES
11934           if test -z "$defaultval"; then
11935               if test x"$enablestring" = xdisable; then
11936                   defaultval=yes
11937               else
11938                   defaultval=no
11939               fi
11940           fi
11941
11942           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11943 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11944           # Check whether --enable-togglebtn was given.
11945 if test "${enable_togglebtn+set}" = set; then
11946   enableval=$enable_togglebtn;
11947                           if test "$enableval" = yes; then
11948                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11949                           else
11950                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11951                           fi
11952
11953 else
11954
11955                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11956
11957 fi
11958
11959
11960           eval "$wx_cv_use_togglebtn"
11961
11962           if test x"$enablestring" = xdisable; then
11963             if test $wxUSE_TOGGLEBTN = no; then
11964               result=yes
11965             else
11966               result=no
11967             fi
11968           else
11969             result=$wxUSE_TOGGLEBTN
11970           fi
11971
11972           { echo "$as_me:$LINENO: result: $result" >&5
11973 echo "${ECHO_T}$result" >&6; }
11974
11975
11976           enablestring=
11977           defaultval=$wxUSE_ALL_FEATURES
11978           if test -z "$defaultval"; then
11979               if test x"$enablestring" = xdisable; then
11980                   defaultval=yes
11981               else
11982                   defaultval=no
11983               fi
11984           fi
11985
11986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11987 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11988           # Check whether --enable-toolbar was given.
11989 if test "${enable_toolbar+set}" = set; then
11990   enableval=$enable_toolbar;
11991                           if test "$enableval" = yes; then
11992                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11993                           else
11994                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11995                           fi
11996
11997 else
11998
11999                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12000
12001 fi
12002
12003
12004           eval "$wx_cv_use_toolbar"
12005
12006           if test x"$enablestring" = xdisable; then
12007             if test $wxUSE_TOOLBAR = no; then
12008               result=yes
12009             else
12010               result=no
12011             fi
12012           else
12013             result=$wxUSE_TOOLBAR
12014           fi
12015
12016           { echo "$as_me:$LINENO: result: $result" >&5
12017 echo "${ECHO_T}$result" >&6; }
12018
12019
12020           enablestring=
12021           defaultval=$wxUSE_ALL_FEATURES
12022           if test -z "$defaultval"; then
12023               if test x"$enablestring" = xdisable; then
12024                   defaultval=yes
12025               else
12026                   defaultval=no
12027               fi
12028           fi
12029
12030           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12031 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12032           # Check whether --enable-toolbook was given.
12033 if test "${enable_toolbook+set}" = set; then
12034   enableval=$enable_toolbook;
12035                           if test "$enableval" = yes; then
12036                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12037                           else
12038                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12039                           fi
12040
12041 else
12042
12043                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12044
12045 fi
12046
12047
12048           eval "$wx_cv_use_toolbook"
12049
12050           if test x"$enablestring" = xdisable; then
12051             if test $wxUSE_TOOLBOOK = no; then
12052               result=yes
12053             else
12054               result=no
12055             fi
12056           else
12057             result=$wxUSE_TOOLBOOK
12058           fi
12059
12060           { echo "$as_me:$LINENO: result: $result" >&5
12061 echo "${ECHO_T}$result" >&6; }
12062
12063
12064           enablestring=
12065           defaultval=$wxUSE_ALL_FEATURES
12066           if test -z "$defaultval"; then
12067               if test x"$enablestring" = xdisable; then
12068                   defaultval=yes
12069               else
12070                   defaultval=no
12071               fi
12072           fi
12073
12074           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12075 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12076           # Check whether --enable-treebook was given.
12077 if test "${enable_treebook+set}" = set; then
12078   enableval=$enable_treebook;
12079                           if test "$enableval" = yes; then
12080                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12081                           else
12082                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12083                           fi
12084
12085 else
12086
12087                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12088
12089 fi
12090
12091
12092           eval "$wx_cv_use_treebook"
12093
12094           if test x"$enablestring" = xdisable; then
12095             if test $wxUSE_TREEBOOK = no; then
12096               result=yes
12097             else
12098               result=no
12099             fi
12100           else
12101             result=$wxUSE_TREEBOOK
12102           fi
12103
12104           { echo "$as_me:$LINENO: result: $result" >&5
12105 echo "${ECHO_T}$result" >&6; }
12106
12107
12108           enablestring=
12109           defaultval=$wxUSE_ALL_FEATURES
12110           if test -z "$defaultval"; then
12111               if test x"$enablestring" = xdisable; then
12112                   defaultval=yes
12113               else
12114                   defaultval=no
12115               fi
12116           fi
12117
12118           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12119 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12120           # Check whether --enable-treectrl was given.
12121 if test "${enable_treectrl+set}" = set; then
12122   enableval=$enable_treectrl;
12123                           if test "$enableval" = yes; then
12124                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12125                           else
12126                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12127                           fi
12128
12129 else
12130
12131                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12132
12133 fi
12134
12135
12136           eval "$wx_cv_use_treectrl"
12137
12138           if test x"$enablestring" = xdisable; then
12139             if test $wxUSE_TREECTRL = no; then
12140               result=yes
12141             else
12142               result=no
12143             fi
12144           else
12145             result=$wxUSE_TREECTRL
12146           fi
12147
12148           { echo "$as_me:$LINENO: result: $result" >&5
12149 echo "${ECHO_T}$result" >&6; }
12150
12151
12152
12153
12154           enablestring=
12155           defaultval=$wxUSE_ALL_FEATURES
12156           if test -z "$defaultval"; then
12157               if test x"$enablestring" = xdisable; then
12158                   defaultval=yes
12159               else
12160                   defaultval=no
12161               fi
12162           fi
12163
12164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12165 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12166           # Check whether --enable-commondlg was given.
12167 if test "${enable_commondlg+set}" = set; then
12168   enableval=$enable_commondlg;
12169                           if test "$enableval" = yes; then
12170                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12171                           else
12172                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12173                           fi
12174
12175 else
12176
12177                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12178
12179 fi
12180
12181
12182           eval "$wx_cv_use_commondlg"
12183
12184           if test x"$enablestring" = xdisable; then
12185             if test $wxUSE_COMMONDLGS = no; then
12186               result=yes
12187             else
12188               result=no
12189             fi
12190           else
12191             result=$wxUSE_COMMONDLGS
12192           fi
12193
12194           { echo "$as_me:$LINENO: result: $result" >&5
12195 echo "${ECHO_T}$result" >&6; }
12196
12197
12198           enablestring=
12199           defaultval=$wxUSE_ALL_FEATURES
12200           if test -z "$defaultval"; then
12201               if test x"$enablestring" = xdisable; then
12202                   defaultval=yes
12203               else
12204                   defaultval=no
12205               fi
12206           fi
12207
12208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12209 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12210           # Check whether --enable-aboutdlg was given.
12211 if test "${enable_aboutdlg+set}" = set; then
12212   enableval=$enable_aboutdlg;
12213                           if test "$enableval" = yes; then
12214                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12215                           else
12216                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12217                           fi
12218
12219 else
12220
12221                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12222
12223 fi
12224
12225
12226           eval "$wx_cv_use_aboutdlg"
12227
12228           if test x"$enablestring" = xdisable; then
12229             if test $wxUSE_ABOUTDLG = no; then
12230               result=yes
12231             else
12232               result=no
12233             fi
12234           else
12235             result=$wxUSE_ABOUTDLG
12236           fi
12237
12238           { echo "$as_me:$LINENO: result: $result" >&5
12239 echo "${ECHO_T}$result" >&6; }
12240
12241
12242           enablestring=
12243           defaultval=$wxUSE_ALL_FEATURES
12244           if test -z "$defaultval"; then
12245               if test x"$enablestring" = xdisable; then
12246                   defaultval=yes
12247               else
12248                   defaultval=no
12249               fi
12250           fi
12251
12252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12253 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12254           # Check whether --enable-choicedlg was given.
12255 if test "${enable_choicedlg+set}" = set; then
12256   enableval=$enable_choicedlg;
12257                           if test "$enableval" = yes; then
12258                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12259                           else
12260                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12261                           fi
12262
12263 else
12264
12265                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12266
12267 fi
12268
12269
12270           eval "$wx_cv_use_choicedlg"
12271
12272           if test x"$enablestring" = xdisable; then
12273             if test $wxUSE_CHOICEDLG = no; then
12274               result=yes
12275             else
12276               result=no
12277             fi
12278           else
12279             result=$wxUSE_CHOICEDLG
12280           fi
12281
12282           { echo "$as_me:$LINENO: result: $result" >&5
12283 echo "${ECHO_T}$result" >&6; }
12284
12285
12286           enablestring=
12287           defaultval=$wxUSE_ALL_FEATURES
12288           if test -z "$defaultval"; then
12289               if test x"$enablestring" = xdisable; then
12290                   defaultval=yes
12291               else
12292                   defaultval=no
12293               fi
12294           fi
12295
12296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12297 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12298           # Check whether --enable-coldlg was given.
12299 if test "${enable_coldlg+set}" = set; then
12300   enableval=$enable_coldlg;
12301                           if test "$enableval" = yes; then
12302                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12303                           else
12304                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12305                           fi
12306
12307 else
12308
12309                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12310
12311 fi
12312
12313
12314           eval "$wx_cv_use_coldlg"
12315
12316           if test x"$enablestring" = xdisable; then
12317             if test $wxUSE_COLOURDLG = no; then
12318               result=yes
12319             else
12320               result=no
12321             fi
12322           else
12323             result=$wxUSE_COLOURDLG
12324           fi
12325
12326           { echo "$as_me:$LINENO: result: $result" >&5
12327 echo "${ECHO_T}$result" >&6; }
12328
12329
12330           enablestring=
12331           defaultval=$wxUSE_ALL_FEATURES
12332           if test -z "$defaultval"; then
12333               if test x"$enablestring" = xdisable; then
12334                   defaultval=yes
12335               else
12336                   defaultval=no
12337               fi
12338           fi
12339
12340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12341 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12342           # Check whether --enable-filedlg was given.
12343 if test "${enable_filedlg+set}" = set; then
12344   enableval=$enable_filedlg;
12345                           if test "$enableval" = yes; then
12346                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12347                           else
12348                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12349                           fi
12350
12351 else
12352
12353                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12354
12355 fi
12356
12357
12358           eval "$wx_cv_use_filedlg"
12359
12360           if test x"$enablestring" = xdisable; then
12361             if test $wxUSE_FILEDLG = no; then
12362               result=yes
12363             else
12364               result=no
12365             fi
12366           else
12367             result=$wxUSE_FILEDLG
12368           fi
12369
12370           { echo "$as_me:$LINENO: result: $result" >&5
12371 echo "${ECHO_T}$result" >&6; }
12372
12373
12374           enablestring=
12375           defaultval=$wxUSE_ALL_FEATURES
12376           if test -z "$defaultval"; then
12377               if test x"$enablestring" = xdisable; then
12378                   defaultval=yes
12379               else
12380                   defaultval=no
12381               fi
12382           fi
12383
12384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12385 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12386           # Check whether --enable-finddlg was given.
12387 if test "${enable_finddlg+set}" = set; then
12388   enableval=$enable_finddlg;
12389                           if test "$enableval" = yes; then
12390                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12391                           else
12392                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12393                           fi
12394
12395 else
12396
12397                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12398
12399 fi
12400
12401
12402           eval "$wx_cv_use_finddlg"
12403
12404           if test x"$enablestring" = xdisable; then
12405             if test $wxUSE_FINDREPLDLG = no; then
12406               result=yes
12407             else
12408               result=no
12409             fi
12410           else
12411             result=$wxUSE_FINDREPLDLG
12412           fi
12413
12414           { echo "$as_me:$LINENO: result: $result" >&5
12415 echo "${ECHO_T}$result" >&6; }
12416
12417
12418           enablestring=
12419           defaultval=$wxUSE_ALL_FEATURES
12420           if test -z "$defaultval"; then
12421               if test x"$enablestring" = xdisable; then
12422                   defaultval=yes
12423               else
12424                   defaultval=no
12425               fi
12426           fi
12427
12428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12429 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12430           # Check whether --enable-fontdlg was given.
12431 if test "${enable_fontdlg+set}" = set; then
12432   enableval=$enable_fontdlg;
12433                           if test "$enableval" = yes; then
12434                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12435                           else
12436                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12437                           fi
12438
12439 else
12440
12441                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12442
12443 fi
12444
12445
12446           eval "$wx_cv_use_fontdlg"
12447
12448           if test x"$enablestring" = xdisable; then
12449             if test $wxUSE_FONTDLG = no; then
12450               result=yes
12451             else
12452               result=no
12453             fi
12454           else
12455             result=$wxUSE_FONTDLG
12456           fi
12457
12458           { echo "$as_me:$LINENO: result: $result" >&5
12459 echo "${ECHO_T}$result" >&6; }
12460
12461
12462           enablestring=
12463           defaultval=$wxUSE_ALL_FEATURES
12464           if test -z "$defaultval"; then
12465               if test x"$enablestring" = xdisable; then
12466                   defaultval=yes
12467               else
12468                   defaultval=no
12469               fi
12470           fi
12471
12472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12473 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12474           # Check whether --enable-dirdlg was given.
12475 if test "${enable_dirdlg+set}" = set; then
12476   enableval=$enable_dirdlg;
12477                           if test "$enableval" = yes; then
12478                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12479                           else
12480                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12481                           fi
12482
12483 else
12484
12485                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12486
12487 fi
12488
12489
12490           eval "$wx_cv_use_dirdlg"
12491
12492           if test x"$enablestring" = xdisable; then
12493             if test $wxUSE_DIRDLG = no; then
12494               result=yes
12495             else
12496               result=no
12497             fi
12498           else
12499             result=$wxUSE_DIRDLG
12500           fi
12501
12502           { echo "$as_me:$LINENO: result: $result" >&5
12503 echo "${ECHO_T}$result" >&6; }
12504
12505
12506           enablestring=
12507           defaultval=$wxUSE_ALL_FEATURES
12508           if test -z "$defaultval"; then
12509               if test x"$enablestring" = xdisable; then
12510                   defaultval=yes
12511               else
12512                   defaultval=no
12513               fi
12514           fi
12515
12516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12517 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12518           # Check whether --enable-msgdlg was given.
12519 if test "${enable_msgdlg+set}" = set; then
12520   enableval=$enable_msgdlg;
12521                           if test "$enableval" = yes; then
12522                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12523                           else
12524                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12525                           fi
12526
12527 else
12528
12529                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12530
12531 fi
12532
12533
12534           eval "$wx_cv_use_msgdlg"
12535
12536           if test x"$enablestring" = xdisable; then
12537             if test $wxUSE_MSGDLG = no; then
12538               result=yes
12539             else
12540               result=no
12541             fi
12542           else
12543             result=$wxUSE_MSGDLG
12544           fi
12545
12546           { echo "$as_me:$LINENO: result: $result" >&5
12547 echo "${ECHO_T}$result" >&6; }
12548
12549
12550           enablestring=
12551           defaultval=$wxUSE_ALL_FEATURES
12552           if test -z "$defaultval"; then
12553               if test x"$enablestring" = xdisable; then
12554                   defaultval=yes
12555               else
12556                   defaultval=no
12557               fi
12558           fi
12559
12560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12561 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12562           # Check whether --enable-numberdlg was given.
12563 if test "${enable_numberdlg+set}" = set; then
12564   enableval=$enable_numberdlg;
12565                           if test "$enableval" = yes; then
12566                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12567                           else
12568                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12569                           fi
12570
12571 else
12572
12573                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12574
12575 fi
12576
12577
12578           eval "$wx_cv_use_numberdlg"
12579
12580           if test x"$enablestring" = xdisable; then
12581             if test $wxUSE_NUMBERDLG = no; then
12582               result=yes
12583             else
12584               result=no
12585             fi
12586           else
12587             result=$wxUSE_NUMBERDLG
12588           fi
12589
12590           { echo "$as_me:$LINENO: result: $result" >&5
12591 echo "${ECHO_T}$result" >&6; }
12592
12593
12594           enablestring=
12595           defaultval=$wxUSE_ALL_FEATURES
12596           if test -z "$defaultval"; then
12597               if test x"$enablestring" = xdisable; then
12598                   defaultval=yes
12599               else
12600                   defaultval=no
12601               fi
12602           fi
12603
12604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12605 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12606           # Check whether --enable-splash was given.
12607 if test "${enable_splash+set}" = set; then
12608   enableval=$enable_splash;
12609                           if test "$enableval" = yes; then
12610                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12611                           else
12612                             wx_cv_use_splash='wxUSE_SPLASH=no'
12613                           fi
12614
12615 else
12616
12617                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12618
12619 fi
12620
12621
12622           eval "$wx_cv_use_splash"
12623
12624           if test x"$enablestring" = xdisable; then
12625             if test $wxUSE_SPLASH = no; then
12626               result=yes
12627             else
12628               result=no
12629             fi
12630           else
12631             result=$wxUSE_SPLASH
12632           fi
12633
12634           { echo "$as_me:$LINENO: result: $result" >&5
12635 echo "${ECHO_T}$result" >&6; }
12636
12637
12638           enablestring=
12639           defaultval=$wxUSE_ALL_FEATURES
12640           if test -z "$defaultval"; then
12641               if test x"$enablestring" = xdisable; then
12642                   defaultval=yes
12643               else
12644                   defaultval=no
12645               fi
12646           fi
12647
12648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12649 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12650           # Check whether --enable-textdlg was given.
12651 if test "${enable_textdlg+set}" = set; then
12652   enableval=$enable_textdlg;
12653                           if test "$enableval" = yes; then
12654                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12655                           else
12656                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12657                           fi
12658
12659 else
12660
12661                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12662
12663 fi
12664
12665
12666           eval "$wx_cv_use_textdlg"
12667
12668           if test x"$enablestring" = xdisable; then
12669             if test $wxUSE_TEXTDLG = no; then
12670               result=yes
12671             else
12672               result=no
12673             fi
12674           else
12675             result=$wxUSE_TEXTDLG
12676           fi
12677
12678           { echo "$as_me:$LINENO: result: $result" >&5
12679 echo "${ECHO_T}$result" >&6; }
12680
12681
12682           enablestring=
12683           defaultval=$wxUSE_ALL_FEATURES
12684           if test -z "$defaultval"; then
12685               if test x"$enablestring" = xdisable; then
12686                   defaultval=yes
12687               else
12688                   defaultval=no
12689               fi
12690           fi
12691
12692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12693 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12694           # Check whether --enable-tipdlg was given.
12695 if test "${enable_tipdlg+set}" = set; then
12696   enableval=$enable_tipdlg;
12697                           if test "$enableval" = yes; then
12698                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12699                           else
12700                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12701                           fi
12702
12703 else
12704
12705                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12706
12707 fi
12708
12709
12710           eval "$wx_cv_use_tipdlg"
12711
12712           if test x"$enablestring" = xdisable; then
12713             if test $wxUSE_STARTUP_TIPS = no; then
12714               result=yes
12715             else
12716               result=no
12717             fi
12718           else
12719             result=$wxUSE_STARTUP_TIPS
12720           fi
12721
12722           { echo "$as_me:$LINENO: result: $result" >&5
12723 echo "${ECHO_T}$result" >&6; }
12724
12725
12726           enablestring=
12727           defaultval=$wxUSE_ALL_FEATURES
12728           if test -z "$defaultval"; then
12729               if test x"$enablestring" = xdisable; then
12730                   defaultval=yes
12731               else
12732                   defaultval=no
12733               fi
12734           fi
12735
12736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12737 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12738           # Check whether --enable-progressdlg was given.
12739 if test "${enable_progressdlg+set}" = set; then
12740   enableval=$enable_progressdlg;
12741                           if test "$enableval" = yes; then
12742                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12743                           else
12744                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12745                           fi
12746
12747 else
12748
12749                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12750
12751 fi
12752
12753
12754           eval "$wx_cv_use_progressdlg"
12755
12756           if test x"$enablestring" = xdisable; then
12757             if test $wxUSE_PROGRESSDLG = no; then
12758               result=yes
12759             else
12760               result=no
12761             fi
12762           else
12763             result=$wxUSE_PROGRESSDLG
12764           fi
12765
12766           { echo "$as_me:$LINENO: result: $result" >&5
12767 echo "${ECHO_T}$result" >&6; }
12768
12769
12770           enablestring=
12771           defaultval=$wxUSE_ALL_FEATURES
12772           if test -z "$defaultval"; then
12773               if test x"$enablestring" = xdisable; then
12774                   defaultval=yes
12775               else
12776                   defaultval=no
12777               fi
12778           fi
12779
12780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12781 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12782           # Check whether --enable-wizarddlg was given.
12783 if test "${enable_wizarddlg+set}" = set; then
12784   enableval=$enable_wizarddlg;
12785                           if test "$enableval" = yes; then
12786                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12787                           else
12788                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12789                           fi
12790
12791 else
12792
12793                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12794
12795 fi
12796
12797
12798           eval "$wx_cv_use_wizarddlg"
12799
12800           if test x"$enablestring" = xdisable; then
12801             if test $wxUSE_WIZARDDLG = no; then
12802               result=yes
12803             else
12804               result=no
12805             fi
12806           else
12807             result=$wxUSE_WIZARDDLG
12808           fi
12809
12810           { echo "$as_me:$LINENO: result: $result" >&5
12811 echo "${ECHO_T}$result" >&6; }
12812
12813
12814
12815
12816           enablestring=
12817           defaultval=$wxUSE_ALL_FEATURES
12818           if test -z "$defaultval"; then
12819               if test x"$enablestring" = xdisable; then
12820                   defaultval=yes
12821               else
12822                   defaultval=no
12823               fi
12824           fi
12825
12826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12827 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12828           # Check whether --enable-menus was given.
12829 if test "${enable_menus+set}" = set; then
12830   enableval=$enable_menus;
12831                           if test "$enableval" = yes; then
12832                             wx_cv_use_menus='wxUSE_MENUS=yes'
12833                           else
12834                             wx_cv_use_menus='wxUSE_MENUS=no'
12835                           fi
12836
12837 else
12838
12839                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12840
12841 fi
12842
12843
12844           eval "$wx_cv_use_menus"
12845
12846           if test x"$enablestring" = xdisable; then
12847             if test $wxUSE_MENUS = no; then
12848               result=yes
12849             else
12850               result=no
12851             fi
12852           else
12853             result=$wxUSE_MENUS
12854           fi
12855
12856           { echo "$as_me:$LINENO: result: $result" >&5
12857 echo "${ECHO_T}$result" >&6; }
12858
12859
12860           enablestring=
12861           defaultval=$wxUSE_ALL_FEATURES
12862           if test -z "$defaultval"; then
12863               if test x"$enablestring" = xdisable; then
12864                   defaultval=yes
12865               else
12866                   defaultval=no
12867               fi
12868           fi
12869
12870           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12871 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12872           # Check whether --enable-miniframe was given.
12873 if test "${enable_miniframe+set}" = set; then
12874   enableval=$enable_miniframe;
12875                           if test "$enableval" = yes; then
12876                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12877                           else
12878                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12879                           fi
12880
12881 else
12882
12883                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12884
12885 fi
12886
12887
12888           eval "$wx_cv_use_miniframe"
12889
12890           if test x"$enablestring" = xdisable; then
12891             if test $wxUSE_MINIFRAME = no; then
12892               result=yes
12893             else
12894               result=no
12895             fi
12896           else
12897             result=$wxUSE_MINIFRAME
12898           fi
12899
12900           { echo "$as_me:$LINENO: result: $result" >&5
12901 echo "${ECHO_T}$result" >&6; }
12902
12903
12904           enablestring=
12905           defaultval=$wxUSE_ALL_FEATURES
12906           if test -z "$defaultval"; then
12907               if test x"$enablestring" = xdisable; then
12908                   defaultval=yes
12909               else
12910                   defaultval=no
12911               fi
12912           fi
12913
12914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12915 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12916           # Check whether --enable-tooltips was given.
12917 if test "${enable_tooltips+set}" = set; then
12918   enableval=$enable_tooltips;
12919                           if test "$enableval" = yes; then
12920                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12921                           else
12922                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12923                           fi
12924
12925 else
12926
12927                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12928
12929 fi
12930
12931
12932           eval "$wx_cv_use_tooltips"
12933
12934           if test x"$enablestring" = xdisable; then
12935             if test $wxUSE_TOOLTIPS = no; then
12936               result=yes
12937             else
12938               result=no
12939             fi
12940           else
12941             result=$wxUSE_TOOLTIPS
12942           fi
12943
12944           { echo "$as_me:$LINENO: result: $result" >&5
12945 echo "${ECHO_T}$result" >&6; }
12946
12947
12948           enablestring=
12949           defaultval=$wxUSE_ALL_FEATURES
12950           if test -z "$defaultval"; then
12951               if test x"$enablestring" = xdisable; then
12952                   defaultval=yes
12953               else
12954                   defaultval=no
12955               fi
12956           fi
12957
12958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12959 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12960           # Check whether --enable-splines was given.
12961 if test "${enable_splines+set}" = set; then
12962   enableval=$enable_splines;
12963                           if test "$enableval" = yes; then
12964                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12965                           else
12966                             wx_cv_use_splines='wxUSE_SPLINES=no'
12967                           fi
12968
12969 else
12970
12971                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12972
12973 fi
12974
12975
12976           eval "$wx_cv_use_splines"
12977
12978           if test x"$enablestring" = xdisable; then
12979             if test $wxUSE_SPLINES = no; then
12980               result=yes
12981             else
12982               result=no
12983             fi
12984           else
12985             result=$wxUSE_SPLINES
12986           fi
12987
12988           { echo "$as_me:$LINENO: result: $result" >&5
12989 echo "${ECHO_T}$result" >&6; }
12990
12991
12992           enablestring=
12993           defaultval=$wxUSE_ALL_FEATURES
12994           if test -z "$defaultval"; then
12995               if test x"$enablestring" = xdisable; then
12996                   defaultval=yes
12997               else
12998                   defaultval=no
12999               fi
13000           fi
13001
13002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13003 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13004           # Check whether --enable-mousewheel was given.
13005 if test "${enable_mousewheel+set}" = set; then
13006   enableval=$enable_mousewheel;
13007                           if test "$enableval" = yes; then
13008                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13009                           else
13010                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13011                           fi
13012
13013 else
13014
13015                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13016
13017 fi
13018
13019
13020           eval "$wx_cv_use_mousewheel"
13021
13022           if test x"$enablestring" = xdisable; then
13023             if test $wxUSE_MOUSEWHEEL = no; then
13024               result=yes
13025             else
13026               result=no
13027             fi
13028           else
13029             result=$wxUSE_MOUSEWHEEL
13030           fi
13031
13032           { echo "$as_me:$LINENO: result: $result" >&5
13033 echo "${ECHO_T}$result" >&6; }
13034
13035
13036           enablestring=
13037           defaultval=$wxUSE_ALL_FEATURES
13038           if test -z "$defaultval"; then
13039               if test x"$enablestring" = xdisable; then
13040                   defaultval=yes
13041               else
13042                   defaultval=no
13043               fi
13044           fi
13045
13046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13047 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13048           # Check whether --enable-validators was given.
13049 if test "${enable_validators+set}" = set; then
13050   enableval=$enable_validators;
13051                           if test "$enableval" = yes; then
13052                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13053                           else
13054                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13055                           fi
13056
13057 else
13058
13059                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13060
13061 fi
13062
13063
13064           eval "$wx_cv_use_validators"
13065
13066           if test x"$enablestring" = xdisable; then
13067             if test $wxUSE_VALIDATORS = no; then
13068               result=yes
13069             else
13070               result=no
13071             fi
13072           else
13073             result=$wxUSE_VALIDATORS
13074           fi
13075
13076           { echo "$as_me:$LINENO: result: $result" >&5
13077 echo "${ECHO_T}$result" >&6; }
13078
13079
13080           enablestring=
13081           defaultval=$wxUSE_ALL_FEATURES
13082           if test -z "$defaultval"; then
13083               if test x"$enablestring" = xdisable; then
13084                   defaultval=yes
13085               else
13086                   defaultval=no
13087               fi
13088           fi
13089
13090           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13091 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13092           # Check whether --enable-busyinfo was given.
13093 if test "${enable_busyinfo+set}" = set; then
13094   enableval=$enable_busyinfo;
13095                           if test "$enableval" = yes; then
13096                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13097                           else
13098                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13099                           fi
13100
13101 else
13102
13103                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13104
13105 fi
13106
13107
13108           eval "$wx_cv_use_busyinfo"
13109
13110           if test x"$enablestring" = xdisable; then
13111             if test $wxUSE_BUSYINFO = no; then
13112               result=yes
13113             else
13114               result=no
13115             fi
13116           else
13117             result=$wxUSE_BUSYINFO
13118           fi
13119
13120           { echo "$as_me:$LINENO: result: $result" >&5
13121 echo "${ECHO_T}$result" >&6; }
13122
13123
13124           enablestring=
13125           defaultval=$wxUSE_ALL_FEATURES
13126           if test -z "$defaultval"; then
13127               if test x"$enablestring" = xdisable; then
13128                   defaultval=yes
13129               else
13130                   defaultval=no
13131               fi
13132           fi
13133
13134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13135 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13136           # Check whether --enable-joystick was given.
13137 if test "${enable_joystick+set}" = set; then
13138   enableval=$enable_joystick;
13139                           if test "$enableval" = yes; then
13140                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13141                           else
13142                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13143                           fi
13144
13145 else
13146
13147                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13148
13149 fi
13150
13151
13152           eval "$wx_cv_use_joystick"
13153
13154           if test x"$enablestring" = xdisable; then
13155             if test $wxUSE_JOYSTICK = no; then
13156               result=yes
13157             else
13158               result=no
13159             fi
13160           else
13161             result=$wxUSE_JOYSTICK
13162           fi
13163
13164           { echo "$as_me:$LINENO: result: $result" >&5
13165 echo "${ECHO_T}$result" >&6; }
13166
13167
13168           enablestring=
13169           defaultval=$wxUSE_ALL_FEATURES
13170           if test -z "$defaultval"; then
13171               if test x"$enablestring" = xdisable; then
13172                   defaultval=yes
13173               else
13174                   defaultval=no
13175               fi
13176           fi
13177
13178           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13179 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13180           # Check whether --enable-metafile was given.
13181 if test "${enable_metafile+set}" = set; then
13182   enableval=$enable_metafile;
13183                           if test "$enableval" = yes; then
13184                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13185                           else
13186                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13187                           fi
13188
13189 else
13190
13191                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13192
13193 fi
13194
13195
13196           eval "$wx_cv_use_metafile"
13197
13198           if test x"$enablestring" = xdisable; then
13199             if test $wxUSE_METAFILE = no; then
13200               result=yes
13201             else
13202               result=no
13203             fi
13204           else
13205             result=$wxUSE_METAFILE
13206           fi
13207
13208           { echo "$as_me:$LINENO: result: $result" >&5
13209 echo "${ECHO_T}$result" >&6; }
13210
13211
13212           enablestring=
13213           defaultval=$wxUSE_ALL_FEATURES
13214           if test -z "$defaultval"; then
13215               if test x"$enablestring" = xdisable; then
13216                   defaultval=yes
13217               else
13218                   defaultval=no
13219               fi
13220           fi
13221
13222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13223 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13224           # Check whether --enable-dragimage was given.
13225 if test "${enable_dragimage+set}" = set; then
13226   enableval=$enable_dragimage;
13227                           if test "$enableval" = yes; then
13228                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13229                           else
13230                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13231                           fi
13232
13233 else
13234
13235                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13236
13237 fi
13238
13239
13240           eval "$wx_cv_use_dragimage"
13241
13242           if test x"$enablestring" = xdisable; then
13243             if test $wxUSE_DRAGIMAGE = no; then
13244               result=yes
13245             else
13246               result=no
13247             fi
13248           else
13249             result=$wxUSE_DRAGIMAGE
13250           fi
13251
13252           { echo "$as_me:$LINENO: result: $result" >&5
13253 echo "${ECHO_T}$result" >&6; }
13254
13255
13256           enablestring=
13257           defaultval=$wxUSE_ALL_FEATURES
13258           if test -z "$defaultval"; then
13259               if test x"$enablestring" = xdisable; then
13260                   defaultval=yes
13261               else
13262                   defaultval=no
13263               fi
13264           fi
13265
13266           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13267 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13268           # Check whether --enable-accessibility was given.
13269 if test "${enable_accessibility+set}" = set; then
13270   enableval=$enable_accessibility;
13271                           if test "$enableval" = yes; then
13272                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13273                           else
13274                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13275                           fi
13276
13277 else
13278
13279                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13280
13281 fi
13282
13283
13284           eval "$wx_cv_use_accessibility"
13285
13286           if test x"$enablestring" = xdisable; then
13287             if test $wxUSE_ACCESSIBILITY = no; then
13288               result=yes
13289             else
13290               result=no
13291             fi
13292           else
13293             result=$wxUSE_ACCESSIBILITY
13294           fi
13295
13296           { echo "$as_me:$LINENO: result: $result" >&5
13297 echo "${ECHO_T}$result" >&6; }
13298
13299
13300
13301
13302           enablestring=
13303           defaultval=$wxUSE_ALL_FEATURES
13304           if test -z "$defaultval"; then
13305               if test x"$enablestring" = xdisable; then
13306                   defaultval=yes
13307               else
13308                   defaultval=no
13309               fi
13310           fi
13311
13312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13313 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13314           # Check whether --enable-palette was given.
13315 if test "${enable_palette+set}" = set; then
13316   enableval=$enable_palette;
13317                           if test "$enableval" = yes; then
13318                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13319                           else
13320                             wx_cv_use_palette='wxUSE_PALETTE=no'
13321                           fi
13322
13323 else
13324
13325                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13326
13327 fi
13328
13329
13330           eval "$wx_cv_use_palette"
13331
13332           if test x"$enablestring" = xdisable; then
13333             if test $wxUSE_PALETTE = no; then
13334               result=yes
13335             else
13336               result=no
13337             fi
13338           else
13339             result=$wxUSE_PALETTE
13340           fi
13341
13342           { echo "$as_me:$LINENO: result: $result" >&5
13343 echo "${ECHO_T}$result" >&6; }
13344
13345
13346           enablestring=
13347           defaultval=$wxUSE_ALL_FEATURES
13348           if test -z "$defaultval"; then
13349               if test x"$enablestring" = xdisable; then
13350                   defaultval=yes
13351               else
13352                   defaultval=no
13353               fi
13354           fi
13355
13356           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13357 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13358           # Check whether --enable-image was given.
13359 if test "${enable_image+set}" = set; then
13360   enableval=$enable_image;
13361                           if test "$enableval" = yes; then
13362                             wx_cv_use_image='wxUSE_IMAGE=yes'
13363                           else
13364                             wx_cv_use_image='wxUSE_IMAGE=no'
13365                           fi
13366
13367 else
13368
13369                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13370
13371 fi
13372
13373
13374           eval "$wx_cv_use_image"
13375
13376           if test x"$enablestring" = xdisable; then
13377             if test $wxUSE_IMAGE = no; then
13378               result=yes
13379             else
13380               result=no
13381             fi
13382           else
13383             result=$wxUSE_IMAGE
13384           fi
13385
13386           { echo "$as_me:$LINENO: result: $result" >&5
13387 echo "${ECHO_T}$result" >&6; }
13388
13389
13390           enablestring=
13391           defaultval=$wxUSE_ALL_FEATURES
13392           if test -z "$defaultval"; then
13393               if test x"$enablestring" = xdisable; then
13394                   defaultval=yes
13395               else
13396                   defaultval=no
13397               fi
13398           fi
13399
13400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13401 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13402           # Check whether --enable-gif was given.
13403 if test "${enable_gif+set}" = set; then
13404   enableval=$enable_gif;
13405                           if test "$enableval" = yes; then
13406                             wx_cv_use_gif='wxUSE_GIF=yes'
13407                           else
13408                             wx_cv_use_gif='wxUSE_GIF=no'
13409                           fi
13410
13411 else
13412
13413                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13414
13415 fi
13416
13417
13418           eval "$wx_cv_use_gif"
13419
13420           if test x"$enablestring" = xdisable; then
13421             if test $wxUSE_GIF = no; then
13422               result=yes
13423             else
13424               result=no
13425             fi
13426           else
13427             result=$wxUSE_GIF
13428           fi
13429
13430           { echo "$as_me:$LINENO: result: $result" >&5
13431 echo "${ECHO_T}$result" >&6; }
13432
13433
13434           enablestring=
13435           defaultval=$wxUSE_ALL_FEATURES
13436           if test -z "$defaultval"; then
13437               if test x"$enablestring" = xdisable; then
13438                   defaultval=yes
13439               else
13440                   defaultval=no
13441               fi
13442           fi
13443
13444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13445 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13446           # Check whether --enable-pcx was given.
13447 if test "${enable_pcx+set}" = set; then
13448   enableval=$enable_pcx;
13449                           if test "$enableval" = yes; then
13450                             wx_cv_use_pcx='wxUSE_PCX=yes'
13451                           else
13452                             wx_cv_use_pcx='wxUSE_PCX=no'
13453                           fi
13454
13455 else
13456
13457                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13458
13459 fi
13460
13461
13462           eval "$wx_cv_use_pcx"
13463
13464           if test x"$enablestring" = xdisable; then
13465             if test $wxUSE_PCX = no; then
13466               result=yes
13467             else
13468               result=no
13469             fi
13470           else
13471             result=$wxUSE_PCX
13472           fi
13473
13474           { echo "$as_me:$LINENO: result: $result" >&5
13475 echo "${ECHO_T}$result" >&6; }
13476
13477
13478           enablestring=
13479           defaultval=$wxUSE_ALL_FEATURES
13480           if test -z "$defaultval"; then
13481               if test x"$enablestring" = xdisable; then
13482                   defaultval=yes
13483               else
13484                   defaultval=no
13485               fi
13486           fi
13487
13488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13489 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13490           # Check whether --enable-tga was given.
13491 if test "${enable_tga+set}" = set; then
13492   enableval=$enable_tga;
13493                           if test "$enableval" = yes; then
13494                             wx_cv_use_tga='wxUSE_TGA=yes'
13495                           else
13496                             wx_cv_use_tga='wxUSE_TGA=no'
13497                           fi
13498
13499 else
13500
13501                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13502
13503 fi
13504
13505
13506           eval "$wx_cv_use_tga"
13507
13508           if test x"$enablestring" = xdisable; then
13509             if test $wxUSE_TGA = no; then
13510               result=yes
13511             else
13512               result=no
13513             fi
13514           else
13515             result=$wxUSE_TGA
13516           fi
13517
13518           { echo "$as_me:$LINENO: result: $result" >&5
13519 echo "${ECHO_T}$result" >&6; }
13520
13521
13522           enablestring=
13523           defaultval=$wxUSE_ALL_FEATURES
13524           if test -z "$defaultval"; then
13525               if test x"$enablestring" = xdisable; then
13526                   defaultval=yes
13527               else
13528                   defaultval=no
13529               fi
13530           fi
13531
13532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13533 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13534           # Check whether --enable-iff was given.
13535 if test "${enable_iff+set}" = set; then
13536   enableval=$enable_iff;
13537                           if test "$enableval" = yes; then
13538                             wx_cv_use_iff='wxUSE_IFF=yes'
13539                           else
13540                             wx_cv_use_iff='wxUSE_IFF=no'
13541                           fi
13542
13543 else
13544
13545                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13546
13547 fi
13548
13549
13550           eval "$wx_cv_use_iff"
13551
13552           if test x"$enablestring" = xdisable; then
13553             if test $wxUSE_IFF = no; then
13554               result=yes
13555             else
13556               result=no
13557             fi
13558           else
13559             result=$wxUSE_IFF
13560           fi
13561
13562           { echo "$as_me:$LINENO: result: $result" >&5
13563 echo "${ECHO_T}$result" >&6; }
13564
13565
13566           enablestring=
13567           defaultval=$wxUSE_ALL_FEATURES
13568           if test -z "$defaultval"; then
13569               if test x"$enablestring" = xdisable; then
13570                   defaultval=yes
13571               else
13572                   defaultval=no
13573               fi
13574           fi
13575
13576           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13577 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13578           # Check whether --enable-pnm was given.
13579 if test "${enable_pnm+set}" = set; then
13580   enableval=$enable_pnm;
13581                           if test "$enableval" = yes; then
13582                             wx_cv_use_pnm='wxUSE_PNM=yes'
13583                           else
13584                             wx_cv_use_pnm='wxUSE_PNM=no'
13585                           fi
13586
13587 else
13588
13589                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13590
13591 fi
13592
13593
13594           eval "$wx_cv_use_pnm"
13595
13596           if test x"$enablestring" = xdisable; then
13597             if test $wxUSE_PNM = no; then
13598               result=yes
13599             else
13600               result=no
13601             fi
13602           else
13603             result=$wxUSE_PNM
13604           fi
13605
13606           { echo "$as_me:$LINENO: result: $result" >&5
13607 echo "${ECHO_T}$result" >&6; }
13608
13609
13610           enablestring=
13611           defaultval=$wxUSE_ALL_FEATURES
13612           if test -z "$defaultval"; then
13613               if test x"$enablestring" = xdisable; then
13614                   defaultval=yes
13615               else
13616                   defaultval=no
13617               fi
13618           fi
13619
13620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13621 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13622           # Check whether --enable-xpm was given.
13623 if test "${enable_xpm+set}" = set; then
13624   enableval=$enable_xpm;
13625                           if test "$enableval" = yes; then
13626                             wx_cv_use_xpm='wxUSE_XPM=yes'
13627                           else
13628                             wx_cv_use_xpm='wxUSE_XPM=no'
13629                           fi
13630
13631 else
13632
13633                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13634
13635 fi
13636
13637
13638           eval "$wx_cv_use_xpm"
13639
13640           if test x"$enablestring" = xdisable; then
13641             if test $wxUSE_XPM = no; then
13642               result=yes
13643             else
13644               result=no
13645             fi
13646           else
13647             result=$wxUSE_XPM
13648           fi
13649
13650           { echo "$as_me:$LINENO: result: $result" >&5
13651 echo "${ECHO_T}$result" >&6; }
13652
13653
13654           enablestring=
13655           defaultval=$wxUSE_ALL_FEATURES
13656           if test -z "$defaultval"; then
13657               if test x"$enablestring" = xdisable; then
13658                   defaultval=yes
13659               else
13660                   defaultval=no
13661               fi
13662           fi
13663
13664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13665 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13666           # Check whether --enable-ico_cur was given.
13667 if test "${enable_ico_cur+set}" = set; then
13668   enableval=$enable_ico_cur;
13669                           if test "$enableval" = yes; then
13670                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13671                           else
13672                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13673                           fi
13674
13675 else
13676
13677                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13678
13679 fi
13680
13681
13682           eval "$wx_cv_use_ico_cur"
13683
13684           if test x"$enablestring" = xdisable; then
13685             if test $wxUSE_ICO_CUR = no; then
13686               result=yes
13687             else
13688               result=no
13689             fi
13690           else
13691             result=$wxUSE_ICO_CUR
13692           fi
13693
13694           { echo "$as_me:$LINENO: result: $result" >&5
13695 echo "${ECHO_T}$result" >&6; }
13696
13697
13698
13699
13700           enablestring=
13701           defaultval=$wxUSE_ALL_FEATURES
13702           if test -z "$defaultval"; then
13703               if test x"$enablestring" = xdisable; then
13704                   defaultval=yes
13705               else
13706                   defaultval=no
13707               fi
13708           fi
13709
13710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13711 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13712           # Check whether --enable-dccache was given.
13713 if test "${enable_dccache+set}" = set; then
13714   enableval=$enable_dccache;
13715                           if test "$enableval" = yes; then
13716                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13717                           else
13718                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13719                           fi
13720
13721 else
13722
13723                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13724
13725 fi
13726
13727
13728           eval "$wx_cv_use_dccache"
13729
13730           if test x"$enablestring" = xdisable; then
13731             if test $wxUSE_DC_CACHEING = no; then
13732               result=yes
13733             else
13734               result=no
13735             fi
13736           else
13737             result=$wxUSE_DC_CACHEING
13738           fi
13739
13740           { echo "$as_me:$LINENO: result: $result" >&5
13741 echo "${ECHO_T}$result" >&6; }
13742
13743
13744           enablestring=
13745           defaultval=$wxUSE_ALL_FEATURES
13746           if test -z "$defaultval"; then
13747               if test x"$enablestring" = xdisable; then
13748                   defaultval=yes
13749               else
13750                   defaultval=no
13751               fi
13752           fi
13753
13754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13755 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13756           # Check whether --enable-ps-in-msw was given.
13757 if test "${enable_ps_in_msw+set}" = set; then
13758   enableval=$enable_ps_in_msw;
13759                           if test "$enableval" = yes; then
13760                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13761                           else
13762                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13763                           fi
13764
13765 else
13766
13767                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13768
13769 fi
13770
13771
13772           eval "$wx_cv_use_ps_in_msw"
13773
13774           if test x"$enablestring" = xdisable; then
13775             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
13776               result=yes
13777             else
13778               result=no
13779             fi
13780           else
13781             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13782           fi
13783
13784           { echo "$as_me:$LINENO: result: $result" >&5
13785 echo "${ECHO_T}$result" >&6; }
13786
13787
13788           enablestring=
13789           defaultval=$wxUSE_ALL_FEATURES
13790           if test -z "$defaultval"; then
13791               if test x"$enablestring" = xdisable; then
13792                   defaultval=yes
13793               else
13794                   defaultval=no
13795               fi
13796           fi
13797
13798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13799 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13800           # Check whether --enable-ownerdrawn was given.
13801 if test "${enable_ownerdrawn+set}" = set; then
13802   enableval=$enable_ownerdrawn;
13803                           if test "$enableval" = yes; then
13804                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13805                           else
13806                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13807                           fi
13808
13809 else
13810
13811                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13812
13813 fi
13814
13815
13816           eval "$wx_cv_use_ownerdrawn"
13817
13818           if test x"$enablestring" = xdisable; then
13819             if test $wxUSE_OWNER_DRAWN = no; then
13820               result=yes
13821             else
13822               result=no
13823             fi
13824           else
13825             result=$wxUSE_OWNER_DRAWN
13826           fi
13827
13828           { echo "$as_me:$LINENO: result: $result" >&5
13829 echo "${ECHO_T}$result" >&6; }
13830
13831
13832           enablestring=
13833           defaultval=$wxUSE_ALL_FEATURES
13834           if test -z "$defaultval"; then
13835               if test x"$enablestring" = xdisable; then
13836                   defaultval=yes
13837               else
13838                   defaultval=no
13839               fi
13840           fi
13841
13842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13843 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13844           # Check whether --enable-uxtheme was given.
13845 if test "${enable_uxtheme+set}" = set; then
13846   enableval=$enable_uxtheme;
13847                           if test "$enableval" = yes; then
13848                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13849                           else
13850                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13851                           fi
13852
13853 else
13854
13855                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13856
13857 fi
13858
13859
13860           eval "$wx_cv_use_uxtheme"
13861
13862           if test x"$enablestring" = xdisable; then
13863             if test $wxUSE_UXTHEME = no; then
13864               result=yes
13865             else
13866               result=no
13867             fi
13868           else
13869             result=$wxUSE_UXTHEME
13870           fi
13871
13872           { echo "$as_me:$LINENO: result: $result" >&5
13873 echo "${ECHO_T}$result" >&6; }
13874
13875
13876           enablestring=
13877           defaultval=$wxUSE_ALL_FEATURES
13878           if test -z "$defaultval"; then
13879               if test x"$enablestring" = xdisable; then
13880                   defaultval=yes
13881               else
13882                   defaultval=no
13883               fi
13884           fi
13885
13886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13887 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13888           # Check whether --enable-wxdib was given.
13889 if test "${enable_wxdib+set}" = set; then
13890   enableval=$enable_wxdib;
13891                           if test "$enableval" = yes; then
13892                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13893                           else
13894                             wx_cv_use_wxdib='wxUSE_DIB=no'
13895                           fi
13896
13897 else
13898
13899                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13900
13901 fi
13902
13903
13904           eval "$wx_cv_use_wxdib"
13905
13906           if test x"$enablestring" = xdisable; then
13907             if test $wxUSE_DIB = no; then
13908               result=yes
13909             else
13910               result=no
13911             fi
13912           else
13913             result=$wxUSE_DIB
13914           fi
13915
13916           { echo "$as_me:$LINENO: result: $result" >&5
13917 echo "${ECHO_T}$result" >&6; }
13918
13919
13920 if test "$wxUSE_MSW" != 1; then
13921     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13922 fi
13923
13924
13925           enablestring=
13926           defaultval=$wxUSE_ALL_FEATURES
13927           if test -z "$defaultval"; then
13928               if test x"$enablestring" = xdisable; then
13929                   defaultval=yes
13930               else
13931                   defaultval=no
13932               fi
13933           fi
13934
13935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13936 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13937           # Check whether --enable-autoidman was given.
13938 if test "${enable_autoidman+set}" = set; then
13939   enableval=$enable_autoidman;
13940                           if test "$enableval" = yes; then
13941                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13942                           else
13943                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13944                           fi
13945
13946 else
13947
13948                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13949
13950 fi
13951
13952
13953           eval "$wx_cv_use_autoidman"
13954
13955           if test x"$enablestring" = xdisable; then
13956             if test $wxUSE_AUTOID_MANAGEMENT = no; then
13957               result=yes
13958             else
13959               result=no
13960             fi
13961           else
13962             result=$wxUSE_AUTOID_MANAGEMENT
13963           fi
13964
13965           { echo "$as_me:$LINENO: result: $result" >&5
13966 echo "${ECHO_T}$result" >&6; }
13967
13968
13969 fi
13970
13971
13972 cat >confcache <<\_ACEOF
13973 # This file is a shell script that caches the results of configure
13974 # tests run on this system so they can be shared between configure
13975 # scripts and configure runs, see configure's option --config-cache.
13976 # It is not useful on other systems.  If it contains results you don't
13977 # want to keep, you may remove or edit it.
13978 #
13979 # config.status only pays attention to the cache file if you give it
13980 # the --recheck option to rerun configure.
13981 #
13982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13984 # following values.
13985
13986 _ACEOF
13987
13988 # The following way of writing the cache mishandles newlines in values,
13989 # but we know of no workaround that is simple, portable, and efficient.
13990 # So, we kill variables containing newlines.
13991 # Ultrix sh set writes to stderr and can't be redirected directly,
13992 # and sets the high bit in the cache file unless we assign to the vars.
13993 (
13994   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13995     eval ac_val=\$$ac_var
13996     case $ac_val in #(
13997     *${as_nl}*)
13998       case $ac_var in #(
13999       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14000 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14001       esac
14002       case $ac_var in #(
14003       _ | IFS | as_nl) ;; #(
14004       *) $as_unset $ac_var ;;
14005       esac ;;
14006     esac
14007   done
14008
14009   (set) 2>&1 |
14010     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14011     *${as_nl}ac_space=\ *)
14012       # `set' does not quote correctly, so add quotes (double-quote
14013       # substitution turns \\\\ into \\, and sed turns \\ into \).
14014       sed -n \
14015         "s/'/'\\\\''/g;
14016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14017       ;; #(
14018     *)
14019       # `set' quotes correctly as required by POSIX, so do not add quotes.
14020       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14021       ;;
14022     esac |
14023     sort
14024 ) |
14025   sed '
14026      /^ac_cv_env_/b end
14027      t clear
14028      :clear
14029      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14030      t end
14031      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14032      :end' >>confcache
14033 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14034   if test -w "$cache_file"; then
14035     test "x$cache_file" != "x/dev/null" &&
14036       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14037 echo "$as_me: updating cache $cache_file" >&6;}
14038     cat confcache >$cache_file
14039   else
14040     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14041 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14042   fi
14043 fi
14044 rm -f confcache
14045
14046 CFLAGS=${CFLAGS:=}
14047
14048
14049
14050     ac_ext=c
14051 ac_cpp='$CPP $CPPFLAGS'
14052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14055 if test -n "$ac_tool_prefix"; then
14056   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14057 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14060 if test "${ac_cv_prog_CC+set}" = set; then
14061   echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063   if test -n "$CC"; then
14064   ac_cv_prog_CC="$CC" # Let the user override the test.
14065 else
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067 for as_dir in $PATH
14068 do
14069   IFS=$as_save_IFS
14070   test -z "$as_dir" && as_dir=.
14071   for ac_exec_ext in '' $ac_executable_extensions; do
14072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14073     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14075     break 2
14076   fi
14077 done
14078 done
14079 IFS=$as_save_IFS
14080
14081 fi
14082 fi
14083 CC=$ac_cv_prog_CC
14084 if test -n "$CC"; then
14085   { echo "$as_me:$LINENO: result: $CC" >&5
14086 echo "${ECHO_T}$CC" >&6; }
14087 else
14088   { echo "$as_me:$LINENO: result: no" >&5
14089 echo "${ECHO_T}no" >&6; }
14090 fi
14091
14092
14093 fi
14094 if test -z "$ac_cv_prog_CC"; then
14095   ac_ct_CC=$CC
14096   # Extract the first word of "gcc", so it can be a program name with args.
14097 set dummy gcc; ac_word=$2
14098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14101   echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103   if test -n "$ac_ct_CC"; then
14104   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14105 else
14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107 for as_dir in $PATH
14108 do
14109   IFS=$as_save_IFS
14110   test -z "$as_dir" && as_dir=.
14111   for ac_exec_ext in '' $ac_executable_extensions; do
14112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14113     ac_cv_prog_ac_ct_CC="gcc"
14114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14115     break 2
14116   fi
14117 done
14118 done
14119 IFS=$as_save_IFS
14120
14121 fi
14122 fi
14123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14124 if test -n "$ac_ct_CC"; then
14125   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14126 echo "${ECHO_T}$ac_ct_CC" >&6; }
14127 else
14128   { echo "$as_me:$LINENO: result: no" >&5
14129 echo "${ECHO_T}no" >&6; }
14130 fi
14131
14132   if test "x$ac_ct_CC" = x; then
14133     CC=""
14134   else
14135     case $cross_compiling:$ac_tool_warned in
14136 yes:)
14137 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14138 whose name does not start with the host triplet.  If you think this
14139 configuration is useful to you, please write to autoconf@gnu.org." >&5
14140 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14141 whose name does not start with the host triplet.  If you think this
14142 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14143 ac_tool_warned=yes ;;
14144 esac
14145     CC=$ac_ct_CC
14146   fi
14147 else
14148   CC="$ac_cv_prog_CC"
14149 fi
14150
14151 if test -z "$CC"; then
14152           if test -n "$ac_tool_prefix"; then
14153     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14154 set dummy ${ac_tool_prefix}cc; ac_word=$2
14155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14157 if test "${ac_cv_prog_CC+set}" = set; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160   if test -n "$CC"; then
14161   ac_cv_prog_CC="$CC" # Let the user override the test.
14162 else
14163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14165 do
14166   IFS=$as_save_IFS
14167   test -z "$as_dir" && as_dir=.
14168   for ac_exec_ext in '' $ac_executable_extensions; do
14169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14170     ac_cv_prog_CC="${ac_tool_prefix}cc"
14171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14172     break 2
14173   fi
14174 done
14175 done
14176 IFS=$as_save_IFS
14177
14178 fi
14179 fi
14180 CC=$ac_cv_prog_CC
14181 if test -n "$CC"; then
14182   { echo "$as_me:$LINENO: result: $CC" >&5
14183 echo "${ECHO_T}$CC" >&6; }
14184 else
14185   { echo "$as_me:$LINENO: result: no" >&5
14186 echo "${ECHO_T}no" >&6; }
14187 fi
14188
14189
14190   fi
14191 fi
14192 if test -z "$CC"; then
14193   # Extract the first word of "cc", so it can be a program name with args.
14194 set dummy cc; ac_word=$2
14195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14197 if test "${ac_cv_prog_CC+set}" = set; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   if test -n "$CC"; then
14201   ac_cv_prog_CC="$CC" # Let the user override the test.
14202 else
14203   ac_prog_rejected=no
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14206 do
14207   IFS=$as_save_IFS
14208   test -z "$as_dir" && as_dir=.
14209   for ac_exec_ext in '' $ac_executable_extensions; do
14210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14211     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14212        ac_prog_rejected=yes
14213        continue
14214      fi
14215     ac_cv_prog_CC="cc"
14216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14217     break 2
14218   fi
14219 done
14220 done
14221 IFS=$as_save_IFS
14222
14223 if test $ac_prog_rejected = yes; then
14224   # We found a bogon in the path, so make sure we never use it.
14225   set dummy $ac_cv_prog_CC
14226   shift
14227   if test $# != 0; then
14228     # We chose a different compiler from the bogus one.
14229     # However, it has the same basename, so the bogon will be chosen
14230     # first if we set CC to just the basename; use the full file name.
14231     shift
14232     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14233   fi
14234 fi
14235 fi
14236 fi
14237 CC=$ac_cv_prog_CC
14238 if test -n "$CC"; then
14239   { echo "$as_me:$LINENO: result: $CC" >&5
14240 echo "${ECHO_T}$CC" >&6; }
14241 else
14242   { echo "$as_me:$LINENO: result: no" >&5
14243 echo "${ECHO_T}no" >&6; }
14244 fi
14245
14246
14247 fi
14248 if test -z "$CC"; then
14249   if test -n "$ac_tool_prefix"; then
14250   for ac_prog in cl.exe
14251   do
14252     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14256 if test "${ac_cv_prog_CC+set}" = set; then
14257   echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259   if test -n "$CC"; then
14260   ac_cv_prog_CC="$CC" # Let the user override the test.
14261 else
14262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263 for as_dir in $PATH
14264 do
14265   IFS=$as_save_IFS
14266   test -z "$as_dir" && as_dir=.
14267   for ac_exec_ext in '' $ac_executable_extensions; do
14268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14269     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14271     break 2
14272   fi
14273 done
14274 done
14275 IFS=$as_save_IFS
14276
14277 fi
14278 fi
14279 CC=$ac_cv_prog_CC
14280 if test -n "$CC"; then
14281   { echo "$as_me:$LINENO: result: $CC" >&5
14282 echo "${ECHO_T}$CC" >&6; }
14283 else
14284   { echo "$as_me:$LINENO: result: no" >&5
14285 echo "${ECHO_T}no" >&6; }
14286 fi
14287
14288
14289     test -n "$CC" && break
14290   done
14291 fi
14292 if test -z "$CC"; then
14293   ac_ct_CC=$CC
14294   for ac_prog in cl.exe
14295 do
14296   # Extract the first word of "$ac_prog", so it can be a program name with args.
14297 set dummy $ac_prog; ac_word=$2
14298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303   if test -n "$ac_ct_CC"; then
14304   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14305 else
14306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14307 for as_dir in $PATH
14308 do
14309   IFS=$as_save_IFS
14310   test -z "$as_dir" && as_dir=.
14311   for ac_exec_ext in '' $ac_executable_extensions; do
14312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14313     ac_cv_prog_ac_ct_CC="$ac_prog"
14314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14315     break 2
14316   fi
14317 done
14318 done
14319 IFS=$as_save_IFS
14320
14321 fi
14322 fi
14323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14324 if test -n "$ac_ct_CC"; then
14325   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14326 echo "${ECHO_T}$ac_ct_CC" >&6; }
14327 else
14328   { echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6; }
14330 fi
14331
14332
14333   test -n "$ac_ct_CC" && break
14334 done
14335
14336   if test "x$ac_ct_CC" = x; then
14337     CC=""
14338   else
14339     case $cross_compiling:$ac_tool_warned in
14340 yes:)
14341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14342 whose name does not start with the host triplet.  If you think this
14343 configuration is useful to you, please write to autoconf@gnu.org." >&5
14344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14345 whose name does not start with the host triplet.  If you think this
14346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14347 ac_tool_warned=yes ;;
14348 esac
14349     CC=$ac_ct_CC
14350   fi
14351 fi
14352
14353 fi
14354
14355
14356 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14357 See \`config.log' for more details." >&5
14358 echo "$as_me: error: no acceptable C compiler found in \$PATH
14359 See \`config.log' for more details." >&2;}
14360    { (exit 1); exit 1; }; }
14361
14362 # Provide some information about the compiler.
14363 echo "$as_me:$LINENO: checking for C compiler version" >&5
14364 ac_compiler=`set X $ac_compile; echo $2`
14365 { (ac_try="$ac_compiler --version >&5"
14366 case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_compiler --version >&5") 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }
14375 { (ac_try="$ac_compiler -v >&5"
14376 case "(($ac_try" in
14377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378   *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381   (eval "$ac_compiler -v >&5") 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }
14385 { (ac_try="$ac_compiler -V >&5"
14386 case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_compiler -V >&5") 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }
14395
14396 cat >conftest.$ac_ext <<_ACEOF
14397 /* confdefs.h.  */
14398 _ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h.  */
14402
14403 int
14404 main ()
14405 {
14406
14407   ;
14408   return 0;
14409 }
14410 _ACEOF
14411 ac_clean_files_save=$ac_clean_files
14412 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14413 # Try to create an executable without -o first, disregard a.out.
14414 # It will help us diagnose broken compilers, and finding out an intuition
14415 # of exeext.
14416 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14417 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14418 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14419 #
14420 # List of possible output files, starting from the most likely.
14421 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14422 # only as a last resort.  b.out is created by i960 compilers.
14423 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14424 #
14425 # The IRIX 6 linker writes into existing files which may not be
14426 # executable, retaining their permissions.  Remove them first so a
14427 # subsequent execution test works.
14428 ac_rmfiles=
14429 for ac_file in $ac_files
14430 do
14431   case $ac_file in
14432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14433     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14434   esac
14435 done
14436 rm -f $ac_rmfiles
14437
14438 if { (ac_try="$ac_link_default"
14439 case "(($ac_try" in
14440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441   *) ac_try_echo=$ac_try;;
14442 esac
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444   (eval "$ac_link_default") 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; then
14448   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14450 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14451 # so that the user can short-circuit this test for compilers unknown to
14452 # Autoconf.
14453 for ac_file in $ac_files ''
14454 do
14455   test -f "$ac_file" || continue
14456   case $ac_file in
14457     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14458         ;;
14459     [ab].out )
14460         # We found the default executable, but exeext='' is most
14461         # certainly right.
14462         break;;
14463     *.* )
14464         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14465         then :; else
14466            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14467         fi
14468         # We set ac_cv_exeext here because the later test for it is not
14469         # safe: cross compilers may not add the suffix if given an `-o'
14470         # argument, so we may need to know it at that point already.
14471         # Even if this section looks crufty: it has the advantage of
14472         # actually working.
14473         break;;
14474     * )
14475         break;;
14476   esac
14477 done
14478 test "$ac_cv_exeext" = no && ac_cv_exeext=
14479
14480 else
14481   ac_file=''
14482 fi
14483
14484 { echo "$as_me:$LINENO: result: $ac_file" >&5
14485 echo "${ECHO_T}$ac_file" >&6; }
14486 if test -z "$ac_file"; then
14487   echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14491 See \`config.log' for more details." >&5
14492 echo "$as_me: error: C compiler cannot create executables
14493 See \`config.log' for more details." >&2;}
14494    { (exit 77); exit 77; }; }
14495 fi
14496
14497 ac_exeext=$ac_cv_exeext
14498
14499 # Check that the compiler produces executables we can run.  If not, either
14500 # the compiler is broken, or we cross compile.
14501 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14502 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14503 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14504 # If not cross compiling, check that we can run a simple program.
14505 if test "$cross_compiling" != yes; then
14506   if { ac_try='./$ac_file'
14507   { (case "(($ac_try" in
14508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509   *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512   (eval "$ac_try") 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; }; then
14516     cross_compiling=no
14517   else
14518     if test "$cross_compiling" = maybe; then
14519         cross_compiling=yes
14520     else
14521         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14522 If you meant to cross compile, use \`--host'.
14523 See \`config.log' for more details." >&5
14524 echo "$as_me: error: cannot run C compiled programs.
14525 If you meant to cross compile, use \`--host'.
14526 See \`config.log' for more details." >&2;}
14527    { (exit 1); exit 1; }; }
14528     fi
14529   fi
14530 fi
14531 { echo "$as_me:$LINENO: result: yes" >&5
14532 echo "${ECHO_T}yes" >&6; }
14533
14534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14535 ac_clean_files=$ac_clean_files_save
14536 # Check that the compiler produces executables we can run.  If not, either
14537 # the compiler is broken, or we cross compile.
14538 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14540 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14541 echo "${ECHO_T}$cross_compiling" >&6; }
14542
14543 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548   *) ac_try_echo=$ac_try;;
14549 esac
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551   (eval "$ac_link") 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; then
14555   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14556 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14557 # work properly (i.e., refer to `conftest.exe'), while it won't with
14558 # `rm'.
14559 for ac_file in conftest.exe conftest conftest.*; do
14560   test -f "$ac_file" || continue
14561   case $ac_file in
14562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14563     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14564           break;;
14565     * ) break;;
14566   esac
14567 done
14568 else
14569   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14570 See \`config.log' for more details." >&5
14571 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14572 See \`config.log' for more details." >&2;}
14573    { (exit 1); exit 1; }; }
14574 fi
14575
14576 rm -f conftest$ac_cv_exeext
14577 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14578 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14579
14580 rm -f conftest.$ac_ext
14581 EXEEXT=$ac_cv_exeext
14582 ac_exeext=$EXEEXT
14583 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14584 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14585 if test "${ac_cv_objext+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594
14595 int
14596 main ()
14597 {
14598
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.o conftest.obj
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607   *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610   (eval "$ac_compile") 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; then
14614   for ac_file in conftest.o conftest.obj conftest.*; do
14615   test -f "$ac_file" || continue;
14616   case $ac_file in
14617     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14618     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14619        break;;
14620   esac
14621 done
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14627 See \`config.log' for more details." >&5
14628 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14629 See \`config.log' for more details." >&2;}
14630    { (exit 1); exit 1; }; }
14631 fi
14632
14633 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14634 fi
14635 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14636 echo "${ECHO_T}$ac_cv_objext" >&6; }
14637 OBJEXT=$ac_cv_objext
14638 ac_objext=$OBJEXT
14639 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14640 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14641 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14642   echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644   cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h.  */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h.  */
14650
14651 int
14652 main ()
14653 {
14654 #ifndef __GNUC__
14655        choke me
14656 #endif
14657
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext
14663 if { (ac_try="$ac_compile"
14664 case "(($ac_try" in
14665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666   *) ac_try_echo=$ac_try;;
14667 esac
14668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14669   (eval "$ac_compile") 2>conftest.er1
14670   ac_status=$?
14671   grep -v '^ *+' conftest.er1 >conftest.err
14672   rm -f conftest.er1
14673   cat conftest.err >&5
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); } && {
14676          test -z "$ac_c_werror_flag" ||
14677          test ! -s conftest.err
14678        } && test -s conftest.$ac_objext; then
14679   ac_compiler_gnu=yes
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684         ac_compiler_gnu=no
14685 fi
14686
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14689
14690 fi
14691 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14692 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14693 GCC=`test $ac_compiler_gnu = yes && echo yes`
14694 ac_test_CFLAGS=${CFLAGS+set}
14695 ac_save_CFLAGS=$CFLAGS
14696 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14697 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14698 if test "${ac_cv_prog_cc_g+set}" = set; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701   ac_save_c_werror_flag=$ac_c_werror_flag
14702    ac_c_werror_flag=yes
14703    ac_cv_prog_cc_g=no
14704    CFLAGS="-g"
14705    cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h.  */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h.  */
14711
14712 int
14713 main ()
14714 {
14715
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 rm -f conftest.$ac_objext
14721 if { (ac_try="$ac_compile"
14722 case "(($ac_try" in
14723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724   *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727   (eval "$ac_compile") 2>conftest.er1
14728   ac_status=$?
14729   grep -v '^ *+' conftest.er1 >conftest.err
14730   rm -f conftest.er1
14731   cat conftest.err >&5
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); } && {
14734          test -z "$ac_c_werror_flag" ||
14735          test ! -s conftest.err
14736        } && test -s conftest.$ac_objext; then
14737   ac_cv_prog_cc_g=yes
14738 else
14739   echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14741
14742         CFLAGS=""
14743       cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h.  */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h.  */
14749
14750 int
14751 main ()
14752 {
14753
14754   ;
14755   return 0;
14756 }
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (ac_try="$ac_compile"
14760 case "(($ac_try" in
14761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762   *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765   (eval "$ac_compile") 2>conftest.er1
14766   ac_status=$?
14767   grep -v '^ *+' conftest.er1 >conftest.err
14768   rm -f conftest.er1
14769   cat conftest.err >&5
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); } && {
14772          test -z "$ac_c_werror_flag" ||
14773          test ! -s conftest.err
14774        } && test -s conftest.$ac_objext; then
14775   :
14776 else
14777   echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780         ac_c_werror_flag=$ac_save_c_werror_flag
14781          CFLAGS="-g"
14782          cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788
14789 int
14790 main ()
14791 {
14792
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801   *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804   (eval "$ac_compile") 2>conftest.er1
14805   ac_status=$?
14806   grep -v '^ *+' conftest.er1 >conftest.err
14807   rm -f conftest.er1
14808   cat conftest.err >&5
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); } && {
14811          test -z "$ac_c_werror_flag" ||
14812          test ! -s conftest.err
14813        } && test -s conftest.$ac_objext; then
14814   ac_cv_prog_cc_g=yes
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819
14820 fi
14821
14822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 fi
14824
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 fi
14827
14828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829    ac_c_werror_flag=$ac_save_c_werror_flag
14830 fi
14831 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14832 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14833 if test "$ac_test_CFLAGS" = set; then
14834   CFLAGS=$ac_save_CFLAGS
14835 elif test $ac_cv_prog_cc_g = yes; then
14836   if test "$GCC" = yes; then
14837     CFLAGS="-g -O2"
14838   else
14839     CFLAGS="-g"
14840   fi
14841 else
14842   if test "$GCC" = yes; then
14843     CFLAGS="-O2"
14844   else
14845     CFLAGS=
14846   fi
14847 fi
14848 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14849 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14850 if test "${ac_cv_prog_cc_c89+set}" = set; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853   ac_cv_prog_cc_c89=no
14854 ac_save_CC=$CC
14855 cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 #include <stdarg.h>
14862 #include <stdio.h>
14863 #include <sys/types.h>
14864 #include <sys/stat.h>
14865 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14866 struct buf { int x; };
14867 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14868 static char *e (p, i)
14869      char **p;
14870      int i;
14871 {
14872   return p[i];
14873 }
14874 static char *f (char * (*g) (char **, int), char **p, ...)
14875 {
14876   char *s;
14877   va_list v;
14878   va_start (v,p);
14879   s = g (p, va_arg (v,int));
14880   va_end (v);
14881   return s;
14882 }
14883
14884 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14885    function prototypes and stuff, but not '\xHH' hex character constants.
14886    These don't provoke an error unfortunately, instead are silently treated
14887    as 'x'.  The following induces an error, until -std is added to get
14888    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14889    array size at least.  It's necessary to write '\x00'==0 to get something
14890    that's true only with -std.  */
14891 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14892
14893 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14894    inside strings and character constants.  */
14895 #define FOO(x) 'x'
14896 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14897
14898 int test (int i, double x);
14899 struct s1 {int (*f) (int a);};
14900 struct s2 {int (*f) (double a);};
14901 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14902 int argc;
14903 char **argv;
14904 int
14905 main ()
14906 {
14907 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14908   ;
14909   return 0;
14910 }
14911 _ACEOF
14912 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14913         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14914 do
14915   CC="$ac_save_CC $ac_arg"
14916   rm -f conftest.$ac_objext
14917 if { (ac_try="$ac_compile"
14918 case "(($ac_try" in
14919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920   *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923   (eval "$ac_compile") 2>conftest.er1
14924   ac_status=$?
14925   grep -v '^ *+' conftest.er1 >conftest.err
14926   rm -f conftest.er1
14927   cat conftest.err >&5
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } && {
14930          test -z "$ac_c_werror_flag" ||
14931          test ! -s conftest.err
14932        } && test -s conftest.$ac_objext; then
14933   ac_cv_prog_cc_c89=$ac_arg
14934 else
14935   echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14937
14938
14939 fi
14940
14941 rm -f core conftest.err conftest.$ac_objext
14942   test "x$ac_cv_prog_cc_c89" != "xno" && break
14943 done
14944 rm -f conftest.$ac_ext
14945 CC=$ac_save_CC
14946
14947 fi
14948 # AC_CACHE_VAL
14949 case "x$ac_cv_prog_cc_c89" in
14950   x)
14951     { echo "$as_me:$LINENO: result: none needed" >&5
14952 echo "${ECHO_T}none needed" >&6; } ;;
14953   xno)
14954     { echo "$as_me:$LINENO: result: unsupported" >&5
14955 echo "${ECHO_T}unsupported" >&6; } ;;
14956   *)
14957     CC="$CC $ac_cv_prog_cc_c89"
14958     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14959 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14960 esac
14961
14962
14963 ac_ext=c
14964 ac_cpp='$CPP $CPPFLAGS'
14965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14968
14969
14970
14971
14972     ac_ext=c
14973 ac_cpp='$CPP $CPPFLAGS'
14974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14977
14978     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14979 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14980 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14981   echo $ECHO_N "(cached) $ECHO_C" >&6
14982 else
14983   cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h.  */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h.  */
14989
14990 int
14991 main ()
14992 {
14993
14994              #ifndef __INTEL_COMPILER
14995                 choke me
14996              #endif
14997
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext
15003 if { (ac_try="$ac_compile"
15004 case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009   (eval "$ac_compile") 2>conftest.er1
15010   ac_status=$?
15011   grep -v '^ *+' conftest.er1 >conftest.err
15012   rm -f conftest.er1
15013   cat conftest.err >&5
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } && {
15016          test -z "$ac_c_werror_flag" ||
15017          test ! -s conftest.err
15018        } && test -s conftest.$ac_objext; then
15019   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024         bakefile_cv_c_compiler___INTEL_COMPILER=no
15025
15026 fi
15027
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029
15030
15031 fi
15032 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15033 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15034     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15035         :; INTELCC=yes
15036     else
15037         :;
15038     fi
15039     ac_ext=c
15040 ac_cpp='$CPP $CPPFLAGS'
15041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15044
15045
15046
15047
15048         if test "$INTELCC" = "yes"; then
15049
15050
15051     ac_ext=c
15052 ac_cpp='$CPP $CPPFLAGS'
15053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15056
15057     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15058 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15059 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15060   echo $ECHO_N "(cached) $ECHO_C" >&6
15061 else
15062   cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068
15069 int
15070 main ()
15071 {
15072
15073              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15074                 choke me
15075              #endif
15076
15077   ;
15078   return 0;
15079 }
15080 _ACEOF
15081 rm -f conftest.$ac_objext
15082 if { (ac_try="$ac_compile"
15083 case "(($ac_try" in
15084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085   *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088   (eval "$ac_compile") 2>conftest.er1
15089   ac_status=$?
15090   grep -v '^ *+' conftest.er1 >conftest.err
15091   rm -f conftest.er1
15092   cat conftest.err >&5
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); } && {
15095          test -z "$ac_c_werror_flag" ||
15096          test ! -s conftest.err
15097        } && test -s conftest.$ac_objext; then
15098   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15104
15105 fi
15106
15107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15108
15109
15110 fi
15111 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15112 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15113     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15114         :; INTELCC8=yes
15115     else
15116         :;
15117     fi
15118     ac_ext=c
15119 ac_cpp='$CPP $CPPFLAGS'
15120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15123
15124
15125
15126
15127
15128     ac_ext=c
15129 ac_cpp='$CPP $CPPFLAGS'
15130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15133
15134     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15135 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15136 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139   cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h.  */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h.  */
15145
15146 int
15147 main ()
15148 {
15149
15150              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15151                 choke me
15152              #endif
15153
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 rm -f conftest.$ac_objext
15159 if { (ac_try="$ac_compile"
15160 case "(($ac_try" in
15161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162   *) ac_try_echo=$ac_try;;
15163 esac
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165   (eval "$ac_compile") 2>conftest.er1
15166   ac_status=$?
15167   grep -v '^ *+' conftest.er1 >conftest.err
15168   rm -f conftest.er1
15169   cat conftest.err >&5
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } && {
15172          test -z "$ac_c_werror_flag" ||
15173          test ! -s conftest.err
15174        } && test -s conftest.$ac_objext; then
15175   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15176 else
15177   echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15179
15180         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15181
15182 fi
15183
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185
15186
15187 fi
15188 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15189 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15190     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15191         :; INTELCC10=yes
15192     else
15193         :;
15194     fi
15195     ac_ext=c
15196 ac_cpp='$CPP $CPPFLAGS'
15197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15200
15201
15202
15203     fi
15204
15205         if test "x$GCC" != "xyes"; then
15206         if test "xCC" = "xC"; then
15207             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15208 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15209 if test "${bakefile_cv_c_exto+set}" = set; then
15210   echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15212   cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h.  */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h.  */
15218
15219 int
15220 main ()
15221 {
15222
15223   ;
15224   return 0;
15225 }
15226 _ACEOF
15227 rm -f conftest.$ac_objext conftest.$ac_ext.o
15228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15229   (eval $ac_compile) 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; then
15233   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15234     case $ac_file in
15235         conftest.$ac_ext.o)
15236             bakefile_cv_c_exto="-ext o"
15237             ;;
15238         *)
15239             ;;
15240     esac
15241 done
15242 else
15243   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15244 See \`config.log' for more details." >&5
15245 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15246 See \`config.log' for more details." >&2;}
15247    { (exit 1); exit 1; }; }
15248
15249 fi
15250
15251 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15252
15253 fi
15254 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15255 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15256 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15257     if test "c" = "c"; then
15258         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15259     fi
15260     if test "c" = "cxx"; then
15261         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15262     fi
15263 fi
15264
15265             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15266                 unset ac_cv_prog_cc_g
15267                 ac_test_CFLAGS=${CFLAGS+set}
15268 ac_save_CFLAGS=$CFLAGS
15269 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15270 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15271 if test "${ac_cv_prog_cc_g+set}" = set; then
15272   echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274   ac_save_c_werror_flag=$ac_c_werror_flag
15275    ac_c_werror_flag=yes
15276    ac_cv_prog_cc_g=no
15277    CFLAGS="-g"
15278    cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284
15285 int
15286 main ()
15287 {
15288
15289   ;
15290   return 0;
15291 }
15292 _ACEOF
15293 rm -f conftest.$ac_objext
15294 if { (ac_try="$ac_compile"
15295 case "(($ac_try" in
15296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297   *) ac_try_echo=$ac_try;;
15298 esac
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300   (eval "$ac_compile") 2>conftest.er1
15301   ac_status=$?
15302   grep -v '^ *+' conftest.er1 >conftest.err
15303   rm -f conftest.er1
15304   cat conftest.err >&5
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); } && {
15307          test -z "$ac_c_werror_flag" ||
15308          test ! -s conftest.err
15309        } && test -s conftest.$ac_objext; then
15310   ac_cv_prog_cc_g=yes
15311 else
15312   echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315         CFLAGS=""
15316       cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h.  */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h.  */
15322
15323 int
15324 main ()
15325 {
15326
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_compile") 2>conftest.er1
15339   ac_status=$?
15340   grep -v '^ *+' conftest.er1 >conftest.err
15341   rm -f conftest.er1
15342   cat conftest.err >&5
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } && {
15345          test -z "$ac_c_werror_flag" ||
15346          test ! -s conftest.err
15347        } && test -s conftest.$ac_objext; then
15348   :
15349 else
15350   echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353         ac_c_werror_flag=$ac_save_c_werror_flag
15354          CFLAGS="-g"
15355          cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361
15362 int
15363 main ()
15364 {
15365
15366   ;
15367   return 0;
15368 }
15369 _ACEOF
15370 rm -f conftest.$ac_objext
15371 if { (ac_try="$ac_compile"
15372 case "(($ac_try" in
15373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374   *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377   (eval "$ac_compile") 2>conftest.er1
15378   ac_status=$?
15379   grep -v '^ *+' conftest.er1 >conftest.err
15380   rm -f conftest.er1
15381   cat conftest.err >&5
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); } && {
15384          test -z "$ac_c_werror_flag" ||
15385          test ! -s conftest.err
15386        } && test -s conftest.$ac_objext; then
15387   ac_cv_prog_cc_g=yes
15388 else
15389   echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392
15393 fi
15394
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 fi
15397
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 fi
15400
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402    ac_c_werror_flag=$ac_save_c_werror_flag
15403 fi
15404 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15405 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15406 if test "$ac_test_CFLAGS" = set; then
15407   CFLAGS=$ac_save_CFLAGS
15408 elif test $ac_cv_prog_cc_g = yes; then
15409   if test "$GCC" = yes; then
15410     CFLAGS="-g -O2"
15411   else
15412     CFLAGS="-g"
15413   fi
15414 else
15415   if test "$GCC" = yes; then
15416     CFLAGS="-O2"
15417   else
15418     CFLAGS=
15419   fi
15420 fi
15421             fi
15422         fi
15423
15424                         case `uname -s` in
15425             AIX*)
15426
15427
15428     ac_ext=c
15429 ac_cpp='$CPP $CPPFLAGS'
15430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15433
15434     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15435 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15436 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15437   echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15439   cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h.  */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h.  */
15445
15446 int
15447 main ()
15448 {
15449
15450              #ifndef __xlC__
15451                 choke me
15452              #endif
15453
15454   ;
15455   return 0;
15456 }
15457 _ACEOF
15458 rm -f conftest.$ac_objext
15459 if { (ac_try="$ac_compile"
15460 case "(($ac_try" in
15461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462   *) ac_try_echo=$ac_try;;
15463 esac
15464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15465   (eval "$ac_compile") 2>conftest.er1
15466   ac_status=$?
15467   grep -v '^ *+' conftest.er1 >conftest.err
15468   rm -f conftest.er1
15469   cat conftest.err >&5
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); } && {
15472          test -z "$ac_c_werror_flag" ||
15473          test ! -s conftest.err
15474        } && test -s conftest.$ac_objext; then
15475   bakefile_cv_c_compiler___xlC__=yes
15476 else
15477   echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15479
15480         bakefile_cv_c_compiler___xlC__=no
15481
15482 fi
15483
15484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485
15486
15487 fi
15488 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15489 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15490     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15491         :; XLCC=yes
15492     else
15493         :;
15494     fi
15495     ac_ext=c
15496 ac_cpp='$CPP $CPPFLAGS'
15497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15500
15501
15502
15503                 ;;
15504
15505             Darwin)
15506
15507
15508     ac_ext=c
15509 ac_cpp='$CPP $CPPFLAGS'
15510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15513
15514     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15515 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15516 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15517   echo $ECHO_N "(cached) $ECHO_C" >&6
15518 else
15519   cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h.  */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h.  */
15525
15526 int
15527 main ()
15528 {
15529
15530              #ifndef __MWERKS__
15531                 choke me
15532              #endif
15533
15534   ;
15535   return 0;
15536 }
15537 _ACEOF
15538 rm -f conftest.$ac_objext
15539 if { (ac_try="$ac_compile"
15540 case "(($ac_try" in
15541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542   *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545   (eval "$ac_compile") 2>conftest.er1
15546   ac_status=$?
15547   grep -v '^ *+' conftest.er1 >conftest.err
15548   rm -f conftest.er1
15549   cat conftest.err >&5
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } && {
15552          test -z "$ac_c_werror_flag" ||
15553          test ! -s conftest.err
15554        } && test -s conftest.$ac_objext; then
15555   bakefile_cv_c_compiler___MWERKS__=yes
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560         bakefile_cv_c_compiler___MWERKS__=no
15561
15562 fi
15563
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565
15566
15567 fi
15568 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15569 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15570     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15571         :; MWCC=yes
15572     else
15573         :;
15574     fi
15575     ac_ext=c
15576 ac_cpp='$CPP $CPPFLAGS'
15577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15580
15581
15582
15583                 if test "$MWCC" != "yes"; then
15584
15585
15586     ac_ext=c
15587 ac_cpp='$CPP $CPPFLAGS'
15588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15591
15592     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15593 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15594 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15595   echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597   cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h.  */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h.  */
15603
15604 int
15605 main ()
15606 {
15607
15608              #ifndef __xlC__
15609                 choke me
15610              #endif
15611
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (ac_try="$ac_compile"
15618 case "(($ac_try" in
15619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620   *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623   (eval "$ac_compile") 2>conftest.er1
15624   ac_status=$?
15625   grep -v '^ *+' conftest.er1 >conftest.err
15626   rm -f conftest.er1
15627   cat conftest.err >&5
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); } && {
15630          test -z "$ac_c_werror_flag" ||
15631          test ! -s conftest.err
15632        } && test -s conftest.$ac_objext; then
15633   bakefile_cv_c_compiler___xlC__=yes
15634 else
15635   echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638         bakefile_cv_c_compiler___xlC__=no
15639
15640 fi
15641
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643
15644
15645 fi
15646 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15647 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15648     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15649         :; XLCC=yes
15650     else
15651         :;
15652     fi
15653     ac_ext=c
15654 ac_cpp='$CPP $CPPFLAGS'
15655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15658
15659
15660
15661                 fi
15662                 ;;
15663
15664             IRIX*)
15665
15666
15667     ac_ext=c
15668 ac_cpp='$CPP $CPPFLAGS'
15669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15672
15673     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15674 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15675 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15676   echo $ECHO_N "(cached) $ECHO_C" >&6
15677 else
15678   cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h.  */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h.  */
15684
15685 int
15686 main ()
15687 {
15688
15689              #ifndef _SGI_COMPILER_VERSION
15690                 choke me
15691              #endif
15692
15693   ;
15694   return 0;
15695 }
15696 _ACEOF
15697 rm -f conftest.$ac_objext
15698 if { (ac_try="$ac_compile"
15699 case "(($ac_try" in
15700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701   *) ac_try_echo=$ac_try;;
15702 esac
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704   (eval "$ac_compile") 2>conftest.er1
15705   ac_status=$?
15706   grep -v '^ *+' conftest.er1 >conftest.err
15707   rm -f conftest.er1
15708   cat conftest.err >&5
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); } && {
15711          test -z "$ac_c_werror_flag" ||
15712          test ! -s conftest.err
15713        } && test -s conftest.$ac_objext; then
15714   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15720
15721 fi
15722
15723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724
15725
15726 fi
15727 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15728 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15729     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15730         :; SGICC=yes
15731     else
15732         :;
15733     fi
15734     ac_ext=c
15735 ac_cpp='$CPP $CPPFLAGS'
15736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15739
15740
15741
15742                 ;;
15743
15744             Linux*)
15745                                                 if test "$INTELCC" != "yes"; then
15746
15747
15748     ac_ext=c
15749 ac_cpp='$CPP $CPPFLAGS'
15750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15753
15754     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15755 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15756 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15757   echo $ECHO_N "(cached) $ECHO_C" >&6
15758 else
15759   cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h.  */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h.  */
15765
15766 int
15767 main ()
15768 {
15769
15770              #ifndef __SUNPRO_C
15771                 choke me
15772              #endif
15773
15774   ;
15775   return 0;
15776 }
15777 _ACEOF
15778 rm -f conftest.$ac_objext
15779 if { (ac_try="$ac_compile"
15780 case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_compile") 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } && {
15792          test -z "$ac_c_werror_flag" ||
15793          test ! -s conftest.err
15794        } && test -s conftest.$ac_objext; then
15795   bakefile_cv_c_compiler___SUNPRO_C=yes
15796 else
15797   echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800         bakefile_cv_c_compiler___SUNPRO_C=no
15801
15802 fi
15803
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805
15806
15807 fi
15808 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15809 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15810     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15811         :; SUNCC=yes
15812     else
15813         :;
15814     fi
15815     ac_ext=c
15816 ac_cpp='$CPP $CPPFLAGS'
15817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15820
15821
15822
15823                 fi
15824                 ;;
15825
15826             HP-UX*)
15827
15828
15829     ac_ext=c
15830 ac_cpp='$CPP $CPPFLAGS'
15831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15834
15835     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15836 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15837 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15838   echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840   cat >conftest.$ac_ext <<_ACEOF
15841 /* confdefs.h.  */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h.  */
15846
15847 int
15848 main ()
15849 {
15850
15851              #ifndef __HP_cc
15852                 choke me
15853              #endif
15854
15855   ;
15856   return 0;
15857 }
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (ac_try="$ac_compile"
15861 case "(($ac_try" in
15862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863   *) ac_try_echo=$ac_try;;
15864 esac
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866   (eval "$ac_compile") 2>conftest.er1
15867   ac_status=$?
15868   grep -v '^ *+' conftest.er1 >conftest.err
15869   rm -f conftest.er1
15870   cat conftest.err >&5
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); } && {
15873          test -z "$ac_c_werror_flag" ||
15874          test ! -s conftest.err
15875        } && test -s conftest.$ac_objext; then
15876   bakefile_cv_c_compiler___HP_cc=yes
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881         bakefile_cv_c_compiler___HP_cc=no
15882
15883 fi
15884
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886
15887
15888 fi
15889 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15890 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15891     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15892         :; HPCC=yes
15893     else
15894         :;
15895     fi
15896     ac_ext=c
15897 ac_cpp='$CPP $CPPFLAGS'
15898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15901
15902
15903
15904                 ;;
15905
15906             OSF1)
15907
15908
15909     ac_ext=c
15910 ac_cpp='$CPP $CPPFLAGS'
15911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15914
15915     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15916 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15917 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920   cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926
15927 int
15928 main ()
15929 {
15930
15931              #ifndef __DECC
15932                 choke me
15933              #endif
15934
15935   ;
15936   return 0;
15937 }
15938 _ACEOF
15939 rm -f conftest.$ac_objext
15940 if { (ac_try="$ac_compile"
15941 case "(($ac_try" in
15942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943   *) ac_try_echo=$ac_try;;
15944 esac
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946   (eval "$ac_compile") 2>conftest.er1
15947   ac_status=$?
15948   grep -v '^ *+' conftest.er1 >conftest.err
15949   rm -f conftest.er1
15950   cat conftest.err >&5
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); } && {
15953          test -z "$ac_c_werror_flag" ||
15954          test ! -s conftest.err
15955        } && test -s conftest.$ac_objext; then
15956   bakefile_cv_c_compiler___DECC=yes
15957 else
15958   echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961         bakefile_cv_c_compiler___DECC=no
15962
15963 fi
15964
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966
15967
15968 fi
15969 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15970 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15971     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15972         :; COMPAQCC=yes
15973     else
15974         :;
15975     fi
15976     ac_ext=c
15977 ac_cpp='$CPP $CPPFLAGS'
15978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15981
15982
15983
15984                 ;;
15985
15986             SunOS)
15987
15988
15989     ac_ext=c
15990 ac_cpp='$CPP $CPPFLAGS'
15991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994
15995     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15996 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15997 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15998   echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000   cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006
16007 int
16008 main ()
16009 {
16010
16011              #ifndef __SUNPRO_C
16012                 choke me
16013              #endif
16014
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 rm -f conftest.$ac_objext
16020 if { (ac_try="$ac_compile"
16021 case "(($ac_try" in
16022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023   *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026   (eval "$ac_compile") 2>conftest.er1
16027   ac_status=$?
16028   grep -v '^ *+' conftest.er1 >conftest.err
16029   rm -f conftest.er1
16030   cat conftest.err >&5
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); } && {
16033          test -z "$ac_c_werror_flag" ||
16034          test ! -s conftest.err
16035        } && test -s conftest.$ac_objext; then
16036   bakefile_cv_c_compiler___SUNPRO_C=yes
16037 else
16038   echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16040
16041         bakefile_cv_c_compiler___SUNPRO_C=no
16042
16043 fi
16044
16045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046
16047
16048 fi
16049 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16050 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16051     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16052         :; SUNCC=yes
16053     else
16054         :;
16055     fi
16056     ac_ext=c
16057 ac_cpp='$CPP $CPPFLAGS'
16058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16061
16062
16063
16064                 ;;
16065         esac
16066     fi
16067
16068
16069
16070 ac_ext=c
16071 ac_cpp='$CPP $CPPFLAGS'
16072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16075 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16076 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16077 # On Suns, sometimes $CPP names a directory.
16078 if test -n "$CPP" && test -d "$CPP"; then
16079   CPP=
16080 fi
16081 if test -z "$CPP"; then
16082   if test "${ac_cv_prog_CPP+set}" = set; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085       # Double quotes because CPP needs to be expanded
16086     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16087     do
16088       ac_preproc_ok=false
16089 for ac_c_preproc_warn_flag in '' yes
16090 do
16091   # Use a header file that comes with gcc, so configuring glibc
16092   # with a fresh cross-compiler works.
16093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16094   # <limits.h> exists even on freestanding compilers.
16095   # On the NeXT, cc -E runs the code through the compiler's parser,
16096   # not just through cpp. "Syntax error" is here to catch this case.
16097   cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 #ifdef __STDC__
16104 # include <limits.h>
16105 #else
16106 # include <assert.h>
16107 #endif
16108                      Syntax error
16109 _ACEOF
16110 if { (ac_try="$ac_cpp conftest.$ac_ext"
16111 case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16117   ac_status=$?
16118   grep -v '^ *+' conftest.er1 >conftest.err
16119   rm -f conftest.er1
16120   cat conftest.err >&5
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); } >/dev/null && {
16123          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16124          test ! -s conftest.err
16125        }; then
16126   :
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131   # Broken: fails on valid input.
16132 continue
16133 fi
16134
16135 rm -f conftest.err conftest.$ac_ext
16136
16137   # OK, works on sane cases.  Now check whether nonexistent headers
16138   # can be detected and how.
16139   cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h.  */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h.  */
16145 #include <ac_nonexistent.h>
16146 _ACEOF
16147 if { (ac_try="$ac_cpp conftest.$ac_ext"
16148 case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16154   ac_status=$?
16155   grep -v '^ *+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } >/dev/null && {
16160          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16161          test ! -s conftest.err
16162        }; then
16163   # Broken: success on invalid input.
16164 continue
16165 else
16166   echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169   # Passes both tests.
16170 ac_preproc_ok=:
16171 break
16172 fi
16173
16174 rm -f conftest.err conftest.$ac_ext
16175
16176 done
16177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16178 rm -f conftest.err conftest.$ac_ext
16179 if $ac_preproc_ok; then
16180   break
16181 fi
16182
16183     done
16184     ac_cv_prog_CPP=$CPP
16185
16186 fi
16187   CPP=$ac_cv_prog_CPP
16188 else
16189   ac_cv_prog_CPP=$CPP
16190 fi
16191 { echo "$as_me:$LINENO: result: $CPP" >&5
16192 echo "${ECHO_T}$CPP" >&6; }
16193 ac_preproc_ok=false
16194 for ac_c_preproc_warn_flag in '' yes
16195 do
16196   # Use a header file that comes with gcc, so configuring glibc
16197   # with a fresh cross-compiler works.
16198   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16199   # <limits.h> exists even on freestanding compilers.
16200   # On the NeXT, cc -E runs the code through the compiler's parser,
16201   # not just through cpp. "Syntax error" is here to catch this case.
16202   cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h.  */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h.  */
16208 #ifdef __STDC__
16209 # include <limits.h>
16210 #else
16211 # include <assert.h>
16212 #endif
16213                      Syntax error
16214 _ACEOF
16215 if { (ac_try="$ac_cpp conftest.$ac_ext"
16216 case "(($ac_try" in
16217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218   *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16222   ac_status=$?
16223   grep -v '^ *+' conftest.er1 >conftest.err
16224   rm -f conftest.er1
16225   cat conftest.err >&5
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); } >/dev/null && {
16228          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16229          test ! -s conftest.err
16230        }; then
16231   :
16232 else
16233   echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236   # Broken: fails on valid input.
16237 continue
16238 fi
16239
16240 rm -f conftest.err conftest.$ac_ext
16241
16242   # OK, works on sane cases.  Now check whether nonexistent headers
16243   # can be detected and how.
16244   cat >conftest.$ac_ext <<_ACEOF
16245 /* confdefs.h.  */
16246 _ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h.  */
16250 #include <ac_nonexistent.h>
16251 _ACEOF
16252 if { (ac_try="$ac_cpp conftest.$ac_ext"
16253 case "(($ac_try" in
16254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255   *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16259   ac_status=$?
16260   grep -v '^ *+' conftest.er1 >conftest.err
16261   rm -f conftest.er1
16262   cat conftest.err >&5
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } >/dev/null && {
16265          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16266          test ! -s conftest.err
16267        }; then
16268   # Broken: success on invalid input.
16269 continue
16270 else
16271   echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274   # Passes both tests.
16275 ac_preproc_ok=:
16276 break
16277 fi
16278
16279 rm -f conftest.err conftest.$ac_ext
16280
16281 done
16282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16283 rm -f conftest.err conftest.$ac_ext
16284 if $ac_preproc_ok; then
16285   :
16286 else
16287   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16288 See \`config.log' for more details." >&5
16289 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16290 See \`config.log' for more details." >&2;}
16291    { (exit 1); exit 1; }; }
16292 fi
16293
16294 ac_ext=c
16295 ac_cpp='$CPP $CPPFLAGS'
16296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16299
16300
16301 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16302 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16303 if test "${ac_cv_path_GREP+set}" = set; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   # Extract the first word of "grep ggrep" to use in msg output
16307 if test -z "$GREP"; then
16308 set dummy grep ggrep; ac_prog_name=$2
16309 if test "${ac_cv_path_GREP+set}" = set; then
16310   echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312   ac_path_GREP_found=false
16313 # Loop through the user's path and test for each of PROGNAME-LIST
16314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16316 do
16317   IFS=$as_save_IFS
16318   test -z "$as_dir" && as_dir=.
16319   for ac_prog in grep ggrep; do
16320   for ac_exec_ext in '' $ac_executable_extensions; do
16321     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16322     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16323     # Check for GNU ac_path_GREP and select it if it is found.
16324   # Check for GNU $ac_path_GREP
16325 case `"$ac_path_GREP" --version 2>&1` in
16326 *GNU*)
16327   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16328 *)
16329   ac_count=0
16330   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16331   while :
16332   do
16333     cat "conftest.in" "conftest.in" >"conftest.tmp"
16334     mv "conftest.tmp" "conftest.in"
16335     cp "conftest.in" "conftest.nl"
16336     echo 'GREP' >> "conftest.nl"
16337     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16338     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16339     ac_count=`expr $ac_count + 1`
16340     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16341       # Best one so far, save it but keep looking for a better one
16342       ac_cv_path_GREP="$ac_path_GREP"
16343       ac_path_GREP_max=$ac_count
16344     fi
16345     # 10*(2^10) chars as input seems more than enough
16346     test $ac_count -gt 10 && break
16347   done
16348   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16349 esac
16350
16351
16352     $ac_path_GREP_found && break 3
16353   done
16354 done
16355
16356 done
16357 IFS=$as_save_IFS
16358
16359
16360 fi
16361
16362 GREP="$ac_cv_path_GREP"
16363 if test -z "$GREP"; then
16364   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16365 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16366    { (exit 1); exit 1; }; }
16367 fi
16368
16369 else
16370   ac_cv_path_GREP=$GREP
16371 fi
16372
16373
16374 fi
16375 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16376 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16377  GREP="$ac_cv_path_GREP"
16378
16379
16380 { echo "$as_me:$LINENO: checking for egrep" >&5
16381 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16382 if test "${ac_cv_path_EGREP+set}" = set; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16386    then ac_cv_path_EGREP="$GREP -E"
16387    else
16388      # Extract the first word of "egrep" to use in msg output
16389 if test -z "$EGREP"; then
16390 set dummy egrep; ac_prog_name=$2
16391 if test "${ac_cv_path_EGREP+set}" = set; then
16392   echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394   ac_path_EGREP_found=false
16395 # Loop through the user's path and test for each of PROGNAME-LIST
16396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16397 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16398 do
16399   IFS=$as_save_IFS
16400   test -z "$as_dir" && as_dir=.
16401   for ac_prog in egrep; do
16402   for ac_exec_ext in '' $ac_executable_extensions; do
16403     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16404     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16405     # Check for GNU ac_path_EGREP and select it if it is found.
16406   # Check for GNU $ac_path_EGREP
16407 case `"$ac_path_EGREP" --version 2>&1` in
16408 *GNU*)
16409   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16410 *)
16411   ac_count=0
16412   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16413   while :
16414   do
16415     cat "conftest.in" "conftest.in" >"conftest.tmp"
16416     mv "conftest.tmp" "conftest.in"
16417     cp "conftest.in" "conftest.nl"
16418     echo 'EGREP' >> "conftest.nl"
16419     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16420     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16421     ac_count=`expr $ac_count + 1`
16422     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16423       # Best one so far, save it but keep looking for a better one
16424       ac_cv_path_EGREP="$ac_path_EGREP"
16425       ac_path_EGREP_max=$ac_count
16426     fi
16427     # 10*(2^10) chars as input seems more than enough
16428     test $ac_count -gt 10 && break
16429   done
16430   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16431 esac
16432
16433
16434     $ac_path_EGREP_found && break 3
16435   done
16436 done
16437
16438 done
16439 IFS=$as_save_IFS
16440
16441
16442 fi
16443
16444 EGREP="$ac_cv_path_EGREP"
16445 if test -z "$EGREP"; then
16446   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16447 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16448    { (exit 1); exit 1; }; }
16449 fi
16450
16451 else
16452   ac_cv_path_EGREP=$EGREP
16453 fi
16454
16455
16456    fi
16457 fi
16458 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16459 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16460  EGREP="$ac_cv_path_EGREP"
16461
16462
16463 if test $ac_cv_c_compiler_gnu = yes; then
16464     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16465 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16466 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16467   echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469     ac_pattern="Autoconf.*'x'"
16470   cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h.  */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h.  */
16476 #include <sgtty.h>
16477 Autoconf TIOCGETP
16478 _ACEOF
16479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16480   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16481   ac_cv_prog_gcc_traditional=yes
16482 else
16483   ac_cv_prog_gcc_traditional=no
16484 fi
16485 rm -f conftest*
16486
16487
16488   if test $ac_cv_prog_gcc_traditional = no; then
16489     cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495 #include <termio.h>
16496 Autoconf TCGETA
16497 _ACEOF
16498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16500   ac_cv_prog_gcc_traditional=yes
16501 fi
16502 rm -f conftest*
16503
16504   fi
16505 fi
16506 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16507 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16508   if test $ac_cv_prog_gcc_traditional = yes; then
16509     CC="$CC -traditional"
16510   fi
16511 fi
16512
16513
16514 CXXFLAGS=${CXXFLAGS:=}
16515
16516
16517
16518     ac_ext=cpp
16519 ac_cpp='$CXXCPP $CPPFLAGS'
16520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16523 if test -z "$CXX"; then
16524   if test -n "$CCC"; then
16525     CXX=$CCC
16526   else
16527     if test -n "$ac_tool_prefix"; then
16528   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16529   do
16530     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16534 if test "${ac_cv_prog_CXX+set}" = set; then
16535   echo $ECHO_N "(cached) $ECHO_C" >&6
16536 else
16537   if test -n "$CXX"; then
16538   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16539 else
16540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16541 for as_dir in $PATH
16542 do
16543   IFS=$as_save_IFS
16544   test -z "$as_dir" && as_dir=.
16545   for ac_exec_ext in '' $ac_executable_extensions; do
16546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16547     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16549     break 2
16550   fi
16551 done
16552 done
16553 IFS=$as_save_IFS
16554
16555 fi
16556 fi
16557 CXX=$ac_cv_prog_CXX
16558 if test -n "$CXX"; then
16559   { echo "$as_me:$LINENO: result: $CXX" >&5
16560 echo "${ECHO_T}$CXX" >&6; }
16561 else
16562   { echo "$as_me:$LINENO: result: no" >&5
16563 echo "${ECHO_T}no" >&6; }
16564 fi
16565
16566
16567     test -n "$CXX" && break
16568   done
16569 fi
16570 if test -z "$CXX"; then
16571   ac_ct_CXX=$CXX
16572   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16573 do
16574   # Extract the first word of "$ac_prog", so it can be a program name with args.
16575 set dummy $ac_prog; ac_word=$2
16576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16578 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16579   echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581   if test -n "$ac_ct_CXX"; then
16582   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16583 else
16584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16585 for as_dir in $PATH
16586 do
16587   IFS=$as_save_IFS
16588   test -z "$as_dir" && as_dir=.
16589   for ac_exec_ext in '' $ac_executable_extensions; do
16590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16591     ac_cv_prog_ac_ct_CXX="$ac_prog"
16592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16593     break 2
16594   fi
16595 done
16596 done
16597 IFS=$as_save_IFS
16598
16599 fi
16600 fi
16601 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16602 if test -n "$ac_ct_CXX"; then
16603   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16604 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16605 else
16606   { echo "$as_me:$LINENO: result: no" >&5
16607 echo "${ECHO_T}no" >&6; }
16608 fi
16609
16610
16611   test -n "$ac_ct_CXX" && break
16612 done
16613
16614   if test "x$ac_ct_CXX" = x; then
16615     CXX="g++"
16616   else
16617     case $cross_compiling:$ac_tool_warned in
16618 yes:)
16619 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16620 whose name does not start with the host triplet.  If you think this
16621 configuration is useful to you, please write to autoconf@gnu.org." >&5
16622 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16623 whose name does not start with the host triplet.  If you think this
16624 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16625 ac_tool_warned=yes ;;
16626 esac
16627     CXX=$ac_ct_CXX
16628   fi
16629 fi
16630
16631   fi
16632 fi
16633 # Provide some information about the compiler.
16634 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16635 ac_compiler=`set X $ac_compile; echo $2`
16636 { (ac_try="$ac_compiler --version >&5"
16637 case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642   (eval "$ac_compiler --version >&5") 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }
16646 { (ac_try="$ac_compiler -v >&5"
16647 case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_compiler -v >&5") 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }
16656 { (ac_try="$ac_compiler -V >&5"
16657 case "(($ac_try" in
16658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659   *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662   (eval "$ac_compiler -V >&5") 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }
16666
16667 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16668 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16669 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678
16679 int
16680 main ()
16681 {
16682 #ifndef __GNUC__
16683        choke me
16684 #endif
16685
16686   ;
16687   return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_compile") 2>conftest.er1
16698   ac_status=$?
16699   grep -v '^ *+' conftest.er1 >conftest.err
16700   rm -f conftest.er1
16701   cat conftest.err >&5
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } && {
16704          test -z "$ac_cxx_werror_flag" ||
16705          test ! -s conftest.err
16706        } && test -s conftest.$ac_objext; then
16707   ac_compiler_gnu=yes
16708 else
16709   echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712         ac_compiler_gnu=no
16713 fi
16714
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16717
16718 fi
16719 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16720 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16721 GXX=`test $ac_compiler_gnu = yes && echo yes`
16722 ac_test_CXXFLAGS=${CXXFLAGS+set}
16723 ac_save_CXXFLAGS=$CXXFLAGS
16724 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16725 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16726 if test "${ac_cv_prog_cxx_g+set}" = set; then
16727   echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16729   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16730    ac_cxx_werror_flag=yes
16731    ac_cv_prog_cxx_g=no
16732    CXXFLAGS="-g"
16733    cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h.  */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h.  */
16739
16740 int
16741 main ()
16742 {
16743
16744   ;
16745   return 0;
16746 }
16747 _ACEOF
16748 rm -f conftest.$ac_objext
16749 if { (ac_try="$ac_compile"
16750 case "(($ac_try" in
16751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752   *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755   (eval "$ac_compile") 2>conftest.er1
16756   ac_status=$?
16757   grep -v '^ *+' conftest.er1 >conftest.err
16758   rm -f conftest.er1
16759   cat conftest.err >&5
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); } && {
16762          test -z "$ac_cxx_werror_flag" ||
16763          test ! -s conftest.err
16764        } && test -s conftest.$ac_objext; then
16765   ac_cv_prog_cxx_g=yes
16766 else
16767   echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770         CXXFLAGS=""
16771       cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h.  */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h.  */
16777
16778 int
16779 main ()
16780 {
16781
16782   ;
16783   return 0;
16784 }
16785 _ACEOF
16786 rm -f conftest.$ac_objext
16787 if { (ac_try="$ac_compile"
16788 case "(($ac_try" in
16789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790   *) ac_try_echo=$ac_try;;
16791 esac
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793   (eval "$ac_compile") 2>conftest.er1
16794   ac_status=$?
16795   grep -v '^ *+' conftest.er1 >conftest.err
16796   rm -f conftest.er1
16797   cat conftest.err >&5
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); } && {
16800          test -z "$ac_cxx_werror_flag" ||
16801          test ! -s conftest.err
16802        } && test -s conftest.$ac_objext; then
16803   :
16804 else
16805   echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16807
16808         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16809          CXXFLAGS="-g"
16810          cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h.  */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h.  */
16816
16817 int
16818 main ()
16819 {
16820
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_compile") 2>conftest.er1
16833   ac_status=$?
16834   grep -v '^ *+' conftest.er1 >conftest.err
16835   rm -f conftest.er1
16836   cat conftest.err >&5
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } && {
16839          test -z "$ac_cxx_werror_flag" ||
16840          test ! -s conftest.err
16841        } && test -s conftest.$ac_objext; then
16842   ac_cv_prog_cxx_g=yes
16843 else
16844   echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847
16848 fi
16849
16850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 fi
16852
16853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 fi
16855
16856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16858 fi
16859 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16860 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16861 if test "$ac_test_CXXFLAGS" = set; then
16862   CXXFLAGS=$ac_save_CXXFLAGS
16863 elif test $ac_cv_prog_cxx_g = yes; then
16864   if test "$GXX" = yes; then
16865     CXXFLAGS="-g -O2"
16866   else
16867     CXXFLAGS="-g"
16868   fi
16869 else
16870   if test "$GXX" = yes; then
16871     CXXFLAGS="-O2"
16872   else
16873     CXXFLAGS=
16874   fi
16875 fi
16876 ac_ext=c
16877 ac_cpp='$CPP $CPPFLAGS'
16878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16881
16882
16883
16884
16885     ac_ext=cpp
16886 ac_cpp='$CXXCPP $CPPFLAGS'
16887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16890
16891     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16892 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16893 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16894   echo $ECHO_N "(cached) $ECHO_C" >&6
16895 else
16896   cat >conftest.$ac_ext <<_ACEOF
16897 /* confdefs.h.  */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h.  */
16902
16903 int
16904 main ()
16905 {
16906
16907              #ifndef __INTEL_COMPILER
16908                 choke me
16909              #endif
16910
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext
16916 if { (ac_try="$ac_compile"
16917 case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_compile") 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } && {
16929          test -z "$ac_cxx_werror_flag" ||
16930          test ! -s conftest.err
16931        } && test -s conftest.$ac_objext; then
16932   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16938
16939 fi
16940
16941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16942
16943
16944 fi
16945 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16946 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16947     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16948         :; INTELCXX=yes
16949     else
16950         :;
16951     fi
16952     ac_ext=c
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16957
16958
16959
16960
16961         if test "$INTELCXX" = "yes"; then
16962
16963
16964     ac_ext=cpp
16965 ac_cpp='$CXXCPP $CPPFLAGS'
16966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16969
16970     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
16971 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
16972 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16973   echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975   cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981
16982 int
16983 main ()
16984 {
16985
16986              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16987                 choke me
16988              #endif
16989
16990   ;
16991   return 0;
16992 }
16993 _ACEOF
16994 rm -f conftest.$ac_objext
16995 if { (ac_try="$ac_compile"
16996 case "(($ac_try" in
16997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998   *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001   (eval "$ac_compile") 2>conftest.er1
17002   ac_status=$?
17003   grep -v '^ *+' conftest.er1 >conftest.err
17004   rm -f conftest.er1
17005   cat conftest.err >&5
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } && {
17008          test -z "$ac_cxx_werror_flag" ||
17009          test ! -s conftest.err
17010        } && test -s conftest.$ac_objext; then
17011   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17012 else
17013   echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17017
17018 fi
17019
17020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17021
17022
17023 fi
17024 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17025 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17026     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17027         :; INTELCXX8=yes
17028     else
17029         :;
17030     fi
17031     ac_ext=c
17032 ac_cpp='$CPP $CPPFLAGS'
17033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17036
17037
17038
17039
17040
17041     ac_ext=cpp
17042 ac_cpp='$CXXCPP $CPPFLAGS'
17043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17046
17047     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17048 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17049 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h.  */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h.  */
17058
17059 int
17060 main ()
17061 {
17062
17063              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17064                 choke me
17065              #endif
17066
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 rm -f conftest.$ac_objext
17072 if { (ac_try="$ac_compile"
17073 case "(($ac_try" in
17074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075   *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078   (eval "$ac_compile") 2>conftest.er1
17079   ac_status=$?
17080   grep -v '^ *+' conftest.er1 >conftest.err
17081   rm -f conftest.er1
17082   cat conftest.err >&5
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); } && {
17085          test -z "$ac_cxx_werror_flag" ||
17086          test ! -s conftest.err
17087        } && test -s conftest.$ac_objext; then
17088   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17089 else
17090   echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17094
17095 fi
17096
17097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098
17099
17100 fi
17101 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17102 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17103     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17104         :; INTELCXX10=yes
17105     else
17106         :;
17107     fi
17108     ac_ext=c
17109 ac_cpp='$CPP $CPPFLAGS'
17110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17113
17114
17115
17116     fi
17117
17118         if test "x$GCXX" != "xyes"; then
17119         if test "xCXX" = "xC"; then
17120             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17121 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17122 if test "${bakefile_cv_c_exto+set}" = set; then
17123   echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125   cat >conftest.$ac_ext <<_ACEOF
17126 /* confdefs.h.  */
17127 _ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h.  */
17131
17132 int
17133 main ()
17134 {
17135
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext conftest.$ac_ext.o
17141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17142   (eval $ac_compile) 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); }; then
17146   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17147     case $ac_file in
17148         conftest.$ac_ext.o)
17149             bakefile_cv_c_exto="-ext o"
17150             ;;
17151         *)
17152             ;;
17153     esac
17154 done
17155 else
17156   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17157 See \`config.log' for more details." >&5
17158 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17159 See \`config.log' for more details." >&2;}
17160    { (exit 1); exit 1; }; }
17161
17162 fi
17163
17164 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17165
17166 fi
17167 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17168 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17169 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17170     if test "c" = "c"; then
17171         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17172     fi
17173     if test "c" = "cxx"; then
17174         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17175     fi
17176 fi
17177
17178             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17179                 unset ac_cv_prog_cc_g
17180                 ac_test_CFLAGS=${CFLAGS+set}
17181 ac_save_CFLAGS=$CFLAGS
17182 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17183 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17184 if test "${ac_cv_prog_cc_g+set}" = set; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   ac_save_c_werror_flag=$ac_c_werror_flag
17188    ac_c_werror_flag=yes
17189    ac_cv_prog_cc_g=no
17190    CFLAGS="-g"
17191    cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h.  */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h.  */
17197
17198 int
17199 main ()
17200 {
17201
17202   ;
17203   return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext
17207 if { (ac_try="$ac_compile"
17208 case "(($ac_try" in
17209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210   *) ac_try_echo=$ac_try;;
17211 esac
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213   (eval "$ac_compile") 2>conftest.er1
17214   ac_status=$?
17215   grep -v '^ *+' conftest.er1 >conftest.err
17216   rm -f conftest.er1
17217   cat conftest.err >&5
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); } && {
17220          test -z "$ac_c_werror_flag" ||
17221          test ! -s conftest.err
17222        } && test -s conftest.$ac_objext; then
17223   ac_cv_prog_cc_g=yes
17224 else
17225   echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228         CFLAGS=""
17229       cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h.  */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h.  */
17235
17236 int
17237 main ()
17238 {
17239
17240   ;
17241   return 0;
17242 }
17243 _ACEOF
17244 rm -f conftest.$ac_objext
17245 if { (ac_try="$ac_compile"
17246 case "(($ac_try" in
17247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248   *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251   (eval "$ac_compile") 2>conftest.er1
17252   ac_status=$?
17253   grep -v '^ *+' conftest.er1 >conftest.err
17254   rm -f conftest.er1
17255   cat conftest.err >&5
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); } && {
17258          test -z "$ac_c_werror_flag" ||
17259          test ! -s conftest.err
17260        } && test -s conftest.$ac_objext; then
17261   :
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266         ac_c_werror_flag=$ac_save_c_werror_flag
17267          CFLAGS="-g"
17268          cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274
17275 int
17276 main ()
17277 {
17278
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext
17284 if { (ac_try="$ac_compile"
17285 case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_compile") 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } && {
17297          test -z "$ac_c_werror_flag" ||
17298          test ! -s conftest.err
17299        } && test -s conftest.$ac_objext; then
17300   ac_cv_prog_cc_g=yes
17301 else
17302   echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305
17306 fi
17307
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309 fi
17310
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312 fi
17313
17314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17315    ac_c_werror_flag=$ac_save_c_werror_flag
17316 fi
17317 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17318 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17319 if test "$ac_test_CFLAGS" = set; then
17320   CFLAGS=$ac_save_CFLAGS
17321 elif test $ac_cv_prog_cc_g = yes; then
17322   if test "$GCC" = yes; then
17323     CFLAGS="-g -O2"
17324   else
17325     CFLAGS="-g"
17326   fi
17327 else
17328   if test "$GCC" = yes; then
17329     CFLAGS="-O2"
17330   else
17331     CFLAGS=
17332   fi
17333 fi
17334             fi
17335         fi
17336
17337                         case `uname -s` in
17338             AIX*)
17339
17340
17341     ac_ext=cpp
17342 ac_cpp='$CXXCPP $CPPFLAGS'
17343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17346
17347     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17348 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17349 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352   cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h.  */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h.  */
17358
17359 int
17360 main ()
17361 {
17362
17363              #ifndef __xlC__
17364                 choke me
17365              #endif
17366
17367   ;
17368   return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (ac_try="$ac_compile"
17373 case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_compile") 2>conftest.er1
17379   ac_status=$?
17380   grep -v '^ *+' conftest.er1 >conftest.err
17381   rm -f conftest.er1
17382   cat conftest.err >&5
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } && {
17385          test -z "$ac_cxx_werror_flag" ||
17386          test ! -s conftest.err
17387        } && test -s conftest.$ac_objext; then
17388   bakefile_cv_cxx_compiler___xlC__=yes
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393         bakefile_cv_cxx_compiler___xlC__=no
17394
17395 fi
17396
17397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398
17399
17400 fi
17401 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17402 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17403     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17404         :; XLCXX=yes
17405     else
17406         :;
17407     fi
17408     ac_ext=c
17409 ac_cpp='$CPP $CPPFLAGS'
17410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17413
17414
17415
17416                 ;;
17417
17418             Darwin)
17419
17420
17421     ac_ext=cpp
17422 ac_cpp='$CXXCPP $CPPFLAGS'
17423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17426
17427     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17428 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17429 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432   cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438
17439 int
17440 main ()
17441 {
17442
17443              #ifndef __MWERKS__
17444                 choke me
17445              #endif
17446
17447   ;
17448   return 0;
17449 }
17450 _ACEOF
17451 rm -f conftest.$ac_objext
17452 if { (ac_try="$ac_compile"
17453 case "(($ac_try" in
17454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455   *) ac_try_echo=$ac_try;;
17456 esac
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458   (eval "$ac_compile") 2>conftest.er1
17459   ac_status=$?
17460   grep -v '^ *+' conftest.er1 >conftest.err
17461   rm -f conftest.er1
17462   cat conftest.err >&5
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); } && {
17465          test -z "$ac_cxx_werror_flag" ||
17466          test ! -s conftest.err
17467        } && test -s conftest.$ac_objext; then
17468   bakefile_cv_cxx_compiler___MWERKS__=yes
17469 else
17470   echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473         bakefile_cv_cxx_compiler___MWERKS__=no
17474
17475 fi
17476
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478
17479
17480 fi
17481 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17482 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17483     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17484         :; MWCXX=yes
17485     else
17486         :;
17487     fi
17488     ac_ext=c
17489 ac_cpp='$CPP $CPPFLAGS'
17490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17493
17494
17495
17496                 if test "$MWCXX" != "yes"; then
17497
17498
17499     ac_ext=cpp
17500 ac_cpp='$CXXCPP $CPPFLAGS'
17501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17504
17505     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17506 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17507 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510   cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516
17517 int
17518 main ()
17519 {
17520
17521              #ifndef __xlC__
17522                 choke me
17523              #endif
17524
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 rm -f conftest.$ac_objext
17530 if { (ac_try="$ac_compile"
17531 case "(($ac_try" in
17532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533   *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536   (eval "$ac_compile") 2>conftest.er1
17537   ac_status=$?
17538   grep -v '^ *+' conftest.er1 >conftest.err
17539   rm -f conftest.er1
17540   cat conftest.err >&5
17541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); } && {
17543          test -z "$ac_cxx_werror_flag" ||
17544          test ! -s conftest.err
17545        } && test -s conftest.$ac_objext; then
17546   bakefile_cv_cxx_compiler___xlC__=yes
17547 else
17548   echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551         bakefile_cv_cxx_compiler___xlC__=no
17552
17553 fi
17554
17555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17556
17557
17558 fi
17559 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17560 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17561     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17562         :; XLCXX=yes
17563     else
17564         :;
17565     fi
17566     ac_ext=c
17567 ac_cpp='$CPP $CPPFLAGS'
17568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17571
17572
17573
17574                 fi
17575                 ;;
17576
17577             IRIX*)
17578
17579
17580     ac_ext=cpp
17581 ac_cpp='$CXXCPP $CPPFLAGS'
17582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17585
17586     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17587 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17588 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597
17598 int
17599 main ()
17600 {
17601
17602              #ifndef _SGI_COMPILER_VERSION
17603                 choke me
17604              #endif
17605
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext
17611 if { (ac_try="$ac_compile"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_compile") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } && {
17624          test -z "$ac_cxx_werror_flag" ||
17625          test ! -s conftest.err
17626        } && test -s conftest.$ac_objext; then
17627   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17633
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637
17638
17639 fi
17640 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17641 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17642     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17643         :; SGICXX=yes
17644     else
17645         :;
17646     fi
17647     ac_ext=c
17648 ac_cpp='$CPP $CPPFLAGS'
17649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17652
17653
17654
17655                 ;;
17656
17657             Linux*)
17658                                                 if test "$INTELCXX" != "yes"; then
17659
17660
17661     ac_ext=cpp
17662 ac_cpp='$CXXCPP $CPPFLAGS'
17663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17666
17667     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17668 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17669 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17670   echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672   cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678
17679 int
17680 main ()
17681 {
17682
17683              #ifndef __SUNPRO_CC
17684                 choke me
17685              #endif
17686
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext
17692 if { (ac_try="$ac_compile"
17693 case "(($ac_try" in
17694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695   *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698   (eval "$ac_compile") 2>conftest.er1
17699   ac_status=$?
17700   grep -v '^ *+' conftest.er1 >conftest.err
17701   rm -f conftest.er1
17702   cat conftest.err >&5
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); } && {
17705          test -z "$ac_cxx_werror_flag" ||
17706          test ! -s conftest.err
17707        } && test -s conftest.$ac_objext; then
17708   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17709 else
17710   echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17714
17715 fi
17716
17717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718
17719
17720 fi
17721 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17722 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17723     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17724         :; SUNCXX=yes
17725     else
17726         :;
17727     fi
17728     ac_ext=c
17729 ac_cpp='$CPP $CPPFLAGS'
17730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17733
17734
17735
17736                 fi
17737                 ;;
17738
17739             HP-UX*)
17740
17741
17742     ac_ext=cpp
17743 ac_cpp='$CXXCPP $CPPFLAGS'
17744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17747
17748     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17749 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17750 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17751   echo $ECHO_N "(cached) $ECHO_C" >&6
17752 else
17753   cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759
17760 int
17761 main ()
17762 {
17763
17764              #ifndef __HP_aCC
17765                 choke me
17766              #endif
17767
17768   ;
17769   return 0;
17770 }
17771 _ACEOF
17772 rm -f conftest.$ac_objext
17773 if { (ac_try="$ac_compile"
17774 case "(($ac_try" in
17775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776   *) ac_try_echo=$ac_try;;
17777 esac
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779   (eval "$ac_compile") 2>conftest.er1
17780   ac_status=$?
17781   grep -v '^ *+' conftest.er1 >conftest.err
17782   rm -f conftest.er1
17783   cat conftest.err >&5
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); } && {
17786          test -z "$ac_cxx_werror_flag" ||
17787          test ! -s conftest.err
17788        } && test -s conftest.$ac_objext; then
17789   bakefile_cv_cxx_compiler___HP_aCC=yes
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794         bakefile_cv_cxx_compiler___HP_aCC=no
17795
17796 fi
17797
17798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17799
17800
17801 fi
17802 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17803 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17804     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17805         :; HPCXX=yes
17806     else
17807         :;
17808     fi
17809     ac_ext=c
17810 ac_cpp='$CPP $CPPFLAGS'
17811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17814
17815
17816
17817                 ;;
17818
17819             OSF1)
17820
17821
17822     ac_ext=cpp
17823 ac_cpp='$CXXCPP $CPPFLAGS'
17824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17827
17828     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17829 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17830 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17831   echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833   cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h.  */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h.  */
17839
17840 int
17841 main ()
17842 {
17843
17844              #ifndef __DECCXX
17845                 choke me
17846              #endif
17847
17848   ;
17849   return 0;
17850 }
17851 _ACEOF
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856   *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859   (eval "$ac_compile") 2>conftest.er1
17860   ac_status=$?
17861   grep -v '^ *+' conftest.er1 >conftest.err
17862   rm -f conftest.er1
17863   cat conftest.err >&5
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); } && {
17866          test -z "$ac_cxx_werror_flag" ||
17867          test ! -s conftest.err
17868        } && test -s conftest.$ac_objext; then
17869   bakefile_cv_cxx_compiler___DECCXX=yes
17870 else
17871   echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17873
17874         bakefile_cv_cxx_compiler___DECCXX=no
17875
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879
17880
17881 fi
17882 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17883 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17884     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17885         :; COMPAQCXX=yes
17886     else
17887         :;
17888     fi
17889     ac_ext=c
17890 ac_cpp='$CPP $CPPFLAGS'
17891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17894
17895
17896
17897                 ;;
17898
17899             SunOS)
17900
17901
17902     ac_ext=cpp
17903 ac_cpp='$CXXCPP $CPPFLAGS'
17904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17907
17908     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17909 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17910 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17911   echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913   cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h.  */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h.  */
17919
17920 int
17921 main ()
17922 {
17923
17924              #ifndef __SUNPRO_CC
17925                 choke me
17926              #endif
17927
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext
17933 if { (ac_try="$ac_compile"
17934 case "(($ac_try" in
17935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936   *) ac_try_echo=$ac_try;;
17937 esac
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939   (eval "$ac_compile") 2>conftest.er1
17940   ac_status=$?
17941   grep -v '^ *+' conftest.er1 >conftest.err
17942   rm -f conftest.er1
17943   cat conftest.err >&5
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); } && {
17946          test -z "$ac_cxx_werror_flag" ||
17947          test ! -s conftest.err
17948        } && test -s conftest.$ac_objext; then
17949   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17950 else
17951   echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17953
17954         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17955
17956 fi
17957
17958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17959
17960
17961 fi
17962 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17963 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17964     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17965         :; SUNCXX=yes
17966     else
17967         :;
17968     fi
17969     ac_ext=c
17970 ac_cpp='$CPP $CPPFLAGS'
17971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
17975
17976
17977                 ;;
17978         esac
17979     fi
17980
17981
17982
17983 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17984     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17985 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17986    { (exit 1); exit 1; }; }
17987 fi
17988
17989 if test "x$SUNCXX" != xyes; then
17990     if test -n "$ac_tool_prefix"; then
17991   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17992 set dummy ${ac_tool_prefix}ar; ac_word=$2
17993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17995 if test "${ac_cv_prog_AR+set}" = set; then
17996   echo $ECHO_N "(cached) $ECHO_C" >&6
17997 else
17998   if test -n "$AR"; then
17999   ac_cv_prog_AR="$AR" # Let the user override the test.
18000 else
18001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18002 for as_dir in $PATH
18003 do
18004   IFS=$as_save_IFS
18005   test -z "$as_dir" && as_dir=.
18006   for ac_exec_ext in '' $ac_executable_extensions; do
18007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18008     ac_cv_prog_AR="${ac_tool_prefix}ar"
18009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18010     break 2
18011   fi
18012 done
18013 done
18014 IFS=$as_save_IFS
18015
18016 fi
18017 fi
18018 AR=$ac_cv_prog_AR
18019 if test -n "$AR"; then
18020   { echo "$as_me:$LINENO: result: $AR" >&5
18021 echo "${ECHO_T}$AR" >&6; }
18022 else
18023   { echo "$as_me:$LINENO: result: no" >&5
18024 echo "${ECHO_T}no" >&6; }
18025 fi
18026
18027
18028 fi
18029 if test -z "$ac_cv_prog_AR"; then
18030   ac_ct_AR=$AR
18031   # Extract the first word of "ar", so it can be a program name with args.
18032 set dummy ar; ac_word=$2
18033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18035 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038   if test -n "$ac_ct_AR"; then
18039   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18040 else
18041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18042 for as_dir in $PATH
18043 do
18044   IFS=$as_save_IFS
18045   test -z "$as_dir" && as_dir=.
18046   for ac_exec_ext in '' $ac_executable_extensions; do
18047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18048     ac_cv_prog_ac_ct_AR="ar"
18049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18050     break 2
18051   fi
18052 done
18053 done
18054 IFS=$as_save_IFS
18055
18056 fi
18057 fi
18058 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18059 if test -n "$ac_ct_AR"; then
18060   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18061 echo "${ECHO_T}$ac_ct_AR" >&6; }
18062 else
18063   { echo "$as_me:$LINENO: result: no" >&5
18064 echo "${ECHO_T}no" >&6; }
18065 fi
18066
18067   if test "x$ac_ct_AR" = x; then
18068     AR=""
18069   else
18070     case $cross_compiling:$ac_tool_warned in
18071 yes:)
18072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18073 whose name does not start with the host triplet.  If you think this
18074 configuration is useful to you, please write to autoconf@gnu.org." >&5
18075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18076 whose name does not start with the host triplet.  If you think this
18077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18078 ac_tool_warned=yes ;;
18079 esac
18080     AR=$ac_ct_AR
18081   fi
18082 else
18083   AR="$ac_cv_prog_AR"
18084 fi
18085
18086     if test "x$AR" = "x" ; then
18087         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18088 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18089    { (exit 1); exit 1; }; }
18090     fi
18091 fi
18092
18093
18094 if test "$wxUSE_MAC" = 1; then
18095
18096 retest_macosx_linking=no
18097
18098     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18099                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18100             # Implicitly turn on the new --with-macosx-sdk using the default
18101             # SDK which provides the behavior this option has always had.
18102             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18103                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18104 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18105                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18106 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18107                 wxUSE_MACOSX_SDK=yes
18108             fi
18109         else
18110             # Complain to user if he specified an argument to --enable-universal_binary
18111             # and also 1) specified --with-macosx-sdk using the default (yes) or
18112             # 2) specified --with-macosx-sdk using a path or 3) specified
18113             # --without-macosx-sdk (no).
18114             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18115                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18116 See \`config.log' for more details." >&5
18117 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18118 See \`config.log' for more details." >&2;}
18119    { (exit 1); exit 1; }; }
18120             else
18121                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18122                 # special-case the empty string because the below test simply
18123                 # converts "no" to the empty string anyway.
18124                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18125                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18126 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18127             fi
18128         fi
18129                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18130         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18131         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18132         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18133         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18134         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18135                                                                                                                 retest_macosx_linking=yes
18136
18137                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18138 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18139         bk_use_pch=no
18140     fi
18141
18142 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18143     wxUSE_MACOSX_SDK=
18144 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18145     # TODO: Search for most recent SDK and use it.
18146     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18147 fi
18148
18149
18150 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18151     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18152 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18153     if ! test -d "$wxUSE_MACOSX_SDK"; then
18154         { { echo "$as_me:$LINENO: error: not found
18155 See \`config.log' for more details." >&5
18156 echo "$as_me: error: not found
18157 See \`config.log' for more details." >&2;}
18158    { (exit 1); exit 1; }; }
18159     else
18160         { echo "$as_me:$LINENO: result: exists" >&5
18161 echo "${ECHO_T}exists" >&6; }
18162     fi
18163     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18164     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18165     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18166     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18167     retest_macosx_linking=yes
18168             fi
18169
18170 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18171     wxUSE_MACOSX_VERSION_MIN=
18172 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18173     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18174         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18175 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18176
18177         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/'`
18178
18179         # If that failed, try again with the new key
18180         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18181
18182             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/'`
18183
18184         fi
18185
18186         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18187             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18188             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18189 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18190         else
18191             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18192 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18193             wxUSE_MACOSX_VERSION_MIN=
18194         fi
18195     else
18196         wxUSE_MACOSX_VERSION_MIN=
18197     fi
18198 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18199     OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
18200     if test "$wxUSE_OSX_CARBON" = 1 -o "x$OSX_VERSION" = "x10.4"; then
18201         # otherwise configure stops on leopard for universal_binary
18202         wxUSE_MACOSX_VERSION_MIN=10.4
18203     else
18204         # for OS X Cocoa, use 10.5 so we can get 64-bit compile on Snow Leopard
18205         wxUSE_MACOSX_VERSION_MIN=10.5
18206     fi
18207 fi
18208
18209 NEEDS_GCC40="no"
18210 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
18211     NEEDS_GCC40="yes"
18212 fi
18213
18214 if test "$wxUSE_OSX_CARBON" = 1; then
18215     NEEDS_GCC40="yes"
18216 fi
18217
18218 if test "x$NEEDS_GCC40" == "xyes"; then
18219     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
18220     # and wants 10.4 compatible code, then 'downgrade' to 4.0
18221     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
18222     if test "x$CC" = "xgcc"; then
18223         CCVERSION=`$CC --version | grep 4.[2-9].`
18224         if test "x$CCVERSION" != "x"; then
18225             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
18226             CC="/usr/bin/gcc-4.0"
18227         fi
18228     fi
18229
18230     if test "x$CXX" = "xg++"; then
18231         CCVERSION=`$CXX --version | grep 4.[2-9].`
18232         if test "x$CCVERSION" != "x"; then
18233             CXX="/usr/bin/g++-4.0"
18234         fi
18235     fi
18236 fi
18237
18238 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18239     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18240     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18241     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18242     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18243     retest_macosx_linking=yes
18244 fi
18245
18246 if test "x$retest_macosx_linking" = "xyes"; then
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     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18254 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18255     cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h.  */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h.  */
18261
18262 int
18263 main ()
18264 {
18265
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_link") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } && {
18284          test -z "$ac_c_werror_flag" ||
18285          test ! -s conftest.err
18286        } && test -s conftest$ac_exeext &&
18287        $as_test_x conftest$ac_exeext; then
18288   { echo "$as_me:$LINENO: result: yes" >&5
18289 echo "${ECHO_T}yes" >&6; }
18290 else
18291   echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18295 See \`config.log' for more details." >&5
18296 echo "$as_me: error: no.  Try a different SDK
18297 See \`config.log' for more details." >&2;}
18298    { (exit 1); exit 1; }; }; exit 1
18299 fi
18300
18301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18302       conftest$ac_exeext conftest.$ac_ext
18303     ac_ext=c
18304 ac_cpp='$CPP $CPPFLAGS'
18305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18308
18309
18310     ac_ext=cpp
18311 ac_cpp='$CXXCPP $CPPFLAGS'
18312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18315
18316     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18317 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18318     cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h.  */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h.  */
18324
18325 int
18326 main ()
18327 {
18328
18329   ;
18330   return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337   *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340   (eval "$ac_link") 2>conftest.er1
18341   ac_status=$?
18342   grep -v '^ *+' conftest.er1 >conftest.err
18343   rm -f conftest.er1
18344   cat conftest.err >&5
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } && {
18347          test -z "$ac_cxx_werror_flag" ||
18348          test ! -s conftest.err
18349        } && test -s conftest$ac_exeext &&
18350        $as_test_x conftest$ac_exeext; then
18351   { echo "$as_me:$LINENO: result: yes" >&5
18352 echo "${ECHO_T}yes" >&6; }
18353 else
18354   echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18358 See \`config.log' for more details." >&5
18359 echo "$as_me: error: no.  Try a different SDK
18360 See \`config.log' for more details." >&2;}
18361    { (exit 1); exit 1; }; }; exit 1
18362 fi
18363
18364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18365       conftest$ac_exeext conftest.$ac_ext
18366     ac_ext=c
18367 ac_cpp='$CPP $CPPFLAGS'
18368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18371
18372 fi
18373
18374 fi
18375 case "${host}" in
18376
18377                 *-*-darwin* )
18378         INSTALL_PROGRAM="cp -fp"
18379         INSTALL_DATA="cp -fp"
18380         ;;
18381     *)
18382         ;;
18383 esac
18384
18385
18386 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18387     CXXFLAGS="-qunique $CXXFLAGS"
18388 fi
18389
18390 case "${host}" in
18391   powerpc-*-darwin* )
18392     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18393 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18394     cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h.  */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h.  */
18400
18401 int
18402 main ()
18403 {
18404 #ifndef __POWERPC__
18405         choke me for lack of PowerPC
18406 #endif
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         cat >>confdefs.h <<\_ACEOF
18438 #define __POWERPC__ 1
18439 _ACEOF
18440
18441
18442 fi
18443
18444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18445   ;;
18446 esac
18447
18448 case "${host}" in
18449   *-*-darwin* )
18450     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18451 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18452     cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h.  */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h.  */
18458 #include <CoreFoundation/CFBase.h>
18459
18460 int
18461 main ()
18462 {
18463
18464   ;
18465   return 0;
18466 }
18467 _ACEOF
18468 rm -f conftest.$ac_objext
18469 if { (ac_try="$ac_compile"
18470 case "(($ac_try" in
18471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472   *) ac_try_echo=$ac_try;;
18473 esac
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475   (eval "$ac_compile") 2>conftest.er1
18476   ac_status=$?
18477   grep -v '^ *+' conftest.er1 >conftest.err
18478   rm -f conftest.er1
18479   cat conftest.err >&5
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); } && {
18482          test -z "$ac_c_werror_flag" ||
18483          test ! -s conftest.err
18484        } && test -s conftest.$ac_objext; then
18485   { echo "$as_me:$LINENO: result: yes" >&5
18486 echo "${ECHO_T}yes" >&6; }
18487 else
18488   echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491         { echo "$as_me:$LINENO: result: no" >&5
18492 echo "${ECHO_T}no" >&6; }
18493         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18494 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18495         cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h.  */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h.  */
18501 #define __CF_USE_FRAMEWORK_INCLUDES__
18502 #include <CoreFoundation/CFBase.h>
18503
18504 int
18505 main ()
18506 {
18507
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext
18513 if { (ac_try="$ac_compile"
18514 case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_compile") 2>conftest.er1
18520   ac_status=$?
18521   grep -v '^ *+' conftest.er1 >conftest.err
18522   rm -f conftest.er1
18523   cat conftest.err >&5
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); } && {
18526          test -z "$ac_c_werror_flag" ||
18527          test ! -s conftest.err
18528        } && test -s conftest.$ac_objext; then
18529   { echo "$as_me:$LINENO: result: yes" >&5
18530 echo "${ECHO_T}yes" >&6; }
18531                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18532 else
18533   echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18537 See \`config.log' for more details." >&5
18538 echo "$as_me: error: no.  CoreFoundation not available.
18539 See \`config.log' for more details." >&2;}
18540    { (exit 1); exit 1; }; }
18541
18542 fi
18543
18544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18545
18546
18547 fi
18548
18549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18550   ;;
18551 esac
18552
18553 wants_win32=0
18554 doesnt_want_win32=0
18555 case "${host}" in
18556   *-*-cygwin*)
18557       if test "$wxUSE_MSW" = 1 ; then
18558         wants_win32=1
18559       else
18560                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18561 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18562 if test "${wx_cv_nocygwin+set}" = set; then
18563   echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565
18566                 cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h.  */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h.  */
18572
18573 int
18574 main ()
18575 {
18576
18577                         #ifdef __MINGW32__
18578                             choke me
18579                         #endif
18580
18581   ;
18582   return 0;
18583 }
18584 _ACEOF
18585 rm -f conftest.$ac_objext
18586 if { (ac_try="$ac_compile"
18587 case "(($ac_try" in
18588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589   *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592   (eval "$ac_compile") 2>conftest.er1
18593   ac_status=$?
18594   grep -v '^ *+' conftest.er1 >conftest.err
18595   rm -f conftest.er1
18596   cat conftest.err >&5
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); } && {
18599          test -z "$ac_c_werror_flag" ||
18600          test ! -s conftest.err
18601        } && test -s conftest.$ac_objext; then
18602   wx_cv_nocygwin=no
18603 else
18604   echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18606
18607         wx_cv_nocygwin=yes
18608
18609 fi
18610
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18612
18613
18614 fi
18615 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18616 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18617
18618         if test "$wx_cv_nocygwin" = "yes"; then
18619             wants_win32=1
18620         else
18621             doesnt_want_win32=1
18622         fi
18623       fi
18624       if test "$wants_win32" = 1 ; then
18625         BAKEFILE_FORCE_PLATFORM=win32
18626       fi
18627   ;;
18628   *-*-mingw*)
18629       wants_win32=1
18630   ;;
18631 esac
18632
18633 if test "$wxUSE_WINE" = "yes"; then
18634     wants_win32=1
18635     LDFLAGS_GUI="-mwindows"
18636 fi
18637
18638 if test "$wants_win32" = 1 ; then
18639     USE_UNIX=0
18640     USE_WIN32=1
18641     cat >>confdefs.h <<\_ACEOF
18642 #define __WIN32__ 1
18643 _ACEOF
18644
18645     cat >>confdefs.h <<\_ACEOF
18646 #define __WIN95__ 1
18647 _ACEOF
18648
18649     cat >>confdefs.h <<\_ACEOF
18650 #define __WINDOWS__ 1
18651 _ACEOF
18652
18653     cat >>confdefs.h <<\_ACEOF
18654 #define __GNUWIN32__ 1
18655 _ACEOF
18656
18657     cat >>confdefs.h <<\_ACEOF
18658 #define STRICT 1
18659 _ACEOF
18660
18661 fi
18662 if test "$doesnt_want_win32" = 1 ; then
18663     USE_UNIX=1
18664     USE_WIN32=0
18665 fi
18666
18667 if test "$USE_UNIX" = 1 ; then
18668     wxUSE_UNIX=yes
18669     cat >>confdefs.h <<\_ACEOF
18670 #define __UNIX__ 1
18671 _ACEOF
18672
18673 fi
18674
18675 case "${host}" in
18676   *-pc-os2_emx | *-pc-os2-emx )
18677                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18678                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18679 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18680 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18681   echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683   ac_check_lib_save_LIBS=$LIBS
18684 LIBS="-lcExt  $LIBS"
18685 cat >conftest.$ac_ext <<_ACEOF
18686 /* confdefs.h.  */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h.  */
18691
18692 /* Override any GCC internal prototype to avoid an error.
18693    Use char because int might match the return type of a GCC
18694    builtin and then its argument prototype would still apply.  */
18695 #ifdef __cplusplus
18696 extern "C"
18697 #endif
18698 char drand48 ();
18699 int
18700 main ()
18701 {
18702 return drand48 ();
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711   *) ac_try_echo=$ac_try;;
18712 esac
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714   (eval "$ac_link") 2>conftest.er1
18715   ac_status=$?
18716   grep -v '^ *+' conftest.er1 >conftest.err
18717   rm -f conftest.er1
18718   cat conftest.err >&5
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } && {
18721          test -z "$ac_c_werror_flag" ||
18722          test ! -s conftest.err
18723        } && test -s conftest$ac_exeext &&
18724        $as_test_x conftest$ac_exeext; then
18725   ac_cv_lib_cExt_drand48=yes
18726 else
18727   echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730         ac_cv_lib_cExt_drand48=no
18731 fi
18732
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734       conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18736 fi
18737 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18738 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18739 if test $ac_cv_lib_cExt_drand48 = yes; then
18740   LIBS="$LIBS -lcExt"
18741 fi
18742
18743       else
18744                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18745       fi
18746                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18747 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18748 if test "${wx_cv_gccversion+set}" = set; then
18749   echo $ECHO_N "(cached) $ECHO_C" >&6
18750 else
18751
18752           if test "$cross_compiling" = yes; then
18753                 wx_cv_gccversion="EMX2"
18754
18755 else
18756   cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762
18763                   #include <stdio.h>
18764
18765                   int main()
18766                   {
18767                       FILE *f=fopen("conftestval", "w");
18768                       if (!f) exit(1);
18769                       fprintf(f,
18770                   #if (__GNUC__ < 3)
18771                               "EMX2"
18772                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18773                               "EMX3"
18774                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18775                               "Innotek5"
18776                   #else
18777                               "Innotek6"
18778                   #endif
18779                       );
18780                       exit(0);
18781                   }
18782
18783 _ACEOF
18784 rm -f conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791   (eval "$ac_link") 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18795   { (case "(($ac_try" in
18796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797   *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800   (eval "$ac_try") 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; }; then
18804   wx_cv_gccversion=`cat conftestval`
18805 else
18806   echo "$as_me: program exited with status $ac_status" >&5
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18809
18810 ( exit $ac_status )
18811 wx_cv_gccversion="EMX2"
18812 fi
18813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18814 fi
18815
18816
18817
18818 fi
18819 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18820 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18821       if test "$wx_cv_gccversion" = "EMX2"; then
18822           LIBS="$LIBS -lstdcpp"
18823           LDFLAGS="$LDFLAGS -Zsysv-signals"
18824       else
18825           if test "$wx_cv_gccversion" = "EMX3"; then
18826               LIBS="$LIBS -lstdcxx -lgcc"
18827               LDFLAGS="$LDFLAGS -Zsysv-signals"
18828           else
18829               LIBS="$LIBS -lstdc++"
18830           fi
18831       fi
18832       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18833         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18834 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18835         wxUSE_OMF=yes
18836         enable_omf=yes
18837       fi
18838         ;;
18839   *)
18840
18841       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18842 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18843 if test "${ac_cv_string_strcasecmp+set}" = set; then
18844   echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846
18847           cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853
18854               #include <string.h>
18855
18856 int
18857 main ()
18858 {
18859
18860                   strcasecmp("foo", "bar");
18861
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 rm -f conftest.$ac_objext conftest$ac_exeext
18867 if { (ac_try="$ac_link"
18868 case "(($ac_try" in
18869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870   *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873   (eval "$ac_link") 2>conftest.er1
18874   ac_status=$?
18875   grep -v '^ *+' conftest.er1 >conftest.err
18876   rm -f conftest.er1
18877   cat conftest.err >&5
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); } && {
18880          test -z "$ac_c_werror_flag" ||
18881          test ! -s conftest.err
18882        } && test -s conftest$ac_exeext &&
18883        $as_test_x conftest$ac_exeext; then
18884   ac_cv_string_strcasecmp=yes
18885 else
18886   echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18888
18889         ac_cv_string_strcasecmp=no
18890
18891 fi
18892
18893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18894       conftest$ac_exeext conftest.$ac_ext
18895
18896 fi
18897 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18898 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18899
18900       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18901           cat >>confdefs.h <<\_ACEOF
18902 #define HAVE_STRCASECMP_IN_STRING_H 1
18903 _ACEOF
18904
18905       else
18906           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18907 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18908 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18909   echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911
18912               cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918
18919                   #include <strings.h>
18920
18921 int
18922 main ()
18923 {
18924
18925                       strcasecmp("foo", "bar");
18926
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935   *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938   (eval "$ac_link") 2>conftest.er1
18939   ac_status=$?
18940   grep -v '^ *+' conftest.er1 >conftest.err
18941   rm -f conftest.er1
18942   cat conftest.err >&5
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); } && {
18945          test -z "$ac_c_werror_flag" ||
18946          test ! -s conftest.err
18947        } && test -s conftest$ac_exeext &&
18948        $as_test_x conftest$ac_exeext; then
18949   ac_cv_strings_strcasecmp=yes
18950 else
18951   echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18953
18954         ac_cv_strings_strcasecmp=no
18955
18956 fi
18957
18958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18959       conftest$ac_exeext conftest.$ac_ext
18960
18961 fi
18962 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18963 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18964
18965           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18966               cat >>confdefs.h <<\_ACEOF
18967 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18968 _ACEOF
18969
18970           else
18971               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18972 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18973    { (exit 1); exit 1; }; }
18974           fi
18975       fi
18976
18977         ;;
18978 esac
18979
18980
18981 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18983 if test "${ac_cv_header_stdc+set}" = set; then
18984   echo $ECHO_N "(cached) $ECHO_C" >&6
18985 else
18986   cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 #include <stdlib.h>
18993 #include <stdarg.h>
18994 #include <string.h>
18995 #include <float.h>
18996
18997 int
18998 main ()
18999 {
19000
19001   ;
19002   return 0;
19003 }
19004 _ACEOF
19005 rm -f conftest.$ac_objext
19006 if { (ac_try="$ac_compile"
19007 case "(($ac_try" in
19008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009   *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012   (eval "$ac_compile") 2>conftest.er1
19013   ac_status=$?
19014   grep -v '^ *+' conftest.er1 >conftest.err
19015   rm -f conftest.er1
19016   cat conftest.err >&5
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); } && {
19019          test -z "$ac_c_werror_flag" ||
19020          test ! -s conftest.err
19021        } && test -s conftest.$ac_objext; then
19022   ac_cv_header_stdc=yes
19023 else
19024   echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19026
19027         ac_cv_header_stdc=no
19028 fi
19029
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19031
19032 if test $ac_cv_header_stdc = yes; then
19033   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19034   cat >conftest.$ac_ext <<_ACEOF
19035 /* confdefs.h.  */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h.  */
19040 #include <string.h>
19041
19042 _ACEOF
19043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19044   $EGREP "memchr" >/dev/null 2>&1; then
19045   :
19046 else
19047   ac_cv_header_stdc=no
19048 fi
19049 rm -f conftest*
19050
19051 fi
19052
19053 if test $ac_cv_header_stdc = yes; then
19054   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19055   cat >conftest.$ac_ext <<_ACEOF
19056 /* confdefs.h.  */
19057 _ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h.  */
19061 #include <stdlib.h>
19062
19063 _ACEOF
19064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19065   $EGREP "free" >/dev/null 2>&1; then
19066   :
19067 else
19068   ac_cv_header_stdc=no
19069 fi
19070 rm -f conftest*
19071
19072 fi
19073
19074 if test $ac_cv_header_stdc = yes; then
19075   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19076   if test "$cross_compiling" = yes; then
19077   :
19078 else
19079   cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #include <ctype.h>
19086 #include <stdlib.h>
19087 #if ((' ' & 0x0FF) == 0x020)
19088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19090 #else
19091 # define ISLOWER(c) \
19092                    (('a' <= (c) && (c) <= 'i') \
19093                      || ('j' <= (c) && (c) <= 'r') \
19094                      || ('s' <= (c) && (c) <= 'z'))
19095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19096 #endif
19097
19098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19099 int
19100 main ()
19101 {
19102   int i;
19103   for (i = 0; i < 256; i++)
19104     if (XOR (islower (i), ISLOWER (i))
19105         || toupper (i) != TOUPPER (i))
19106       return 2;
19107   return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest$ac_exeext
19111 if { (ac_try="$ac_link"
19112 case "(($ac_try" in
19113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114   *) ac_try_echo=$ac_try;;
19115 esac
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117   (eval "$ac_link") 2>&5
19118   ac_status=$?
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19121   { (case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126   (eval "$ac_try") 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; }; then
19130   :
19131 else
19132   echo "$as_me: program exited with status $ac_status" >&5
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136 ( exit $ac_status )
19137 ac_cv_header_stdc=no
19138 fi
19139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19140 fi
19141
19142
19143 fi
19144 fi
19145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19147 if test $ac_cv_header_stdc = yes; then
19148
19149 cat >>confdefs.h <<\_ACEOF
19150 #define STDC_HEADERS 1
19151 _ACEOF
19152
19153 fi
19154
19155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19166                   inttypes.h stdint.h unistd.h
19167 do
19168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19172   echo $ECHO_N "(cached) $ECHO_C" >&6
19173 else
19174   cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h.  */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h.  */
19180 $ac_includes_default
19181
19182 #include <$ac_header>
19183 _ACEOF
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188   *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191   (eval "$ac_compile") 2>conftest.er1
19192   ac_status=$?
19193   grep -v '^ *+' conftest.er1 >conftest.err
19194   rm -f conftest.er1
19195   cat conftest.err >&5
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); } && {
19198          test -z "$ac_c_werror_flag" ||
19199          test ! -s conftest.err
19200        } && test -s conftest.$ac_objext; then
19201   eval "$as_ac_Header=yes"
19202 else
19203   echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206         eval "$as_ac_Header=no"
19207 fi
19208
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 fi
19211 ac_res=`eval echo '${'$as_ac_Header'}'`
19212                { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19215   cat >>confdefs.h <<_ACEOF
19216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19217 _ACEOF
19218
19219 fi
19220
19221 done
19222
19223
19224
19225
19226 for ac_header in langinfo.h wchar.h
19227 do
19228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h.  */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h.  */
19240 $ac_includes_default
19241
19242 #include <$ac_header>
19243 _ACEOF
19244 rm -f conftest.$ac_objext
19245 if { (ac_try="$ac_compile"
19246 case "(($ac_try" in
19247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248   *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251   (eval "$ac_compile") 2>conftest.er1
19252   ac_status=$?
19253   grep -v '^ *+' conftest.er1 >conftest.err
19254   rm -f conftest.er1
19255   cat conftest.err >&5
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); } && {
19258          test -z "$ac_c_werror_flag" ||
19259          test ! -s conftest.err
19260        } && test -s conftest.$ac_objext; then
19261   eval "$as_ac_Header=yes"
19262 else
19263   echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266         eval "$as_ac_Header=no"
19267 fi
19268
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 fi
19271 ac_res=`eval echo '${'$as_ac_Header'}'`
19272                { echo "$as_me:$LINENO: result: $ac_res" >&5
19273 echo "${ECHO_T}$ac_res" >&6; }
19274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19275   cat >>confdefs.h <<_ACEOF
19276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19277 _ACEOF
19278
19279 fi
19280
19281 done
19282
19283
19284 if test "$ac_cv_header_wchar_h" != "yes"; then
19285
19286 for ac_header in wcstr.h
19287 do
19288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19292   echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294   cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300 $ac_includes_default
19301
19302 #include <$ac_header>
19303 _ACEOF
19304 rm -f conftest.$ac_objext
19305 if { (ac_try="$ac_compile"
19306 case "(($ac_try" in
19307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308   *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311   (eval "$ac_compile") 2>conftest.er1
19312   ac_status=$?
19313   grep -v '^ *+' conftest.er1 >conftest.err
19314   rm -f conftest.er1
19315   cat conftest.err >&5
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); } && {
19318          test -z "$ac_c_werror_flag" ||
19319          test ! -s conftest.err
19320        } && test -s conftest.$ac_objext; then
19321   eval "$as_ac_Header=yes"
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326         eval "$as_ac_Header=no"
19327 fi
19328
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330 fi
19331 ac_res=`eval echo '${'$as_ac_Header'}'`
19332                { echo "$as_me:$LINENO: result: $ac_res" >&5
19333 echo "${ECHO_T}$ac_res" >&6; }
19334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19335   cat >>confdefs.h <<_ACEOF
19336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19337 _ACEOF
19338
19339 fi
19340
19341 done
19342
19343 fi
19344
19345 case "${host}" in
19346   *-pc-os2_emx | *-pc-os2-emx )
19347                   if test $ac_cv_header_langinfo_h = "yes" \
19348                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19349                      -o "$wx_cv_gccversion" = "EMX3" \
19350                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19351           LIBS="$LIBS -lintl"
19352       fi
19353   ;;
19354 esac
19355
19356 if test "$USE_UNIX" = 1 ; then
19357
19358 for ac_header in sys/select.h
19359 do
19360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19364   echo $ECHO_N "(cached) $ECHO_C" >&6
19365 else
19366   cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h.  */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h.  */
19372 $ac_includes_default
19373
19374 #include <$ac_header>
19375 _ACEOF
19376 rm -f conftest.$ac_objext
19377 if { (ac_try="$ac_compile"
19378 case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_compile") 2>conftest.er1
19384   ac_status=$?
19385   grep -v '^ *+' conftest.er1 >conftest.err
19386   rm -f conftest.er1
19387   cat conftest.err >&5
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); } && {
19390          test -z "$ac_c_werror_flag" ||
19391          test ! -s conftest.err
19392        } && test -s conftest.$ac_objext; then
19393   eval "$as_ac_Header=yes"
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398         eval "$as_ac_Header=no"
19399 fi
19400
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 fi
19403 ac_res=`eval echo '${'$as_ac_Header'}'`
19404                { echo "$as_me:$LINENO: result: $ac_res" >&5
19405 echo "${ECHO_T}$ac_res" >&6; }
19406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19407   cat >>confdefs.h <<_ACEOF
19408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19409 _ACEOF
19410
19411 fi
19412
19413 done
19414
19415 fi
19416
19417
19418 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19419 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19420 if test "${ac_cv_c_const+set}" = set; then
19421   echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423   cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19429
19430 int
19431 main ()
19432 {
19433 /* FIXME: Include the comments suggested by Paul. */
19434 #ifndef __cplusplus
19435   /* Ultrix mips cc rejects this.  */
19436   typedef int charset[2];
19437   const charset cs;
19438   /* SunOS 4.1.1 cc rejects this.  */
19439   char const *const *pcpcc;
19440   char **ppc;
19441   /* NEC SVR4.0.2 mips cc rejects this.  */
19442   struct point {int x, y;};
19443   static struct point const zero = {0,0};
19444   /* AIX XL C 1.02.0.0 rejects this.
19445      It does not let you subtract one const X* pointer from another in
19446      an arm of an if-expression whose if-part is not a constant
19447      expression */
19448   const char *g = "string";
19449   pcpcc = &g + (g ? g-g : 0);
19450   /* HPUX 7.0 cc rejects these. */
19451   ++pcpcc;
19452   ppc = (char**) pcpcc;
19453   pcpcc = (char const *const *) ppc;
19454   { /* SCO 3.2v4 cc rejects this.  */
19455     char *t;
19456     char const *s = 0 ? (char *) 0 : (char const *) 0;
19457
19458     *t++ = 0;
19459     if (s) return 0;
19460   }
19461   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19462     int x[] = {25, 17};
19463     const int *foo = &x[0];
19464     ++foo;
19465   }
19466   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19467     typedef const int *iptr;
19468     iptr p = 0;
19469     ++p;
19470   }
19471   { /* AIX XL C 1.02.0.0 rejects this saying
19472        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19473     struct s { int j; const int *ap[3]; };
19474     struct s *b; b->j = 5;
19475   }
19476   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19477     const int foo = 10;
19478     if (!foo) return 0;
19479   }
19480   return !cs[0] && !zero.x;
19481 #endif
19482
19483   ;
19484   return 0;
19485 }
19486 _ACEOF
19487 rm -f conftest.$ac_objext
19488 if { (ac_try="$ac_compile"
19489 case "(($ac_try" in
19490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491   *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494   (eval "$ac_compile") 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } && {
19501          test -z "$ac_c_werror_flag" ||
19502          test ! -s conftest.err
19503        } && test -s conftest.$ac_objext; then
19504   ac_cv_c_const=yes
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509         ac_cv_c_const=no
19510 fi
19511
19512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 fi
19514 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19515 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19516 if test $ac_cv_c_const = no; then
19517
19518 cat >>confdefs.h <<\_ACEOF
19519 #define const
19520 _ACEOF
19521
19522 fi
19523
19524 { echo "$as_me:$LINENO: checking for inline" >&5
19525 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19526 if test "${ac_cv_c_inline+set}" = set; then
19527   echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529   ac_cv_c_inline=no
19530 for ac_kw in inline __inline__ __inline; do
19531   cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h.  */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h.  */
19537 #ifndef __cplusplus
19538 typedef int foo_t;
19539 static $ac_kw foo_t static_foo () {return 0; }
19540 $ac_kw foo_t foo () {return 0; }
19541 #endif
19542
19543 _ACEOF
19544 rm -f conftest.$ac_objext
19545 if { (ac_try="$ac_compile"
19546 case "(($ac_try" in
19547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548   *) ac_try_echo=$ac_try;;
19549 esac
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551   (eval "$ac_compile") 2>conftest.er1
19552   ac_status=$?
19553   grep -v '^ *+' conftest.er1 >conftest.err
19554   rm -f conftest.er1
19555   cat conftest.err >&5
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); } && {
19558          test -z "$ac_c_werror_flag" ||
19559          test ! -s conftest.err
19560        } && test -s conftest.$ac_objext; then
19561   ac_cv_c_inline=$ac_kw
19562 else
19563   echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566
19567 fi
19568
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570   test "$ac_cv_c_inline" != no && break
19571 done
19572
19573 fi
19574 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19575 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19576
19577
19578 case $ac_cv_c_inline in
19579   inline | yes) ;;
19580   *)
19581     case $ac_cv_c_inline in
19582       no) ac_val=;;
19583       *) ac_val=$ac_cv_c_inline;;
19584     esac
19585     cat >>confdefs.h <<_ACEOF
19586 #ifndef __cplusplus
19587 #define inline $ac_val
19588 #endif
19589 _ACEOF
19590     ;;
19591 esac
19592
19593
19594 { echo "$as_me:$LINENO: checking for short" >&5
19595 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19596 if test "${ac_cv_type_short+set}" = set; then
19597   echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599   cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h.  */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h.  */
19605 $ac_includes_default
19606 typedef short ac__type_new_;
19607 int
19608 main ()
19609 {
19610 if ((ac__type_new_ *) 0)
19611   return 0;
19612 if (sizeof (ac__type_new_))
19613   return 0;
19614   ;
19615   return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext
19619 if { (ac_try="$ac_compile"
19620 case "(($ac_try" in
19621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622   *) ac_try_echo=$ac_try;;
19623 esac
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625   (eval "$ac_compile") 2>conftest.er1
19626   ac_status=$?
19627   grep -v '^ *+' conftest.er1 >conftest.err
19628   rm -f conftest.er1
19629   cat conftest.err >&5
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); } && {
19632          test -z "$ac_c_werror_flag" ||
19633          test ! -s conftest.err
19634        } && test -s conftest.$ac_objext; then
19635   ac_cv_type_short=yes
19636 else
19637   echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640         ac_cv_type_short=no
19641 fi
19642
19643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19644 fi
19645 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19646 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19647
19648 # The cast to long int works around a bug in the HP C Compiler
19649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19651 # This bug is HP SR number 8606223364.
19652 { echo "$as_me:$LINENO: checking size of short" >&5
19653 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19654 if test "${ac_cv_sizeof_short+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   if test "$cross_compiling" = yes; then
19658   # Depending upon the size, compute the lo and hi bounds.
19659 cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h.  */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h.  */
19665 $ac_includes_default
19666    typedef short ac__type_sizeof_;
19667 int
19668 main ()
19669 {
19670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19671 test_array [0] = 0
19672
19673   ;
19674   return 0;
19675 }
19676 _ACEOF
19677 rm -f conftest.$ac_objext
19678 if { (ac_try="$ac_compile"
19679 case "(($ac_try" in
19680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681   *) ac_try_echo=$ac_try;;
19682 esac
19683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684   (eval "$ac_compile") 2>conftest.er1
19685   ac_status=$?
19686   grep -v '^ *+' conftest.er1 >conftest.err
19687   rm -f conftest.er1
19688   cat conftest.err >&5
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); } && {
19691          test -z "$ac_c_werror_flag" ||
19692          test ! -s conftest.err
19693        } && test -s conftest.$ac_objext; then
19694   ac_lo=0 ac_mid=0
19695   while :; do
19696     cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702 $ac_includes_default
19703    typedef short ac__type_sizeof_;
19704 int
19705 main ()
19706 {
19707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19708 test_array [0] = 0
19709
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext
19715 if { (ac_try="$ac_compile"
19716 case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_compile") 2>conftest.er1
19722   ac_status=$?
19723   grep -v '^ *+' conftest.er1 >conftest.err
19724   rm -f conftest.er1
19725   cat conftest.err >&5
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); } && {
19728          test -z "$ac_c_werror_flag" ||
19729          test ! -s conftest.err
19730        } && test -s conftest.$ac_objext; then
19731   ac_hi=$ac_mid; break
19732 else
19733   echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736         ac_lo=`expr $ac_mid + 1`
19737                         if test $ac_lo -le $ac_mid; then
19738                           ac_lo= ac_hi=
19739                           break
19740                         fi
19741                         ac_mid=`expr 2 '*' $ac_mid + 1`
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745   done
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750         cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h.  */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h.  */
19756 $ac_includes_default
19757    typedef short ac__type_sizeof_;
19758 int
19759 main ()
19760 {
19761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19762 test_array [0] = 0
19763
19764   ;
19765   return 0;
19766 }
19767 _ACEOF
19768 rm -f conftest.$ac_objext
19769 if { (ac_try="$ac_compile"
19770 case "(($ac_try" in
19771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772   *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775   (eval "$ac_compile") 2>conftest.er1
19776   ac_status=$?
19777   grep -v '^ *+' conftest.er1 >conftest.err
19778   rm -f conftest.er1
19779   cat conftest.err >&5
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } && {
19782          test -z "$ac_c_werror_flag" ||
19783          test ! -s conftest.err
19784        } && test -s conftest.$ac_objext; then
19785   ac_hi=-1 ac_mid=-1
19786   while :; do
19787     cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h.  */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h.  */
19793 $ac_includes_default
19794    typedef short ac__type_sizeof_;
19795 int
19796 main ()
19797 {
19798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19799 test_array [0] = 0
19800
19801   ;
19802   return 0;
19803 }
19804 _ACEOF
19805 rm -f conftest.$ac_objext
19806 if { (ac_try="$ac_compile"
19807 case "(($ac_try" in
19808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809   *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812   (eval "$ac_compile") 2>conftest.er1
19813   ac_status=$?
19814   grep -v '^ *+' conftest.er1 >conftest.err
19815   rm -f conftest.er1
19816   cat conftest.err >&5
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); } && {
19819          test -z "$ac_c_werror_flag" ||
19820          test ! -s conftest.err
19821        } && test -s conftest.$ac_objext; then
19822   ac_lo=$ac_mid; break
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827         ac_hi=`expr '(' $ac_mid ')' - 1`
19828                         if test $ac_mid -le $ac_hi; then
19829                           ac_lo= ac_hi=
19830                           break
19831                         fi
19832                         ac_mid=`expr 2 '*' $ac_mid`
19833 fi
19834
19835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836   done
19837 else
19838   echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19840
19841         ac_lo= ac_hi=
19842 fi
19843
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 fi
19846
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848 # Binary search between lo and hi bounds.
19849 while test "x$ac_lo" != "x$ac_hi"; do
19850   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19851   cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h.  */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h.  */
19857 $ac_includes_default
19858    typedef short ac__type_sizeof_;
19859 int
19860 main ()
19861 {
19862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19863 test_array [0] = 0
19864
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_compile") 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } && {
19883          test -z "$ac_c_werror_flag" ||
19884          test ! -s conftest.err
19885        } && test -s conftest.$ac_objext; then
19886   ac_hi=$ac_mid
19887 else
19888   echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891         ac_lo=`expr '(' $ac_mid ')' + 1`
19892 fi
19893
19894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895 done
19896 case $ac_lo in
19897 ?*) ac_cv_sizeof_short=$ac_lo;;
19898 '') if test "$ac_cv_type_short" = yes; then
19899      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19900 See \`config.log' for more details." >&5
19901 echo "$as_me: error: cannot compute sizeof (short)
19902 See \`config.log' for more details." >&2;}
19903    { (exit 77); exit 77; }; }
19904    else
19905      ac_cv_sizeof_short=0
19906    fi ;;
19907 esac
19908 else
19909   cat >conftest.$ac_ext <<_ACEOF
19910 /* confdefs.h.  */
19911 _ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h.  */
19915 $ac_includes_default
19916    typedef short ac__type_sizeof_;
19917 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19918 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19919 #include <stdio.h>
19920 #include <stdlib.h>
19921 int
19922 main ()
19923 {
19924
19925   FILE *f = fopen ("conftest.val", "w");
19926   if (! f)
19927     return 1;
19928   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19929     {
19930       long int i = longval ();
19931       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19932         return 1;
19933       fprintf (f, "%ld\n", i);
19934     }
19935   else
19936     {
19937       unsigned long int i = ulongval ();
19938       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19939         return 1;
19940       fprintf (f, "%lu\n", i);
19941     }
19942   return ferror (f) || fclose (f) != 0;
19943
19944   ;
19945   return 0;
19946 }
19947 _ACEOF
19948 rm -f conftest$ac_exeext
19949 if { (ac_try="$ac_link"
19950 case "(($ac_try" in
19951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952   *) ac_try_echo=$ac_try;;
19953 esac
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955   (eval "$ac_link") 2>&5
19956   ac_status=$?
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19959   { (case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_try") 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; }; then
19968   ac_cv_sizeof_short=`cat conftest.val`
19969 else
19970   echo "$as_me: program exited with status $ac_status" >&5
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 ( exit $ac_status )
19975 if test "$ac_cv_type_short" = yes; then
19976      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19977 See \`config.log' for more details." >&5
19978 echo "$as_me: error: cannot compute sizeof (short)
19979 See \`config.log' for more details." >&2;}
19980    { (exit 77); exit 77; }; }
19981    else
19982      ac_cv_sizeof_short=0
19983    fi
19984 fi
19985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19986 fi
19987 rm -f conftest.val
19988 fi
19989 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19990 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19991
19992
19993
19994 cat >>confdefs.h <<_ACEOF
19995 #define SIZEOF_SHORT $ac_cv_sizeof_short
19996 _ACEOF
19997
19998
19999 { echo "$as_me:$LINENO: checking for void *" >&5
20000 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20001 if test "${ac_cv_type_void_p+set}" = set; then
20002   echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004   cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010 $ac_includes_default
20011 typedef void * ac__type_new_;
20012 int
20013 main ()
20014 {
20015 if ((ac__type_new_ *) 0)
20016   return 0;
20017 if (sizeof (ac__type_new_))
20018   return 0;
20019   ;
20020   return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext
20024 if { (ac_try="$ac_compile"
20025 case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_compile") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } && {
20037          test -z "$ac_c_werror_flag" ||
20038          test ! -s conftest.err
20039        } && test -s conftest.$ac_objext; then
20040   ac_cv_type_void_p=yes
20041 else
20042   echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045         ac_cv_type_void_p=no
20046 fi
20047
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049 fi
20050 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20051 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20052
20053 # The cast to long int works around a bug in the HP C Compiler
20054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20056 # This bug is HP SR number 8606223364.
20057 { echo "$as_me:$LINENO: checking size of void *" >&5
20058 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20059 if test "${ac_cv_sizeof_void_p+set}" = set; then
20060   echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062   if test "$cross_compiling" = yes; then
20063   # Depending upon the size, compute the lo and hi bounds.
20064 cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h.  */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h.  */
20070 $ac_includes_default
20071    typedef void * ac__type_sizeof_;
20072 int
20073 main ()
20074 {
20075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20076 test_array [0] = 0
20077
20078   ;
20079   return 0;
20080 }
20081 _ACEOF
20082 rm -f conftest.$ac_objext
20083 if { (ac_try="$ac_compile"
20084 case "(($ac_try" in
20085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086   *) ac_try_echo=$ac_try;;
20087 esac
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089   (eval "$ac_compile") 2>conftest.er1
20090   ac_status=$?
20091   grep -v '^ *+' conftest.er1 >conftest.err
20092   rm -f conftest.er1
20093   cat conftest.err >&5
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); } && {
20096          test -z "$ac_c_werror_flag" ||
20097          test ! -s conftest.err
20098        } && test -s conftest.$ac_objext; then
20099   ac_lo=0 ac_mid=0
20100   while :; do
20101     cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107 $ac_includes_default
20108    typedef void * ac__type_sizeof_;
20109 int
20110 main ()
20111 {
20112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20113 test_array [0] = 0
20114
20115   ;
20116   return 0;
20117 }
20118 _ACEOF
20119 rm -f conftest.$ac_objext
20120 if { (ac_try="$ac_compile"
20121 case "(($ac_try" in
20122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123   *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126   (eval "$ac_compile") 2>conftest.er1
20127   ac_status=$?
20128   grep -v '^ *+' conftest.er1 >conftest.err
20129   rm -f conftest.er1
20130   cat conftest.err >&5
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } && {
20133          test -z "$ac_c_werror_flag" ||
20134          test ! -s conftest.err
20135        } && test -s conftest.$ac_objext; then
20136   ac_hi=$ac_mid; break
20137 else
20138   echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141         ac_lo=`expr $ac_mid + 1`
20142                         if test $ac_lo -le $ac_mid; then
20143                           ac_lo= ac_hi=
20144                           break
20145                         fi
20146                         ac_mid=`expr 2 '*' $ac_mid + 1`
20147 fi
20148
20149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20150   done
20151 else
20152   echo "$as_me: failed program was:" >&5
20153 sed 's/^/| /' conftest.$ac_ext >&5
20154
20155         cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161 $ac_includes_default
20162    typedef void * ac__type_sizeof_;
20163 int
20164 main ()
20165 {
20166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20167 test_array [0] = 0
20168
20169   ;
20170   return 0;
20171 }
20172 _ACEOF
20173 rm -f conftest.$ac_objext
20174 if { (ac_try="$ac_compile"
20175 case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_compile") 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } && {
20187          test -z "$ac_c_werror_flag" ||
20188          test ! -s conftest.err
20189        } && test -s conftest.$ac_objext; then
20190   ac_hi=-1 ac_mid=-1
20191   while :; do
20192     cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 $ac_includes_default
20199    typedef void * ac__type_sizeof_;
20200 int
20201 main ()
20202 {
20203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20204 test_array [0] = 0
20205
20206   ;
20207   return 0;
20208 }
20209 _ACEOF
20210 rm -f conftest.$ac_objext
20211 if { (ac_try="$ac_compile"
20212 case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_compile") 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } && {
20224          test -z "$ac_c_werror_flag" ||
20225          test ! -s conftest.err
20226        } && test -s conftest.$ac_objext; then
20227   ac_lo=$ac_mid; break
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         ac_hi=`expr '(' $ac_mid ')' - 1`
20233                         if test $ac_mid -le $ac_hi; then
20234                           ac_lo= ac_hi=
20235                           break
20236                         fi
20237                         ac_mid=`expr 2 '*' $ac_mid`
20238 fi
20239
20240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20241   done
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20245
20246         ac_lo= ac_hi=
20247 fi
20248
20249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250 fi
20251
20252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20253 # Binary search between lo and hi bounds.
20254 while test "x$ac_lo" != "x$ac_hi"; do
20255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20256   cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h.  */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h.  */
20262 $ac_includes_default
20263    typedef void * ac__type_sizeof_;
20264 int
20265 main ()
20266 {
20267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20268 test_array [0] = 0
20269
20270   ;
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest.$ac_objext
20275 if { (ac_try="$ac_compile"
20276 case "(($ac_try" in
20277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278   *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281   (eval "$ac_compile") 2>conftest.er1
20282   ac_status=$?
20283   grep -v '^ *+' conftest.er1 >conftest.err
20284   rm -f conftest.er1
20285   cat conftest.err >&5
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); } && {
20288          test -z "$ac_c_werror_flag" ||
20289          test ! -s conftest.err
20290        } && test -s conftest.$ac_objext; then
20291   ac_hi=$ac_mid
20292 else
20293   echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296         ac_lo=`expr '(' $ac_mid ')' + 1`
20297 fi
20298
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300 done
20301 case $ac_lo in
20302 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20303 '') if test "$ac_cv_type_void_p" = yes; then
20304      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20305 See \`config.log' for more details." >&5
20306 echo "$as_me: error: cannot compute sizeof (void *)
20307 See \`config.log' for more details." >&2;}
20308    { (exit 77); exit 77; }; }
20309    else
20310      ac_cv_sizeof_void_p=0
20311    fi ;;
20312 esac
20313 else
20314   cat >conftest.$ac_ext <<_ACEOF
20315 /* confdefs.h.  */
20316 _ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h.  */
20320 $ac_includes_default
20321    typedef void * ac__type_sizeof_;
20322 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20323 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20324 #include <stdio.h>
20325 #include <stdlib.h>
20326 int
20327 main ()
20328 {
20329
20330   FILE *f = fopen ("conftest.val", "w");
20331   if (! f)
20332     return 1;
20333   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20334     {
20335       long int i = longval ();
20336       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20337         return 1;
20338       fprintf (f, "%ld\n", i);
20339     }
20340   else
20341     {
20342       unsigned long int i = ulongval ();
20343       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20344         return 1;
20345       fprintf (f, "%lu\n", i);
20346     }
20347   return ferror (f) || fclose (f) != 0;
20348
20349   ;
20350   return 0;
20351 }
20352 _ACEOF
20353 rm -f conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357   *) ac_try_echo=$ac_try;;
20358 esac
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360   (eval "$ac_link") 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20364   { (case "(($ac_try" in
20365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366   *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369   (eval "$ac_try") 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; }; then
20373   ac_cv_sizeof_void_p=`cat conftest.val`
20374 else
20375   echo "$as_me: program exited with status $ac_status" >&5
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379 ( exit $ac_status )
20380 if test "$ac_cv_type_void_p" = yes; then
20381      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20382 See \`config.log' for more details." >&5
20383 echo "$as_me: error: cannot compute sizeof (void *)
20384 See \`config.log' for more details." >&2;}
20385    { (exit 77); exit 77; }; }
20386    else
20387      ac_cv_sizeof_void_p=0
20388    fi
20389 fi
20390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20391 fi
20392 rm -f conftest.val
20393 fi
20394 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20395 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20396
20397
20398
20399 cat >>confdefs.h <<_ACEOF
20400 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20401 _ACEOF
20402
20403
20404 { echo "$as_me:$LINENO: checking for int" >&5
20405 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20406 if test "${ac_cv_type_int+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 $ac_includes_default
20416 typedef int ac__type_new_;
20417 int
20418 main ()
20419 {
20420 if ((ac__type_new_ *) 0)
20421   return 0;
20422 if (sizeof (ac__type_new_))
20423   return 0;
20424   ;
20425   return 0;
20426 }
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432   *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435   (eval "$ac_compile") 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } && {
20442          test -z "$ac_c_werror_flag" ||
20443          test ! -s conftest.err
20444        } && test -s conftest.$ac_objext; then
20445   ac_cv_type_int=yes
20446 else
20447   echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450         ac_cv_type_int=no
20451 fi
20452
20453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 fi
20455 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20456 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20457
20458 # The cast to long int works around a bug in the HP C Compiler
20459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20461 # This bug is HP SR number 8606223364.
20462 { echo "$as_me:$LINENO: checking size of int" >&5
20463 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20464 if test "${ac_cv_sizeof_int+set}" = set; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   if test "$cross_compiling" = yes; then
20468   # Depending upon the size, compute the lo and hi bounds.
20469 cat >conftest.$ac_ext <<_ACEOF
20470 /* confdefs.h.  */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h.  */
20475 $ac_includes_default
20476    typedef int ac__type_sizeof_;
20477 int
20478 main ()
20479 {
20480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20481 test_array [0] = 0
20482
20483   ;
20484   return 0;
20485 }
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491   *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494   (eval "$ac_compile") 2>conftest.er1
20495   ac_status=$?
20496   grep -v '^ *+' conftest.er1 >conftest.err
20497   rm -f conftest.er1
20498   cat conftest.err >&5
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); } && {
20501          test -z "$ac_c_werror_flag" ||
20502          test ! -s conftest.err
20503        } && test -s conftest.$ac_objext; then
20504   ac_lo=0 ac_mid=0
20505   while :; do
20506     cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h.  */
20508 _ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h.  */
20512 $ac_includes_default
20513    typedef int ac__type_sizeof_;
20514 int
20515 main ()
20516 {
20517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20518 test_array [0] = 0
20519
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 rm -f conftest.$ac_objext
20525 if { (ac_try="$ac_compile"
20526 case "(($ac_try" in
20527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528   *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531   (eval "$ac_compile") 2>conftest.er1
20532   ac_status=$?
20533   grep -v '^ *+' conftest.er1 >conftest.err
20534   rm -f conftest.er1
20535   cat conftest.err >&5
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); } && {
20538          test -z "$ac_c_werror_flag" ||
20539          test ! -s conftest.err
20540        } && test -s conftest.$ac_objext; then
20541   ac_hi=$ac_mid; break
20542 else
20543   echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546         ac_lo=`expr $ac_mid + 1`
20547                         if test $ac_lo -le $ac_mid; then
20548                           ac_lo= ac_hi=
20549                           break
20550                         fi
20551                         ac_mid=`expr 2 '*' $ac_mid + 1`
20552 fi
20553
20554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555   done
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560         cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h.  */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h.  */
20566 $ac_includes_default
20567    typedef int ac__type_sizeof_;
20568 int
20569 main ()
20570 {
20571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20572 test_array [0] = 0
20573
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext
20579 if { (ac_try="$ac_compile"
20580 case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_compile") 2>conftest.er1
20586   ac_status=$?
20587   grep -v '^ *+' conftest.er1 >conftest.err
20588   rm -f conftest.er1
20589   cat conftest.err >&5
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } && {
20592          test -z "$ac_c_werror_flag" ||
20593          test ! -s conftest.err
20594        } && test -s conftest.$ac_objext; then
20595   ac_hi=-1 ac_mid=-1
20596   while :; do
20597     cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603 $ac_includes_default
20604    typedef int ac__type_sizeof_;
20605 int
20606 main ()
20607 {
20608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20609 test_array [0] = 0
20610
20611   ;
20612   return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (ac_try="$ac_compile"
20617 case "(($ac_try" in
20618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619   *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622   (eval "$ac_compile") 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } && {
20629          test -z "$ac_c_werror_flag" ||
20630          test ! -s conftest.err
20631        } && test -s conftest.$ac_objext; then
20632   ac_lo=$ac_mid; break
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637         ac_hi=`expr '(' $ac_mid ')' - 1`
20638                         if test $ac_mid -le $ac_hi; then
20639                           ac_lo= ac_hi=
20640                           break
20641                         fi
20642                         ac_mid=`expr 2 '*' $ac_mid`
20643 fi
20644
20645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20646   done
20647 else
20648   echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651         ac_lo= ac_hi=
20652 fi
20653
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 fi
20656
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 # Binary search between lo and hi bounds.
20659 while test "x$ac_lo" != "x$ac_hi"; do
20660   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20661   cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667 $ac_includes_default
20668    typedef int ac__type_sizeof_;
20669 int
20670 main ()
20671 {
20672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20673 test_array [0] = 0
20674
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (ac_try="$ac_compile"
20681 case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686   (eval "$ac_compile") 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } && {
20693          test -z "$ac_c_werror_flag" ||
20694          test ! -s conftest.err
20695        } && test -s conftest.$ac_objext; then
20696   ac_hi=$ac_mid
20697 else
20698   echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701         ac_lo=`expr '(' $ac_mid ')' + 1`
20702 fi
20703
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 done
20706 case $ac_lo in
20707 ?*) ac_cv_sizeof_int=$ac_lo;;
20708 '') if test "$ac_cv_type_int" = yes; then
20709      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20710 See \`config.log' for more details." >&5
20711 echo "$as_me: error: cannot compute sizeof (int)
20712 See \`config.log' for more details." >&2;}
20713    { (exit 77); exit 77; }; }
20714    else
20715      ac_cv_sizeof_int=0
20716    fi ;;
20717 esac
20718 else
20719   cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 $ac_includes_default
20726    typedef int ac__type_sizeof_;
20727 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20728 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20729 #include <stdio.h>
20730 #include <stdlib.h>
20731 int
20732 main ()
20733 {
20734
20735   FILE *f = fopen ("conftest.val", "w");
20736   if (! f)
20737     return 1;
20738   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20739     {
20740       long int i = longval ();
20741       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20742         return 1;
20743       fprintf (f, "%ld\n", i);
20744     }
20745   else
20746     {
20747       unsigned long int i = ulongval ();
20748       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20749         return 1;
20750       fprintf (f, "%lu\n", i);
20751     }
20752   return ferror (f) || fclose (f) != 0;
20753
20754   ;
20755   return 0;
20756 }
20757 _ACEOF
20758 rm -f conftest$ac_exeext
20759 if { (ac_try="$ac_link"
20760 case "(($ac_try" in
20761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762   *) ac_try_echo=$ac_try;;
20763 esac
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765   (eval "$ac_link") 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20769   { (case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774   (eval "$ac_try") 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; }; then
20778   ac_cv_sizeof_int=`cat conftest.val`
20779 else
20780   echo "$as_me: program exited with status $ac_status" >&5
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784 ( exit $ac_status )
20785 if test "$ac_cv_type_int" = yes; then
20786      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20787 See \`config.log' for more details." >&5
20788 echo "$as_me: error: cannot compute sizeof (int)
20789 See \`config.log' for more details." >&2;}
20790    { (exit 77); exit 77; }; }
20791    else
20792      ac_cv_sizeof_int=0
20793    fi
20794 fi
20795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20796 fi
20797 rm -f conftest.val
20798 fi
20799 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20800 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20801
20802
20803
20804 cat >>confdefs.h <<_ACEOF
20805 #define SIZEOF_INT $ac_cv_sizeof_int
20806 _ACEOF
20807
20808
20809 { echo "$as_me:$LINENO: checking for long" >&5
20810 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20811 if test "${ac_cv_type_long+set}" = set; then
20812   echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814   cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h.  */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h.  */
20820 $ac_includes_default
20821 typedef long ac__type_new_;
20822 int
20823 main ()
20824 {
20825 if ((ac__type_new_ *) 0)
20826   return 0;
20827 if (sizeof (ac__type_new_))
20828   return 0;
20829   ;
20830   return 0;
20831 }
20832 _ACEOF
20833 rm -f conftest.$ac_objext
20834 if { (ac_try="$ac_compile"
20835 case "(($ac_try" in
20836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837   *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840   (eval "$ac_compile") 2>conftest.er1
20841   ac_status=$?
20842   grep -v '^ *+' conftest.er1 >conftest.err
20843   rm -f conftest.er1
20844   cat conftest.err >&5
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); } && {
20847          test -z "$ac_c_werror_flag" ||
20848          test ! -s conftest.err
20849        } && test -s conftest.$ac_objext; then
20850   ac_cv_type_long=yes
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855         ac_cv_type_long=no
20856 fi
20857
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859 fi
20860 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20861 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20862
20863 # The cast to long int works around a bug in the HP C Compiler
20864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20866 # This bug is HP SR number 8606223364.
20867 { echo "$as_me:$LINENO: checking size of long" >&5
20868 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20869 if test "${ac_cv_sizeof_long+set}" = set; then
20870   echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872   if test "$cross_compiling" = yes; then
20873   # Depending upon the size, compute the lo and hi bounds.
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h.  */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h.  */
20880 $ac_includes_default
20881    typedef long ac__type_sizeof_;
20882 int
20883 main ()
20884 {
20885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20886 test_array [0] = 0
20887
20888   ;
20889   return 0;
20890 }
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_compile") 2>conftest.er1
20900   ac_status=$?
20901   grep -v '^ *+' conftest.er1 >conftest.err
20902   rm -f conftest.er1
20903   cat conftest.err >&5
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } && {
20906          test -z "$ac_c_werror_flag" ||
20907          test ! -s conftest.err
20908        } && test -s conftest.$ac_objext; then
20909   ac_lo=0 ac_mid=0
20910   while :; do
20911     cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h.  */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h.  */
20917 $ac_includes_default
20918    typedef long ac__type_sizeof_;
20919 int
20920 main ()
20921 {
20922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20923 test_array [0] = 0
20924
20925   ;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933   *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936   (eval "$ac_compile") 2>conftest.er1
20937   ac_status=$?
20938   grep -v '^ *+' conftest.er1 >conftest.err
20939   rm -f conftest.er1
20940   cat conftest.err >&5
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); } && {
20943          test -z "$ac_c_werror_flag" ||
20944          test ! -s conftest.err
20945        } && test -s conftest.$ac_objext; then
20946   ac_hi=$ac_mid; break
20947 else
20948   echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951         ac_lo=`expr $ac_mid + 1`
20952                         if test $ac_lo -le $ac_mid; then
20953                           ac_lo= ac_hi=
20954                           break
20955                         fi
20956                         ac_mid=`expr 2 '*' $ac_mid + 1`
20957 fi
20958
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960   done
20961 else
20962   echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20964
20965         cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971 $ac_includes_default
20972    typedef long ac__type_sizeof_;
20973 int
20974 main ()
20975 {
20976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20977 test_array [0] = 0
20978
20979   ;
20980   return 0;
20981 }
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987   *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990   (eval "$ac_compile") 2>conftest.er1
20991   ac_status=$?
20992   grep -v '^ *+' conftest.er1 >conftest.err
20993   rm -f conftest.er1
20994   cat conftest.err >&5
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); } && {
20997          test -z "$ac_c_werror_flag" ||
20998          test ! -s conftest.err
20999        } && test -s conftest.$ac_objext; then
21000   ac_hi=-1 ac_mid=-1
21001   while :; do
21002     cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 $ac_includes_default
21009    typedef long ac__type_sizeof_;
21010 int
21011 main ()
21012 {
21013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21014 test_array [0] = 0
21015
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (ac_try="$ac_compile"
21022 case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027   (eval "$ac_compile") 2>conftest.er1
21028   ac_status=$?
21029   grep -v '^ *+' conftest.er1 >conftest.err
21030   rm -f conftest.er1
21031   cat conftest.err >&5
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); } && {
21034          test -z "$ac_c_werror_flag" ||
21035          test ! -s conftest.err
21036        } && test -s conftest.$ac_objext; then
21037   ac_lo=$ac_mid; break
21038 else
21039   echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21041
21042         ac_hi=`expr '(' $ac_mid ')' - 1`
21043                         if test $ac_mid -le $ac_hi; then
21044                           ac_lo= ac_hi=
21045                           break
21046                         fi
21047                         ac_mid=`expr 2 '*' $ac_mid`
21048 fi
21049
21050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051   done
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056         ac_lo= ac_hi=
21057 fi
21058
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060 fi
21061
21062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21063 # Binary search between lo and hi bounds.
21064 while test "x$ac_lo" != "x$ac_hi"; do
21065   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21066   cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h.  */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h.  */
21072 $ac_includes_default
21073    typedef long ac__type_sizeof_;
21074 int
21075 main ()
21076 {
21077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21078 test_array [0] = 0
21079
21080   ;
21081   return 0;
21082 }
21083 _ACEOF
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088   *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091   (eval "$ac_compile") 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } && {
21098          test -z "$ac_c_werror_flag" ||
21099          test ! -s conftest.err
21100        } && test -s conftest.$ac_objext; then
21101   ac_hi=$ac_mid
21102 else
21103   echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106         ac_lo=`expr '(' $ac_mid ')' + 1`
21107 fi
21108
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 done
21111 case $ac_lo in
21112 ?*) ac_cv_sizeof_long=$ac_lo;;
21113 '') if test "$ac_cv_type_long" = yes; then
21114      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21115 See \`config.log' for more details." >&5
21116 echo "$as_me: error: cannot compute sizeof (long)
21117 See \`config.log' for more details." >&2;}
21118    { (exit 77); exit 77; }; }
21119    else
21120      ac_cv_sizeof_long=0
21121    fi ;;
21122 esac
21123 else
21124   cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h.  */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h.  */
21130 $ac_includes_default
21131    typedef long ac__type_sizeof_;
21132 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21133 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21134 #include <stdio.h>
21135 #include <stdlib.h>
21136 int
21137 main ()
21138 {
21139
21140   FILE *f = fopen ("conftest.val", "w");
21141   if (! f)
21142     return 1;
21143   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21144     {
21145       long int i = longval ();
21146       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21147         return 1;
21148       fprintf (f, "%ld\n", i);
21149     }
21150   else
21151     {
21152       unsigned long int i = ulongval ();
21153       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21154         return 1;
21155       fprintf (f, "%lu\n", i);
21156     }
21157   return ferror (f) || fclose (f) != 0;
21158
21159   ;
21160   return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest$ac_exeext
21164 if { (ac_try="$ac_link"
21165 case "(($ac_try" in
21166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167   *) ac_try_echo=$ac_try;;
21168 esac
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170   (eval "$ac_link") 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21174   { (case "(($ac_try" in
21175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176   *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179   (eval "$ac_try") 2>&5
21180   ac_status=$?
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); }; }; then
21183   ac_cv_sizeof_long=`cat conftest.val`
21184 else
21185   echo "$as_me: program exited with status $ac_status" >&5
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 ( exit $ac_status )
21190 if test "$ac_cv_type_long" = yes; then
21191      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21192 See \`config.log' for more details." >&5
21193 echo "$as_me: error: cannot compute sizeof (long)
21194 See \`config.log' for more details." >&2;}
21195    { (exit 77); exit 77; }; }
21196    else
21197      ac_cv_sizeof_long=0
21198    fi
21199 fi
21200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21201 fi
21202 rm -f conftest.val
21203 fi
21204 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21205 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21206
21207
21208
21209 cat >>confdefs.h <<_ACEOF
21210 #define SIZEOF_LONG $ac_cv_sizeof_long
21211 _ACEOF
21212
21213
21214 { echo "$as_me:$LINENO: checking for size_t" >&5
21215 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21216 if test "${ac_cv_type_size_t+set}" = set; then
21217   echo $ECHO_N "(cached) $ECHO_C" >&6
21218 else
21219   cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h.  */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h.  */
21225 $ac_includes_default
21226 typedef size_t ac__type_new_;
21227 int
21228 main ()
21229 {
21230 if ((ac__type_new_ *) 0)
21231   return 0;
21232 if (sizeof (ac__type_new_))
21233   return 0;
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 rm -f conftest.$ac_objext
21239 if { (ac_try="$ac_compile"
21240 case "(($ac_try" in
21241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242   *) ac_try_echo=$ac_try;;
21243 esac
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245   (eval "$ac_compile") 2>conftest.er1
21246   ac_status=$?
21247   grep -v '^ *+' conftest.er1 >conftest.err
21248   rm -f conftest.er1
21249   cat conftest.err >&5
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); } && {
21252          test -z "$ac_c_werror_flag" ||
21253          test ! -s conftest.err
21254        } && test -s conftest.$ac_objext; then
21255   ac_cv_type_size_t=yes
21256 else
21257   echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21259
21260         ac_cv_type_size_t=no
21261 fi
21262
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 fi
21265 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21266 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21267
21268 # The cast to long int works around a bug in the HP C Compiler
21269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21271 # This bug is HP SR number 8606223364.
21272 { echo "$as_me:$LINENO: checking size of size_t" >&5
21273 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21274 if test "${ac_cv_sizeof_size_t+set}" = set; then
21275   echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277   if test "$cross_compiling" = yes; then
21278   # Depending upon the size, compute the lo and hi bounds.
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h.  */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h.  */
21285 $ac_includes_default
21286    typedef size_t ac__type_sizeof_;
21287 int
21288 main ()
21289 {
21290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21291 test_array [0] = 0
21292
21293   ;
21294   return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (ac_try="$ac_compile"
21299 case "(($ac_try" in
21300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301   *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304   (eval "$ac_compile") 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } && {
21311          test -z "$ac_c_werror_flag" ||
21312          test ! -s conftest.err
21313        } && test -s conftest.$ac_objext; then
21314   ac_lo=0 ac_mid=0
21315   while :; do
21316     cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 $ac_includes_default
21323    typedef size_t ac__type_sizeof_;
21324 int
21325 main ()
21326 {
21327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21328 test_array [0] = 0
21329
21330   ;
21331   return 0;
21332 }
21333 _ACEOF
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338   *) ac_try_echo=$ac_try;;
21339 esac
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341   (eval "$ac_compile") 2>conftest.er1
21342   ac_status=$?
21343   grep -v '^ *+' conftest.er1 >conftest.err
21344   rm -f conftest.er1
21345   cat conftest.err >&5
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } && {
21348          test -z "$ac_c_werror_flag" ||
21349          test ! -s conftest.err
21350        } && test -s conftest.$ac_objext; then
21351   ac_hi=$ac_mid; break
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356         ac_lo=`expr $ac_mid + 1`
21357                         if test $ac_lo -le $ac_mid; then
21358                           ac_lo= ac_hi=
21359                           break
21360                         fi
21361                         ac_mid=`expr 2 '*' $ac_mid + 1`
21362 fi
21363
21364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21365   done
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370         cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 $ac_includes_default
21377    typedef size_t ac__type_sizeof_;
21378 int
21379 main ()
21380 {
21381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21382 test_array [0] = 0
21383
21384   ;
21385   return 0;
21386 }
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (ac_try="$ac_compile"
21390 case "(($ac_try" in
21391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392   *) ac_try_echo=$ac_try;;
21393 esac
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395   (eval "$ac_compile") 2>conftest.er1
21396   ac_status=$?
21397   grep -v '^ *+' conftest.er1 >conftest.err
21398   rm -f conftest.er1
21399   cat conftest.err >&5
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); } && {
21402          test -z "$ac_c_werror_flag" ||
21403          test ! -s conftest.err
21404        } && test -s conftest.$ac_objext; then
21405   ac_hi=-1 ac_mid=-1
21406   while :; do
21407     cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413 $ac_includes_default
21414    typedef size_t ac__type_sizeof_;
21415 int
21416 main ()
21417 {
21418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21419 test_array [0] = 0
21420
21421   ;
21422   return 0;
21423 }
21424 _ACEOF
21425 rm -f conftest.$ac_objext
21426 if { (ac_try="$ac_compile"
21427 case "(($ac_try" in
21428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429   *) ac_try_echo=$ac_try;;
21430 esac
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432   (eval "$ac_compile") 2>conftest.er1
21433   ac_status=$?
21434   grep -v '^ *+' conftest.er1 >conftest.err
21435   rm -f conftest.er1
21436   cat conftest.err >&5
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } && {
21439          test -z "$ac_c_werror_flag" ||
21440          test ! -s conftest.err
21441        } && test -s conftest.$ac_objext; then
21442   ac_lo=$ac_mid; break
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447         ac_hi=`expr '(' $ac_mid ')' - 1`
21448                         if test $ac_mid -le $ac_hi; then
21449                           ac_lo= ac_hi=
21450                           break
21451                         fi
21452                         ac_mid=`expr 2 '*' $ac_mid`
21453 fi
21454
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456   done
21457 else
21458   echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461         ac_lo= ac_hi=
21462 fi
21463
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 fi
21466
21467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 # Binary search between lo and hi bounds.
21469 while test "x$ac_lo" != "x$ac_hi"; do
21470   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21471   cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 $ac_includes_default
21478    typedef size_t ac__type_sizeof_;
21479 int
21480 main ()
21481 {
21482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21483 test_array [0] = 0
21484
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext
21490 if { (ac_try="$ac_compile"
21491 case "(($ac_try" in
21492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493   *) ac_try_echo=$ac_try;;
21494 esac
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496   (eval "$ac_compile") 2>conftest.er1
21497   ac_status=$?
21498   grep -v '^ *+' conftest.er1 >conftest.err
21499   rm -f conftest.er1
21500   cat conftest.err >&5
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); } && {
21503          test -z "$ac_c_werror_flag" ||
21504          test ! -s conftest.err
21505        } && test -s conftest.$ac_objext; then
21506   ac_hi=$ac_mid
21507 else
21508   echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511         ac_lo=`expr '(' $ac_mid ')' + 1`
21512 fi
21513
21514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515 done
21516 case $ac_lo in
21517 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21518 '') if test "$ac_cv_type_size_t" = yes; then
21519      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21520 See \`config.log' for more details." >&5
21521 echo "$as_me: error: cannot compute sizeof (size_t)
21522 See \`config.log' for more details." >&2;}
21523    { (exit 77); exit 77; }; }
21524    else
21525      ac_cv_sizeof_size_t=0
21526    fi ;;
21527 esac
21528 else
21529   cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h.  */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h.  */
21535 $ac_includes_default
21536    typedef size_t ac__type_sizeof_;
21537 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21538 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21539 #include <stdio.h>
21540 #include <stdlib.h>
21541 int
21542 main ()
21543 {
21544
21545   FILE *f = fopen ("conftest.val", "w");
21546   if (! f)
21547     return 1;
21548   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21549     {
21550       long int i = longval ();
21551       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21552         return 1;
21553       fprintf (f, "%ld\n", i);
21554     }
21555   else
21556     {
21557       unsigned long int i = ulongval ();
21558       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21559         return 1;
21560       fprintf (f, "%lu\n", i);
21561     }
21562   return ferror (f) || fclose (f) != 0;
21563
21564   ;
21565   return 0;
21566 }
21567 _ACEOF
21568 rm -f conftest$ac_exeext
21569 if { (ac_try="$ac_link"
21570 case "(($ac_try" in
21571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572   *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575   (eval "$ac_link") 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21579   { (case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_try") 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; }; then
21588   ac_cv_sizeof_size_t=`cat conftest.val`
21589 else
21590   echo "$as_me: program exited with status $ac_status" >&5
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21593
21594 ( exit $ac_status )
21595 if test "$ac_cv_type_size_t" = yes; then
21596      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21597 See \`config.log' for more details." >&5
21598 echo "$as_me: error: cannot compute sizeof (size_t)
21599 See \`config.log' for more details." >&2;}
21600    { (exit 77); exit 77; }; }
21601    else
21602      ac_cv_sizeof_size_t=0
21603    fi
21604 fi
21605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21606 fi
21607 rm -f conftest.val
21608 fi
21609 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21610 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21611
21612
21613
21614 cat >>confdefs.h <<_ACEOF
21615 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21616 _ACEOF
21617
21618
21619
21620 case "${host}" in
21621     arm-*-linux* )
21622         { echo "$as_me:$LINENO: checking for long long" >&5
21623 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21624 if test "${ac_cv_type_long_long+set}" = set; then
21625   echo $ECHO_N "(cached) $ECHO_C" >&6
21626 else
21627   cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633 $ac_includes_default
21634 typedef long long ac__type_new_;
21635 int
21636 main ()
21637 {
21638 if ((ac__type_new_ *) 0)
21639   return 0;
21640 if (sizeof (ac__type_new_))
21641   return 0;
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650   *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653   (eval "$ac_compile") 2>conftest.er1
21654   ac_status=$?
21655   grep -v '^ *+' conftest.er1 >conftest.err
21656   rm -f conftest.er1
21657   cat conftest.err >&5
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); } && {
21660          test -z "$ac_c_werror_flag" ||
21661          test ! -s conftest.err
21662        } && test -s conftest.$ac_objext; then
21663   ac_cv_type_long_long=yes
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668         ac_cv_type_long_long=no
21669 fi
21670
21671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21672 fi
21673 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21674 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21675
21676 # The cast to long int works around a bug in the HP C Compiler
21677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21679 # This bug is HP SR number 8606223364.
21680 { echo "$as_me:$LINENO: checking size of long long" >&5
21681 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21682 if test "${ac_cv_sizeof_long_long+set}" = set; then
21683   echo $ECHO_N "(cached) $ECHO_C" >&6
21684 else
21685   if test "$cross_compiling" = yes; then
21686   # Depending upon the size, compute the lo and hi bounds.
21687 cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h.  */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h.  */
21693 $ac_includes_default
21694    typedef long long ac__type_sizeof_;
21695 int
21696 main ()
21697 {
21698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21699 test_array [0] = 0
21700
21701   ;
21702   return 0;
21703 }
21704 _ACEOF
21705 rm -f conftest.$ac_objext
21706 if { (ac_try="$ac_compile"
21707 case "(($ac_try" in
21708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709   *) ac_try_echo=$ac_try;;
21710 esac
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712   (eval "$ac_compile") 2>conftest.er1
21713   ac_status=$?
21714   grep -v '^ *+' conftest.er1 >conftest.err
21715   rm -f conftest.er1
21716   cat conftest.err >&5
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); } && {
21719          test -z "$ac_c_werror_flag" ||
21720          test ! -s conftest.err
21721        } && test -s conftest.$ac_objext; then
21722   ac_lo=0 ac_mid=0
21723   while :; do
21724     cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h.  */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h.  */
21730 $ac_includes_default
21731    typedef long long ac__type_sizeof_;
21732 int
21733 main ()
21734 {
21735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21736 test_array [0] = 0
21737
21738   ;
21739   return 0;
21740 }
21741 _ACEOF
21742 rm -f conftest.$ac_objext
21743 if { (ac_try="$ac_compile"
21744 case "(($ac_try" in
21745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746   *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749   (eval "$ac_compile") 2>conftest.er1
21750   ac_status=$?
21751   grep -v '^ *+' conftest.er1 >conftest.err
21752   rm -f conftest.er1
21753   cat conftest.err >&5
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); } && {
21756          test -z "$ac_c_werror_flag" ||
21757          test ! -s conftest.err
21758        } && test -s conftest.$ac_objext; then
21759   ac_hi=$ac_mid; break
21760 else
21761   echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764         ac_lo=`expr $ac_mid + 1`
21765                         if test $ac_lo -le $ac_mid; then
21766                           ac_lo= ac_hi=
21767                           break
21768                         fi
21769                         ac_mid=`expr 2 '*' $ac_mid + 1`
21770 fi
21771
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773   done
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778         cat >conftest.$ac_ext <<_ACEOF
21779 /* confdefs.h.  */
21780 _ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h.  */
21784 $ac_includes_default
21785    typedef long long ac__type_sizeof_;
21786 int
21787 main ()
21788 {
21789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21790 test_array [0] = 0
21791
21792   ;
21793   return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803   (eval "$ac_compile") 2>conftest.er1
21804   ac_status=$?
21805   grep -v '^ *+' conftest.er1 >conftest.err
21806   rm -f conftest.er1
21807   cat conftest.err >&5
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } && {
21810          test -z "$ac_c_werror_flag" ||
21811          test ! -s conftest.err
21812        } && test -s conftest.$ac_objext; then
21813   ac_hi=-1 ac_mid=-1
21814   while :; do
21815     cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 $ac_includes_default
21822    typedef long long ac__type_sizeof_;
21823 int
21824 main ()
21825 {
21826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21827 test_array [0] = 0
21828
21829   ;
21830   return 0;
21831 }
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_compile") 2>conftest.er1
21841   ac_status=$?
21842   grep -v '^ *+' conftest.er1 >conftest.err
21843   rm -f conftest.er1
21844   cat conftest.err >&5
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } && {
21847          test -z "$ac_c_werror_flag" ||
21848          test ! -s conftest.err
21849        } && test -s conftest.$ac_objext; then
21850   ac_lo=$ac_mid; break
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855         ac_hi=`expr '(' $ac_mid ')' - 1`
21856                         if test $ac_mid -le $ac_hi; then
21857                           ac_lo= ac_hi=
21858                           break
21859                         fi
21860                         ac_mid=`expr 2 '*' $ac_mid`
21861 fi
21862
21863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21864   done
21865 else
21866   echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21868
21869         ac_lo= ac_hi=
21870 fi
21871
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 fi
21874
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21876 # Binary search between lo and hi bounds.
21877 while test "x$ac_lo" != "x$ac_hi"; do
21878   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21879   cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h.  */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h.  */
21885 $ac_includes_default
21886    typedef long long ac__type_sizeof_;
21887 int
21888 main ()
21889 {
21890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21891 test_array [0] = 0
21892
21893   ;
21894   return 0;
21895 }
21896 _ACEOF
21897 rm -f conftest.$ac_objext
21898 if { (ac_try="$ac_compile"
21899 case "(($ac_try" in
21900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901   *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904   (eval "$ac_compile") 2>conftest.er1
21905   ac_status=$?
21906   grep -v '^ *+' conftest.er1 >conftest.err
21907   rm -f conftest.er1
21908   cat conftest.err >&5
21909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910   (exit $ac_status); } && {
21911          test -z "$ac_c_werror_flag" ||
21912          test ! -s conftest.err
21913        } && test -s conftest.$ac_objext; then
21914   ac_hi=$ac_mid
21915 else
21916   echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919         ac_lo=`expr '(' $ac_mid ')' + 1`
21920 fi
21921
21922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 done
21924 case $ac_lo in
21925 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21926 '') if test "$ac_cv_type_long_long" = yes; then
21927      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21928 See \`config.log' for more details." >&5
21929 echo "$as_me: error: cannot compute sizeof (long long)
21930 See \`config.log' for more details." >&2;}
21931    { (exit 77); exit 77; }; }
21932    else
21933      ac_cv_sizeof_long_long=0
21934    fi ;;
21935 esac
21936 else
21937   cat >conftest.$ac_ext <<_ACEOF
21938 /* confdefs.h.  */
21939 _ACEOF
21940 cat confdefs.h >>conftest.$ac_ext
21941 cat >>conftest.$ac_ext <<_ACEOF
21942 /* end confdefs.h.  */
21943 $ac_includes_default
21944    typedef long long ac__type_sizeof_;
21945 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21946 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21947 #include <stdio.h>
21948 #include <stdlib.h>
21949 int
21950 main ()
21951 {
21952
21953   FILE *f = fopen ("conftest.val", "w");
21954   if (! f)
21955     return 1;
21956   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21957     {
21958       long int i = longval ();
21959       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21960         return 1;
21961       fprintf (f, "%ld\n", i);
21962     }
21963   else
21964     {
21965       unsigned long int i = ulongval ();
21966       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21967         return 1;
21968       fprintf (f, "%lu\n", i);
21969     }
21970   return ferror (f) || fclose (f) != 0;
21971
21972   ;
21973   return 0;
21974 }
21975 _ACEOF
21976 rm -f conftest$ac_exeext
21977 if { (ac_try="$ac_link"
21978 case "(($ac_try" in
21979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980   *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983   (eval "$ac_link") 2>&5
21984   ac_status=$?
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21987   { (case "(($ac_try" in
21988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989   *) ac_try_echo=$ac_try;;
21990 esac
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992   (eval "$ac_try") 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; }; then
21996   ac_cv_sizeof_long_long=`cat conftest.val`
21997 else
21998   echo "$as_me: program exited with status $ac_status" >&5
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002 ( exit $ac_status )
22003 if test "$ac_cv_type_long_long" = yes; then
22004      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22005 See \`config.log' for more details." >&5
22006 echo "$as_me: error: cannot compute sizeof (long long)
22007 See \`config.log' for more details." >&2;}
22008    { (exit 77); exit 77; }; }
22009    else
22010      ac_cv_sizeof_long_long=0
22011    fi
22012 fi
22013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22014 fi
22015 rm -f conftest.val
22016 fi
22017 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22018 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22019
22020
22021
22022 cat >>confdefs.h <<_ACEOF
22023 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22024 _ACEOF
22025
22026
22027     ;;
22028     *-hp-hpux* )
22029         { echo "$as_me:$LINENO: checking for long long" >&5
22030 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22031 if test "${ac_cv_type_long_long+set}" = set; then
22032   echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034   cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040 $ac_includes_default
22041 typedef long long ac__type_new_;
22042 int
22043 main ()
22044 {
22045 if ((ac__type_new_ *) 0)
22046   return 0;
22047 if (sizeof (ac__type_new_))
22048   return 0;
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 rm -f conftest.$ac_objext
22054 if { (ac_try="$ac_compile"
22055 case "(($ac_try" in
22056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057   *) ac_try_echo=$ac_try;;
22058 esac
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060   (eval "$ac_compile") 2>conftest.er1
22061   ac_status=$?
22062   grep -v '^ *+' conftest.er1 >conftest.err
22063   rm -f conftest.er1
22064   cat conftest.err >&5
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } && {
22067          test -z "$ac_c_werror_flag" ||
22068          test ! -s conftest.err
22069        } && test -s conftest.$ac_objext; then
22070   ac_cv_type_long_long=yes
22071 else
22072   echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22074
22075         ac_cv_type_long_long=no
22076 fi
22077
22078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 fi
22080 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22081 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22082
22083 # The cast to long int works around a bug in the HP C Compiler
22084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22086 # This bug is HP SR number 8606223364.
22087 { echo "$as_me:$LINENO: checking size of long long" >&5
22088 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22089 if test "${ac_cv_sizeof_long_long+set}" = set; then
22090   echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092   if test "$cross_compiling" = yes; then
22093   # Depending upon the size, compute the lo and hi bounds.
22094 cat >conftest.$ac_ext <<_ACEOF
22095 /* confdefs.h.  */
22096 _ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h.  */
22100 $ac_includes_default
22101    typedef long long ac__type_sizeof_;
22102 int
22103 main ()
22104 {
22105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22106 test_array [0] = 0
22107
22108   ;
22109   return 0;
22110 }
22111 _ACEOF
22112 rm -f conftest.$ac_objext
22113 if { (ac_try="$ac_compile"
22114 case "(($ac_try" in
22115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116   *) ac_try_echo=$ac_try;;
22117 esac
22118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22119   (eval "$ac_compile") 2>conftest.er1
22120   ac_status=$?
22121   grep -v '^ *+' conftest.er1 >conftest.err
22122   rm -f conftest.er1
22123   cat conftest.err >&5
22124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125   (exit $ac_status); } && {
22126          test -z "$ac_c_werror_flag" ||
22127          test ! -s conftest.err
22128        } && test -s conftest.$ac_objext; then
22129   ac_lo=0 ac_mid=0
22130   while :; do
22131     cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h.  */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h.  */
22137 $ac_includes_default
22138    typedef long long ac__type_sizeof_;
22139 int
22140 main ()
22141 {
22142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22143 test_array [0] = 0
22144
22145   ;
22146   return 0;
22147 }
22148 _ACEOF
22149 rm -f conftest.$ac_objext
22150 if { (ac_try="$ac_compile"
22151 case "(($ac_try" in
22152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153   *) ac_try_echo=$ac_try;;
22154 esac
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156   (eval "$ac_compile") 2>conftest.er1
22157   ac_status=$?
22158   grep -v '^ *+' conftest.er1 >conftest.err
22159   rm -f conftest.er1
22160   cat conftest.err >&5
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); } && {
22163          test -z "$ac_c_werror_flag" ||
22164          test ! -s conftest.err
22165        } && test -s conftest.$ac_objext; then
22166   ac_hi=$ac_mid; break
22167 else
22168   echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171         ac_lo=`expr $ac_mid + 1`
22172                         if test $ac_lo -le $ac_mid; then
22173                           ac_lo= ac_hi=
22174                           break
22175                         fi
22176                         ac_mid=`expr 2 '*' $ac_mid + 1`
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180   done
22181 else
22182   echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185         cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h.  */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h.  */
22191 $ac_includes_default
22192    typedef long long ac__type_sizeof_;
22193 int
22194 main ()
22195 {
22196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22197 test_array [0] = 0
22198
22199   ;
22200   return 0;
22201 }
22202 _ACEOF
22203 rm -f conftest.$ac_objext
22204 if { (ac_try="$ac_compile"
22205 case "(($ac_try" in
22206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207   *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210   (eval "$ac_compile") 2>conftest.er1
22211   ac_status=$?
22212   grep -v '^ *+' conftest.er1 >conftest.err
22213   rm -f conftest.er1
22214   cat conftest.err >&5
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } && {
22217          test -z "$ac_c_werror_flag" ||
22218          test ! -s conftest.err
22219        } && test -s conftest.$ac_objext; then
22220   ac_hi=-1 ac_mid=-1
22221   while :; do
22222     cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h.  */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h.  */
22228 $ac_includes_default
22229    typedef long long ac__type_sizeof_;
22230 int
22231 main ()
22232 {
22233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22234 test_array [0] = 0
22235
22236   ;
22237   return 0;
22238 }
22239 _ACEOF
22240 rm -f conftest.$ac_objext
22241 if { (ac_try="$ac_compile"
22242 case "(($ac_try" in
22243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244   *) ac_try_echo=$ac_try;;
22245 esac
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247   (eval "$ac_compile") 2>conftest.er1
22248   ac_status=$?
22249   grep -v '^ *+' conftest.er1 >conftest.err
22250   rm -f conftest.er1
22251   cat conftest.err >&5
22252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253   (exit $ac_status); } && {
22254          test -z "$ac_c_werror_flag" ||
22255          test ! -s conftest.err
22256        } && test -s conftest.$ac_objext; then
22257   ac_lo=$ac_mid; break
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262         ac_hi=`expr '(' $ac_mid ')' - 1`
22263                         if test $ac_mid -le $ac_hi; then
22264                           ac_lo= ac_hi=
22265                           break
22266                         fi
22267                         ac_mid=`expr 2 '*' $ac_mid`
22268 fi
22269
22270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22271   done
22272 else
22273   echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276         ac_lo= ac_hi=
22277 fi
22278
22279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22280 fi
22281
22282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 # Binary search between lo and hi bounds.
22284 while test "x$ac_lo" != "x$ac_hi"; do
22285   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22286   cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h.  */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h.  */
22292 $ac_includes_default
22293    typedef long long ac__type_sizeof_;
22294 int
22295 main ()
22296 {
22297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22298 test_array [0] = 0
22299
22300   ;
22301   return 0;
22302 }
22303 _ACEOF
22304 rm -f conftest.$ac_objext
22305 if { (ac_try="$ac_compile"
22306 case "(($ac_try" in
22307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308   *) ac_try_echo=$ac_try;;
22309 esac
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311   (eval "$ac_compile") 2>conftest.er1
22312   ac_status=$?
22313   grep -v '^ *+' conftest.er1 >conftest.err
22314   rm -f conftest.er1
22315   cat conftest.err >&5
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); } && {
22318          test -z "$ac_c_werror_flag" ||
22319          test ! -s conftest.err
22320        } && test -s conftest.$ac_objext; then
22321   ac_hi=$ac_mid
22322 else
22323   echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326         ac_lo=`expr '(' $ac_mid ')' + 1`
22327 fi
22328
22329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330 done
22331 case $ac_lo in
22332 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22333 '') if test "$ac_cv_type_long_long" = yes; then
22334      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22335 See \`config.log' for more details." >&5
22336 echo "$as_me: error: cannot compute sizeof (long long)
22337 See \`config.log' for more details." >&2;}
22338    { (exit 77); exit 77; }; }
22339    else
22340      ac_cv_sizeof_long_long=0
22341    fi ;;
22342 esac
22343 else
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 $ac_includes_default
22351    typedef long long ac__type_sizeof_;
22352 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22353 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22354 #include <stdio.h>
22355 #include <stdlib.h>
22356 int
22357 main ()
22358 {
22359
22360   FILE *f = fopen ("conftest.val", "w");
22361   if (! f)
22362     return 1;
22363   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22364     {
22365       long int i = longval ();
22366       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22367         return 1;
22368       fprintf (f, "%ld\n", i);
22369     }
22370   else
22371     {
22372       unsigned long int i = ulongval ();
22373       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22374         return 1;
22375       fprintf (f, "%lu\n", i);
22376     }
22377   return ferror (f) || fclose (f) != 0;
22378
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 rm -f conftest$ac_exeext
22384 if { (ac_try="$ac_link"
22385 case "(($ac_try" in
22386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387   *) ac_try_echo=$ac_try;;
22388 esac
22389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390   (eval "$ac_link") 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22394   { (case "(($ac_try" in
22395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396   *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399   (eval "$ac_try") 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); }; }; then
22403   ac_cv_sizeof_long_long=`cat conftest.val`
22404 else
22405   echo "$as_me: program exited with status $ac_status" >&5
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409 ( exit $ac_status )
22410 if test "$ac_cv_type_long_long" = yes; then
22411      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22412 See \`config.log' for more details." >&5
22413 echo "$as_me: error: cannot compute sizeof (long long)
22414 See \`config.log' for more details." >&2;}
22415    { (exit 77); exit 77; }; }
22416    else
22417      ac_cv_sizeof_long_long=0
22418    fi
22419 fi
22420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22421 fi
22422 rm -f conftest.val
22423 fi
22424 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22425 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22426
22427
22428
22429 cat >>confdefs.h <<_ACEOF
22430 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22431 _ACEOF
22432
22433
22434         if test "$ac_cv_sizeof_long_long" != 0; then
22435                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22436         fi
22437     ;;
22438     * )
22439         { echo "$as_me:$LINENO: checking for long long" >&5
22440 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22441 if test "${ac_cv_type_long_long+set}" = set; then
22442   echo $ECHO_N "(cached) $ECHO_C" >&6
22443 else
22444   cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 $ac_includes_default
22451 typedef long long ac__type_new_;
22452 int
22453 main ()
22454 {
22455 if ((ac__type_new_ *) 0)
22456   return 0;
22457 if (sizeof (ac__type_new_))
22458   return 0;
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 rm -f conftest.$ac_objext
22464 if { (ac_try="$ac_compile"
22465 case "(($ac_try" in
22466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467   *) ac_try_echo=$ac_try;;
22468 esac
22469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22470   (eval "$ac_compile") 2>conftest.er1
22471   ac_status=$?
22472   grep -v '^ *+' conftest.er1 >conftest.err
22473   rm -f conftest.er1
22474   cat conftest.err >&5
22475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476   (exit $ac_status); } && {
22477          test -z "$ac_c_werror_flag" ||
22478          test ! -s conftest.err
22479        } && test -s conftest.$ac_objext; then
22480   ac_cv_type_long_long=yes
22481 else
22482   echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22484
22485         ac_cv_type_long_long=no
22486 fi
22487
22488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489 fi
22490 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22491 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22492
22493 # The cast to long int works around a bug in the HP C Compiler
22494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22496 # This bug is HP SR number 8606223364.
22497 { echo "$as_me:$LINENO: checking size of long long" >&5
22498 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22499 if test "${ac_cv_sizeof_long_long+set}" = set; then
22500   echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502   if test "$cross_compiling" = yes; then
22503   # Depending upon the size, compute the lo and hi bounds.
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510 $ac_includes_default
22511    typedef long long ac__type_sizeof_;
22512 int
22513 main ()
22514 {
22515 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22516 test_array [0] = 0
22517
22518   ;
22519   return 0;
22520 }
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529   (eval "$ac_compile") 2>conftest.er1
22530   ac_status=$?
22531   grep -v '^ *+' conftest.er1 >conftest.err
22532   rm -f conftest.er1
22533   cat conftest.err >&5
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); } && {
22536          test -z "$ac_c_werror_flag" ||
22537          test ! -s conftest.err
22538        } && test -s conftest.$ac_objext; then
22539   ac_lo=0 ac_mid=0
22540   while :; do
22541     cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547 $ac_includes_default
22548    typedef long long ac__type_sizeof_;
22549 int
22550 main ()
22551 {
22552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22553 test_array [0] = 0
22554
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext
22560 if { (ac_try="$ac_compile"
22561 case "(($ac_try" in
22562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563   *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566   (eval "$ac_compile") 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } && {
22573          test -z "$ac_c_werror_flag" ||
22574          test ! -s conftest.err
22575        } && test -s conftest.$ac_objext; then
22576   ac_hi=$ac_mid; break
22577 else
22578   echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581         ac_lo=`expr $ac_mid + 1`
22582                         if test $ac_lo -le $ac_mid; then
22583                           ac_lo= ac_hi=
22584                           break
22585                         fi
22586                         ac_mid=`expr 2 '*' $ac_mid + 1`
22587 fi
22588
22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590   done
22591 else
22592   echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22594
22595         cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601 $ac_includes_default
22602    typedef long long ac__type_sizeof_;
22603 int
22604 main ()
22605 {
22606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22607 test_array [0] = 0
22608
22609   ;
22610   return 0;
22611 }
22612 _ACEOF
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617   *) ac_try_echo=$ac_try;;
22618 esac
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620   (eval "$ac_compile") 2>conftest.er1
22621   ac_status=$?
22622   grep -v '^ *+' conftest.er1 >conftest.err
22623   rm -f conftest.er1
22624   cat conftest.err >&5
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } && {
22627          test -z "$ac_c_werror_flag" ||
22628          test ! -s conftest.err
22629        } && test -s conftest.$ac_objext; then
22630   ac_hi=-1 ac_mid=-1
22631   while :; do
22632     cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h.  */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h.  */
22638 $ac_includes_default
22639    typedef long long ac__type_sizeof_;
22640 int
22641 main ()
22642 {
22643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22644 test_array [0] = 0
22645
22646   ;
22647   return 0;
22648 }
22649 _ACEOF
22650 rm -f conftest.$ac_objext
22651 if { (ac_try="$ac_compile"
22652 case "(($ac_try" in
22653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654   *) ac_try_echo=$ac_try;;
22655 esac
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657   (eval "$ac_compile") 2>conftest.er1
22658   ac_status=$?
22659   grep -v '^ *+' conftest.er1 >conftest.err
22660   rm -f conftest.er1
22661   cat conftest.err >&5
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); } && {
22664          test -z "$ac_c_werror_flag" ||
22665          test ! -s conftest.err
22666        } && test -s conftest.$ac_objext; then
22667   ac_lo=$ac_mid; break
22668 else
22669   echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672         ac_hi=`expr '(' $ac_mid ')' - 1`
22673                         if test $ac_mid -le $ac_hi; then
22674                           ac_lo= ac_hi=
22675                           break
22676                         fi
22677                         ac_mid=`expr 2 '*' $ac_mid`
22678 fi
22679
22680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681   done
22682 else
22683   echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22685
22686         ac_lo= ac_hi=
22687 fi
22688
22689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22690 fi
22691
22692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22693 # Binary search between lo and hi bounds.
22694 while test "x$ac_lo" != "x$ac_hi"; do
22695   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22696   cat >conftest.$ac_ext <<_ACEOF
22697 /* confdefs.h.  */
22698 _ACEOF
22699 cat confdefs.h >>conftest.$ac_ext
22700 cat >>conftest.$ac_ext <<_ACEOF
22701 /* end confdefs.h.  */
22702 $ac_includes_default
22703    typedef long long ac__type_sizeof_;
22704 int
22705 main ()
22706 {
22707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22708 test_array [0] = 0
22709
22710   ;
22711   return 0;
22712 }
22713 _ACEOF
22714 rm -f conftest.$ac_objext
22715 if { (ac_try="$ac_compile"
22716 case "(($ac_try" in
22717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718   *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721   (eval "$ac_compile") 2>conftest.er1
22722   ac_status=$?
22723   grep -v '^ *+' conftest.er1 >conftest.err
22724   rm -f conftest.er1
22725   cat conftest.err >&5
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); } && {
22728          test -z "$ac_c_werror_flag" ||
22729          test ! -s conftest.err
22730        } && test -s conftest.$ac_objext; then
22731   ac_hi=$ac_mid
22732 else
22733   echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736         ac_lo=`expr '(' $ac_mid ')' + 1`
22737 fi
22738
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 done
22741 case $ac_lo in
22742 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22743 '') if test "$ac_cv_type_long_long" = yes; then
22744      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22745 See \`config.log' for more details." >&5
22746 echo "$as_me: error: cannot compute sizeof (long long)
22747 See \`config.log' for more details." >&2;}
22748    { (exit 77); exit 77; }; }
22749    else
22750      ac_cv_sizeof_long_long=0
22751    fi ;;
22752 esac
22753 else
22754   cat >conftest.$ac_ext <<_ACEOF
22755 /* confdefs.h.  */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h.  */
22760 $ac_includes_default
22761    typedef long long ac__type_sizeof_;
22762 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22763 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22764 #include <stdio.h>
22765 #include <stdlib.h>
22766 int
22767 main ()
22768 {
22769
22770   FILE *f = fopen ("conftest.val", "w");
22771   if (! f)
22772     return 1;
22773   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22774     {
22775       long int i = longval ();
22776       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22777         return 1;
22778       fprintf (f, "%ld\n", i);
22779     }
22780   else
22781     {
22782       unsigned long int i = ulongval ();
22783       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22784         return 1;
22785       fprintf (f, "%lu\n", i);
22786     }
22787   return ferror (f) || fclose (f) != 0;
22788
22789   ;
22790   return 0;
22791 }
22792 _ACEOF
22793 rm -f conftest$ac_exeext
22794 if { (ac_try="$ac_link"
22795 case "(($ac_try" in
22796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797   *) ac_try_echo=$ac_try;;
22798 esac
22799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22800   (eval "$ac_link") 2>&5
22801   ac_status=$?
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22804   { (case "(($ac_try" in
22805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806   *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809   (eval "$ac_try") 2>&5
22810   ac_status=$?
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); }; }; then
22813   ac_cv_sizeof_long_long=`cat conftest.val`
22814 else
22815   echo "$as_me: program exited with status $ac_status" >&5
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22818
22819 ( exit $ac_status )
22820 if test "$ac_cv_type_long_long" = yes; then
22821      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22822 See \`config.log' for more details." >&5
22823 echo "$as_me: error: cannot compute sizeof (long long)
22824 See \`config.log' for more details." >&2;}
22825    { (exit 77); exit 77; }; }
22826    else
22827      ac_cv_sizeof_long_long=0
22828    fi
22829 fi
22830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22831 fi
22832 rm -f conftest.val
22833 fi
22834 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22835 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22836
22837
22838
22839 cat >>confdefs.h <<_ACEOF
22840 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22841 _ACEOF
22842
22843
22844 esac
22845
22846 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22847 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22848 if test "${ac_cv_type_wchar_t+set}" = set; then
22849   echo $ECHO_N "(cached) $ECHO_C" >&6
22850 else
22851   cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h.  */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h.  */
22857
22858         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22859         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22860         #  error "fake wchar_t"
22861         #endif
22862         #ifdef HAVE_WCHAR_H
22863         #  ifdef __CYGWIN__
22864         #    include <stddef.h>
22865         #  endif
22866         #  include <wchar.h>
22867         #endif
22868         #ifdef HAVE_STDLIB_H
22869         #  include <stdlib.h>
22870         #endif
22871         #include <stdio.h>
22872
22873
22874
22875 typedef wchar_t ac__type_new_;
22876 int
22877 main ()
22878 {
22879 if ((ac__type_new_ *) 0)
22880   return 0;
22881 if (sizeof (ac__type_new_))
22882   return 0;
22883   ;
22884   return 0;
22885 }
22886 _ACEOF
22887 rm -f conftest.$ac_objext
22888 if { (ac_try="$ac_compile"
22889 case "(($ac_try" in
22890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891   *) ac_try_echo=$ac_try;;
22892 esac
22893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22894   (eval "$ac_compile") 2>conftest.er1
22895   ac_status=$?
22896   grep -v '^ *+' conftest.er1 >conftest.err
22897   rm -f conftest.er1
22898   cat conftest.err >&5
22899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900   (exit $ac_status); } && {
22901          test -z "$ac_c_werror_flag" ||
22902          test ! -s conftest.err
22903        } && test -s conftest.$ac_objext; then
22904   ac_cv_type_wchar_t=yes
22905 else
22906   echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22908
22909         ac_cv_type_wchar_t=no
22910 fi
22911
22912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913 fi
22914 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22915 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22916
22917 # The cast to long int works around a bug in the HP C Compiler
22918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22920 # This bug is HP SR number 8606223364.
22921 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22922 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22923 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22924   echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926   if test "$cross_compiling" = yes; then
22927   # Depending upon the size, compute the lo and hi bounds.
22928 cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934
22935         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22936         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22937         #  error "fake wchar_t"
22938         #endif
22939         #ifdef HAVE_WCHAR_H
22940         #  ifdef __CYGWIN__
22941         #    include <stddef.h>
22942         #  endif
22943         #  include <wchar.h>
22944         #endif
22945         #ifdef HAVE_STDLIB_H
22946         #  include <stdlib.h>
22947         #endif
22948         #include <stdio.h>
22949
22950
22951
22952    typedef wchar_t ac__type_sizeof_;
22953 int
22954 main ()
22955 {
22956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22957 test_array [0] = 0
22958
22959   ;
22960   return 0;
22961 }
22962 _ACEOF
22963 rm -f conftest.$ac_objext
22964 if { (ac_try="$ac_compile"
22965 case "(($ac_try" in
22966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967   *) ac_try_echo=$ac_try;;
22968 esac
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970   (eval "$ac_compile") 2>conftest.er1
22971   ac_status=$?
22972   grep -v '^ *+' conftest.er1 >conftest.err
22973   rm -f conftest.er1
22974   cat conftest.err >&5
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); } && {
22977          test -z "$ac_c_werror_flag" ||
22978          test ! -s conftest.err
22979        } && test -s conftest.$ac_objext; then
22980   ac_lo=0 ac_mid=0
22981   while :; do
22982     cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988
22989         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22990         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22991         #  error "fake wchar_t"
22992         #endif
22993         #ifdef HAVE_WCHAR_H
22994         #  ifdef __CYGWIN__
22995         #    include <stddef.h>
22996         #  endif
22997         #  include <wchar.h>
22998         #endif
22999         #ifdef HAVE_STDLIB_H
23000         #  include <stdlib.h>
23001         #endif
23002         #include <stdio.h>
23003
23004
23005
23006    typedef wchar_t ac__type_sizeof_;
23007 int
23008 main ()
23009 {
23010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23011 test_array [0] = 0
23012
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 rm -f conftest.$ac_objext
23018 if { (ac_try="$ac_compile"
23019 case "(($ac_try" in
23020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021   *) ac_try_echo=$ac_try;;
23022 esac
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024   (eval "$ac_compile") 2>conftest.er1
23025   ac_status=$?
23026   grep -v '^ *+' conftest.er1 >conftest.err
23027   rm -f conftest.er1
23028   cat conftest.err >&5
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } && {
23031          test -z "$ac_c_werror_flag" ||
23032          test ! -s conftest.err
23033        } && test -s conftest.$ac_objext; then
23034   ac_hi=$ac_mid; break
23035 else
23036   echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23038
23039         ac_lo=`expr $ac_mid + 1`
23040                         if test $ac_lo -le $ac_mid; then
23041                           ac_lo= ac_hi=
23042                           break
23043                         fi
23044                         ac_mid=`expr 2 '*' $ac_mid + 1`
23045 fi
23046
23047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23048   done
23049 else
23050   echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23052
23053         cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h.  */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h.  */
23059
23060         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23061         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23062         #  error "fake wchar_t"
23063         #endif
23064         #ifdef HAVE_WCHAR_H
23065         #  ifdef __CYGWIN__
23066         #    include <stddef.h>
23067         #  endif
23068         #  include <wchar.h>
23069         #endif
23070         #ifdef HAVE_STDLIB_H
23071         #  include <stdlib.h>
23072         #endif
23073         #include <stdio.h>
23074
23075
23076
23077    typedef wchar_t ac__type_sizeof_;
23078 int
23079 main ()
23080 {
23081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23082 test_array [0] = 0
23083
23084   ;
23085   return 0;
23086 }
23087 _ACEOF
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092   *) ac_try_echo=$ac_try;;
23093 esac
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095   (eval "$ac_compile") 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } && {
23102          test -z "$ac_c_werror_flag" ||
23103          test ! -s conftest.err
23104        } && test -s conftest.$ac_objext; then
23105   ac_hi=-1 ac_mid=-1
23106   while :; do
23107     cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h.  */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h.  */
23113
23114         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23115         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23116         #  error "fake wchar_t"
23117         #endif
23118         #ifdef HAVE_WCHAR_H
23119         #  ifdef __CYGWIN__
23120         #    include <stddef.h>
23121         #  endif
23122         #  include <wchar.h>
23123         #endif
23124         #ifdef HAVE_STDLIB_H
23125         #  include <stdlib.h>
23126         #endif
23127         #include <stdio.h>
23128
23129
23130
23131    typedef wchar_t ac__type_sizeof_;
23132 int
23133 main ()
23134 {
23135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23136 test_array [0] = 0
23137
23138   ;
23139   return 0;
23140 }
23141 _ACEOF
23142 rm -f conftest.$ac_objext
23143 if { (ac_try="$ac_compile"
23144 case "(($ac_try" in
23145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146   *) ac_try_echo=$ac_try;;
23147 esac
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149   (eval "$ac_compile") 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } && {
23156          test -z "$ac_c_werror_flag" ||
23157          test ! -s conftest.err
23158        } && test -s conftest.$ac_objext; then
23159   ac_lo=$ac_mid; break
23160 else
23161   echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23163
23164         ac_hi=`expr '(' $ac_mid ')' - 1`
23165                         if test $ac_mid -le $ac_hi; then
23166                           ac_lo= ac_hi=
23167                           break
23168                         fi
23169                         ac_mid=`expr 2 '*' $ac_mid`
23170 fi
23171
23172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23173   done
23174 else
23175   echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23177
23178         ac_lo= ac_hi=
23179 fi
23180
23181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23182 fi
23183
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185 # Binary search between lo and hi bounds.
23186 while test "x$ac_lo" != "x$ac_hi"; do
23187   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23188   cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h.  */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h.  */
23194
23195         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23196         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23197         #  error "fake wchar_t"
23198         #endif
23199         #ifdef HAVE_WCHAR_H
23200         #  ifdef __CYGWIN__
23201         #    include <stddef.h>
23202         #  endif
23203         #  include <wchar.h>
23204         #endif
23205         #ifdef HAVE_STDLIB_H
23206         #  include <stdlib.h>
23207         #endif
23208         #include <stdio.h>
23209
23210
23211
23212    typedef wchar_t ac__type_sizeof_;
23213 int
23214 main ()
23215 {
23216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23217 test_array [0] = 0
23218
23219   ;
23220   return 0;
23221 }
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227   *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230   (eval "$ac_compile") 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } && {
23237          test -z "$ac_c_werror_flag" ||
23238          test ! -s conftest.err
23239        } && test -s conftest.$ac_objext; then
23240   ac_hi=$ac_mid
23241 else
23242   echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23244
23245         ac_lo=`expr '(' $ac_mid ')' + 1`
23246 fi
23247
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 done
23250 case $ac_lo in
23251 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23252 '') if test "$ac_cv_type_wchar_t" = yes; then
23253      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23254 See \`config.log' for more details." >&5
23255 echo "$as_me: error: cannot compute sizeof (wchar_t)
23256 See \`config.log' for more details." >&2;}
23257    { (exit 77); exit 77; }; }
23258    else
23259      ac_cv_sizeof_wchar_t=0
23260    fi ;;
23261 esac
23262 else
23263   cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h.  */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h.  */
23269
23270         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23271         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23272         #  error "fake wchar_t"
23273         #endif
23274         #ifdef HAVE_WCHAR_H
23275         #  ifdef __CYGWIN__
23276         #    include <stddef.h>
23277         #  endif
23278         #  include <wchar.h>
23279         #endif
23280         #ifdef HAVE_STDLIB_H
23281         #  include <stdlib.h>
23282         #endif
23283         #include <stdio.h>
23284
23285
23286
23287    typedef wchar_t ac__type_sizeof_;
23288 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23289 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23290 #include <stdio.h>
23291 #include <stdlib.h>
23292 int
23293 main ()
23294 {
23295
23296   FILE *f = fopen ("conftest.val", "w");
23297   if (! f)
23298     return 1;
23299   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23300     {
23301       long int i = longval ();
23302       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23303         return 1;
23304       fprintf (f, "%ld\n", i);
23305     }
23306   else
23307     {
23308       unsigned long int i = ulongval ();
23309       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23310         return 1;
23311       fprintf (f, "%lu\n", i);
23312     }
23313   return ferror (f) || fclose (f) != 0;
23314
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 rm -f conftest$ac_exeext
23320 if { (ac_try="$ac_link"
23321 case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_link") 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23330   { (case "(($ac_try" in
23331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332   *) ac_try_echo=$ac_try;;
23333 esac
23334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335   (eval "$ac_try") 2>&5
23336   ac_status=$?
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); }; }; then
23339   ac_cv_sizeof_wchar_t=`cat conftest.val`
23340 else
23341   echo "$as_me: program exited with status $ac_status" >&5
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345 ( exit $ac_status )
23346 if test "$ac_cv_type_wchar_t" = yes; then
23347      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23348 See \`config.log' for more details." >&5
23349 echo "$as_me: error: cannot compute sizeof (wchar_t)
23350 See \`config.log' for more details." >&2;}
23351    { (exit 77); exit 77; }; }
23352    else
23353      ac_cv_sizeof_wchar_t=0
23354    fi
23355 fi
23356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23357 fi
23358 rm -f conftest.val
23359 fi
23360 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23361 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23362
23363
23364
23365 cat >>confdefs.h <<_ACEOF
23366 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23367 _ACEOF
23368
23369
23370 if test "$ac_cv_sizeof_wchar_t" != 0; then
23371     wxUSE_WCHAR_T=yes
23372 else
23373     wxUSE_WCHAR_T=no
23374 fi
23375
23376 { echo "$as_me:$LINENO: checking for va_copy" >&5
23377 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23378 if test "${wx_cv_func_va_copy+set}" = set; then
23379   echo $ECHO_N "(cached) $ECHO_C" >&6
23380 else
23381
23382         ac_ext=cpp
23383 ac_cpp='$CXXCPP $CPPFLAGS'
23384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23387
23388         cat >conftest.$ac_ext <<_ACEOF
23389
23390             #include <stdarg.h>
23391             void foo(char *f, ...)
23392             {
23393                 va_list ap1, ap2;
23394                 va_start(ap1, f);
23395                 va_copy(ap2, ap1);
23396                 va_end(ap2);
23397                 va_end(ap1);
23398             }
23399             int main()
23400             {
23401                 foo("hi", 17);
23402                 return 0;
23403             }
23404 _ACEOF
23405 rm -f conftest.$ac_objext conftest$ac_exeext
23406 if { (ac_try="$ac_link"
23407 case "(($ac_try" in
23408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409   *) ac_try_echo=$ac_try;;
23410 esac
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412   (eval "$ac_link") 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } && {
23419          test -z "$ac_cxx_werror_flag" ||
23420          test ! -s conftest.err
23421        } && test -s conftest$ac_exeext &&
23422        $as_test_x conftest$ac_exeext; then
23423   wx_cv_func_va_copy=yes
23424 else
23425   echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427
23428         wx_cv_func_va_copy=no
23429
23430 fi
23431
23432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23433       conftest$ac_exeext conftest.$ac_ext
23434         ac_ext=c
23435 ac_cpp='$CPP $CPPFLAGS'
23436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23439
23440
23441
23442 fi
23443 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23444 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23445
23446 if test $wx_cv_func_va_copy = "yes"; then
23447     cat >>confdefs.h <<\_ACEOF
23448 #define HAVE_VA_COPY 1
23449 _ACEOF
23450
23451 else
23452         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23453 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23454 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23455   echo $ECHO_N "(cached) $ECHO_C" >&6
23456 else
23457
23458             if test "$cross_compiling" = yes; then
23459                   wx_cv_type_va_list_lvalue=yes
23460
23461 else
23462   cat >conftest.$ac_ext <<_ACEOF
23463
23464                 #include <stdarg.h>
23465                 int foo(char *f, ...)
23466                 {
23467                     va_list ap1, ap2;
23468                     va_start(ap1, f);
23469                     ap2 = ap1;
23470                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23471                         return 1;
23472                     va_end(ap2);
23473                     va_end(ap1);
23474                     return 0;
23475                 }
23476                 int main()
23477                 {
23478                     return foo("hi", 17);
23479                 }
23480 _ACEOF
23481 rm -f conftest$ac_exeext
23482 if { (ac_try="$ac_link"
23483 case "(($ac_try" in
23484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485   *) ac_try_echo=$ac_try;;
23486 esac
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488   (eval "$ac_link") 2>&5
23489   ac_status=$?
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23492   { (case "(($ac_try" in
23493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494   *) ac_try_echo=$ac_try;;
23495 esac
23496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23497   (eval "$ac_try") 2>&5
23498   ac_status=$?
23499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); }; }; then
23501   wx_cv_type_va_list_lvalue=yes
23502 else
23503   echo "$as_me: program exited with status $ac_status" >&5
23504 echo "$as_me: failed program was:" >&5
23505 sed 's/^/| /' conftest.$ac_ext >&5
23506
23507 ( exit $ac_status )
23508 wx_cv_type_va_list_lvalue=no
23509 fi
23510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23511 fi
23512
23513
23514
23515
23516 fi
23517 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23518 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23519
23520     if test $wx_cv_type_va_list_lvalue != "yes"; then
23521                         cat >>confdefs.h <<\_ACEOF
23522 #define VA_LIST_IS_ARRAY 1
23523 _ACEOF
23524
23525     fi
23526 fi
23527
23528 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23529
23530 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23531 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23532 if test "${wx_cv_have_variadic_macros+set}" = set; then
23533   echo $ECHO_N "(cached) $ECHO_C" >&6
23534 else
23535
23536                         ac_ext=cpp
23537 ac_cpp='$CXXCPP $CPPFLAGS'
23538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23541
23542         cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h.  */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h.  */
23548
23549                     #include <stdio.h>
23550                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23551
23552 int
23553 main ()
23554 {
23555
23556                     test("%s %d %p", "test", 1, 0);
23557
23558
23559   ;
23560   return 0;
23561 }
23562 _ACEOF
23563 rm -f conftest.$ac_objext
23564 if { (ac_try="$ac_compile"
23565 case "(($ac_try" in
23566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567   *) ac_try_echo=$ac_try;;
23568 esac
23569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570   (eval "$ac_compile") 2>conftest.er1
23571   ac_status=$?
23572   grep -v '^ *+' conftest.er1 >conftest.err
23573   rm -f conftest.er1
23574   cat conftest.err >&5
23575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576   (exit $ac_status); } && {
23577          test -z "$ac_cxx_werror_flag" ||
23578          test ! -s conftest.err
23579        } && test -s conftest.$ac_objext; then
23580   wx_cv_have_variadic_macros=yes
23581 else
23582   echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23584
23585         wx_cv_have_variadic_macros=no
23586
23587 fi
23588
23589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590         ac_ext=c
23591 ac_cpp='$CPP $CPPFLAGS'
23592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23595
23596
23597
23598 fi
23599 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23600 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23601
23602 if test $wx_cv_have_variadic_macros = "yes"; then
23603     cat >>confdefs.h <<\_ACEOF
23604 #define HAVE_VARIADIC_MACROS 1
23605 _ACEOF
23606
23607 fi
23608
23609 fi
23610
23611 LARGEFILE_CPPFLAGS=
23612 # Check whether --enable-largefile was given.
23613 if test "${enable_largefile+set}" = set; then
23614   enableval=$enable_largefile;
23615 fi
23616
23617 if test "$enable_largefile" != no; then
23618             wx_largefile=no
23619
23620     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23621 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23622 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23623   echo $ECHO_N "(cached) $ECHO_C" >&6
23624 else
23625
23626           cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632 #define _FILE_OFFSET_BITS 64
23633                           #include <sys/types.h>
23634 int
23635 main ()
23636 {
23637 typedef struct {
23638     unsigned int field: sizeof(off_t) == 8;
23639 } wxlf;
23640
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest.$ac_objext
23646 if { (ac_try="$ac_compile"
23647 case "(($ac_try" in
23648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649   *) ac_try_echo=$ac_try;;
23650 esac
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652   (eval "$ac_compile") 2>conftest.er1
23653   ac_status=$?
23654   grep -v '^ *+' conftest.er1 >conftest.err
23655   rm -f conftest.er1
23656   cat conftest.err >&5
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); } && {
23659          test -z "$ac_c_werror_flag" ||
23660          test ! -s conftest.err
23661        } && test -s conftest.$ac_objext; then
23662   ac_cv_sys_file_offset_bits=64
23663 else
23664   echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23666
23667         ac_cv_sys_file_offset_bits=no
23668 fi
23669
23670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23671
23672
23673 fi
23674 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23675 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23676
23677     if test "$ac_cv_sys_file_offset_bits" != no; then
23678         wx_largefile=yes
23679         cat >>confdefs.h <<_ACEOF
23680 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23681 _ACEOF
23682
23683     fi
23684
23685     if test "x$wx_largefile" != "xyes"; then
23686
23687     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23688 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23689 if test "${ac_cv_sys_large_files+set}" = set; then
23690   echo $ECHO_N "(cached) $ECHO_C" >&6
23691 else
23692
23693           cat >conftest.$ac_ext <<_ACEOF
23694 /* confdefs.h.  */
23695 _ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h.  */
23699 #define _LARGE_FILES 1
23700                           #include <sys/types.h>
23701 int
23702 main ()
23703 {
23704 typedef struct {
23705     unsigned int field: sizeof(off_t) == 8;
23706 } wxlf;
23707
23708   ;
23709   return 0;
23710 }
23711 _ACEOF
23712 rm -f conftest.$ac_objext
23713 if { (ac_try="$ac_compile"
23714 case "(($ac_try" in
23715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716   *) ac_try_echo=$ac_try;;
23717 esac
23718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23719   (eval "$ac_compile") 2>conftest.er1
23720   ac_status=$?
23721   grep -v '^ *+' conftest.er1 >conftest.err
23722   rm -f conftest.er1
23723   cat conftest.err >&5
23724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725   (exit $ac_status); } && {
23726          test -z "$ac_c_werror_flag" ||
23727          test ! -s conftest.err
23728        } && test -s conftest.$ac_objext; then
23729   ac_cv_sys_large_files=1
23730 else
23731   echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23733
23734         ac_cv_sys_large_files=no
23735 fi
23736
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23738
23739
23740 fi
23741 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23742 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23743
23744     if test "$ac_cv_sys_large_files" != no; then
23745         wx_largefile=yes
23746         cat >>confdefs.h <<_ACEOF
23747 #define _LARGE_FILES $ac_cv_sys_large_files
23748 _ACEOF
23749
23750     fi
23751
23752     fi
23753
23754     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23755 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23756     if test "x$wx_largefile" = "xyes"; then
23757         cat >>confdefs.h <<\_ACEOF
23758 #define HAVE_LARGEFILE_SUPPORT 1
23759 _ACEOF
23760
23761     fi
23762     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23763 echo "${ECHO_T}$wx_largefile" >&6; }
23764 fi
23765
23766 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23767     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23768 elif test "$ac_cv_sys_large_files" = 1; then
23769     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23770 fi
23771
23772 if test -n "$LARGEFILE_CPPFLAGS"; then
23773     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23774
23775                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23776         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23777 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23778 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23779   echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781
23782                 ac_ext=cpp
23783 ac_cpp='$CXXCPP $CPPFLAGS'
23784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23787
23788                 cat >conftest.$ac_ext <<_ACEOF
23789 /* confdefs.h.  */
23790 _ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h.  */
23794
23795 int
23796 main ()
23797 {
23798
23799                         #ifndef __STDC_EXT__
23800                             choke me
23801                         #endif
23802
23803   ;
23804   return 0;
23805 }
23806 _ACEOF
23807 rm -f conftest.$ac_objext
23808 if { (ac_try="$ac_compile"
23809 case "(($ac_try" in
23810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23811   *) ac_try_echo=$ac_try;;
23812 esac
23813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23814   (eval "$ac_compile") 2>conftest.er1
23815   ac_status=$?
23816   grep -v '^ *+' conftest.er1 >conftest.err
23817   rm -f conftest.er1
23818   cat conftest.err >&5
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); } && {
23821          test -z "$ac_cxx_werror_flag" ||
23822          test ! -s conftest.err
23823        } && test -s conftest.$ac_objext; then
23824   wx_cv_STDC_EXT_required=no
23825 else
23826   echo "$as_me: failed program was:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23828
23829         wx_cv_STDC_EXT_required=yes
23830
23831 fi
23832
23833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23834                 ac_ext=c
23835 ac_cpp='$CPP $CPPFLAGS'
23836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23839
23840
23841
23842 fi
23843 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23844 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23845         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23846             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23847         fi
23848     fi
23849 fi
23850
23851 ac_ext=cpp
23852 ac_cpp='$CXXCPP $CPPFLAGS'
23853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23856
23857 old_CPPFLAGS="$CPPFLAGS"
23858 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23859 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23860 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23861 if test "${ac_cv_sys_largefile_source+set}" = set; then
23862   echo $ECHO_N "(cached) $ECHO_C" >&6
23863 else
23864   while :; do
23865   cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h.  */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h.  */
23871 #include <sys/types.h> /* for off_t */
23872      #include <stdio.h>
23873 int
23874 main ()
23875 {
23876 int (*fp) (FILE *, off_t, int) = fseeko;
23877      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23878   ;
23879   return 0;
23880 }
23881 _ACEOF
23882 rm -f conftest.$ac_objext conftest$ac_exeext
23883 if { (ac_try="$ac_link"
23884 case "(($ac_try" in
23885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886   *) ac_try_echo=$ac_try;;
23887 esac
23888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889   (eval "$ac_link") 2>conftest.er1
23890   ac_status=$?
23891   grep -v '^ *+' conftest.er1 >conftest.err
23892   rm -f conftest.er1
23893   cat conftest.err >&5
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); } && {
23896          test -z "$ac_cxx_werror_flag" ||
23897          test ! -s conftest.err
23898        } && test -s conftest$ac_exeext &&
23899        $as_test_x conftest$ac_exeext; then
23900   ac_cv_sys_largefile_source=no; break
23901 else
23902   echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23904
23905
23906 fi
23907
23908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23909       conftest$ac_exeext conftest.$ac_ext
23910   cat >conftest.$ac_ext <<_ACEOF
23911 /* confdefs.h.  */
23912 _ACEOF
23913 cat confdefs.h >>conftest.$ac_ext
23914 cat >>conftest.$ac_ext <<_ACEOF
23915 /* end confdefs.h.  */
23916 #define _LARGEFILE_SOURCE 1
23917 #include <sys/types.h> /* for off_t */
23918      #include <stdio.h>
23919 int
23920 main ()
23921 {
23922 int (*fp) (FILE *, off_t, int) = fseeko;
23923      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23924   ;
23925   return 0;
23926 }
23927 _ACEOF
23928 rm -f conftest.$ac_objext conftest$ac_exeext
23929 if { (ac_try="$ac_link"
23930 case "(($ac_try" in
23931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932   *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935   (eval "$ac_link") 2>conftest.er1
23936   ac_status=$?
23937   grep -v '^ *+' conftest.er1 >conftest.err
23938   rm -f conftest.er1
23939   cat conftest.err >&5
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); } && {
23942          test -z "$ac_cxx_werror_flag" ||
23943          test ! -s conftest.err
23944        } && test -s conftest$ac_exeext &&
23945        $as_test_x conftest$ac_exeext; then
23946   ac_cv_sys_largefile_source=1; break
23947 else
23948   echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23950
23951
23952 fi
23953
23954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23955       conftest$ac_exeext conftest.$ac_ext
23956   ac_cv_sys_largefile_source=unknown
23957   break
23958 done
23959 fi
23960 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23961 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23962 case $ac_cv_sys_largefile_source in #(
23963   no | unknown) ;;
23964   *)
23965 cat >>confdefs.h <<_ACEOF
23966 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23967 _ACEOF
23968 ;;
23969 esac
23970 rm -f conftest*
23971
23972 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23973 # in glibc 2.1.3, but that breaks too many other things.
23974 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23975 if test $ac_cv_sys_largefile_source != unknown; then
23976
23977 cat >>confdefs.h <<\_ACEOF
23978 #define HAVE_FSEEKO 1
23979 _ACEOF
23980
23981 fi
23982
23983 CPPFLAGS="$old_CPPFLAGS"
23984 ac_ext=c
23985 ac_cpp='$CPP $CPPFLAGS'
23986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23989
23990 if test "$ac_cv_sys_largefile_source" != no; then
23991     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23992 fi
23993
23994 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23995 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23996 if test "${ac_cv_c_bigendian+set}" = set; then
23997   echo $ECHO_N "(cached) $ECHO_C" >&6
23998 else
23999   ac_cv_c_bigendian=unknown
24000 # See if sys/param.h defines the BYTE_ORDER macro.
24001 cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h.  */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h.  */
24007 #include <sys/types.h>
24008 #include <sys/param.h>
24009 int
24010 main ()
24011 {
24012
24013 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24014  bogus endian macros
24015 #endif
24016   ;
24017   return 0;
24018 }
24019 _ACEOF
24020 rm -f conftest.$ac_objext
24021 if { (ac_try="$ac_compile"
24022 case "(($ac_try" in
24023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024   *) ac_try_echo=$ac_try;;
24025 esac
24026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24027   (eval "$ac_compile") 2>conftest.er1
24028   ac_status=$?
24029   grep -v '^ *+' conftest.er1 >conftest.err
24030   rm -f conftest.er1
24031   cat conftest.err >&5
24032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033   (exit $ac_status); } && {
24034          test -z "$ac_c_werror_flag" ||
24035          test ! -s conftest.err
24036        } && test -s conftest.$ac_objext; then
24037   # It does; now see whether it defined to BIG_ENDIAN or not.
24038 cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h.  */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h.  */
24044 #include <sys/types.h>
24045 #include <sys/param.h>
24046 int
24047 main ()
24048 {
24049
24050 #if BYTE_ORDER != BIG_ENDIAN
24051  not big endian
24052 #endif
24053   ;
24054   return 0;
24055 }
24056 _ACEOF
24057 rm -f conftest.$ac_objext
24058 if { (ac_try="$ac_compile"
24059 case "(($ac_try" in
24060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24061   *) ac_try_echo=$ac_try;;
24062 esac
24063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24064   (eval "$ac_compile") 2>conftest.er1
24065   ac_status=$?
24066   grep -v '^ *+' conftest.er1 >conftest.err
24067   rm -f conftest.er1
24068   cat conftest.err >&5
24069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070   (exit $ac_status); } && {
24071          test -z "$ac_c_werror_flag" ||
24072          test ! -s conftest.err
24073        } && test -s conftest.$ac_objext; then
24074   ac_cv_c_bigendian=yes
24075 else
24076   echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24078
24079         ac_cv_c_bigendian=no
24080 fi
24081
24082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083 else
24084   echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24086
24087
24088 fi
24089
24090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24091 if test $ac_cv_c_bigendian = unknown; then
24092 if test "$cross_compiling" = yes; then
24093   ac_cv_c_bigendian=unknown
24094 else
24095   cat >conftest.$ac_ext <<_ACEOF
24096 /* confdefs.h.  */
24097 _ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h.  */
24101 main () {
24102   /* Are we little or big endian?  From Harbison&Steele.  */
24103   union
24104   {
24105     long l;
24106     char c[sizeof (long)];
24107   } u;
24108   u.l = 1;
24109   exit (u.c[sizeof (long) - 1] == 1);
24110 }
24111 _ACEOF
24112 rm -f conftest$ac_exeext
24113 if { (ac_try="$ac_link"
24114 case "(($ac_try" in
24115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116   *) ac_try_echo=$ac_try;;
24117 esac
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119   (eval "$ac_link") 2>&5
24120   ac_status=$?
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24123   { (case "(($ac_try" in
24124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125   *) ac_try_echo=$ac_try;;
24126 esac
24127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24128   (eval "$ac_try") 2>&5
24129   ac_status=$?
24130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131   (exit $ac_status); }; }; then
24132   ac_cv_c_bigendian=no
24133 else
24134   echo "$as_me: program exited with status $ac_status" >&5
24135 echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24137
24138 ( exit $ac_status )
24139 ac_cv_c_bigendian=yes
24140 fi
24141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24142 fi
24143
24144
24145 fi
24146 fi
24147 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24148 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24149 if test $ac_cv_c_bigendian = unknown; then
24150   { 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
24151 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;}
24152 fi
24153 if test $ac_cv_c_bigendian = yes; then
24154   cat >>confdefs.h <<\_ACEOF
24155 #define WORDS_BIGENDIAN 1
24156 _ACEOF
24157
24158 fi
24159
24160
24161
24162
24163     ac_ext=cpp
24164 ac_cpp='$CXXCPP $CPPFLAGS'
24165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24168
24169
24170
24171 for ac_header in iostream
24172 do
24173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24177   echo $ECHO_N "(cached) $ECHO_C" >&6
24178 else
24179   cat >conftest.$ac_ext <<_ACEOF
24180 /* confdefs.h.  */
24181 _ACEOF
24182 cat confdefs.h >>conftest.$ac_ext
24183 cat >>conftest.$ac_ext <<_ACEOF
24184 /* end confdefs.h.  */
24185
24186
24187 #include <$ac_header>
24188 _ACEOF
24189 rm -f conftest.$ac_objext
24190 if { (ac_try="$ac_compile"
24191 case "(($ac_try" in
24192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193   *) ac_try_echo=$ac_try;;
24194 esac
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196   (eval "$ac_compile") 2>conftest.er1
24197   ac_status=$?
24198   grep -v '^ *+' conftest.er1 >conftest.err
24199   rm -f conftest.er1
24200   cat conftest.err >&5
24201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202   (exit $ac_status); } && {
24203          test -z "$ac_cxx_werror_flag" ||
24204          test ! -s conftest.err
24205        } && test -s conftest.$ac_objext; then
24206   eval "$as_ac_Header=yes"
24207 else
24208   echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24210
24211         eval "$as_ac_Header=no"
24212 fi
24213
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24215 fi
24216 ac_res=`eval echo '${'$as_ac_Header'}'`
24217                { echo "$as_me:$LINENO: result: $ac_res" >&5
24218 echo "${ECHO_T}$ac_res" >&6; }
24219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24220   cat >>confdefs.h <<_ACEOF
24221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24222 _ACEOF
24223
24224 fi
24225
24226 done
24227
24228
24229     if test "$ac_cv_header_iostream" = "yes" ; then
24230       :
24231     else
24232       cat >>confdefs.h <<\_ACEOF
24233 #define wxUSE_IOSTREAMH 1
24234 _ACEOF
24235
24236     fi
24237
24238     ac_ext=c
24239 ac_cpp='$CPP $CPPFLAGS'
24240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24243
24244
24245
24246
24247   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24248 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24249 if test "${wx_cv_explicit+set}" = set; then
24250   echo $ECHO_N "(cached) $ECHO_C" >&6
24251 else
24252
24253
24254     ac_ext=cpp
24255 ac_cpp='$CXXCPP $CPPFLAGS'
24256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24259
24260
24261             cat >conftest.$ac_ext <<_ACEOF
24262 /* confdefs.h.  */
24263 _ACEOF
24264 cat confdefs.h >>conftest.$ac_ext
24265 cat >>conftest.$ac_ext <<_ACEOF
24266 /* end confdefs.h.  */
24267
24268         class Foo { public: explicit Foo(int) {} };
24269
24270 int
24271 main ()
24272 {
24273
24274         return 0;
24275
24276   ;
24277   return 0;
24278 }
24279 _ACEOF
24280 rm -f conftest.$ac_objext
24281 if { (ac_try="$ac_compile"
24282 case "(($ac_try" in
24283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284   *) ac_try_echo=$ac_try;;
24285 esac
24286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287   (eval "$ac_compile") 2>conftest.er1
24288   ac_status=$?
24289   grep -v '^ *+' conftest.er1 >conftest.err
24290   rm -f conftest.er1
24291   cat conftest.err >&5
24292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293   (exit $ac_status); } && {
24294          test -z "$ac_cxx_werror_flag" ||
24295          test ! -s conftest.err
24296        } && test -s conftest.$ac_objext; then
24297
24298         cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24304
24305                 class Foo { public: explicit Foo(int) {} };
24306                 static void TakeFoo(const Foo& foo) { }
24307
24308 int
24309 main ()
24310 {
24311
24312                 TakeFoo(17);
24313                 return 0;
24314
24315   ;
24316   return 0;
24317 }
24318 _ACEOF
24319 rm -f conftest.$ac_objext
24320 if { (ac_try="$ac_compile"
24321 case "(($ac_try" in
24322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24323   *) ac_try_echo=$ac_try;;
24324 esac
24325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326   (eval "$ac_compile") 2>conftest.er1
24327   ac_status=$?
24328   grep -v '^ *+' conftest.er1 >conftest.err
24329   rm -f conftest.er1
24330   cat conftest.err >&5
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); } && {
24333          test -z "$ac_cxx_werror_flag" ||
24334          test ! -s conftest.err
24335        } && test -s conftest.$ac_objext; then
24336   wx_cv_explicit=no
24337 else
24338   echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24340
24341         wx_cv_explicit=yes
24342
24343 fi
24344
24345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24346
24347 else
24348   echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351         wx_cv_explicit=no
24352
24353 fi
24354
24355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24356
24357     ac_ext=c
24358 ac_cpp='$CPP $CPPFLAGS'
24359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24362
24363
24364 fi
24365 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24366 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24367
24368   if test "$wx_cv_explicit" = "yes"; then
24369     cat >>confdefs.h <<\_ACEOF
24370 #define HAVE_EXPLICIT 1
24371 _ACEOF
24372
24373   fi
24374
24375
24376 if test "x$SUNCXX" = xyes; then
24377     CXXFLAGS="-features=tmplife $CXXFLAGS"
24378 fi
24379
24380 if test "x$SUNCC" = xyes; then
24381     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24382 fi
24383
24384 if test "x$SGICC" = "xyes"; then
24385     CFLAGS="-woff 3970 $CFLAGS"
24386 fi
24387 if test "x$SGICXX" = "xyes"; then
24388     CXXFLAGS="-woff 3970 $CXXFLAGS"
24389 fi
24390
24391 if test "x$HPCC" = "xyes"; then
24392                     CFLAGS="+W 2011,2450 $CFLAGS"
24393 fi
24394 if test "x$HPCXX" = "xyes"; then
24395                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24396 fi
24397
24398 if test "x$COMPAQCXX" = "xyes"; then
24399                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24400 fi
24401
24402 ac_ext=cpp
24403 ac_cpp='$CXXCPP $CPPFLAGS'
24404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24407
24408
24409 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24410     if test "$wxUSE_UNICODE" = "yes"; then
24411         std_string="std::wstring"
24412         char_type="wchar_t"
24413     else
24414         std_string="std::string"
24415         char_type="char"
24416     fi
24417
24418         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24419 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24420 if test "${wx_cv_class_stdstring+set}" = set; then
24421   echo $ECHO_N "(cached) $ECHO_C" >&6
24422 else
24423
24424             cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h.  */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h.  */
24430 #include <string>
24431 int
24432 main ()
24433 {
24434 $std_string foo;
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443   *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446   (eval "$ac_compile") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } && {
24453          test -z "$ac_cxx_werror_flag" ||
24454          test ! -s conftest.err
24455        } && test -s conftest.$ac_objext; then
24456   wx_cv_class_stdstring=yes
24457 else
24458   echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461         wx_cv_class_stdstring=no
24462
24463 fi
24464
24465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24466
24467
24468 fi
24469 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24470 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24471
24472     if test "$wx_cv_class_stdstring" = yes; then
24473         if test "$wxUSE_UNICODE" = "yes"; then
24474             cat >>confdefs.h <<\_ACEOF
24475 #define HAVE_STD_WSTRING 1
24476 _ACEOF
24477
24478         fi
24479                     else
24480         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24481 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24482 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24483   echo $ECHO_N "(cached) $ECHO_C" >&6
24484 else
24485
24486                 cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h.  */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h.  */
24492
24493                     #ifdef HAVE_WCHAR_H
24494                     #  ifdef __CYGWIN__
24495                     #    include <stddef.h>
24496                     #  endif
24497                     #  include <wchar.h>
24498                     #endif
24499                     #ifdef HAVE_STDLIB_H
24500                     #  include <stdlib.h>
24501                     #endif
24502                     #include <stdio.h>
24503                     #include <string>
24504
24505 int
24506 main ()
24507 {
24508 std::basic_string<$char_type> foo;
24509                      const $char_type* dummy = foo.c_str();
24510   ;
24511   return 0;
24512 }
24513 _ACEOF
24514 rm -f conftest.$ac_objext
24515 if { (ac_try="$ac_compile"
24516 case "(($ac_try" in
24517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518   *) ac_try_echo=$ac_try;;
24519 esac
24520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24521   (eval "$ac_compile") 2>conftest.er1
24522   ac_status=$?
24523   grep -v '^ *+' conftest.er1 >conftest.err
24524   rm -f conftest.er1
24525   cat conftest.err >&5
24526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527   (exit $ac_status); } && {
24528          test -z "$ac_cxx_werror_flag" ||
24529          test ! -s conftest.err
24530        } && test -s conftest.$ac_objext; then
24531   wx_cv_class_stdbasicstring=yes
24532 else
24533   echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24535
24536         wx_cv_class_stdbasicstring=no
24537
24538 fi
24539
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24541
24542
24543 fi
24544 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24545 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24546
24547         if test "$wx_cv_class_stdbasicstring" != yes; then
24548             if test "$wxUSE_STL" = "yes"; then
24549                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24550 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24551    { (exit 1); exit 1; }; }
24552             elif test "$wxUSE_STD_STRING" = "yes"; then
24553                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24554 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24555    { (exit 1); exit 1; }; }
24556             else
24557                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24558 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24559                 wxUSE_STD_STRING=no
24560             fi
24561         fi
24562     fi
24563 fi
24564
24565 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24566     { echo "$as_me:$LINENO: checking for std::istream" >&5
24567 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24568 if test "${ac_cv_type_std__istream+set}" = set; then
24569   echo $ECHO_N "(cached) $ECHO_C" >&6
24570 else
24571   cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h.  */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h.  */
24577 #include <iostream>
24578
24579 typedef std::istream ac__type_new_;
24580 int
24581 main ()
24582 {
24583 if ((ac__type_new_ *) 0)
24584   return 0;
24585 if (sizeof (ac__type_new_))
24586   return 0;
24587   ;
24588   return 0;
24589 }
24590 _ACEOF
24591 rm -f conftest.$ac_objext
24592 if { (ac_try="$ac_compile"
24593 case "(($ac_try" in
24594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595   *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598   (eval "$ac_compile") 2>conftest.er1
24599   ac_status=$?
24600   grep -v '^ *+' conftest.er1 >conftest.err
24601   rm -f conftest.er1
24602   cat conftest.err >&5
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } && {
24605          test -z "$ac_cxx_werror_flag" ||
24606          test ! -s conftest.err
24607        } && test -s conftest.$ac_objext; then
24608   ac_cv_type_std__istream=yes
24609 else
24610   echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24612
24613         ac_cv_type_std__istream=no
24614 fi
24615
24616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24617 fi
24618 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24619 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24620 if test $ac_cv_type_std__istream = yes; then
24621
24622 cat >>confdefs.h <<_ACEOF
24623 #define HAVE_STD__ISTREAM 1
24624 _ACEOF
24625
24626
24627 else
24628   wxUSE_STD_IOSTREAM=no
24629 fi
24630 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24631 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24632 if test "${ac_cv_type_std__ostream+set}" = set; then
24633   echo $ECHO_N "(cached) $ECHO_C" >&6
24634 else
24635   cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h.  */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h.  */
24641 #include <iostream>
24642
24643 typedef std::ostream ac__type_new_;
24644 int
24645 main ()
24646 {
24647 if ((ac__type_new_ *) 0)
24648   return 0;
24649 if (sizeof (ac__type_new_))
24650   return 0;
24651   ;
24652   return 0;
24653 }
24654 _ACEOF
24655 rm -f conftest.$ac_objext
24656 if { (ac_try="$ac_compile"
24657 case "(($ac_try" in
24658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659   *) ac_try_echo=$ac_try;;
24660 esac
24661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662   (eval "$ac_compile") 2>conftest.er1
24663   ac_status=$?
24664   grep -v '^ *+' conftest.er1 >conftest.err
24665   rm -f conftest.er1
24666   cat conftest.err >&5
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); } && {
24669          test -z "$ac_cxx_werror_flag" ||
24670          test ! -s conftest.err
24671        } && test -s conftest.$ac_objext; then
24672   ac_cv_type_std__ostream=yes
24673 else
24674   echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24676
24677         ac_cv_type_std__ostream=no
24678 fi
24679
24680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24681 fi
24682 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24683 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24684 if test $ac_cv_type_std__ostream = yes; then
24685
24686 cat >>confdefs.h <<_ACEOF
24687 #define HAVE_STD__OSTREAM 1
24688 _ACEOF
24689
24690
24691 else
24692   wxUSE_STD_IOSTREAM=no
24693 fi
24694
24695
24696     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24697         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24698             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24699 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24700    { (exit 1); exit 1; }; }
24701         else
24702             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24703 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24704         fi
24705     fi
24706 fi
24707
24708 if test "$wxUSE_STL" = "yes"; then
24709         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24710 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24711 if test "${wx_cv_lib_stl+set}" = set; then
24712   echo $ECHO_N "(cached) $ECHO_C" >&6
24713 else
24714   cat >conftest.$ac_ext <<_ACEOF
24715 /* confdefs.h.  */
24716 _ACEOF
24717 cat confdefs.h >>conftest.$ac_ext
24718 cat >>conftest.$ac_ext <<_ACEOF
24719 /* end confdefs.h.  */
24720 #include <string>
24721             #include <functional>
24722             #include <algorithm>
24723             #include <vector>
24724             #include <list>
24725 int
24726 main ()
24727 {
24728 std::vector<int> moo;
24729              std::list<int> foo;
24730              std::vector<int>::iterator it =
24731                  std::find_if(moo.begin(), moo.end(),
24732                               std::bind2nd(std::less<int>(), 3));
24733   ;
24734   return 0;
24735 }
24736 _ACEOF
24737 rm -f conftest.$ac_objext
24738 if { (ac_try="$ac_compile"
24739 case "(($ac_try" in
24740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741   *) ac_try_echo=$ac_try;;
24742 esac
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744   (eval "$ac_compile") 2>conftest.er1
24745   ac_status=$?
24746   grep -v '^ *+' conftest.er1 >conftest.err
24747   rm -f conftest.er1
24748   cat conftest.err >&5
24749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750   (exit $ac_status); } && {
24751          test -z "$ac_cxx_werror_flag" ||
24752          test ! -s conftest.err
24753        } && test -s conftest.$ac_objext; then
24754   wx_cv_lib_stl=yes
24755 else
24756   echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759         wx_cv_lib_stl=no
24760
24761 fi
24762
24763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24764
24765 fi
24766 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24767 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24768
24769     if test "$wx_cv_lib_stl" != yes; then
24770          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24771 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24772    { (exit 1); exit 1; }; }
24773     fi
24774
24775         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24776 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24777 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24778   echo $ECHO_N "(cached) $ECHO_C" >&6
24779 else
24780   cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h.  */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h.  */
24786 #include <string>
24787 int
24788 main ()
24789 {
24790 std::string foo, bar;
24791             foo.compare(bar);
24792             foo.compare(1, 1, bar);
24793             foo.compare(1, 1, bar, 1, 1);
24794             foo.compare("");
24795             foo.compare(1, 1, "");
24796             foo.compare(1, 1, "", 2);
24797   ;
24798   return 0;
24799 }
24800 _ACEOF
24801 rm -f conftest.$ac_objext
24802 if { (ac_try="$ac_compile"
24803 case "(($ac_try" in
24804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805   *) ac_try_echo=$ac_try;;
24806 esac
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808   (eval "$ac_compile") 2>conftest.er1
24809   ac_status=$?
24810   grep -v '^ *+' conftest.er1 >conftest.err
24811   rm -f conftest.er1
24812   cat conftest.err >&5
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); } && {
24815          test -z "$ac_cxx_werror_flag" ||
24816          test ! -s conftest.err
24817        } && test -s conftest.$ac_objext; then
24818   wx_cv_func_stdstring_compare=yes
24819 else
24820   echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24822
24823         wx_cv_func_stdstring_compare=no
24824
24825 fi
24826
24827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828
24829 fi
24830 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24831 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24832
24833     if test "$wx_cv_func_stdstring_compare" = yes; then
24834         cat >>confdefs.h <<\_ACEOF
24835 #define HAVE_STD_STRING_COMPARE 1
24836 _ACEOF
24837
24838     fi
24839
24840     if test "$wx_cv_class_gnuhashmapset" = yes; then
24841          cat >>confdefs.h <<\_ACEOF
24842 #define HAVE_EXT_HASH_MAP 1
24843 _ACEOF
24844
24845          cat >>confdefs.h <<\_ACEOF
24846 #define HAVE_GNU_CXX_HASH_MAP 1
24847 _ACEOF
24848
24849     fi
24850
24851     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24852 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24853 if test "${ac_cv_header_unordered_map+set}" = set; then
24854   echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856   cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862
24863
24864
24865 #include <unordered_map>
24866 _ACEOF
24867 rm -f conftest.$ac_objext
24868 if { (ac_try="$ac_compile"
24869 case "(($ac_try" in
24870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871   *) ac_try_echo=$ac_try;;
24872 esac
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874   (eval "$ac_compile") 2>conftest.er1
24875   ac_status=$?
24876   grep -v '^ *+' conftest.er1 >conftest.err
24877   rm -f conftest.er1
24878   cat conftest.err >&5
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } && {
24881          test -z "$ac_cxx_werror_flag" ||
24882          test ! -s conftest.err
24883        } && test -s conftest.$ac_objext; then
24884   ac_cv_header_unordered_map=yes
24885 else
24886   echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24888
24889         ac_cv_header_unordered_map=no
24890 fi
24891
24892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24893 fi
24894 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24895 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24896 if test $ac_cv_header_unordered_map = yes; then
24897   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24898 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24899 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24900   echo $ECHO_N "(cached) $ECHO_C" >&6
24901 else
24902   cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h.  */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h.  */
24908 #include <unordered_map>
24909                 #include <unordered_set>
24910 int
24911 main ()
24912 {
24913 std::unordered_map<double*, char*> test1;
24914                  std::unordered_set<char*> test2;
24915   ;
24916   return 0;
24917 }
24918 _ACEOF
24919 rm -f conftest.$ac_objext
24920 if { (ac_try="$ac_compile"
24921 case "(($ac_try" in
24922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923   *) ac_try_echo=$ac_try;;
24924 esac
24925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24926   (eval "$ac_compile") 2>conftest.er1
24927   ac_status=$?
24928   grep -v '^ *+' conftest.er1 >conftest.err
24929   rm -f conftest.er1
24930   cat conftest.err >&5
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); } && {
24933          test -z "$ac_cxx_werror_flag" ||
24934          test ! -s conftest.err
24935        } && test -s conftest.$ac_objext; then
24936   wx_cv_class_stdunorderedmapset=yes
24937 else
24938   echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24940
24941         wx_cv_class_stdunorderedmapset=no
24942 fi
24943
24944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945
24946
24947 fi
24948 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24949 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24950 fi
24951
24952
24953
24954     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24955          cat >>confdefs.h <<\_ACEOF
24956 #define HAVE_STD_UNORDERED_MAP 1
24957 _ACEOF
24958
24959          cat >>confdefs.h <<\_ACEOF
24960 #define HAVE_STD_UNORDERED_SET 1
24961 _ACEOF
24962
24963     else
24964         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24965 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24966 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24967   echo $ECHO_N "(cached) $ECHO_C" >&6
24968 else
24969   cat >conftest.$ac_ext <<_ACEOF
24970 /* confdefs.h.  */
24971 _ACEOF
24972 cat confdefs.h >>conftest.$ac_ext
24973 cat >>conftest.$ac_ext <<_ACEOF
24974 /* end confdefs.h.  */
24975
24976
24977
24978 #include <tr1/unordered_map>
24979 _ACEOF
24980 rm -f conftest.$ac_objext
24981 if { (ac_try="$ac_compile"
24982 case "(($ac_try" in
24983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984   *) ac_try_echo=$ac_try;;
24985 esac
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987   (eval "$ac_compile") 2>conftest.er1
24988   ac_status=$?
24989   grep -v '^ *+' conftest.er1 >conftest.err
24990   rm -f conftest.er1
24991   cat conftest.err >&5
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); } && {
24994          test -z "$ac_cxx_werror_flag" ||
24995          test ! -s conftest.err
24996        } && test -s conftest.$ac_objext; then
24997   ac_cv_header_tr1_unordered_map=yes
24998 else
24999   echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25001
25002         ac_cv_header_tr1_unordered_map=no
25003 fi
25004
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 fi
25007 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25008 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
25009 if test $ac_cv_header_tr1_unordered_map = yes; then
25010   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25011 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
25012 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
25013   echo $ECHO_N "(cached) $ECHO_C" >&6
25014 else
25015   cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021 #include <tr1/unordered_map>
25022                     #include <tr1/unordered_set>
25023 int
25024 main ()
25025 {
25026 std::tr1::unordered_map<double*, char*> test1;
25027                      std::tr1::unordered_set<char*> test2;
25028             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25029             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25030             #endif
25031   ;
25032   return 0;
25033 }
25034 _ACEOF
25035 rm -f conftest.$ac_objext
25036 if { (ac_try="$ac_compile"
25037 case "(($ac_try" in
25038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039   *) ac_try_echo=$ac_try;;
25040 esac
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042   (eval "$ac_compile") 2>conftest.er1
25043   ac_status=$?
25044   grep -v '^ *+' conftest.er1 >conftest.err
25045   rm -f conftest.er1
25046   cat conftest.err >&5
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); } && {
25049          test -z "$ac_cxx_werror_flag" ||
25050          test ! -s conftest.err
25051        } && test -s conftest.$ac_objext; then
25052   wx_cv_class_tr1unorderedmapset=yes
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057         wx_cv_class_tr1unorderedmapset=no
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061
25062
25063 fi
25064 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25065 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25066 fi
25067
25068
25069
25070         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25071             cat >>confdefs.h <<\_ACEOF
25072 #define HAVE_TR1_UNORDERED_MAP 1
25073 _ACEOF
25074
25075             cat >>confdefs.h <<\_ACEOF
25076 #define HAVE_TR1_UNORDERED_SET 1
25077 _ACEOF
25078
25079         else
25080                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25081 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25082 if test "${ac_cv_header_hash_map+set}" = set; then
25083   echo $ECHO_N "(cached) $ECHO_C" >&6
25084 else
25085   cat >conftest.$ac_ext <<_ACEOF
25086 /* confdefs.h.  */
25087 _ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h.  */
25091
25092
25093
25094 #include <hash_map>
25095 _ACEOF
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100   *) ac_try_echo=$ac_try;;
25101 esac
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103   (eval "$ac_compile") 2>conftest.er1
25104   ac_status=$?
25105   grep -v '^ *+' conftest.er1 >conftest.err
25106   rm -f conftest.er1
25107   cat conftest.err >&5
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); } && {
25110          test -z "$ac_cxx_werror_flag" ||
25111          test ! -s conftest.err
25112        } && test -s conftest.$ac_objext; then
25113   ac_cv_header_hash_map=yes
25114 else
25115   echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25117
25118         ac_cv_header_hash_map=no
25119 fi
25120
25121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25122 fi
25123 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25124 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25125 if test $ac_cv_header_hash_map = yes; then
25126   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25127 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25128 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25129   echo $ECHO_N "(cached) $ECHO_C" >&6
25130 else
25131   cat >conftest.$ac_ext <<_ACEOF
25132 /* confdefs.h.  */
25133 _ACEOF
25134 cat confdefs.h >>conftest.$ac_ext
25135 cat >>conftest.$ac_ext <<_ACEOF
25136 /* end confdefs.h.  */
25137 #include <hash_map>
25138                         #include <hash_set>
25139 int
25140 main ()
25141 {
25142 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25143                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25144   ;
25145   return 0;
25146 }
25147 _ACEOF
25148 rm -f conftest.$ac_objext
25149 if { (ac_try="$ac_compile"
25150 case "(($ac_try" in
25151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25152   *) ac_try_echo=$ac_try;;
25153 esac
25154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25155   (eval "$ac_compile") 2>conftest.er1
25156   ac_status=$?
25157   grep -v '^ *+' conftest.er1 >conftest.err
25158   rm -f conftest.er1
25159   cat conftest.err >&5
25160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161   (exit $ac_status); } && {
25162          test -z "$ac_cxx_werror_flag" ||
25163          test ! -s conftest.err
25164        } && test -s conftest.$ac_objext; then
25165   wx_cv_class_stdhashmapset=yes
25166 else
25167   echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25169
25170         wx_cv_class_stdhashmapset=no
25171 fi
25172
25173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25174
25175
25176 fi
25177 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25178 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25179 fi
25180
25181
25182
25183             if test "$wx_cv_class_stdhashmapset" = yes; then
25184                 cat >>confdefs.h <<\_ACEOF
25185 #define HAVE_HASH_MAP 1
25186 _ACEOF
25187
25188                 cat >>confdefs.h <<\_ACEOF
25189 #define HAVE_STD_HASH_MAP 1
25190 _ACEOF
25191
25192             fi
25193
25194             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25195 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25196 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25197   echo $ECHO_N "(cached) $ECHO_C" >&6
25198 else
25199   cat >conftest.$ac_ext <<_ACEOF
25200 /* confdefs.h.  */
25201 _ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h.  */
25205
25206
25207
25208 #include <ext/hash_map>
25209 _ACEOF
25210 rm -f conftest.$ac_objext
25211 if { (ac_try="$ac_compile"
25212 case "(($ac_try" in
25213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25214   *) ac_try_echo=$ac_try;;
25215 esac
25216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25217   (eval "$ac_compile") 2>conftest.er1
25218   ac_status=$?
25219   grep -v '^ *+' conftest.er1 >conftest.err
25220   rm -f conftest.er1
25221   cat conftest.err >&5
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); } && {
25224          test -z "$ac_cxx_werror_flag" ||
25225          test ! -s conftest.err
25226        } && test -s conftest.$ac_objext; then
25227   ac_cv_header_ext_hash_map=yes
25228 else
25229   echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25231
25232         ac_cv_header_ext_hash_map=no
25233 fi
25234
25235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25236 fi
25237 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25238 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25239 if test $ac_cv_header_ext_hash_map = yes; then
25240   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25241 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25242 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25243   echo $ECHO_N "(cached) $ECHO_C" >&6
25244 else
25245   cat >conftest.$ac_ext <<_ACEOF
25246 /* confdefs.h.  */
25247 _ACEOF
25248 cat confdefs.h >>conftest.$ac_ext
25249 cat >>conftest.$ac_ext <<_ACEOF
25250 /* end confdefs.h.  */
25251 #include <ext/hash_map>
25252                         #include <ext/hash_set>
25253 int
25254 main ()
25255 {
25256 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25257                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25258   ;
25259   return 0;
25260 }
25261 _ACEOF
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266   *) ac_try_echo=$ac_try;;
25267 esac
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269   (eval "$ac_compile") 2>conftest.er1
25270   ac_status=$?
25271   grep -v '^ *+' conftest.er1 >conftest.err
25272   rm -f conftest.er1
25273   cat conftest.err >&5
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); } && {
25276          test -z "$ac_cxx_werror_flag" ||
25277          test ! -s conftest.err
25278        } && test -s conftest.$ac_objext; then
25279   wx_cv_class_gnuhashmapset=yes
25280 else
25281   echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25283
25284         wx_cv_class_gnuhashmapset=no
25285 fi
25286
25287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25288
25289
25290 fi
25291 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25292 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25293 fi
25294
25295
25296
25297         fi
25298     fi
25299 fi
25300
25301
25302
25303   if test -n "$GCC"; then
25304     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25305 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25306     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25307   echo $ECHO_N "(cached) $ECHO_C" >&6
25308 else
25309
25310       cat >conftest.$ac_ext <<_ACEOF
25311 /* confdefs.h.  */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h.  */
25316
25317 int
25318 main ()
25319 {
25320
25321           unsigned int value=0;
25322           /* wxAtomicInc doesn't use return value here */
25323           __sync_fetch_and_add(&value, 2);
25324           __sync_sub_and_fetch(&value, 1);
25325           /* but wxAtomicDec does, so mimic that: */
25326           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25327
25328   ;
25329   return 0;
25330 }
25331 _ACEOF
25332 rm -f conftest.$ac_objext conftest$ac_exeext
25333 if { (ac_try="$ac_link"
25334 case "(($ac_try" in
25335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336   *) ac_try_echo=$ac_try;;
25337 esac
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339   (eval "$ac_link") 2>conftest.er1
25340   ac_status=$?
25341   grep -v '^ *+' conftest.er1 >conftest.err
25342   rm -f conftest.er1
25343   cat conftest.err >&5
25344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345   (exit $ac_status); } && {
25346          test -z "$ac_cxx_werror_flag" ||
25347          test ! -s conftest.err
25348        } && test -s conftest$ac_exeext &&
25349        $as_test_x conftest$ac_exeext; then
25350   wx_cv_cc_gcc_atomic_builtins=yes
25351 else
25352   echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25354
25355         wx_cv_cc_gcc_atomic_builtins=no
25356 fi
25357
25358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25359       conftest$ac_exeext conftest.$ac_ext
25360
25361 fi
25362
25363     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25364 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25365     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25366       cat >>confdefs.h <<\_ACEOF
25367 #define HAVE_GCC_ATOMIC_BUILTINS 1
25368 _ACEOF
25369
25370     fi
25371   fi
25372
25373
25374 ac_ext=c
25375 ac_cpp='$CPP $CPPFLAGS'
25376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25379
25380
25381
25382 SEARCH_INCLUDE="\
25383     /usr/local/include        \
25384     /usr/local/X11/include    \
25385     /usr/local/include/X11    \
25386     /usr/local/X11R7/include  \
25387     /usr/local/X11R6/include  \
25388     /usr/local/include/X11R7  \
25389     /usr/local/include/X11R6  \
25390                               \
25391     /usr/Motif-2.1/include    \
25392     /usr/Motif-1.2/include    \
25393     /usr/include/Motif1.2     \
25394                               \
25395     /usr/dt/include           \
25396     /usr/openwin/include      \
25397                               \
25398     /usr/include/Xm           \
25399                               \
25400     /usr/X11R7/include        \
25401     /usr/X11R6/include        \
25402     /usr/X11R6.4/include      \
25403                               \
25404     /usr/include/X11R7        \
25405     /usr/include/X11R6        \
25406                               \
25407     /usr/X11/include          \
25408     /usr/include/X11          \
25409                               \
25410     /usr/XFree86/include/X11  \
25411     /usr/pkg/include          \
25412                               \
25413     /usr/local/X1R5/include  \
25414     /usr/local/include/X11R5  \
25415     /usr/X11R5/include        \
25416     /usr/include/X11R5        \
25417                               \
25418     /usr/local/X11R4/include  \
25419     /usr/local/include/X11R4  \
25420     /usr/X11R4/include        \
25421     /usr/include/X11R4        \
25422                               \
25423     /usr/openwin/share/include"
25424
25425 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25426 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25427
25428 case "${host}" in
25429     *-*-irix6* )
25430         if test "${wx_cv_std_libpath+set}" = set; then
25431   echo $ECHO_N "(cached) $ECHO_C" >&6
25432 else
25433
25434                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25435                     for e in a so sl dylib dll.a; do
25436                         libc="$d/libc.$e"
25437                         if test -f $libc; then
25438                             save_LIBS="$LIBS"
25439                             LIBS="$libc"
25440                             cat >conftest.$ac_ext <<_ACEOF
25441 int main() { return 0; }
25442 _ACEOF
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (ac_try="$ac_link"
25445 case "(($ac_try" in
25446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447   *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450   (eval "$ac_link") 2>conftest.er1
25451   ac_status=$?
25452   grep -v '^ *+' conftest.er1 >conftest.err
25453   rm -f conftest.er1
25454   cat conftest.err >&5
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } && {
25457          test -z "$ac_c_werror_flag" ||
25458          test ! -s conftest.err
25459        } && test -s conftest$ac_exeext &&
25460        $as_test_x conftest$ac_exeext; then
25461   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25462 else
25463   echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25465
25466
25467 fi
25468
25469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25470       conftest$ac_exeext conftest.$ac_ext
25471                             LIBS="$save_LIBS"
25472                             if test "x$wx_cv_std_libpath" != "x"; then
25473                                 break 2
25474                             fi
25475                         fi
25476                     done
25477                 done
25478                 if test "x$wx_cv_std_libpath" = "x"; then
25479                     wx_cv_std_libpath="lib"
25480                 fi
25481
25482
25483 fi
25484
25485         ;;
25486
25487     *-*-solaris2* )
25488                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25489             wx_cv_std_libpath="lib/64"
25490         else
25491             wx_cv_std_libpath="lib"
25492         fi
25493         ;;
25494
25495     *-*-linux* )
25496                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25497                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25498             wx_cv_std_libpath="lib64"
25499         else
25500             wx_cv_std_libpath="lib"
25501         fi
25502         ;;
25503
25504     *)
25505         wx_cv_std_libpath="lib";
25506         ;;
25507 esac
25508
25509 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25510 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25511
25512 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25513
25514 if test "$build" != "$host" -a "$GCC" = yes; then
25515                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25516         cross_root=`dirname $cross_root`
25517         cross_root=`dirname $cross_root`
25518
25519                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25520         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25521         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25522
25523                 if test -z "$PKG_CONFIG_PATH"; then
25524             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25525             export PKG_CONFIG_PATH
25526         fi
25527
25528                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25529
25530 ac_find_includes=
25531 for ac_dir in $SEARCH_INCLUDE /usr/include;
25532   do
25533     if test -f "$ac_dir/X11/Intrinsic.h"; then
25534       ac_find_includes=$ac_dir
25535       break
25536     fi
25537   done
25538
25539             x_includes=$ac_find_includes
25540         fi
25541         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25542
25543   ac_find_libraries=
25544   for ac_dir in $SEARCH_LIB;
25545   do
25546     for ac_extension in a so sl dylib dll.a; do
25547       if test -f "$ac_dir/libXt.$ac_extension"; then
25548         ac_find_libraries=$ac_dir
25549         break 2
25550       fi
25551     done
25552   done
25553
25554             x_libraries=$ac_find_libraries
25555         fi
25556     fi
25557 fi
25558
25559
25560 cat >confcache <<\_ACEOF
25561 # This file is a shell script that caches the results of configure
25562 # tests run on this system so they can be shared between configure
25563 # scripts and configure runs, see configure's option --config-cache.
25564 # It is not useful on other systems.  If it contains results you don't
25565 # want to keep, you may remove or edit it.
25566 #
25567 # config.status only pays attention to the cache file if you give it
25568 # the --recheck option to rerun configure.
25569 #
25570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25572 # following values.
25573
25574 _ACEOF
25575
25576 # The following way of writing the cache mishandles newlines in values,
25577 # but we know of no workaround that is simple, portable, and efficient.
25578 # So, we kill variables containing newlines.
25579 # Ultrix sh set writes to stderr and can't be redirected directly,
25580 # and sets the high bit in the cache file unless we assign to the vars.
25581 (
25582   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25583     eval ac_val=\$$ac_var
25584     case $ac_val in #(
25585     *${as_nl}*)
25586       case $ac_var in #(
25587       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25588 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25589       esac
25590       case $ac_var in #(
25591       _ | IFS | as_nl) ;; #(
25592       *) $as_unset $ac_var ;;
25593       esac ;;
25594     esac
25595   done
25596
25597   (set) 2>&1 |
25598     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25599     *${as_nl}ac_space=\ *)
25600       # `set' does not quote correctly, so add quotes (double-quote
25601       # substitution turns \\\\ into \\, and sed turns \\ into \).
25602       sed -n \
25603         "s/'/'\\\\''/g;
25604           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25605       ;; #(
25606     *)
25607       # `set' quotes correctly as required by POSIX, so do not add quotes.
25608       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25609       ;;
25610     esac |
25611     sort
25612 ) |
25613   sed '
25614      /^ac_cv_env_/b end
25615      t clear
25616      :clear
25617      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25618      t end
25619      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25620      :end' >>confcache
25621 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25622   if test -w "$cache_file"; then
25623     test "x$cache_file" != "x/dev/null" &&
25624       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25625 echo "$as_me: updating cache $cache_file" >&6;}
25626     cat confcache >$cache_file
25627   else
25628     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25629 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25630   fi
25631 fi
25632 rm -f confcache
25633
25634 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25635     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25636 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25637 if test "${wx_cv_lib_glibc21+set}" = set; then
25638   echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640
25641         cat >conftest.$ac_ext <<_ACEOF
25642 /* confdefs.h.  */
25643 _ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h.  */
25647 #include <features.h>
25648 int
25649 main ()
25650 {
25651
25652                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25653                 not glibc 2.1
25654                 #endif
25655
25656   ;
25657   return 0;
25658 }
25659 _ACEOF
25660 rm -f conftest.$ac_objext
25661 if { (ac_try="$ac_compile"
25662 case "(($ac_try" in
25663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664   *) ac_try_echo=$ac_try;;
25665 esac
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667   (eval "$ac_compile") 2>conftest.er1
25668   ac_status=$?
25669   grep -v '^ *+' conftest.er1 >conftest.err
25670   rm -f conftest.er1
25671   cat conftest.err >&5
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); } && {
25674          test -z "$ac_c_werror_flag" ||
25675          test ! -s conftest.err
25676        } && test -s conftest.$ac_objext; then
25677
25678                 wx_cv_lib_glibc21=yes
25679
25680 else
25681   echo "$as_me: failed program was:" >&5
25682 sed 's/^/| /' conftest.$ac_ext >&5
25683
25684
25685                 wx_cv_lib_glibc21=no
25686
25687
25688 fi
25689
25690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25691
25692 fi
25693 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25694 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25695     if test "$wx_cv_lib_glibc21" = "yes"; then
25696         cat >>confdefs.h <<\_ACEOF
25697 #define wxHAVE_GLIBC2 1
25698 _ACEOF
25699
25700     fi
25701 fi
25702
25703 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25704     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25705         cat >>confdefs.h <<\_ACEOF
25706 #define _GNU_SOURCE 1
25707 _ACEOF
25708
25709     fi
25710 fi
25711
25712 have_cos=0
25713 have_floor=0
25714
25715 for ac_func in cos
25716 do
25717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25721   echo $ECHO_N "(cached) $ECHO_C" >&6
25722 else
25723   cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h.  */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h.  */
25729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25731 #define $ac_func innocuous_$ac_func
25732
25733 /* System header to define __stub macros and hopefully few prototypes,
25734     which can conflict with char $ac_func (); below.
25735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25736     <limits.h> exists even on freestanding compilers.  */
25737
25738 #ifdef __STDC__
25739 # include <limits.h>
25740 #else
25741 # include <assert.h>
25742 #endif
25743
25744 #undef $ac_func
25745
25746 /* Override any GCC internal prototype to avoid an error.
25747    Use char because int might match the return type of a GCC
25748    builtin and then its argument prototype would still apply.  */
25749 #ifdef __cplusplus
25750 extern "C"
25751 #endif
25752 char $ac_func ();
25753 /* The GNU C library defines this for functions which it implements
25754     to always fail with ENOSYS.  Some functions are actually named
25755     something starting with __ and the normal name is an alias.  */
25756 #if defined __stub_$ac_func || defined __stub___$ac_func
25757 choke me
25758 #endif
25759
25760 int
25761 main ()
25762 {
25763 return $ac_func ();
25764   ;
25765   return 0;
25766 }
25767 _ACEOF
25768 rm -f conftest.$ac_objext conftest$ac_exeext
25769 if { (ac_try="$ac_link"
25770 case "(($ac_try" in
25771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772   *) ac_try_echo=$ac_try;;
25773 esac
25774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25775   (eval "$ac_link") 2>conftest.er1
25776   ac_status=$?
25777   grep -v '^ *+' conftest.er1 >conftest.err
25778   rm -f conftest.er1
25779   cat conftest.err >&5
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); } && {
25782          test -z "$ac_c_werror_flag" ||
25783          test ! -s conftest.err
25784        } && test -s conftest$ac_exeext &&
25785        $as_test_x conftest$ac_exeext; then
25786   eval "$as_ac_var=yes"
25787 else
25788   echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25790
25791         eval "$as_ac_var=no"
25792 fi
25793
25794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25795       conftest$ac_exeext conftest.$ac_ext
25796 fi
25797 ac_res=`eval echo '${'$as_ac_var'}'`
25798                { echo "$as_me:$LINENO: result: $ac_res" >&5
25799 echo "${ECHO_T}$ac_res" >&6; }
25800 if test `eval echo '${'$as_ac_var'}'` = yes; then
25801   cat >>confdefs.h <<_ACEOF
25802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25803 _ACEOF
25804  have_cos=1
25805 fi
25806 done
25807
25808
25809 for ac_func in floor
25810 do
25811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25815   echo $ECHO_N "(cached) $ECHO_C" >&6
25816 else
25817   cat >conftest.$ac_ext <<_ACEOF
25818 /* confdefs.h.  */
25819 _ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h.  */
25823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25825 #define $ac_func innocuous_$ac_func
25826
25827 /* System header to define __stub macros and hopefully few prototypes,
25828     which can conflict with char $ac_func (); below.
25829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25830     <limits.h> exists even on freestanding compilers.  */
25831
25832 #ifdef __STDC__
25833 # include <limits.h>
25834 #else
25835 # include <assert.h>
25836 #endif
25837
25838 #undef $ac_func
25839
25840 /* Override any GCC internal prototype to avoid an error.
25841    Use char because int might match the return type of a GCC
25842    builtin and then its argument prototype would still apply.  */
25843 #ifdef __cplusplus
25844 extern "C"
25845 #endif
25846 char $ac_func ();
25847 /* The GNU C library defines this for functions which it implements
25848     to always fail with ENOSYS.  Some functions are actually named
25849     something starting with __ and the normal name is an alias.  */
25850 #if defined __stub_$ac_func || defined __stub___$ac_func
25851 choke me
25852 #endif
25853
25854 int
25855 main ()
25856 {
25857 return $ac_func ();
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 rm -f conftest.$ac_objext conftest$ac_exeext
25863 if { (ac_try="$ac_link"
25864 case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869   (eval "$ac_link") 2>conftest.er1
25870   ac_status=$?
25871   grep -v '^ *+' conftest.er1 >conftest.err
25872   rm -f conftest.er1
25873   cat conftest.err >&5
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); } && {
25876          test -z "$ac_c_werror_flag" ||
25877          test ! -s conftest.err
25878        } && test -s conftest$ac_exeext &&
25879        $as_test_x conftest$ac_exeext; then
25880   eval "$as_ac_var=yes"
25881 else
25882   echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25884
25885         eval "$as_ac_var=no"
25886 fi
25887
25888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25889       conftest$ac_exeext conftest.$ac_ext
25890 fi
25891 ac_res=`eval echo '${'$as_ac_var'}'`
25892                { echo "$as_me:$LINENO: result: $ac_res" >&5
25893 echo "${ECHO_T}$ac_res" >&6; }
25894 if test `eval echo '${'$as_ac_var'}'` = yes; then
25895   cat >>confdefs.h <<_ACEOF
25896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25897 _ACEOF
25898  have_floor=1
25899 fi
25900 done
25901
25902 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25903 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25904 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25905     { echo "$as_me:$LINENO: result: yes" >&5
25906 echo "${ECHO_T}yes" >&6; }
25907 else
25908     { echo "$as_me:$LINENO: result: no" >&5
25909 echo "${ECHO_T}no" >&6; }
25910     LIBS="$LIBS -lm"
25911     # use different functions to avoid configure caching
25912     have_sin=0
25913     have_ceil=0
25914
25915 for ac_func in sin
25916 do
25917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25921   echo $ECHO_N "(cached) $ECHO_C" >&6
25922 else
25923   cat >conftest.$ac_ext <<_ACEOF
25924 /* confdefs.h.  */
25925 _ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h.  */
25929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25931 #define $ac_func innocuous_$ac_func
25932
25933 /* System header to define __stub macros and hopefully few prototypes,
25934     which can conflict with char $ac_func (); below.
25935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25936     <limits.h> exists even on freestanding compilers.  */
25937
25938 #ifdef __STDC__
25939 # include <limits.h>
25940 #else
25941 # include <assert.h>
25942 #endif
25943
25944 #undef $ac_func
25945
25946 /* Override any GCC internal prototype to avoid an error.
25947    Use char because int might match the return type of a GCC
25948    builtin and then its argument prototype would still apply.  */
25949 #ifdef __cplusplus
25950 extern "C"
25951 #endif
25952 char $ac_func ();
25953 /* The GNU C library defines this for functions which it implements
25954     to always fail with ENOSYS.  Some functions are actually named
25955     something starting with __ and the normal name is an alias.  */
25956 #if defined __stub_$ac_func || defined __stub___$ac_func
25957 choke me
25958 #endif
25959
25960 int
25961 main ()
25962 {
25963 return $ac_func ();
25964   ;
25965   return 0;
25966 }
25967 _ACEOF
25968 rm -f conftest.$ac_objext conftest$ac_exeext
25969 if { (ac_try="$ac_link"
25970 case "(($ac_try" in
25971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972   *) ac_try_echo=$ac_try;;
25973 esac
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975   (eval "$ac_link") 2>conftest.er1
25976   ac_status=$?
25977   grep -v '^ *+' conftest.er1 >conftest.err
25978   rm -f conftest.er1
25979   cat conftest.err >&5
25980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); } && {
25982          test -z "$ac_c_werror_flag" ||
25983          test ! -s conftest.err
25984        } && test -s conftest$ac_exeext &&
25985        $as_test_x conftest$ac_exeext; then
25986   eval "$as_ac_var=yes"
25987 else
25988   echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25990
25991         eval "$as_ac_var=no"
25992 fi
25993
25994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25995       conftest$ac_exeext conftest.$ac_ext
25996 fi
25997 ac_res=`eval echo '${'$as_ac_var'}'`
25998                { echo "$as_me:$LINENO: result: $ac_res" >&5
25999 echo "${ECHO_T}$ac_res" >&6; }
26000 if test `eval echo '${'$as_ac_var'}'` = yes; then
26001   cat >>confdefs.h <<_ACEOF
26002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26003 _ACEOF
26004  have_sin=1
26005 fi
26006 done
26007
26008
26009 for ac_func in ceil
26010 do
26011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26015   echo $ECHO_N "(cached) $ECHO_C" >&6
26016 else
26017   cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26025 #define $ac_func innocuous_$ac_func
26026
26027 /* System header to define __stub macros and hopefully few prototypes,
26028     which can conflict with char $ac_func (); below.
26029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26030     <limits.h> exists even on freestanding compilers.  */
26031
26032 #ifdef __STDC__
26033 # include <limits.h>
26034 #else
26035 # include <assert.h>
26036 #endif
26037
26038 #undef $ac_func
26039
26040 /* Override any GCC internal prototype to avoid an error.
26041    Use char because int might match the return type of a GCC
26042    builtin and then its argument prototype would still apply.  */
26043 #ifdef __cplusplus
26044 extern "C"
26045 #endif
26046 char $ac_func ();
26047 /* The GNU C library defines this for functions which it implements
26048     to always fail with ENOSYS.  Some functions are actually named
26049     something starting with __ and the normal name is an alias.  */
26050 #if defined __stub_$ac_func || defined __stub___$ac_func
26051 choke me
26052 #endif
26053
26054 int
26055 main ()
26056 {
26057 return $ac_func ();
26058   ;
26059   return 0;
26060 }
26061 _ACEOF
26062 rm -f conftest.$ac_objext conftest$ac_exeext
26063 if { (ac_try="$ac_link"
26064 case "(($ac_try" in
26065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066   *) ac_try_echo=$ac_try;;
26067 esac
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069   (eval "$ac_link") 2>conftest.er1
26070   ac_status=$?
26071   grep -v '^ *+' conftest.er1 >conftest.err
26072   rm -f conftest.er1
26073   cat conftest.err >&5
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); } && {
26076          test -z "$ac_c_werror_flag" ||
26077          test ! -s conftest.err
26078        } && test -s conftest$ac_exeext &&
26079        $as_test_x conftest$ac_exeext; then
26080   eval "$as_ac_var=yes"
26081 else
26082   echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085         eval "$as_ac_var=no"
26086 fi
26087
26088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26089       conftest$ac_exeext conftest.$ac_ext
26090 fi
26091 ac_res=`eval echo '${'$as_ac_var'}'`
26092                { echo "$as_me:$LINENO: result: $ac_res" >&5
26093 echo "${ECHO_T}$ac_res" >&6; }
26094 if test `eval echo '${'$as_ac_var'}'` = yes; then
26095   cat >>confdefs.h <<_ACEOF
26096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26097 _ACEOF
26098  have_ceil=1
26099 fi
26100 done
26101
26102     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26103 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26104     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26105         { echo "$as_me:$LINENO: result: yes" >&5
26106 echo "${ECHO_T}yes" >&6; }
26107     else
26108         { echo "$as_me:$LINENO: result: no" >&5
26109 echo "${ECHO_T}no" >&6; }
26110         # not sure we should warn the user, crash, etc.
26111     fi
26112 fi
26113
26114 ac_ext=cpp
26115 ac_cpp='$CXXCPP $CPPFLAGS'
26116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26119
26120 if test "wxUSE_UNICODE" = "yes"; then
26121
26122   for wx_func in wcstoull
26123   do
26124     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26125 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26126 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26127   echo $ECHO_N "(cached) $ECHO_C" >&6
26128 else
26129
26130         cat >conftest.$ac_ext <<_ACEOF
26131
26132             /* confdefs.h.  */
26133 _ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h.  */
26137
26138
26139                 $ac_includes_default
26140
26141 int
26142 main ()
26143 {
26144
26145                 #ifndef $wx_func
26146                   &$wx_func;
26147                 #endif
26148
26149
26150   ;
26151   return 0;
26152 }
26153
26154 _ACEOF
26155 rm -f conftest.$ac_objext conftest$ac_exeext
26156 if { (ac_try="$ac_link"
26157 case "(($ac_try" in
26158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159   *) ac_try_echo=$ac_try;;
26160 esac
26161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26162   (eval "$ac_link") 2>conftest.er1
26163   ac_status=$?
26164   grep -v '^ *+' conftest.er1 >conftest.err
26165   rm -f conftest.er1
26166   cat conftest.err >&5
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); } && {
26169          test -z "$ac_cxx_werror_flag" ||
26170          test ! -s conftest.err
26171        } && test -s conftest$ac_exeext &&
26172        $as_test_x conftest$ac_exeext; then
26173   eval wx_cv_func_$wx_func=yes
26174 else
26175   echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26177
26178         eval wx_cv_func_$wx_func=no
26179 fi
26180
26181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26182       conftest$ac_exeext conftest.$ac_ext
26183
26184 fi
26185 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26186                { echo "$as_me:$LINENO: result: $ac_res" >&5
26187 echo "${ECHO_T}$ac_res" >&6; }
26188
26189     if eval test \$wx_cv_func_$wx_func = yes
26190     then
26191       cat >>confdefs.h <<_ACEOF
26192 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26193 _ACEOF
26194
26195
26196     else
26197       :
26198
26199     fi
26200   done
26201
26202 else
26203
26204   for wx_func in strtoull
26205   do
26206     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26207 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26208 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26209   echo $ECHO_N "(cached) $ECHO_C" >&6
26210 else
26211
26212         cat >conftest.$ac_ext <<_ACEOF
26213
26214             /* confdefs.h.  */
26215 _ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h.  */
26219
26220
26221                 $ac_includes_default
26222
26223 int
26224 main ()
26225 {
26226
26227                 #ifndef $wx_func
26228                   &$wx_func;
26229                 #endif
26230
26231
26232   ;
26233   return 0;
26234 }
26235
26236 _ACEOF
26237 rm -f conftest.$ac_objext conftest$ac_exeext
26238 if { (ac_try="$ac_link"
26239 case "(($ac_try" in
26240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26241   *) ac_try_echo=$ac_try;;
26242 esac
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244   (eval "$ac_link") 2>conftest.er1
26245   ac_status=$?
26246   grep -v '^ *+' conftest.er1 >conftest.err
26247   rm -f conftest.er1
26248   cat conftest.err >&5
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); } && {
26251          test -z "$ac_cxx_werror_flag" ||
26252          test ! -s conftest.err
26253        } && test -s conftest$ac_exeext &&
26254        $as_test_x conftest$ac_exeext; then
26255   eval wx_cv_func_$wx_func=yes
26256 else
26257   echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260         eval wx_cv_func_$wx_func=no
26261 fi
26262
26263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26264       conftest$ac_exeext conftest.$ac_ext
26265
26266 fi
26267 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26268                { echo "$as_me:$LINENO: result: $ac_res" >&5
26269 echo "${ECHO_T}$ac_res" >&6; }
26270
26271     if eval test \$wx_cv_func_$wx_func = yes
26272     then
26273       cat >>confdefs.h <<_ACEOF
26274 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26275 _ACEOF
26276
26277
26278     else
26279       :
26280
26281     fi
26282   done
26283
26284 fi
26285 ac_ext=c
26286 ac_cpp='$CPP $CPPFLAGS'
26287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26290
26291
26292
26293
26294 if test "$wxUSE_REGEX" != "no"; then
26295     cat >>confdefs.h <<\_ACEOF
26296 #define wxUSE_REGEX 1
26297 _ACEOF
26298
26299
26300     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26301         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26302 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26303         wxUSE_REGEX=builtin
26304     fi
26305
26306     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26307                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26308 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26309 if test "${ac_cv_header_regex_h+set}" = set; then
26310   echo $ECHO_N "(cached) $ECHO_C" >&6
26311 else
26312   cat >conftest.$ac_ext <<_ACEOF
26313 /* confdefs.h.  */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h.  */
26318
26319
26320 #include <regex.h>
26321 _ACEOF
26322 rm -f conftest.$ac_objext
26323 if { (ac_try="$ac_compile"
26324 case "(($ac_try" in
26325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26326   *) ac_try_echo=$ac_try;;
26327 esac
26328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26329   (eval "$ac_compile") 2>conftest.er1
26330   ac_status=$?
26331   grep -v '^ *+' conftest.er1 >conftest.err
26332   rm -f conftest.er1
26333   cat conftest.err >&5
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); } && {
26336          test -z "$ac_c_werror_flag" ||
26337          test ! -s conftest.err
26338        } && test -s conftest.$ac_objext; then
26339   ac_cv_header_regex_h=yes
26340 else
26341   echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26343
26344         ac_cv_header_regex_h=no
26345 fi
26346
26347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26348 fi
26349 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26350 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26351 if test $ac_cv_header_regex_h = yes; then
26352
26353
26354 for ac_func in regcomp re_search
26355 do
26356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26360   echo $ECHO_N "(cached) $ECHO_C" >&6
26361 else
26362   cat >conftest.$ac_ext <<_ACEOF
26363 /* confdefs.h.  */
26364 _ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h.  */
26368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26370 #define $ac_func innocuous_$ac_func
26371
26372 /* System header to define __stub macros and hopefully few prototypes,
26373     which can conflict with char $ac_func (); below.
26374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26375     <limits.h> exists even on freestanding compilers.  */
26376
26377 #ifdef __STDC__
26378 # include <limits.h>
26379 #else
26380 # include <assert.h>
26381 #endif
26382
26383 #undef $ac_func
26384
26385 /* Override any GCC internal prototype to avoid an error.
26386    Use char because int might match the return type of a GCC
26387    builtin and then its argument prototype would still apply.  */
26388 #ifdef __cplusplus
26389 extern "C"
26390 #endif
26391 char $ac_func ();
26392 /* The GNU C library defines this for functions which it implements
26393     to always fail with ENOSYS.  Some functions are actually named
26394     something starting with __ and the normal name is an alias.  */
26395 #if defined __stub_$ac_func || defined __stub___$ac_func
26396 choke me
26397 #endif
26398
26399 int
26400 main ()
26401 {
26402 return $ac_func ();
26403   ;
26404   return 0;
26405 }
26406 _ACEOF
26407 rm -f conftest.$ac_objext conftest$ac_exeext
26408 if { (ac_try="$ac_link"
26409 case "(($ac_try" in
26410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26411   *) ac_try_echo=$ac_try;;
26412 esac
26413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26414   (eval "$ac_link") 2>conftest.er1
26415   ac_status=$?
26416   grep -v '^ *+' conftest.er1 >conftest.err
26417   rm -f conftest.er1
26418   cat conftest.err >&5
26419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420   (exit $ac_status); } && {
26421          test -z "$ac_c_werror_flag" ||
26422          test ! -s conftest.err
26423        } && test -s conftest$ac_exeext &&
26424        $as_test_x conftest$ac_exeext; then
26425   eval "$as_ac_var=yes"
26426 else
26427   echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26429
26430         eval "$as_ac_var=no"
26431 fi
26432
26433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26434       conftest$ac_exeext conftest.$ac_ext
26435 fi
26436 ac_res=`eval echo '${'$as_ac_var'}'`
26437                { echo "$as_me:$LINENO: result: $ac_res" >&5
26438 echo "${ECHO_T}$ac_res" >&6; }
26439 if test `eval echo '${'$as_ac_var'}'` = yes; then
26440   cat >>confdefs.h <<_ACEOF
26441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26442 _ACEOF
26443
26444 fi
26445 done
26446
26447 fi
26448
26449
26450
26451         if test "x$ac_cv_func_regcomp" != "xyes"; then
26452             if test "$wxUSE_REGEX" = "sys" ; then
26453                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26454 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26455    { (exit 1); exit 1; }; }
26456             else
26457                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26458 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26459                 wxUSE_REGEX=builtin
26460             fi
26461         else
26462                         wxUSE_REGEX=sys
26463                         cat >>confdefs.h <<\_ACEOF
26464 #define WX_NO_REGEX_ADVANCED 1
26465 _ACEOF
26466
26467         fi
26468     fi
26469 fi
26470
26471
26472 ZLIB_LINK=
26473 if test "$wxUSE_ZLIB" != "no" ; then
26474     cat >>confdefs.h <<\_ACEOF
26475 #define wxUSE_ZLIB 1
26476 _ACEOF
26477
26478
26479     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26480                                                 if test "$USE_DARWIN" = 1; then
26481             system_zlib_h_ok="yes"
26482         else
26483                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26484 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26485 if test "${ac_cv_header_zlib_h+set}" = set; then
26486   echo $ECHO_N "(cached) $ECHO_C" >&6
26487 else
26488   if test "$cross_compiling" = yes; then
26489                       unset ac_cv_header_zlib_h
26490
26491 else
26492   cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498
26499                         #include <zlib.h>
26500                         #include <stdio.h>
26501
26502                         int main()
26503                         {
26504                             FILE *f=fopen("conftestval", "w");
26505                             if (!f) exit(1);
26506                             fprintf(f, "%s",
26507                                     ZLIB_VERSION[0] == '1' &&
26508                                     (ZLIB_VERSION[2] > '1' ||
26509                                     (ZLIB_VERSION[2] == '1' &&
26510                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26511                             exit(0);
26512                         }
26513
26514 _ACEOF
26515 rm -f conftest$ac_exeext
26516 if { (ac_try="$ac_link"
26517 case "(($ac_try" in
26518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26519   *) ac_try_echo=$ac_try;;
26520 esac
26521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26522   (eval "$ac_link") 2>&5
26523   ac_status=$?
26524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26526   { (case "(($ac_try" in
26527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26528   *) ac_try_echo=$ac_try;;
26529 esac
26530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26531   (eval "$ac_try") 2>&5
26532   ac_status=$?
26533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534   (exit $ac_status); }; }; then
26535   ac_cv_header_zlib_h=`cat conftestval`
26536 else
26537   echo "$as_me: program exited with status $ac_status" >&5
26538 echo "$as_me: failed program was:" >&5
26539 sed 's/^/| /' conftest.$ac_ext >&5
26540
26541 ( exit $ac_status )
26542 ac_cv_header_zlib_h=no
26543 fi
26544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26545 fi
26546
26547
26548
26549 fi
26550 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26551 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26552                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26553 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26554 if test "${ac_cv_header_zlib_h+set}" = set; then
26555   echo $ECHO_N "(cached) $ECHO_C" >&6
26556 else
26557   cat >conftest.$ac_ext <<_ACEOF
26558 /* confdefs.h.  */
26559 _ACEOF
26560 cat confdefs.h >>conftest.$ac_ext
26561 cat >>conftest.$ac_ext <<_ACEOF
26562 /* end confdefs.h.  */
26563
26564
26565 #include <zlib.h>
26566 _ACEOF
26567 rm -f conftest.$ac_objext
26568 if { (ac_try="$ac_compile"
26569 case "(($ac_try" in
26570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571   *) ac_try_echo=$ac_try;;
26572 esac
26573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574   (eval "$ac_compile") 2>conftest.er1
26575   ac_status=$?
26576   grep -v '^ *+' conftest.er1 >conftest.err
26577   rm -f conftest.er1
26578   cat conftest.err >&5
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); } && {
26581          test -z "$ac_c_werror_flag" ||
26582          test ! -s conftest.err
26583        } && test -s conftest.$ac_objext; then
26584   ac_cv_header_zlib_h=yes
26585 else
26586   echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26588
26589         ac_cv_header_zlib_h=no
26590 fi
26591
26592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26593 fi
26594 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26595 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26596
26597
26598
26599             system_zlib_h_ok=$ac_cv_header_zlib_h
26600         fi
26601
26602         if test "$system_zlib_h_ok" = "yes"; then
26603             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26604 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26605 if test "${ac_cv_lib_z_deflate+set}" = set; then
26606   echo $ECHO_N "(cached) $ECHO_C" >&6
26607 else
26608   ac_check_lib_save_LIBS=$LIBS
26609 LIBS="-lz  $LIBS"
26610 cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h.  */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h.  */
26616
26617 /* Override any GCC internal prototype to avoid an error.
26618    Use char because int might match the return type of a GCC
26619    builtin and then its argument prototype would still apply.  */
26620 #ifdef __cplusplus
26621 extern "C"
26622 #endif
26623 char deflate ();
26624 int
26625 main ()
26626 {
26627 return deflate ();
26628   ;
26629   return 0;
26630 }
26631 _ACEOF
26632 rm -f conftest.$ac_objext conftest$ac_exeext
26633 if { (ac_try="$ac_link"
26634 case "(($ac_try" in
26635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26636   *) ac_try_echo=$ac_try;;
26637 esac
26638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26639   (eval "$ac_link") 2>conftest.er1
26640   ac_status=$?
26641   grep -v '^ *+' conftest.er1 >conftest.err
26642   rm -f conftest.er1
26643   cat conftest.err >&5
26644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); } && {
26646          test -z "$ac_c_werror_flag" ||
26647          test ! -s conftest.err
26648        } && test -s conftest$ac_exeext &&
26649        $as_test_x conftest$ac_exeext; then
26650   ac_cv_lib_z_deflate=yes
26651 else
26652   echo "$as_me: failed program was:" >&5
26653 sed 's/^/| /' conftest.$ac_ext >&5
26654
26655         ac_cv_lib_z_deflate=no
26656 fi
26657
26658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26659       conftest$ac_exeext conftest.$ac_ext
26660 LIBS=$ac_check_lib_save_LIBS
26661 fi
26662 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26663 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26664 if test $ac_cv_lib_z_deflate = yes; then
26665   ZLIB_LINK=" -lz"
26666 fi
26667
26668         fi
26669
26670         if test "x$ZLIB_LINK" = "x" ; then
26671             if test "$wxUSE_ZLIB" = "sys" ; then
26672                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26673 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26674    { (exit 1); exit 1; }; }
26675             else
26676                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26677 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26678                 wxUSE_ZLIB=builtin
26679             fi
26680         else
26681                         wxUSE_ZLIB=sys
26682         fi
26683     fi
26684 fi
26685
26686
26687 PNG_LINK=
26688 if test "$wxUSE_LIBPNG" != "no" ; then
26689     cat >>confdefs.h <<\_ACEOF
26690 #define wxUSE_LIBPNG 1
26691 _ACEOF
26692
26693
26694     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26695         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26696 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26697         wxUSE_LIBPNG=sys
26698     fi
26699
26700                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26701         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26702 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26703         wxUSE_LIBPNG=builtin
26704     fi
26705
26706     if test "$wxUSE_MGL" != 1 ; then
26707                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26708                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26709 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26710 if test "${ac_cv_header_png_h+set}" = set; then
26711   echo $ECHO_N "(cached) $ECHO_C" >&6
26712 else
26713   if test "$cross_compiling" = yes; then
26714                       unset ac_cv_header_png_h
26715
26716 else
26717   cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723
26724                         #include <png.h>
26725                         #include <stdio.h>
26726
26727                         int main()
26728                         {
26729                             FILE *f=fopen("conftestval", "w");
26730                             if (!f) exit(1);
26731                             fprintf(f, "%s",
26732                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26733                             exit(0);
26734                         }
26735
26736 _ACEOF
26737 rm -f conftest$ac_exeext
26738 if { (ac_try="$ac_link"
26739 case "(($ac_try" in
26740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26741   *) ac_try_echo=$ac_try;;
26742 esac
26743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26744   (eval "$ac_link") 2>&5
26745   ac_status=$?
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26748   { (case "(($ac_try" in
26749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750   *) ac_try_echo=$ac_try;;
26751 esac
26752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26753   (eval "$ac_try") 2>&5
26754   ac_status=$?
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); }; }; then
26757   ac_cv_header_png_h=`cat conftestval`
26758 else
26759   echo "$as_me: program exited with status $ac_status" >&5
26760 echo "$as_me: failed program was:" >&5
26761 sed 's/^/| /' conftest.$ac_ext >&5
26762
26763 ( exit $ac_status )
26764 ac_cv_header_png_h=no
26765 fi
26766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26767 fi
26768
26769
26770
26771 fi
26772 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26773 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26774             { echo "$as_me:$LINENO: checking for png.h" >&5
26775 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26776 if test "${ac_cv_header_png_h+set}" = set; then
26777   echo $ECHO_N "(cached) $ECHO_C" >&6
26778 else
26779   cat >conftest.$ac_ext <<_ACEOF
26780 /* confdefs.h.  */
26781 _ACEOF
26782 cat confdefs.h >>conftest.$ac_ext
26783 cat >>conftest.$ac_ext <<_ACEOF
26784 /* end confdefs.h.  */
26785
26786
26787 #include <png.h>
26788 _ACEOF
26789 rm -f conftest.$ac_objext
26790 if { (ac_try="$ac_compile"
26791 case "(($ac_try" in
26792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793   *) ac_try_echo=$ac_try;;
26794 esac
26795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26796   (eval "$ac_compile") 2>conftest.er1
26797   ac_status=$?
26798   grep -v '^ *+' conftest.er1 >conftest.err
26799   rm -f conftest.er1
26800   cat conftest.err >&5
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); } && {
26803          test -z "$ac_c_werror_flag" ||
26804          test ! -s conftest.err
26805        } && test -s conftest.$ac_objext; then
26806   ac_cv_header_png_h=yes
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811         ac_cv_header_png_h=no
26812 fi
26813
26814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815 fi
26816 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26817 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26818
26819
26820
26821             if test "$ac_cv_header_png_h" = "yes"; then
26822                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26823 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26824 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26825   echo $ECHO_N "(cached) $ECHO_C" >&6
26826 else
26827   ac_check_lib_save_LIBS=$LIBS
26828 LIBS="-lpng -lz -lm $LIBS"
26829 cat >conftest.$ac_ext <<_ACEOF
26830 /* confdefs.h.  */
26831 _ACEOF
26832 cat confdefs.h >>conftest.$ac_ext
26833 cat >>conftest.$ac_ext <<_ACEOF
26834 /* end confdefs.h.  */
26835
26836 /* Override any GCC internal prototype to avoid an error.
26837    Use char because int might match the return type of a GCC
26838    builtin and then its argument prototype would still apply.  */
26839 #ifdef __cplusplus
26840 extern "C"
26841 #endif
26842 char png_check_sig ();
26843 int
26844 main ()
26845 {
26846 return png_check_sig ();
26847   ;
26848   return 0;
26849 }
26850 _ACEOF
26851 rm -f conftest.$ac_objext conftest$ac_exeext
26852 if { (ac_try="$ac_link"
26853 case "(($ac_try" in
26854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26855   *) ac_try_echo=$ac_try;;
26856 esac
26857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26858   (eval "$ac_link") 2>conftest.er1
26859   ac_status=$?
26860   grep -v '^ *+' conftest.er1 >conftest.err
26861   rm -f conftest.er1
26862   cat conftest.err >&5
26863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864   (exit $ac_status); } && {
26865          test -z "$ac_c_werror_flag" ||
26866          test ! -s conftest.err
26867        } && test -s conftest$ac_exeext &&
26868        $as_test_x conftest$ac_exeext; then
26869   ac_cv_lib_png_png_check_sig=yes
26870 else
26871   echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874         ac_cv_lib_png_png_check_sig=no
26875 fi
26876
26877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26878       conftest$ac_exeext conftest.$ac_ext
26879 LIBS=$ac_check_lib_save_LIBS
26880 fi
26881 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26882 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26883 if test $ac_cv_lib_png_png_check_sig = yes; then
26884   PNG_LINK=" -lpng -lz"
26885 fi
26886
26887             fi
26888
26889             if test "x$PNG_LINK" = "x" ; then
26890                 if test "$wxUSE_LIBPNG" = "sys" ; then
26891                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26892 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26893    { (exit 1); exit 1; }; }
26894                 else
26895                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26896 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26897                     wxUSE_LIBPNG=builtin
26898                 fi
26899             else
26900                                 wxUSE_LIBPNG=sys
26901             fi
26902         fi
26903     fi
26904 fi
26905
26906
26907 JPEG_LINK=
26908 if test "$wxUSE_LIBJPEG" != "no" ; then
26909     cat >>confdefs.h <<\_ACEOF
26910 #define wxUSE_LIBJPEG 1
26911 _ACEOF
26912
26913
26914     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26915         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26916 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26917         wxUSE_LIBJPEG=sys
26918     fi
26919
26920     if test "$wxUSE_MGL" != 1 ; then
26921                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26922                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26923 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26924             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26925   echo $ECHO_N "(cached) $ECHO_C" >&6
26926 else
26927   cat >conftest.$ac_ext <<_ACEOF
26928 /* confdefs.h.  */
26929 _ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h.  */
26933
26934                         #undef HAVE_STDLIB_H
26935                         #include <stdio.h>
26936                         #include <jpeglib.h>
26937
26938 int
26939 main ()
26940 {
26941
26942
26943   ;
26944   return 0;
26945 }
26946 _ACEOF
26947 rm -f conftest.$ac_objext
26948 if { (ac_try="$ac_compile"
26949 case "(($ac_try" in
26950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951   *) ac_try_echo=$ac_try;;
26952 esac
26953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26954   (eval "$ac_compile") 2>conftest.er1
26955   ac_status=$?
26956   grep -v '^ *+' conftest.er1 >conftest.err
26957   rm -f conftest.er1
26958   cat conftest.err >&5
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); } && {
26961          test -z "$ac_c_werror_flag" ||
26962          test ! -s conftest.err
26963        } && test -s conftest.$ac_objext; then
26964   ac_cv_header_jpeglib_h=yes
26965 else
26966   echo "$as_me: failed program was:" >&5
26967 sed 's/^/| /' conftest.$ac_ext >&5
26968
26969         ac_cv_header_jpeglib_h=no
26970
26971 fi
26972
26973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26974
26975 fi
26976
26977             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26978 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26979
26980             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26981                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26982 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26983 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26984   echo $ECHO_N "(cached) $ECHO_C" >&6
26985 else
26986   ac_check_lib_save_LIBS=$LIBS
26987 LIBS="-ljpeg  $LIBS"
26988 cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h.  */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h.  */
26994
26995 /* Override any GCC internal prototype to avoid an error.
26996    Use char because int might match the return type of a GCC
26997    builtin and then its argument prototype would still apply.  */
26998 #ifdef __cplusplus
26999 extern "C"
27000 #endif
27001 char jpeg_read_header ();
27002 int
27003 main ()
27004 {
27005 return jpeg_read_header ();
27006   ;
27007   return 0;
27008 }
27009 _ACEOF
27010 rm -f conftest.$ac_objext conftest$ac_exeext
27011 if { (ac_try="$ac_link"
27012 case "(($ac_try" in
27013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014   *) ac_try_echo=$ac_try;;
27015 esac
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017   (eval "$ac_link") 2>conftest.er1
27018   ac_status=$?
27019   grep -v '^ *+' conftest.er1 >conftest.err
27020   rm -f conftest.er1
27021   cat conftest.err >&5
27022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); } && {
27024          test -z "$ac_c_werror_flag" ||
27025          test ! -s conftest.err
27026        } && test -s conftest$ac_exeext &&
27027        $as_test_x conftest$ac_exeext; then
27028   ac_cv_lib_jpeg_jpeg_read_header=yes
27029 else
27030   echo "$as_me: failed program was:" >&5
27031 sed 's/^/| /' conftest.$ac_ext >&5
27032
27033         ac_cv_lib_jpeg_jpeg_read_header=no
27034 fi
27035
27036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27037       conftest$ac_exeext conftest.$ac_ext
27038 LIBS=$ac_check_lib_save_LIBS
27039 fi
27040 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27041 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27042 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
27043   JPEG_LINK=" -ljpeg"
27044 fi
27045
27046             fi
27047
27048             if test "x$JPEG_LINK" = "x" ; then
27049                 if test "$wxUSE_LIBJPEG" = "sys" ; then
27050                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27051 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27052    { (exit 1); exit 1; }; }
27053                 else
27054                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27055 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27056                     wxUSE_LIBJPEG=builtin
27057                 fi
27058             else
27059                                 wxUSE_LIBJPEG=sys
27060
27061                 if test "$wxUSE_MSW" = 1; then
27062                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27063 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27064 if test "${ac_cv_type_boolean+set}" = set; then
27065   echo $ECHO_N "(cached) $ECHO_C" >&6
27066 else
27067   cat >conftest.$ac_ext <<_ACEOF
27068 /* confdefs.h.  */
27069 _ACEOF
27070 cat confdefs.h >>conftest.$ac_ext
27071 cat >>conftest.$ac_ext <<_ACEOF
27072 /* end confdefs.h.  */
27073 #include <windows.h>
27074
27075 typedef boolean ac__type_new_;
27076 int
27077 main ()
27078 {
27079 if ((ac__type_new_ *) 0)
27080   return 0;
27081 if (sizeof (ac__type_new_))
27082   return 0;
27083   ;
27084   return 0;
27085 }
27086 _ACEOF
27087 rm -f conftest.$ac_objext
27088 if { (ac_try="$ac_compile"
27089 case "(($ac_try" in
27090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091   *) ac_try_echo=$ac_try;;
27092 esac
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094   (eval "$ac_compile") 2>conftest.er1
27095   ac_status=$?
27096   grep -v '^ *+' conftest.er1 >conftest.err
27097   rm -f conftest.er1
27098   cat conftest.err >&5
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } && {
27101          test -z "$ac_c_werror_flag" ||
27102          test ! -s conftest.err
27103        } && test -s conftest.$ac_objext; then
27104   ac_cv_type_boolean=yes
27105 else
27106   echo "$as_me: failed program was:" >&5
27107 sed 's/^/| /' conftest.$ac_ext >&5
27108
27109         ac_cv_type_boolean=no
27110 fi
27111
27112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113 fi
27114 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27115 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27116 if test $ac_cv_type_boolean = yes; then
27117
27118 cat >>confdefs.h <<_ACEOF
27119 #define HAVE_BOOLEAN 1
27120 _ACEOF
27121
27122
27123                             { echo "$as_me:$LINENO: checking for boolean" >&5
27124 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27125 if test "${ac_cv_type_boolean+set}" = set; then
27126   echo $ECHO_N "(cached) $ECHO_C" >&6
27127 else
27128   cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134
27135                                     #undef HAVE_BOOLEAN
27136                                     #include <stdio.h>
27137                                     #include <jpeglib.h>
27138
27139
27140 typedef boolean ac__type_new_;
27141 int
27142 main ()
27143 {
27144 if ((ac__type_new_ *) 0)
27145   return 0;
27146 if (sizeof (ac__type_new_))
27147   return 0;
27148   ;
27149   return 0;
27150 }
27151 _ACEOF
27152 rm -f conftest.$ac_objext
27153 if { (ac_try="$ac_compile"
27154 case "(($ac_try" in
27155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156   *) ac_try_echo=$ac_try;;
27157 esac
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159   (eval "$ac_compile") 2>conftest.er1
27160   ac_status=$?
27161   grep -v '^ *+' conftest.er1 >conftest.err
27162   rm -f conftest.er1
27163   cat conftest.err >&5
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); } && {
27166          test -z "$ac_c_werror_flag" ||
27167          test ! -s conftest.err
27168        } && test -s conftest.$ac_objext; then
27169   ac_cv_type_boolean=yes
27170 else
27171   echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27173
27174         ac_cv_type_boolean=no
27175 fi
27176
27177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27178 fi
27179 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27180 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27181
27182 # The cast to long int works around a bug in the HP C Compiler
27183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27185 # This bug is HP SR number 8606223364.
27186 { echo "$as_me:$LINENO: checking size of boolean" >&5
27187 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27188 if test "${ac_cv_sizeof_boolean+set}" = set; then
27189   echo $ECHO_N "(cached) $ECHO_C" >&6
27190 else
27191   if test "$cross_compiling" = yes; then
27192   # Depending upon the size, compute the lo and hi bounds.
27193 cat >conftest.$ac_ext <<_ACEOF
27194 /* confdefs.h.  */
27195 _ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h.  */
27199
27200                                     #undef HAVE_BOOLEAN
27201                                     #include <stdio.h>
27202                                     #include <jpeglib.h>
27203
27204
27205    typedef boolean ac__type_sizeof_;
27206 int
27207 main ()
27208 {
27209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27210 test_array [0] = 0
27211
27212   ;
27213   return 0;
27214 }
27215 _ACEOF
27216 rm -f conftest.$ac_objext
27217 if { (ac_try="$ac_compile"
27218 case "(($ac_try" in
27219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220   *) ac_try_echo=$ac_try;;
27221 esac
27222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223   (eval "$ac_compile") 2>conftest.er1
27224   ac_status=$?
27225   grep -v '^ *+' conftest.er1 >conftest.err
27226   rm -f conftest.er1
27227   cat conftest.err >&5
27228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229   (exit $ac_status); } && {
27230          test -z "$ac_c_werror_flag" ||
27231          test ! -s conftest.err
27232        } && test -s conftest.$ac_objext; then
27233   ac_lo=0 ac_mid=0
27234   while :; do
27235     cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241
27242                                     #undef HAVE_BOOLEAN
27243                                     #include <stdio.h>
27244                                     #include <jpeglib.h>
27245
27246
27247    typedef boolean ac__type_sizeof_;
27248 int
27249 main ()
27250 {
27251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27252 test_array [0] = 0
27253
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262   *) ac_try_echo=$ac_try;;
27263 esac
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265   (eval "$ac_compile") 2>conftest.er1
27266   ac_status=$?
27267   grep -v '^ *+' conftest.er1 >conftest.err
27268   rm -f conftest.er1
27269   cat conftest.err >&5
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); } && {
27272          test -z "$ac_c_werror_flag" ||
27273          test ! -s conftest.err
27274        } && test -s conftest.$ac_objext; then
27275   ac_hi=$ac_mid; break
27276 else
27277   echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27279
27280         ac_lo=`expr $ac_mid + 1`
27281                         if test $ac_lo -le $ac_mid; then
27282                           ac_lo= ac_hi=
27283                           break
27284                         fi
27285                         ac_mid=`expr 2 '*' $ac_mid + 1`
27286 fi
27287
27288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289   done
27290 else
27291   echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27293
27294         cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300
27301                                     #undef HAVE_BOOLEAN
27302                                     #include <stdio.h>
27303                                     #include <jpeglib.h>
27304
27305
27306    typedef boolean ac__type_sizeof_;
27307 int
27308 main ()
27309 {
27310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27311 test_array [0] = 0
27312
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest.$ac_objext
27318 if { (ac_try="$ac_compile"
27319 case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324   (eval "$ac_compile") 2>conftest.er1
27325   ac_status=$?
27326   grep -v '^ *+' conftest.er1 >conftest.err
27327   rm -f conftest.er1
27328   cat conftest.err >&5
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); } && {
27331          test -z "$ac_c_werror_flag" ||
27332          test ! -s conftest.err
27333        } && test -s conftest.$ac_objext; then
27334   ac_hi=-1 ac_mid=-1
27335   while :; do
27336     cat >conftest.$ac_ext <<_ACEOF
27337 /* confdefs.h.  */
27338 _ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h.  */
27342
27343                                     #undef HAVE_BOOLEAN
27344                                     #include <stdio.h>
27345                                     #include <jpeglib.h>
27346
27347
27348    typedef boolean ac__type_sizeof_;
27349 int
27350 main ()
27351 {
27352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27353 test_array [0] = 0
27354
27355   ;
27356   return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext
27360 if { (ac_try="$ac_compile"
27361 case "(($ac_try" in
27362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363   *) ac_try_echo=$ac_try;;
27364 esac
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366   (eval "$ac_compile") 2>conftest.er1
27367   ac_status=$?
27368   grep -v '^ *+' conftest.er1 >conftest.err
27369   rm -f conftest.er1
27370   cat conftest.err >&5
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); } && {
27373          test -z "$ac_c_werror_flag" ||
27374          test ! -s conftest.err
27375        } && test -s conftest.$ac_objext; then
27376   ac_lo=$ac_mid; break
27377 else
27378   echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27380
27381         ac_hi=`expr '(' $ac_mid ')' - 1`
27382                         if test $ac_mid -le $ac_hi; then
27383                           ac_lo= ac_hi=
27384                           break
27385                         fi
27386                         ac_mid=`expr 2 '*' $ac_mid`
27387 fi
27388
27389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27390   done
27391 else
27392   echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27394
27395         ac_lo= ac_hi=
27396 fi
27397
27398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27399 fi
27400
27401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27402 # Binary search between lo and hi bounds.
27403 while test "x$ac_lo" != "x$ac_hi"; do
27404   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27405   cat >conftest.$ac_ext <<_ACEOF
27406 /* confdefs.h.  */
27407 _ACEOF
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h.  */
27411
27412                                     #undef HAVE_BOOLEAN
27413                                     #include <stdio.h>
27414                                     #include <jpeglib.h>
27415
27416
27417    typedef boolean ac__type_sizeof_;
27418 int
27419 main ()
27420 {
27421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27422 test_array [0] = 0
27423
27424   ;
27425   return 0;
27426 }
27427 _ACEOF
27428 rm -f conftest.$ac_objext
27429 if { (ac_try="$ac_compile"
27430 case "(($ac_try" in
27431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27432   *) ac_try_echo=$ac_try;;
27433 esac
27434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27435   (eval "$ac_compile") 2>conftest.er1
27436   ac_status=$?
27437   grep -v '^ *+' conftest.er1 >conftest.err
27438   rm -f conftest.er1
27439   cat conftest.err >&5
27440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441   (exit $ac_status); } && {
27442          test -z "$ac_c_werror_flag" ||
27443          test ! -s conftest.err
27444        } && test -s conftest.$ac_objext; then
27445   ac_hi=$ac_mid
27446 else
27447   echo "$as_me: failed program was:" >&5
27448 sed 's/^/| /' conftest.$ac_ext >&5
27449
27450         ac_lo=`expr '(' $ac_mid ')' + 1`
27451 fi
27452
27453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27454 done
27455 case $ac_lo in
27456 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27457 '') if test "$ac_cv_type_boolean" = yes; then
27458      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27459 See \`config.log' for more details." >&5
27460 echo "$as_me: error: cannot compute sizeof (boolean)
27461 See \`config.log' for more details." >&2;}
27462    { (exit 77); exit 77; }; }
27463    else
27464      ac_cv_sizeof_boolean=0
27465    fi ;;
27466 esac
27467 else
27468   cat >conftest.$ac_ext <<_ACEOF
27469 /* confdefs.h.  */
27470 _ACEOF
27471 cat confdefs.h >>conftest.$ac_ext
27472 cat >>conftest.$ac_ext <<_ACEOF
27473 /* end confdefs.h.  */
27474
27475                                     #undef HAVE_BOOLEAN
27476                                     #include <stdio.h>
27477                                     #include <jpeglib.h>
27478
27479
27480    typedef boolean ac__type_sizeof_;
27481 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27482 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27483 #include <stdio.h>
27484 #include <stdlib.h>
27485 int
27486 main ()
27487 {
27488
27489   FILE *f = fopen ("conftest.val", "w");
27490   if (! f)
27491     return 1;
27492   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27493     {
27494       long int i = longval ();
27495       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27496         return 1;
27497       fprintf (f, "%ld\n", i);
27498     }
27499   else
27500     {
27501       unsigned long int i = ulongval ();
27502       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27503         return 1;
27504       fprintf (f, "%lu\n", i);
27505     }
27506   return ferror (f) || fclose (f) != 0;
27507
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 rm -f conftest$ac_exeext
27513 if { (ac_try="$ac_link"
27514 case "(($ac_try" in
27515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516   *) ac_try_echo=$ac_try;;
27517 esac
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519   (eval "$ac_link") 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27523   { (case "(($ac_try" in
27524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27525   *) ac_try_echo=$ac_try;;
27526 esac
27527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27528   (eval "$ac_try") 2>&5
27529   ac_status=$?
27530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531   (exit $ac_status); }; }; then
27532   ac_cv_sizeof_boolean=`cat conftest.val`
27533 else
27534   echo "$as_me: program exited with status $ac_status" >&5
27535 echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27537
27538 ( exit $ac_status )
27539 if test "$ac_cv_type_boolean" = yes; then
27540      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27541 See \`config.log' for more details." >&5
27542 echo "$as_me: error: cannot compute sizeof (boolean)
27543 See \`config.log' for more details." >&2;}
27544    { (exit 77); exit 77; }; }
27545    else
27546      ac_cv_sizeof_boolean=0
27547    fi
27548 fi
27549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27550 fi
27551 rm -f conftest.val
27552 fi
27553 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27554 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27555
27556
27557
27558 cat >>confdefs.h <<_ACEOF
27559 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27560 _ACEOF
27561
27562
27563                             cat >>confdefs.h <<_ACEOF
27564 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27565 _ACEOF
27566
27567
27568 fi
27569
27570                 fi
27571             fi
27572         fi
27573     fi
27574 fi
27575
27576
27577 TIFF_LINK=
27578 TIFF_PREREQ_LINKS=-lm
27579 if test "$wxUSE_LIBTIFF" != "no" ; then
27580     cat >>confdefs.h <<\_ACEOF
27581 #define wxUSE_LIBTIFF 1
27582 _ACEOF
27583
27584
27585     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27586                         if test "$wxUSE_LIBJPEG" = "sys"; then
27587             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27588         fi
27589         if test "$wxUSE_ZLIB" = "sys"; then
27590             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27591         fi
27592         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27593 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27594 if test "${ac_cv_header_tiffio_h+set}" = set; then
27595   echo $ECHO_N "(cached) $ECHO_C" >&6
27596 else
27597   cat >conftest.$ac_ext <<_ACEOF
27598 /* confdefs.h.  */
27599 _ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h.  */
27603
27604
27605
27606 #include <tiffio.h>
27607 _ACEOF
27608 rm -f conftest.$ac_objext
27609 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
27625   ac_cv_header_tiffio_h=yes
27626 else
27627   echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27629
27630         ac_cv_header_tiffio_h=no
27631 fi
27632
27633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27634 fi
27635 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27636 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27637 if test $ac_cv_header_tiffio_h = yes; then
27638
27639                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27640 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27641 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27642   echo $ECHO_N "(cached) $ECHO_C" >&6
27643 else
27644   ac_check_lib_save_LIBS=$LIBS
27645 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27646 cat >conftest.$ac_ext <<_ACEOF
27647 /* confdefs.h.  */
27648 _ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h.  */
27652
27653 /* Override any GCC internal prototype to avoid an error.
27654    Use char because int might match the return type of a GCC
27655    builtin and then its argument prototype would still apply.  */
27656 #ifdef __cplusplus
27657 extern "C"
27658 #endif
27659 char TIFFError ();
27660 int
27661 main ()
27662 {
27663 return TIFFError ();
27664   ;
27665   return 0;
27666 }
27667 _ACEOF
27668 rm -f conftest.$ac_objext conftest$ac_exeext
27669 if { (ac_try="$ac_link"
27670 case "(($ac_try" in
27671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672   *) ac_try_echo=$ac_try;;
27673 esac
27674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675   (eval "$ac_link") 2>conftest.er1
27676   ac_status=$?
27677   grep -v '^ *+' conftest.er1 >conftest.err
27678   rm -f conftest.er1
27679   cat conftest.err >&5
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); } && {
27682          test -z "$ac_c_werror_flag" ||
27683          test ! -s conftest.err
27684        } && test -s conftest$ac_exeext &&
27685        $as_test_x conftest$ac_exeext; then
27686   ac_cv_lib_tiff_TIFFError=yes
27687 else
27688   echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27690
27691         ac_cv_lib_tiff_TIFFError=no
27692 fi
27693
27694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27695       conftest$ac_exeext conftest.$ac_ext
27696 LIBS=$ac_check_lib_save_LIBS
27697 fi
27698 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27699 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27700 if test $ac_cv_lib_tiff_TIFFError = yes; then
27701   TIFF_LINK=" -ltiff"
27702 fi
27703
27704
27705 fi
27706
27707
27708
27709         if test "x$TIFF_LINK" = "x" ; then
27710             if test "$wxUSE_LIBTIFF" = "sys" ; then
27711                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27712 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27713    { (exit 1); exit 1; }; }
27714             else
27715                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27716 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27717                 wxUSE_LIBTIFF=builtin
27718             fi
27719         else
27720                         wxUSE_LIBTIFF=sys
27721         fi
27722     fi
27723     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27724         if test "$wxUSE_LIBJPEG" = "no"; then
27725                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27726         fi
27727         subdirs="$subdirs src/tiff"
27728
27729     fi
27730 fi
27731
27732
27733 if test "$wxUSE_WCHAR_T" != "yes"; then
27734     if test "$wxUSE_EXPAT" != "no"; then
27735         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27736 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27737         wxUSE_EXPAT=no
27738     fi
27739     if test "$wxUSE_XML" != "no"; then
27740         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27741 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27742         wxUSE_XML=no
27743     fi
27744 fi
27745
27746 if test "$wxUSE_EXPAT" != "no"; then
27747     wxUSE_XML=yes
27748     cat >>confdefs.h <<\_ACEOF
27749 #define wxUSE_EXPAT 1
27750 _ACEOF
27751
27752     cat >>confdefs.h <<\_ACEOF
27753 #define wxUSE_XML 1
27754 _ACEOF
27755
27756
27757     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27758         { echo "$as_me:$LINENO: checking for expat.h" >&5
27759 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27760 if test "${ac_cv_header_expat_h+set}" = set; then
27761   echo $ECHO_N "(cached) $ECHO_C" >&6
27762 else
27763   cat >conftest.$ac_ext <<_ACEOF
27764 /* confdefs.h.  */
27765 _ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h.  */
27769
27770
27771 #include <expat.h>
27772 _ACEOF
27773 rm -f conftest.$ac_objext
27774 if { (ac_try="$ac_compile"
27775 case "(($ac_try" in
27776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777   *) ac_try_echo=$ac_try;;
27778 esac
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780   (eval "$ac_compile") 2>conftest.er1
27781   ac_status=$?
27782   grep -v '^ *+' conftest.er1 >conftest.err
27783   rm -f conftest.er1
27784   cat conftest.err >&5
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); } && {
27787          test -z "$ac_c_werror_flag" ||
27788          test ! -s conftest.err
27789        } && test -s conftest.$ac_objext; then
27790   ac_cv_header_expat_h=yes
27791 else
27792   echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27794
27795         ac_cv_header_expat_h=no
27796 fi
27797
27798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27799 fi
27800 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27801 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27802 if test $ac_cv_header_expat_h = yes; then
27803   found_expat_h=1
27804 fi
27805
27806
27807         if test "x$found_expat_h" = "x1"; then
27808                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27809 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27810 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27811   echo $ECHO_N "(cached) $ECHO_C" >&6
27812 else
27813
27814                 ac_ext=cpp
27815 ac_cpp='$CXXCPP $CPPFLAGS'
27816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27819
27820                 cat >conftest.$ac_ext <<_ACEOF
27821 /* confdefs.h.  */
27822 _ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h.  */
27826 #include <expat.h>
27827 int
27828 main ()
27829 {
27830
27831   ;
27832   return 0;
27833 }
27834 _ACEOF
27835 rm -f conftest.$ac_objext
27836 if { (ac_try="$ac_compile"
27837 case "(($ac_try" in
27838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839   *) ac_try_echo=$ac_try;;
27840 esac
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842   (eval "$ac_compile") 2>conftest.er1
27843   ac_status=$?
27844   grep -v '^ *+' conftest.er1 >conftest.err
27845   rm -f conftest.er1
27846   cat conftest.err >&5
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); } && {
27849          test -z "$ac_cxx_werror_flag" ||
27850          test ! -s conftest.err
27851        } && test -s conftest.$ac_objext; then
27852   wx_cv_expat_is_not_broken=yes
27853 else
27854   echo "$as_me: failed program was:" >&5
27855 sed 's/^/| /' conftest.$ac_ext >&5
27856
27857         wx_cv_expat_is_not_broken=no
27858
27859 fi
27860
27861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27862                 ac_ext=c
27863 ac_cpp='$CPP $CPPFLAGS'
27864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27867
27868
27869
27870 fi
27871 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27872 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27873             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27874                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27875 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27876 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27877   echo $ECHO_N "(cached) $ECHO_C" >&6
27878 else
27879   ac_check_lib_save_LIBS=$LIBS
27880 LIBS="-lexpat  $LIBS"
27881 cat >conftest.$ac_ext <<_ACEOF
27882 /* confdefs.h.  */
27883 _ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h.  */
27887
27888 /* Override any GCC internal prototype to avoid an error.
27889    Use char because int might match the return type of a GCC
27890    builtin and then its argument prototype would still apply.  */
27891 #ifdef __cplusplus
27892 extern "C"
27893 #endif
27894 char XML_ParserCreate ();
27895 int
27896 main ()
27897 {
27898 return XML_ParserCreate ();
27899   ;
27900   return 0;
27901 }
27902 _ACEOF
27903 rm -f conftest.$ac_objext conftest$ac_exeext
27904 if { (ac_try="$ac_link"
27905 case "(($ac_try" in
27906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907   *) ac_try_echo=$ac_try;;
27908 esac
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910   (eval "$ac_link") 2>conftest.er1
27911   ac_status=$?
27912   grep -v '^ *+' conftest.er1 >conftest.err
27913   rm -f conftest.er1
27914   cat conftest.err >&5
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); } && {
27917          test -z "$ac_c_werror_flag" ||
27918          test ! -s conftest.err
27919        } && test -s conftest$ac_exeext &&
27920        $as_test_x conftest$ac_exeext; then
27921   ac_cv_lib_expat_XML_ParserCreate=yes
27922 else
27923   echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27925
27926         ac_cv_lib_expat_XML_ParserCreate=no
27927 fi
27928
27929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27930       conftest$ac_exeext conftest.$ac_ext
27931 LIBS=$ac_check_lib_save_LIBS
27932 fi
27933 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27934 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27935 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27936   EXPAT_LINK=" -lexpat"
27937 fi
27938
27939             fi
27940         fi
27941         if test "x$EXPAT_LINK" = "x" ; then
27942             if test "$wxUSE_EXPAT" = "sys" ; then
27943                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27944 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27945    { (exit 1); exit 1; }; }
27946             else
27947                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27948 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27949                 wxUSE_EXPAT=builtin
27950             fi
27951         else
27952                         wxUSE_EXPAT=sys
27953         fi
27954     fi
27955     if test "$wxUSE_EXPAT" = "builtin" ; then
27956                 subdirs="$subdirs src/expat"
27957
27958     fi
27959 fi
27960
27961
27962
27963 if test "$wxUSE_LIBMSPACK" != "no"; then
27964     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27965 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27966 if test "${ac_cv_header_mspack_h+set}" = set; then
27967   echo $ECHO_N "(cached) $ECHO_C" >&6
27968 else
27969   cat >conftest.$ac_ext <<_ACEOF
27970 /* confdefs.h.  */
27971 _ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h.  */
27975
27976
27977 #include <mspack.h>
27978 _ACEOF
27979 rm -f conftest.$ac_objext
27980 if { (ac_try="$ac_compile"
27981 case "(($ac_try" in
27982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983   *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986   (eval "$ac_compile") 2>conftest.er1
27987   ac_status=$?
27988   grep -v '^ *+' conftest.er1 >conftest.err
27989   rm -f conftest.er1
27990   cat conftest.err >&5
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); } && {
27993          test -z "$ac_c_werror_flag" ||
27994          test ! -s conftest.err
27995        } && test -s conftest.$ac_objext; then
27996   ac_cv_header_mspack_h=yes
27997 else
27998   echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001         ac_cv_header_mspack_h=no
28002 fi
28003
28004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28005 fi
28006 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
28007 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
28008 if test $ac_cv_header_mspack_h = yes; then
28009   found_mspack_h=1
28010 fi
28011
28012
28013     if test "x$found_mspack_h" = "x1"; then
28014         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
28015 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
28016 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
28017   echo $ECHO_N "(cached) $ECHO_C" >&6
28018 else
28019   ac_check_lib_save_LIBS=$LIBS
28020 LIBS="-lmspack  $LIBS"
28021 cat >conftest.$ac_ext <<_ACEOF
28022 /* confdefs.h.  */
28023 _ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h.  */
28027
28028 /* Override any GCC internal prototype to avoid an error.
28029    Use char because int might match the return type of a GCC
28030    builtin and then its argument prototype would still apply.  */
28031 #ifdef __cplusplus
28032 extern "C"
28033 #endif
28034 char mspack_create_chm_decompressor ();
28035 int
28036 main ()
28037 {
28038 return mspack_create_chm_decompressor ();
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 rm -f conftest.$ac_objext conftest$ac_exeext
28044 if { (ac_try="$ac_link"
28045 case "(($ac_try" in
28046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047   *) ac_try_echo=$ac_try;;
28048 esac
28049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050   (eval "$ac_link") 2>conftest.er1
28051   ac_status=$?
28052   grep -v '^ *+' conftest.er1 >conftest.err
28053   rm -f conftest.er1
28054   cat conftest.err >&5
28055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056   (exit $ac_status); } && {
28057          test -z "$ac_c_werror_flag" ||
28058          test ! -s conftest.err
28059        } && test -s conftest$ac_exeext &&
28060        $as_test_x conftest$ac_exeext; then
28061   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28062 else
28063   echo "$as_me: failed program was:" >&5
28064 sed 's/^/| /' conftest.$ac_ext >&5
28065
28066         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28067 fi
28068
28069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28070       conftest$ac_exeext conftest.$ac_ext
28071 LIBS=$ac_check_lib_save_LIBS
28072 fi
28073 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28074 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28075 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28076   MSPACK_LINK=" -lmspack"
28077 fi
28078
28079     fi
28080     if test "x$MSPACK_LINK" = "x" ; then
28081         wxUSE_LIBMSPACK=no
28082     fi
28083 fi
28084
28085 if test "$wxUSE_LIBMSPACK" != "no"; then
28086     cat >>confdefs.h <<\_ACEOF
28087 #define wxUSE_LIBMSPACK 1
28088 _ACEOF
28089
28090 fi
28091
28092
28093
28094 AFMINSTALL=
28095 WIN32INSTALL=
28096
28097 TOOLKIT=
28098 TOOLKIT_INCLUDE=
28099 WIDGET_SET=
28100
28101 if test "$USE_WIN32" = 1 ; then
28102
28103 for ac_header in w32api.h
28104 do
28105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28109   echo $ECHO_N "(cached) $ECHO_C" >&6
28110 else
28111   cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117
28118
28119 #include <$ac_header>
28120 _ACEOF
28121 rm -f conftest.$ac_objext
28122 if { (ac_try="$ac_compile"
28123 case "(($ac_try" in
28124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28125   *) ac_try_echo=$ac_try;;
28126 esac
28127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28128   (eval "$ac_compile") 2>conftest.er1
28129   ac_status=$?
28130   grep -v '^ *+' conftest.er1 >conftest.err
28131   rm -f conftest.er1
28132   cat conftest.err >&5
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); } && {
28135          test -z "$ac_c_werror_flag" ||
28136          test ! -s conftest.err
28137        } && test -s conftest.$ac_objext; then
28138   eval "$as_ac_Header=yes"
28139 else
28140   echo "$as_me: failed program was:" >&5
28141 sed 's/^/| /' conftest.$ac_ext >&5
28142
28143         eval "$as_ac_Header=no"
28144 fi
28145
28146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28147 fi
28148 ac_res=`eval echo '${'$as_ac_Header'}'`
28149                { echo "$as_me:$LINENO: result: $ac_res" >&5
28150 echo "${ECHO_T}$ac_res" >&6; }
28151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28152   cat >>confdefs.h <<_ACEOF
28153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28154 _ACEOF
28155
28156 fi
28157
28158 done
28159
28160     { echo "$as_me:$LINENO: checking for windows.h" >&5
28161 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28162 if test "${ac_cv_header_windows_h+set}" = set; then
28163   echo $ECHO_N "(cached) $ECHO_C" >&6
28164 else
28165   cat >conftest.$ac_ext <<_ACEOF
28166 /* confdefs.h.  */
28167 _ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h.  */
28171
28172
28173 #include <windows.h>
28174 _ACEOF
28175 rm -f conftest.$ac_objext
28176 if { (ac_try="$ac_compile"
28177 case "(($ac_try" in
28178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179   *) ac_try_echo=$ac_try;;
28180 esac
28181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182   (eval "$ac_compile") 2>conftest.er1
28183   ac_status=$?
28184   grep -v '^ *+' conftest.er1 >conftest.err
28185   rm -f conftest.er1
28186   cat conftest.err >&5
28187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188   (exit $ac_status); } && {
28189          test -z "$ac_c_werror_flag" ||
28190          test ! -s conftest.err
28191        } && test -s conftest.$ac_objext; then
28192   ac_cv_header_windows_h=yes
28193 else
28194   echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28196
28197         ac_cv_header_windows_h=no
28198 fi
28199
28200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28201 fi
28202 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28203 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28204 if test $ac_cv_header_windows_h = yes; then
28205   :
28206 else
28207
28208         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28209 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28210    { (exit 1); exit 1; }; }
28211
28212 fi
28213
28214
28215
28216             case "${host}" in
28217         x86_64-*-mingw32* )
28218                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28219         ;;
28220         * )
28221             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28222         ;;
28223     esac
28224     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28225         LIBS="$LIBS -loleacc"
28226     fi
28227
28228     case "${host}" in
28229         *-*-cygwin* )
28230                         LIBS="$LIBS -lkernel32 -luser32"
28231     esac
28232
28233         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28234     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28235
28236                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28237
28238         WIN32INSTALL=win32install
28239
28240         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28241 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28242 if test "${ac_cv_header_pbt_h+set}" = set; then
28243   echo $ECHO_N "(cached) $ECHO_C" >&6
28244 else
28245   cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251
28252
28253 #include <pbt.h>
28254 _ACEOF
28255 rm -f conftest.$ac_objext
28256 if { (ac_try="$ac_compile"
28257 case "(($ac_try" in
28258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259   *) ac_try_echo=$ac_try;;
28260 esac
28261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28262   (eval "$ac_compile") 2>conftest.er1
28263   ac_status=$?
28264   grep -v '^ *+' conftest.er1 >conftest.err
28265   rm -f conftest.er1
28266   cat conftest.err >&5
28267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); } && {
28269          test -z "$ac_c_werror_flag" ||
28270          test ! -s conftest.err
28271        } && test -s conftest.$ac_objext; then
28272   ac_cv_header_pbt_h=yes
28273 else
28274   echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28276
28277         ac_cv_header_pbt_h=no
28278 fi
28279
28280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28281 fi
28282 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28283 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28284 if test $ac_cv_header_pbt_h = yes; then
28285   :
28286 else
28287   cat >>confdefs.h <<\_ACEOF
28288 #define NEED_PBT_H 1
28289 _ACEOF
28290
28291 fi
28292
28293
28294 fi
28295
28296 if test "$wxUSE_GUI" = "yes"; then
28297     USE_GUI=1
28298
28299     GUI_TK_LIBRARY=
28300
28301     WXGTK12=
28302     WXGTK127=
28303     WXGTK2=
28304     WXGPE=
28305
28306     if test "$wxUSE_COCOA" = 1 ; then
28307         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28308             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28309 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28310             wxUSE_PRINTING_ARCHITECTURE=no
28311         fi
28312         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28313             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28314 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28315             wxUSE_DRAG_AND_DROP=no
28316         fi
28317         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28318             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28319 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28320             wxUSE_DRAGIMAGE=no
28321         fi
28322     fi
28323
28324     if test "$wxUSE_MSW" = 1 ; then
28325         TOOLKIT=MSW
28326         GUIDIST=MSW_DIST
28327
28328                 case "${host}" in
28329             *-*-mingw32* )
28330                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28331         esac
28332     fi
28333
28334     if test "$wxUSE_GTK" = 1; then
28335                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28336 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28337
28338         gtk_version_cached=1
28339         if test "${wx_cv_lib_gtk+set}" = set; then
28340   echo $ECHO_N "(cached) $ECHO_C" >&6
28341 else
28342
28343                                                 gtk_version_cached=0
28344                 { echo "$as_me:$LINENO: result: " >&5
28345 echo "${ECHO_T}" >&6; }
28346
28347                                                 GTK_MODULES=
28348                 if test "$wxUSE_THREADS" = "yes"; then
28349                     GTK_MODULES=gthread
28350                 fi
28351
28352                                 wx_cv_lib_gtk=
28353                 if test "x$wxGTK_VERSION" != "x1"
28354                 then
28355                                                                                 case "${host}" in
28356                         *-*-solaris2* )
28357                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28358                                 enable_gtktest=no
28359                             fi
28360                     esac
28361
28362                     # Check whether --enable-gtktest was given.
28363 if test "${enable_gtktest+set}" = set; then
28364   enableval=$enable_gtktest;
28365 else
28366   enable_gtktest=yes
28367 fi
28368
28369
28370   pkg_config_args=gtk+-2.0
28371   for module in . $GTK_MODULES
28372   do
28373       case "$module" in
28374          gthread)
28375              pkg_config_args="$pkg_config_args gthread-2.0"
28376          ;;
28377       esac
28378   done
28379
28380   no_gtk=""
28381
28382   # Extract the first word of "pkg-config", so it can be a program name with args.
28383 set dummy pkg-config; ac_word=$2
28384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28387   echo $ECHO_N "(cached) $ECHO_C" >&6
28388 else
28389   case $PKG_CONFIG in
28390   [\\/]* | ?:[\\/]*)
28391   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28392   ;;
28393   *)
28394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28395 for as_dir in $PATH
28396 do
28397   IFS=$as_save_IFS
28398   test -z "$as_dir" && as_dir=.
28399   for ac_exec_ext in '' $ac_executable_extensions; do
28400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28401     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28403     break 2
28404   fi
28405 done
28406 done
28407 IFS=$as_save_IFS
28408
28409   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28410   ;;
28411 esac
28412 fi
28413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28414 if test -n "$PKG_CONFIG"; then
28415   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28416 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28417 else
28418   { echo "$as_me:$LINENO: result: no" >&5
28419 echo "${ECHO_T}no" >&6; }
28420 fi
28421
28422
28423
28424   if test x$PKG_CONFIG != xno ; then
28425     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28426       :
28427     else
28428       echo "*** pkg-config too old; version 0.7 or better required."
28429       no_gtk=yes
28430       PKG_CONFIG=no
28431     fi
28432   else
28433     no_gtk=yes
28434   fi
28435
28436   min_gtk_version=2.4.0
28437   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28438 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28439
28440   if test x$PKG_CONFIG != xno ; then
28441     ## don't try to run the test against uninstalled libtool libs
28442     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28443           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28444           enable_gtktest=no
28445     fi
28446
28447     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28448           :
28449     else
28450           no_gtk=yes
28451     fi
28452   fi
28453
28454   if test x"$no_gtk" = x ; then
28455     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28456     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28457     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28458            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28459     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28460            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28461     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28462            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28463     if test "x$enable_gtktest" = "xyes" ; then
28464       ac_save_CFLAGS="$CFLAGS"
28465       ac_save_LIBS="$LIBS"
28466       CFLAGS="$CFLAGS $GTK_CFLAGS"
28467       LIBS="$GTK_LIBS $LIBS"
28468       rm -f conf.gtktest
28469       if test "$cross_compiling" = yes; then
28470   echo $ac_n "cross compiling; assumed OK... $ac_c"
28471 else
28472   cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478
28479 #include <gtk/gtk.h>
28480 #include <stdio.h>
28481 #include <stdlib.h>
28482
28483 int
28484 main ()
28485 {
28486   int major, minor, micro;
28487   char *tmp_version;
28488
28489   system ("touch conf.gtktest");
28490
28491   /* HP/UX 9 (%@#!) writes to sscanf strings */
28492   tmp_version = g_strdup("$min_gtk_version");
28493   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28494      printf("%s, bad version string\n", "$min_gtk_version");
28495      exit(1);
28496    }
28497
28498   if ((gtk_major_version != $gtk_config_major_version) ||
28499       (gtk_minor_version != $gtk_config_minor_version) ||
28500       (gtk_micro_version != $gtk_config_micro_version))
28501     {
28502       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28503              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28504              gtk_major_version, gtk_minor_version, gtk_micro_version);
28505       printf ("*** was found! If pkg-config was correct, then it is best\n");
28506       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28507       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28508       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28509       printf("*** required on your system.\n");
28510       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28511       printf("*** to point to the correct configuration files\n");
28512     }
28513   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28514            (gtk_minor_version != GTK_MINOR_VERSION) ||
28515            (gtk_micro_version != GTK_MICRO_VERSION))
28516     {
28517       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28518              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28519       printf("*** library (version %d.%d.%d)\n",
28520              gtk_major_version, gtk_minor_version, gtk_micro_version);
28521     }
28522   else
28523     {
28524       if ((gtk_major_version > major) ||
28525         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28526         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28527       {
28528         return 0;
28529        }
28530      else
28531       {
28532         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28533                gtk_major_version, gtk_minor_version, gtk_micro_version);
28534         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28535                major, minor, micro);
28536         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28537         printf("***\n");
28538         printf("*** If you have already installed a sufficiently new version, this error\n");
28539         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28540         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28541         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28542         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28543         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28544         printf("*** so that the correct libraries are found at run-time))\n");
28545       }
28546     }
28547   return 1;
28548 }
28549
28550 _ACEOF
28551 rm -f conftest$ac_exeext
28552 if { (ac_try="$ac_link"
28553 case "(($ac_try" in
28554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555   *) ac_try_echo=$ac_try;;
28556 esac
28557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28558   (eval "$ac_link") 2>&5
28559   ac_status=$?
28560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28562   { (case "(($ac_try" in
28563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28564   *) ac_try_echo=$ac_try;;
28565 esac
28566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28567   (eval "$ac_try") 2>&5
28568   ac_status=$?
28569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570   (exit $ac_status); }; }; then
28571   :
28572 else
28573   echo "$as_me: program exited with status $ac_status" >&5
28574 echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.$ac_ext >&5
28576
28577 ( exit $ac_status )
28578 no_gtk=yes
28579 fi
28580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28581 fi
28582
28583
28584        CFLAGS="$ac_save_CFLAGS"
28585        LIBS="$ac_save_LIBS"
28586      fi
28587   fi
28588   if test "x$no_gtk" = x ; then
28589      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28590 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28591      wx_cv_lib_gtk=2.0
28592   else
28593      { echo "$as_me:$LINENO: result: no" >&5
28594 echo "${ECHO_T}no" >&6; }
28595      if test "$PKG_CONFIG" = "no" ; then
28596        echo "*** A new enough version of pkg-config was not found."
28597        echo "*** See http://pkgconfig.sourceforge.net"
28598      else
28599        if test -f conf.gtktest ; then
28600         :
28601        else
28602           echo "*** Could not run GTK+ test program, checking why..."
28603           ac_save_CFLAGS="$CFLAGS"
28604           ac_save_LIBS="$LIBS"
28605           CFLAGS="$CFLAGS $GTK_CFLAGS"
28606           LIBS="$LIBS $GTK_LIBS"
28607           cat >conftest.$ac_ext <<_ACEOF
28608 /* confdefs.h.  */
28609 _ACEOF
28610 cat confdefs.h >>conftest.$ac_ext
28611 cat >>conftest.$ac_ext <<_ACEOF
28612 /* end confdefs.h.  */
28613
28614 #include <gtk/gtk.h>
28615 #include <stdio.h>
28616
28617 int
28618 main ()
28619 {
28620  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28621   ;
28622   return 0;
28623 }
28624 _ACEOF
28625 rm -f conftest.$ac_objext conftest$ac_exeext
28626 if { (ac_try="$ac_link"
28627 case "(($ac_try" in
28628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28629   *) ac_try_echo=$ac_try;;
28630 esac
28631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28632   (eval "$ac_link") 2>conftest.er1
28633   ac_status=$?
28634   grep -v '^ *+' conftest.er1 >conftest.err
28635   rm -f conftest.er1
28636   cat conftest.err >&5
28637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638   (exit $ac_status); } && {
28639          test -z "$ac_c_werror_flag" ||
28640          test ! -s conftest.err
28641        } && test -s conftest$ac_exeext &&
28642        $as_test_x conftest$ac_exeext; then
28643    echo "*** The test program compiled, but did not run. This usually means"
28644           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28645           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28646           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28647           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28648           echo "*** is required on your system"
28649           echo "***"
28650           echo "*** If you have an old version installed, it is best to remove it, although"
28651           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28652 else
28653   echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28655
28656          echo "*** The test program failed to compile or link. See the file config.log for the"
28657           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28658 fi
28659
28660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28661       conftest$ac_exeext conftest.$ac_ext
28662           CFLAGS="$ac_save_CFLAGS"
28663           LIBS="$ac_save_LIBS"
28664        fi
28665      fi
28666      GTK_CFLAGS=""
28667      GTK_LIBS=""
28668      :
28669   fi
28670
28671
28672   rm -f conf.gtktest
28673
28674
28675                                         case "${host}" in
28676                         *-*-solaris2* )
28677                             if test "$wxUSE_SHARED" != "yes"; then
28678                                 GTK_LIBS="$GTK_LIBS -lX11"
28679                             fi
28680                     esac
28681                 fi
28682
28683                                 if test -z "$wx_cv_lib_gtk"; then
28684                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28685
28686 # Check whether --with-gtk-prefix was given.
28687 if test "${with_gtk_prefix+set}" = set; then
28688   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28689 else
28690   gtk_config_prefix=""
28691 fi
28692
28693
28694 # Check whether --with-gtk-exec-prefix was given.
28695 if test "${with_gtk_exec_prefix+set}" = set; then
28696   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28697 else
28698   gtk_config_exec_prefix=""
28699 fi
28700
28701 # Check whether --enable-gtktest was given.
28702 if test "${enable_gtktest+set}" = set; then
28703   enableval=$enable_gtktest;
28704 else
28705   enable_gtktest=yes
28706 fi
28707
28708
28709   for module in . $GTK_MODULES
28710   do
28711       case "$module" in
28712          gthread)
28713              gtk_config_args="$gtk_config_args gthread"
28714          ;;
28715       esac
28716   done
28717
28718   if test x$gtk_config_exec_prefix != x ; then
28719      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28720      if test x${GTK_CONFIG+set} != xset ; then
28721         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28722      fi
28723   fi
28724   if test x$gtk_config_prefix != x ; then
28725      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28726      if test x${GTK_CONFIG+set} != xset ; then
28727         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28728      fi
28729   fi
28730
28731   # Extract the first word of "gtk-config", so it can be a program name with args.
28732 set dummy gtk-config; ac_word=$2
28733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28735 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28736   echo $ECHO_N "(cached) $ECHO_C" >&6
28737 else
28738   case $GTK_CONFIG in
28739   [\\/]* | ?:[\\/]*)
28740   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28741   ;;
28742   *)
28743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28744 for as_dir in $PATH
28745 do
28746   IFS=$as_save_IFS
28747   test -z "$as_dir" && as_dir=.
28748   for ac_exec_ext in '' $ac_executable_extensions; do
28749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28750     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28752     break 2
28753   fi
28754 done
28755 done
28756 IFS=$as_save_IFS
28757
28758   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28759   ;;
28760 esac
28761 fi
28762 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28763 if test -n "$GTK_CONFIG"; then
28764   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28765 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28766 else
28767   { echo "$as_me:$LINENO: result: no" >&5
28768 echo "${ECHO_T}no" >&6; }
28769 fi
28770
28771
28772   min_gtk_version=1.2.7
28773   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28774 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28775   no_gtk=""
28776   if test "$GTK_CONFIG" = "no" ; then
28777     no_gtk=yes
28778   else
28779     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28780     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28781     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28782            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28783     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28784            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28785     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28786            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28787     if test "x$enable_gtktest" = "xyes" ; then
28788       ac_save_CFLAGS="$CFLAGS"
28789       ac_save_LIBS="$LIBS"
28790       CFLAGS="$CFLAGS $GTK_CFLAGS"
28791       LIBS="$GTK_LIBS $LIBS"
28792       rm -f conf.gtktest
28793       if test "$cross_compiling" = yes; then
28794   echo $ac_n "cross compiling; assumed OK... $ac_c"
28795 else
28796   cat >conftest.$ac_ext <<_ACEOF
28797 /* confdefs.h.  */
28798 _ACEOF
28799 cat confdefs.h >>conftest.$ac_ext
28800 cat >>conftest.$ac_ext <<_ACEOF
28801 /* end confdefs.h.  */
28802
28803 #include <gtk/gtk.h>
28804 #include <stdio.h>
28805 #include <stdlib.h>
28806
28807 int
28808 main ()
28809 {
28810   int major, minor, micro;
28811   char *tmp_version;
28812
28813   system ("touch conf.gtktest");
28814
28815   /* HP/UX 9 (%@#!) writes to sscanf strings */
28816   tmp_version = g_strdup("$min_gtk_version");
28817   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28818      printf("%s, bad version string\n", "$min_gtk_version");
28819      exit(1);
28820    }
28821
28822   if ((gtk_major_version != $gtk_config_major_version) ||
28823       (gtk_minor_version != $gtk_config_minor_version) ||
28824       (gtk_micro_version != $gtk_config_micro_version))
28825     {
28826       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28827              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28828              gtk_major_version, gtk_minor_version, gtk_micro_version);
28829       printf ("*** was found! If gtk-config was correct, then it is best\n");
28830       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28831       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28832       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28833       printf("*** required on your system.\n");
28834       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28835       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28836       printf("*** before re-running configure\n");
28837     }
28838 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28839   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28840            (gtk_minor_version != GTK_MINOR_VERSION) ||
28841            (gtk_micro_version != GTK_MICRO_VERSION))
28842     {
28843       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28844              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28845       printf("*** library (version %d.%d.%d)\n",
28846              gtk_major_version, gtk_minor_version, gtk_micro_version);
28847     }
28848 #endif /* defined (GTK_MAJOR_VERSION) ... */
28849   else
28850     {
28851       if ((gtk_major_version > major) ||
28852         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28853         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28854       {
28855         return 0;
28856        }
28857      else
28858       {
28859         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28860                gtk_major_version, gtk_minor_version, gtk_micro_version);
28861         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28862                major, minor, micro);
28863         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28864         printf("***\n");
28865         printf("*** If you have already installed a sufficiently new version, this error\n");
28866         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28867         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28868         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28869         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28870         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28871         printf("*** so that the correct libraries are found at run-time))\n");
28872       }
28873     }
28874   return 1;
28875 }
28876
28877 _ACEOF
28878 rm -f conftest$ac_exeext
28879 if { (ac_try="$ac_link"
28880 case "(($ac_try" in
28881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882   *) ac_try_echo=$ac_try;;
28883 esac
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885   (eval "$ac_link") 2>&5
28886   ac_status=$?
28887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28889   { (case "(($ac_try" in
28890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891   *) ac_try_echo=$ac_try;;
28892 esac
28893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28894   (eval "$ac_try") 2>&5
28895   ac_status=$?
28896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897   (exit $ac_status); }; }; then
28898   :
28899 else
28900   echo "$as_me: program exited with status $ac_status" >&5
28901 echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28903
28904 ( exit $ac_status )
28905 no_gtk=yes
28906 fi
28907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28908 fi
28909
28910
28911        CFLAGS="$ac_save_CFLAGS"
28912        LIBS="$ac_save_LIBS"
28913      fi
28914   fi
28915   if test "x$no_gtk" = x ; then
28916      { echo "$as_me:$LINENO: result: yes" >&5
28917 echo "${ECHO_T}yes" >&6; }
28918      wx_cv_lib_gtk=1.2.7
28919   else
28920      { echo "$as_me:$LINENO: result: no" >&5
28921 echo "${ECHO_T}no" >&6; }
28922      if test "$GTK_CONFIG" = "no" ; then
28923        echo "*** The gtk-config script installed by GTK could not be found"
28924        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28925        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28926        echo "*** full path to gtk-config."
28927      else
28928        if test -f conf.gtktest ; then
28929         :
28930        else
28931           echo "*** Could not run GTK test program, checking why..."
28932           CFLAGS="$CFLAGS $GTK_CFLAGS"
28933           LIBS="$LIBS $GTK_LIBS"
28934           cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940
28941 #include <gtk/gtk.h>
28942 #include <stdio.h>
28943
28944 int
28945 main ()
28946 {
28947  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28948   ;
28949   return 0;
28950 }
28951 _ACEOF
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956   *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959   (eval "$ac_link") 2>conftest.er1
28960   ac_status=$?
28961   grep -v '^ *+' conftest.er1 >conftest.err
28962   rm -f conftest.er1
28963   cat conftest.err >&5
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); } && {
28966          test -z "$ac_c_werror_flag" ||
28967          test ! -s conftest.err
28968        } && test -s conftest$ac_exeext &&
28969        $as_test_x conftest$ac_exeext; then
28970    echo "*** The test program compiled, but did not run. This usually means"
28971           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28972           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28973           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28974           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28975           echo "*** is required on your system"
28976           echo "***"
28977           echo "*** If you have an old version installed, it is best to remove it, although"
28978           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28979           echo "***"
28980           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28981           echo "*** came with the system with the command"
28982           echo "***"
28983           echo "***    rpm --erase --nodeps gtk gtk-devel"
28984 else
28985   echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28987
28988          echo "*** The test program failed to compile or link. See the file config.log for the"
28989           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28990           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28991           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28992 fi
28993
28994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28995       conftest$ac_exeext conftest.$ac_ext
28996           CFLAGS="$ac_save_CFLAGS"
28997           LIBS="$ac_save_LIBS"
28998        fi
28999      fi
29000      GTK_CFLAGS=""
29001      GTK_LIBS=""
29002      :
29003   fi
29004
29005
29006   rm -f conf.gtktest
29007
29008
29009                         if test -z "$wx_cv_lib_gtk"; then
29010
29011 # Check whether --with-gtk-prefix was given.
29012 if test "${with_gtk_prefix+set}" = set; then
29013   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
29014 else
29015   gtk_config_prefix=""
29016 fi
29017
29018
29019 # Check whether --with-gtk-exec-prefix was given.
29020 if test "${with_gtk_exec_prefix+set}" = set; then
29021   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29022 else
29023   gtk_config_exec_prefix=""
29024 fi
29025
29026 # Check whether --enable-gtktest was given.
29027 if test "${enable_gtktest+set}" = set; then
29028   enableval=$enable_gtktest;
29029 else
29030   enable_gtktest=yes
29031 fi
29032
29033
29034   for module in . $GTK_MODULES
29035   do
29036       case "$module" in
29037          gthread)
29038              gtk_config_args="$gtk_config_args gthread"
29039          ;;
29040       esac
29041   done
29042
29043   if test x$gtk_config_exec_prefix != x ; then
29044      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29045      if test x${GTK_CONFIG+set} != xset ; then
29046         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29047      fi
29048   fi
29049   if test x$gtk_config_prefix != x ; then
29050      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29051      if test x${GTK_CONFIG+set} != xset ; then
29052         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29053      fi
29054   fi
29055
29056   # Extract the first word of "gtk-config", so it can be a program name with args.
29057 set dummy gtk-config; ac_word=$2
29058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29060 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29063   case $GTK_CONFIG in
29064   [\\/]* | ?:[\\/]*)
29065   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29066   ;;
29067   *)
29068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29069 for as_dir in $PATH
29070 do
29071   IFS=$as_save_IFS
29072   test -z "$as_dir" && as_dir=.
29073   for ac_exec_ext in '' $ac_executable_extensions; do
29074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29075     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29077     break 2
29078   fi
29079 done
29080 done
29081 IFS=$as_save_IFS
29082
29083   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29084   ;;
29085 esac
29086 fi
29087 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29088 if test -n "$GTK_CONFIG"; then
29089   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29090 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29091 else
29092   { echo "$as_me:$LINENO: result: no" >&5
29093 echo "${ECHO_T}no" >&6; }
29094 fi
29095
29096
29097   min_gtk_version=1.2.3
29098   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29099 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29100   no_gtk=""
29101   if test "$GTK_CONFIG" = "no" ; then
29102     no_gtk=yes
29103   else
29104     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29105     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29106     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29107            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29108     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29109            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29110     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29111            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29112     if test "x$enable_gtktest" = "xyes" ; then
29113       ac_save_CFLAGS="$CFLAGS"
29114       ac_save_LIBS="$LIBS"
29115       CFLAGS="$CFLAGS $GTK_CFLAGS"
29116       LIBS="$GTK_LIBS $LIBS"
29117       rm -f conf.gtktest
29118       if test "$cross_compiling" = yes; then
29119   echo $ac_n "cross compiling; assumed OK... $ac_c"
29120 else
29121   cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h.  */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h.  */
29127
29128 #include <gtk/gtk.h>
29129 #include <stdio.h>
29130 #include <stdlib.h>
29131
29132 int
29133 main ()
29134 {
29135   int major, minor, micro;
29136   char *tmp_version;
29137
29138   system ("touch conf.gtktest");
29139
29140   /* HP/UX 9 (%@#!) writes to sscanf strings */
29141   tmp_version = g_strdup("$min_gtk_version");
29142   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29143      printf("%s, bad version string\n", "$min_gtk_version");
29144      exit(1);
29145    }
29146
29147   if ((gtk_major_version != $gtk_config_major_version) ||
29148       (gtk_minor_version != $gtk_config_minor_version) ||
29149       (gtk_micro_version != $gtk_config_micro_version))
29150     {
29151       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29152              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29153              gtk_major_version, gtk_minor_version, gtk_micro_version);
29154       printf ("*** was found! If gtk-config was correct, then it is best\n");
29155       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29156       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29157       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29158       printf("*** required on your system.\n");
29159       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29160       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29161       printf("*** before re-running configure\n");
29162     }
29163 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29164   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29165            (gtk_minor_version != GTK_MINOR_VERSION) ||
29166            (gtk_micro_version != GTK_MICRO_VERSION))
29167     {
29168       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29169              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29170       printf("*** library (version %d.%d.%d)\n",
29171              gtk_major_version, gtk_minor_version, gtk_micro_version);
29172     }
29173 #endif /* defined (GTK_MAJOR_VERSION) ... */
29174   else
29175     {
29176       if ((gtk_major_version > major) ||
29177         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29178         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29179       {
29180         return 0;
29181        }
29182      else
29183       {
29184         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29185                gtk_major_version, gtk_minor_version, gtk_micro_version);
29186         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29187                major, minor, micro);
29188         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29189         printf("***\n");
29190         printf("*** If you have already installed a sufficiently new version, this error\n");
29191         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29192         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29193         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29194         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29195         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29196         printf("*** so that the correct libraries are found at run-time))\n");
29197       }
29198     }
29199   return 1;
29200 }
29201
29202 _ACEOF
29203 rm -f conftest$ac_exeext
29204 if { (ac_try="$ac_link"
29205 case "(($ac_try" in
29206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29207   *) ac_try_echo=$ac_try;;
29208 esac
29209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29210   (eval "$ac_link") 2>&5
29211   ac_status=$?
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29214   { (case "(($ac_try" in
29215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216   *) ac_try_echo=$ac_try;;
29217 esac
29218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219   (eval "$ac_try") 2>&5
29220   ac_status=$?
29221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222   (exit $ac_status); }; }; then
29223   :
29224 else
29225   echo "$as_me: program exited with status $ac_status" >&5
29226 echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29228
29229 ( exit $ac_status )
29230 no_gtk=yes
29231 fi
29232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29233 fi
29234
29235
29236        CFLAGS="$ac_save_CFLAGS"
29237        LIBS="$ac_save_LIBS"
29238      fi
29239   fi
29240   if test "x$no_gtk" = x ; then
29241      { echo "$as_me:$LINENO: result: yes" >&5
29242 echo "${ECHO_T}yes" >&6; }
29243      wx_cv_lib_gtk=1.2.3
29244   else
29245      { echo "$as_me:$LINENO: result: no" >&5
29246 echo "${ECHO_T}no" >&6; }
29247      if test "$GTK_CONFIG" = "no" ; then
29248        echo "*** The gtk-config script installed by GTK could not be found"
29249        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29250        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29251        echo "*** full path to gtk-config."
29252      else
29253        if test -f conf.gtktest ; then
29254         :
29255        else
29256           echo "*** Could not run GTK test program, checking why..."
29257           CFLAGS="$CFLAGS $GTK_CFLAGS"
29258           LIBS="$LIBS $GTK_LIBS"
29259           cat >conftest.$ac_ext <<_ACEOF
29260 /* confdefs.h.  */
29261 _ACEOF
29262 cat confdefs.h >>conftest.$ac_ext
29263 cat >>conftest.$ac_ext <<_ACEOF
29264 /* end confdefs.h.  */
29265
29266 #include <gtk/gtk.h>
29267 #include <stdio.h>
29268
29269 int
29270 main ()
29271 {
29272  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29273   ;
29274   return 0;
29275 }
29276 _ACEOF
29277 rm -f conftest.$ac_objext conftest$ac_exeext
29278 if { (ac_try="$ac_link"
29279 case "(($ac_try" in
29280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281   *) ac_try_echo=$ac_try;;
29282 esac
29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284   (eval "$ac_link") 2>conftest.er1
29285   ac_status=$?
29286   grep -v '^ *+' conftest.er1 >conftest.err
29287   rm -f conftest.er1
29288   cat conftest.err >&5
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); } && {
29291          test -z "$ac_c_werror_flag" ||
29292          test ! -s conftest.err
29293        } && test -s conftest$ac_exeext &&
29294        $as_test_x conftest$ac_exeext; then
29295    echo "*** The test program compiled, but did not run. This usually means"
29296           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29297           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29298           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29299           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29300           echo "*** is required on your system"
29301           echo "***"
29302           echo "*** If you have an old version installed, it is best to remove it, although"
29303           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29304           echo "***"
29305           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29306           echo "*** came with the system with the command"
29307           echo "***"
29308           echo "***    rpm --erase --nodeps gtk gtk-devel"
29309 else
29310   echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29312
29313          echo "*** The test program failed to compile or link. See the file config.log for the"
29314           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29315           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29316           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29317 fi
29318
29319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29320       conftest$ac_exeext conftest.$ac_ext
29321           CFLAGS="$ac_save_CFLAGS"
29322           LIBS="$ac_save_LIBS"
29323        fi
29324      fi
29325      GTK_CFLAGS=""
29326      GTK_LIBS=""
29327      :
29328   fi
29329
29330
29331   rm -f conf.gtktest
29332
29333                         fi
29334                     fi
29335                 fi
29336
29337                 if test -z "$wx_cv_lib_gtk"; then
29338                                         wx_cv_lib_gtk=none
29339                 else
29340                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29341                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29342                 fi
29343
29344
29345 fi
29346
29347
29348                         if test "$gtk_version_cached" = 1; then
29349             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29350 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29351         fi
29352
29353         case "$wx_cv_lib_gtk" in
29354             2.0)    WXGTK2=1
29355                     TOOLKIT_VERSION=2
29356                     ;;
29357             1.2.7)  WXGTK127=1
29358                     WXGTK12=1
29359                     ;;
29360             1.2.3)  WXGTK12=1
29361                     ;;
29362             *)      { { echo "$as_me:$LINENO: error:
29363 The development files for GTK+ were not found. For GTK+ 2, please
29364 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29365 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29366 and that the version is 1.2.3 or above. Also check that the
29367 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29368 --libs' are in the LD_LIBRARY_PATH or equivalent.
29369                             " >&5
29370 echo "$as_me: error:
29371 The development files for GTK+ were not found. For GTK+ 2, please
29372 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29373 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29374 and that the version is 1.2.3 or above. Also check that the
29375 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29376 --libs' are in the LD_LIBRARY_PATH or equivalent.
29377                             " >&2;}
29378    { (exit 1); exit 1; }; }
29379                     ;;
29380         esac
29381
29382         if test "$WXGTK2" = 1; then
29383             save_CFLAGS="$CFLAGS"
29384             save_LIBS="$LIBS"
29385             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29386             LIBS="$LIBS $wx_cv_libs_gtk"
29387
29388                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29389 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29390             cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h.  */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h.  */
29396
29397                             #include <gtk/gtk.h>
29398
29399 int
29400 main ()
29401 {
29402
29403                             #if !GTK_CHECK_VERSION(2,10,0)
29404                             Not GTK+ 2.10
29405                             #endif
29406
29407   ;
29408   return 0;
29409 }
29410 _ACEOF
29411 rm -f conftest.$ac_objext
29412 if { (ac_try="$ac_compile"
29413 case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_compile") 2>conftest.er1
29419   ac_status=$?
29420   grep -v '^ *+' conftest.er1 >conftest.err
29421   rm -f conftest.er1
29422   cat conftest.err >&5
29423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424   (exit $ac_status); } && {
29425          test -z "$ac_c_werror_flag" ||
29426          test ! -s conftest.err
29427        } && test -s conftest.$ac_objext; then
29428
29429                             cat >>confdefs.h <<\_ACEOF
29430 #define __WXGTK210__ 1
29431 _ACEOF
29432
29433                             cat >>confdefs.h <<\_ACEOF
29434 #define __WXGTK26__ 1
29435 _ACEOF
29436
29437                             { echo "$as_me:$LINENO: result: yes" >&5
29438 echo "${ECHO_T}yes" >&6; }
29439                             ac_wxgtk210=1
29440
29441 else
29442   echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29444
29445
29446                             { echo "$as_me:$LINENO: result: no" >&5
29447 echo "${ECHO_T}no" >&6; }
29448                             ac_wxgtk210=0
29449
29450 fi
29451
29452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453
29454             if test "$ac_wxgtk210" = 0; then
29455                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29456 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29457                 cat >conftest.$ac_ext <<_ACEOF
29458 /* confdefs.h.  */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h.  */
29463
29464                                 #include <gtk/gtk.h>
29465
29466 int
29467 main ()
29468 {
29469
29470                                 #if !GTK_CHECK_VERSION(2,6,0)
29471                                 Not GTK+ 2.6
29472                                 #endif
29473
29474   ;
29475   return 0;
29476 }
29477 _ACEOF
29478 rm -f conftest.$ac_objext
29479 if { (ac_try="$ac_compile"
29480 case "(($ac_try" in
29481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482   *) ac_try_echo=$ac_try;;
29483 esac
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485   (eval "$ac_compile") 2>conftest.er1
29486   ac_status=$?
29487   grep -v '^ *+' conftest.er1 >conftest.err
29488   rm -f conftest.er1
29489   cat conftest.err >&5
29490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491   (exit $ac_status); } && {
29492          test -z "$ac_c_werror_flag" ||
29493          test ! -s conftest.err
29494        } && test -s conftest.$ac_objext; then
29495
29496                                 cat >>confdefs.h <<\_ACEOF
29497 #define __WXGTK26__ 1
29498 _ACEOF
29499
29500                                 { echo "$as_me:$LINENO: result: yes" >&5
29501 echo "${ECHO_T}yes" >&6; }
29502                                 ac_wxgtk26=1
29503
29504 else
29505   echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29507
29508
29509                                 { echo "$as_me:$LINENO: result: no" >&5
29510 echo "${ECHO_T}no" >&6; }
29511                                 ac_wxgtk26=0
29512
29513 fi
29514
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516             fi
29517
29518             CFLAGS="$save_CFLAGS"
29519             LIBS="$save_LIBS"
29520         else
29521             if test "$wxUSE_UNICODE" = "yes"; then
29522                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29523 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29524                 wxUSE_UNICODE=no
29525             fi
29526
29527                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29528 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29529 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29530   echo $ECHO_N "(cached) $ECHO_C" >&6
29531 else
29532   ac_check_lib_save_LIBS=$LIBS
29533 LIBS="-lgdk  $LIBS"
29534 cat >conftest.$ac_ext <<_ACEOF
29535 /* confdefs.h.  */
29536 _ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h.  */
29540
29541 /* Override any GCC internal prototype to avoid an error.
29542    Use char because int might match the return type of a GCC
29543    builtin and then its argument prototype would still apply.  */
29544 #ifdef __cplusplus
29545 extern "C"
29546 #endif
29547 char gdk_im_open ();
29548 int
29549 main ()
29550 {
29551 return gdk_im_open ();
29552   ;
29553   return 0;
29554 }
29555 _ACEOF
29556 rm -f conftest.$ac_objext conftest$ac_exeext
29557 if { (ac_try="$ac_link"
29558 case "(($ac_try" in
29559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560   *) ac_try_echo=$ac_try;;
29561 esac
29562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563   (eval "$ac_link") 2>conftest.er1
29564   ac_status=$?
29565   grep -v '^ *+' conftest.er1 >conftest.err
29566   rm -f conftest.er1
29567   cat conftest.err >&5
29568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569   (exit $ac_status); } && {
29570          test -z "$ac_c_werror_flag" ||
29571          test ! -s conftest.err
29572        } && test -s conftest$ac_exeext &&
29573        $as_test_x conftest$ac_exeext; then
29574   ac_cv_lib_gdk_gdk_im_open=yes
29575 else
29576   echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29578
29579         ac_cv_lib_gdk_gdk_im_open=no
29580 fi
29581
29582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29583       conftest$ac_exeext conftest.$ac_ext
29584 LIBS=$ac_check_lib_save_LIBS
29585 fi
29586 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29587 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29588 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29589   cat >>confdefs.h <<\_ACEOF
29590 #define HAVE_XIM 1
29591 _ACEOF
29592
29593 fi
29594
29595
29596                                     if test "$USE_DARWIN" != 1; then
29597
29598 for ac_func in poll
29599 do
29600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29604   echo $ECHO_N "(cached) $ECHO_C" >&6
29605 else
29606   cat >conftest.$ac_ext <<_ACEOF
29607 /* confdefs.h.  */
29608 _ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h.  */
29612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29614 #define $ac_func innocuous_$ac_func
29615
29616 /* System header to define __stub macros and hopefully few prototypes,
29617     which can conflict with char $ac_func (); below.
29618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29619     <limits.h> exists even on freestanding compilers.  */
29620
29621 #ifdef __STDC__
29622 # include <limits.h>
29623 #else
29624 # include <assert.h>
29625 #endif
29626
29627 #undef $ac_func
29628
29629 /* Override any GCC internal prototype to avoid an error.
29630    Use char because int might match the return type of a GCC
29631    builtin and then its argument prototype would still apply.  */
29632 #ifdef __cplusplus
29633 extern "C"
29634 #endif
29635 char $ac_func ();
29636 /* The GNU C library defines this for functions which it implements
29637     to always fail with ENOSYS.  Some functions are actually named
29638     something starting with __ and the normal name is an alias.  */
29639 #if defined __stub_$ac_func || defined __stub___$ac_func
29640 choke me
29641 #endif
29642
29643 int
29644 main ()
29645 {
29646 return $ac_func ();
29647   ;
29648   return 0;
29649 }
29650 _ACEOF
29651 rm -f conftest.$ac_objext conftest$ac_exeext
29652 if { (ac_try="$ac_link"
29653 case "(($ac_try" in
29654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655   *) ac_try_echo=$ac_try;;
29656 esac
29657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658   (eval "$ac_link") 2>conftest.er1
29659   ac_status=$?
29660   grep -v '^ *+' conftest.er1 >conftest.err
29661   rm -f conftest.er1
29662   cat conftest.err >&5
29663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664   (exit $ac_status); } && {
29665          test -z "$ac_c_werror_flag" ||
29666          test ! -s conftest.err
29667        } && test -s conftest$ac_exeext &&
29668        $as_test_x conftest$ac_exeext; then
29669   eval "$as_ac_var=yes"
29670 else
29671   echo "$as_me: failed program was:" >&5
29672 sed 's/^/| /' conftest.$ac_ext >&5
29673
29674         eval "$as_ac_var=no"
29675 fi
29676
29677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29678       conftest$ac_exeext conftest.$ac_ext
29679 fi
29680 ac_res=`eval echo '${'$as_ac_var'}'`
29681                { echo "$as_me:$LINENO: result: $ac_res" >&5
29682 echo "${ECHO_T}$ac_res" >&6; }
29683 if test `eval echo '${'$as_ac_var'}'` = yes; then
29684   cat >>confdefs.h <<_ACEOF
29685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29686 _ACEOF
29687
29688 fi
29689 done
29690
29691             fi
29692         fi
29693
29694         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29695         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29696
29697         AFMINSTALL=afminstall
29698         TOOLKIT=GTK
29699         GUIDIST=GTK_DIST
29700
29701                 if test "$wxUSE_GPE" = "yes"; then
29702             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29703 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29704
29705   ac_find_libraries=
29706   for ac_dir in $SEARCH_LIB;
29707   do
29708     for ac_extension in a so sl dylib dll.a; do
29709       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29710         ac_find_libraries=$ac_dir
29711         break 2
29712       fi
29713     done
29714   done
29715
29716             if test "$ac_find_libraries" != "" ; then
29717
29718     if test "$ac_find_libraries" = "default location"; then
29719     ac_path_to_link=""
29720   else
29721     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29722     result=$?
29723     if test $result = 0; then
29724       ac_path_to_link=""
29725     else
29726       ac_path_to_link=" -L$ac_find_libraries"
29727     fi
29728   fi
29729
29730                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29731                 WXGPE=1
29732                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29733 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29734             else
29735                 { echo "$as_me:$LINENO: result: not found" >&5
29736 echo "${ECHO_T}not found" >&6; }
29737             fi
29738
29739                                                                                                                     fi
29740     fi
29741
29742     if test "$wxUSE_MGL" = 1; then
29743        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29744 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29745         if test "x$MGL_ROOT" = x ; then
29746             { echo "$as_me:$LINENO: result: not found" >&5
29747 echo "${ECHO_T}not found" >&6; }
29748             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29749 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29750    { (exit 1); exit 1; }; }
29751         else
29752             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29753 echo "${ECHO_T}$MGL_ROOT" >&6; }
29754         fi
29755
29756         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29757 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29758                                 case "${host}" in
29759             *-*-linux* )
29760                                           if test "x$wxUSE_SHARED" = xyes ; then
29761                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29762               else
29763                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29764               fi
29765               ;;
29766             *-pc-msdosdjgpp )
29767               mgl_os_candidates="dos32/dj2"
29768               ;;
29769             *)
29770               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29771 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29772    { (exit 1); exit 1; }; }
29773         esac
29774
29775         mgl_lib_type=""
29776         mgl_os=""
29777
29778         for mgl_os_i in $mgl_os_candidates ; do
29779             if test "x$mgl_os" = x ; then
29780                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29781                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29782                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29783                         mgl_lib_type=debug
29784                         mgl_os=$mgl_os_i
29785                     fi
29786                 fi
29787                 if test "x$mgl_lib_type" = x ; then
29788                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29789                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29790                         mgl_lib_type=release
29791                         mgl_os=$mgl_os_i
29792                     fi
29793                 fi
29794             fi
29795         done
29796
29797         if test "x$mgl_os" = x ; then
29798             { echo "$as_me:$LINENO: result: not found" >&5
29799 echo "${ECHO_T}not found" >&6; }
29800             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29801 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29802    { (exit 1); exit 1; }; }
29803         fi
29804         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29805 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29806
29807         wxUSE_UNIVERSAL="yes"
29808
29809         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29810         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29811
29812         AFMINSTALL=afminstall
29813         TOOLKIT=MGL
29814         GUIDIST=MGL_DIST
29815     fi
29816
29817     if test "$wxUSE_DFB" = 1; then
29818
29819
29820 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29821         if test -n "$ac_tool_prefix"; then
29822   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29823 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29826 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29827   echo $ECHO_N "(cached) $ECHO_C" >&6
29828 else
29829   case $PKG_CONFIG in
29830   [\\/]* | ?:[\\/]*)
29831   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29832   ;;
29833   *)
29834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29835 for as_dir in $PATH
29836 do
29837   IFS=$as_save_IFS
29838   test -z "$as_dir" && as_dir=.
29839   for ac_exec_ext in '' $ac_executable_extensions; do
29840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29841     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29843     break 2
29844   fi
29845 done
29846 done
29847 IFS=$as_save_IFS
29848
29849   ;;
29850 esac
29851 fi
29852 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29853 if test -n "$PKG_CONFIG"; then
29854   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29855 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29856 else
29857   { echo "$as_me:$LINENO: result: no" >&5
29858 echo "${ECHO_T}no" >&6; }
29859 fi
29860
29861
29862 fi
29863 if test -z "$ac_cv_path_PKG_CONFIG"; then
29864   ac_pt_PKG_CONFIG=$PKG_CONFIG
29865   # Extract the first word of "pkg-config", so it can be a program name with args.
29866 set dummy pkg-config; ac_word=$2
29867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29869 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29870   echo $ECHO_N "(cached) $ECHO_C" >&6
29871 else
29872   case $ac_pt_PKG_CONFIG in
29873   [\\/]* | ?:[\\/]*)
29874   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29875   ;;
29876   *)
29877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29878 for as_dir in $PATH
29879 do
29880   IFS=$as_save_IFS
29881   test -z "$as_dir" && as_dir=.
29882   for ac_exec_ext in '' $ac_executable_extensions; do
29883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29884     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29886     break 2
29887   fi
29888 done
29889 done
29890 IFS=$as_save_IFS
29891
29892   ;;
29893 esac
29894 fi
29895 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29896 if test -n "$ac_pt_PKG_CONFIG"; then
29897   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29898 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29899 else
29900   { echo "$as_me:$LINENO: result: no" >&5
29901 echo "${ECHO_T}no" >&6; }
29902 fi
29903
29904   if test "x$ac_pt_PKG_CONFIG" = x; then
29905     PKG_CONFIG=""
29906   else
29907     case $cross_compiling:$ac_tool_warned in
29908 yes:)
29909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29910 whose name does not start with the host triplet.  If you think this
29911 configuration is useful to you, please write to autoconf@gnu.org." >&5
29912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29913 whose name does not start with the host triplet.  If you think this
29914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29915 ac_tool_warned=yes ;;
29916 esac
29917     PKG_CONFIG=$ac_pt_PKG_CONFIG
29918   fi
29919 else
29920   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29921 fi
29922
29923 fi
29924 if test -n "$PKG_CONFIG"; then
29925         _pkg_min_version=0.9.0
29926         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29927 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29928         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29929                 { echo "$as_me:$LINENO: result: yes" >&5
29930 echo "${ECHO_T}yes" >&6; }
29931         else
29932                 { echo "$as_me:$LINENO: result: no" >&5
29933 echo "${ECHO_T}no" >&6; }
29934                 PKG_CONFIG=""
29935         fi
29936
29937 fi
29938
29939
29940 pkg_failed=no
29941 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29942 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29943
29944 if test -n "$PKG_CONFIG"; then
29945     if test -n "$DIRECTFB_CFLAGS"; then
29946         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29947     else
29948         if test -n "$PKG_CONFIG" && \
29949     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29950   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; then
29954   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29955 else
29956   pkg_failed=yes
29957 fi
29958     fi
29959 else
29960         pkg_failed=untried
29961 fi
29962 if test -n "$PKG_CONFIG"; then
29963     if test -n "$DIRECTFB_LIBS"; then
29964         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29965     else
29966         if test -n "$PKG_CONFIG" && \
29967     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29968   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29969   ac_status=$?
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); }; then
29972   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29973 else
29974   pkg_failed=yes
29975 fi
29976     fi
29977 else
29978         pkg_failed=untried
29979 fi
29980
29981
29982
29983 if test $pkg_failed = yes; then
29984
29985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29986         _pkg_short_errors_supported=yes
29987 else
29988         _pkg_short_errors_supported=no
29989 fi
29990         if test $_pkg_short_errors_supported = yes; then
29991                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29992         else
29993                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29994         fi
29995         # Put the nasty error message in config.log where it belongs
29996         echo "$DIRECTFB_PKG_ERRORS" >&5
29997
29998
29999                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30000 echo "$as_me: error: DirectFB not found." >&2;}
30001    { (exit 1); exit 1; }; }
30002
30003
30004 elif test $pkg_failed = untried; then
30005
30006                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30007 echo "$as_me: error: DirectFB not found." >&2;}
30008    { (exit 1); exit 1; }; }
30009
30010
30011 else
30012         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
30013         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
30014         { echo "$as_me:$LINENO: result: yes" >&5
30015 echo "${ECHO_T}yes" >&6; }
30016
30017                            wxUSE_UNIVERSAL="yes"
30018                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30019                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30020                            TOOLKIT=DFB
30021                            GUIDIST=DFB_DIST
30022
30023 fi
30024     fi
30025
30026     if test "$wxUSE_MICROWIN" = 1; then
30027         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
30028 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
30029         if test "x$MICROWINDOWS" = x ; then
30030             { echo "$as_me:$LINENO: result: not found" >&5
30031 echo "${ECHO_T}not found" >&6; }
30032             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30033 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
30034    { (exit 1); exit 1; }; }
30035         else
30036             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30037 echo "${ECHO_T}$MICROWINDOWS" >&6; }
30038         fi
30039
30040         if test -f $MICROWINDOWS/lib/libmwin.a; then
30041             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30042 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
30043         else
30044             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30045 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
30046    { (exit 1); exit 1; }; }
30047         fi
30048
30049         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30050         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30051
30052         wxUSE_UNIVERSAL="yes"
30053
30054         AFMINSTALL=afminstall
30055         TOOLKIT=MICROWIN
30056         GUIDIST=MICROWIN_DIST
30057
30058         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30059     fi
30060
30061         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30062                                 { echo "$as_me:$LINENO: checking for X" >&5
30063 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30064
30065
30066 # Check whether --with-x was given.
30067 if test "${with_x+set}" = set; then
30068   withval=$with_x;
30069 fi
30070
30071 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30072 if test "x$with_x" = xno; then
30073   # The user explicitly disabled X.
30074   have_x=disabled
30075 else
30076   case $x_includes,$x_libraries in #(
30077     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30078 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30079    { (exit 1); exit 1; }; };; #(
30080     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30081   echo $ECHO_N "(cached) $ECHO_C" >&6
30082 else
30083   # One or both of the vars are not set, and there is no cached value.
30084 ac_x_includes=no ac_x_libraries=no
30085 rm -f -r conftest.dir
30086 if mkdir conftest.dir; then
30087   cd conftest.dir
30088   cat >Imakefile <<'_ACEOF'
30089 incroot:
30090         @echo incroot='${INCROOT}'
30091 usrlibdir:
30092         @echo usrlibdir='${USRLIBDIR}'
30093 libdir:
30094         @echo libdir='${LIBDIR}'
30095 _ACEOF
30096   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30097     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30098     for ac_var in incroot usrlibdir libdir; do
30099       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30100     done
30101     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30102     for ac_extension in a so sl; do
30103       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30104          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30105         ac_im_usrlibdir=$ac_im_libdir; break
30106       fi
30107     done
30108     # Screen out bogus values from the imake configuration.  They are
30109     # bogus both because they are the default anyway, and because
30110     # using them would break gcc on systems where it needs fixed includes.
30111     case $ac_im_incroot in
30112         /usr/include) ac_x_includes= ;;
30113         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30114     esac
30115     case $ac_im_usrlibdir in
30116         /usr/lib | /lib) ;;
30117         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30118     esac
30119   fi
30120   cd ..
30121   rm -f -r conftest.dir
30122 fi
30123
30124 # Standard set of common directories for X headers.
30125 # Check X11 before X11Rn because it is often a symlink to the current release.
30126 ac_x_header_dirs='
30127 /usr/X11/include
30128 /usr/X11R6/include
30129 /usr/X11R5/include
30130 /usr/X11R4/include
30131
30132 /usr/include/X11
30133 /usr/include/X11R6
30134 /usr/include/X11R5
30135 /usr/include/X11R4
30136
30137 /usr/local/X11/include
30138 /usr/local/X11R6/include
30139 /usr/local/X11R5/include
30140 /usr/local/X11R4/include
30141
30142 /usr/local/include/X11
30143 /usr/local/include/X11R6
30144 /usr/local/include/X11R5
30145 /usr/local/include/X11R4
30146
30147 /usr/X386/include
30148 /usr/x386/include
30149 /usr/XFree86/include/X11
30150
30151 /usr/include
30152 /usr/local/include
30153 /usr/unsupported/include
30154 /usr/athena/include
30155 /usr/local/x11r5/include
30156 /usr/lpp/Xamples/include
30157
30158 /usr/openwin/include
30159 /usr/openwin/share/include'
30160
30161 if test "$ac_x_includes" = no; then
30162   # Guess where to find include files, by looking for Xlib.h.
30163   # First, try using that file with no special directory specified.
30164   cat >conftest.$ac_ext <<_ACEOF
30165 /* confdefs.h.  */
30166 _ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h.  */
30170 #include <X11/Xlib.h>
30171 _ACEOF
30172 if { (ac_try="$ac_cpp conftest.$ac_ext"
30173 case "(($ac_try" in
30174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175   *) ac_try_echo=$ac_try;;
30176 esac
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30179   ac_status=$?
30180   grep -v '^ *+' conftest.er1 >conftest.err
30181   rm -f conftest.er1
30182   cat conftest.err >&5
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); } >/dev/null && {
30185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30186          test ! -s conftest.err
30187        }; then
30188   # We can compile using X headers with no special include directory.
30189 ac_x_includes=
30190 else
30191   echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30193
30194   for ac_dir in $ac_x_header_dirs; do
30195   if test -r "$ac_dir/X11/Xlib.h"; then
30196     ac_x_includes=$ac_dir
30197     break
30198   fi
30199 done
30200 fi
30201
30202 rm -f conftest.err conftest.$ac_ext
30203 fi # $ac_x_includes = no
30204
30205 if test "$ac_x_libraries" = no; then
30206   # Check for the libraries.
30207   # See if we find them without any special options.
30208   # Don't add to $LIBS permanently.
30209   ac_save_LIBS=$LIBS
30210   LIBS="-lX11 $LIBS"
30211   cat >conftest.$ac_ext <<_ACEOF
30212 /* confdefs.h.  */
30213 _ACEOF
30214 cat confdefs.h >>conftest.$ac_ext
30215 cat >>conftest.$ac_ext <<_ACEOF
30216 /* end confdefs.h.  */
30217 #include <X11/Xlib.h>
30218 int
30219 main ()
30220 {
30221 XrmInitialize ()
30222   ;
30223   return 0;
30224 }
30225 _ACEOF
30226 rm -f conftest.$ac_objext conftest$ac_exeext
30227 if { (ac_try="$ac_link"
30228 case "(($ac_try" in
30229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230   *) ac_try_echo=$ac_try;;
30231 esac
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233   (eval "$ac_link") 2>conftest.er1
30234   ac_status=$?
30235   grep -v '^ *+' conftest.er1 >conftest.err
30236   rm -f conftest.er1
30237   cat conftest.err >&5
30238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239   (exit $ac_status); } && {
30240          test -z "$ac_c_werror_flag" ||
30241          test ! -s conftest.err
30242        } && test -s conftest$ac_exeext &&
30243        $as_test_x conftest$ac_exeext; then
30244   LIBS=$ac_save_LIBS
30245 # We can link X programs with no special library path.
30246 ac_x_libraries=
30247 else
30248   echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30250
30251         LIBS=$ac_save_LIBS
30252 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30253 do
30254   # Don't even attempt the hair of trying to link an X program!
30255   for ac_extension in a so sl; do
30256     if test -r "$ac_dir/libX11.$ac_extension"; then
30257       ac_x_libraries=$ac_dir
30258       break 2
30259     fi
30260   done
30261 done
30262 fi
30263
30264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30265       conftest$ac_exeext conftest.$ac_ext
30266 fi # $ac_x_libraries = no
30267
30268 case $ac_x_includes,$ac_x_libraries in #(
30269   no,* | *,no | *\'*)
30270     # Didn't find X, or a directory has "'" in its name.
30271     ac_cv_have_x="have_x=no";; #(
30272   *)
30273     # Record where we found X for the cache.
30274     ac_cv_have_x="have_x=yes\
30275         ac_x_includes='$ac_x_includes'\
30276         ac_x_libraries='$ac_x_libraries'"
30277 esac
30278 fi
30279 ;; #(
30280     *) have_x=yes;;
30281   esac
30282   eval "$ac_cv_have_x"
30283 fi # $with_x != no
30284
30285 if test "$have_x" != yes; then
30286   { echo "$as_me:$LINENO: result: $have_x" >&5
30287 echo "${ECHO_T}$have_x" >&6; }
30288   no_x=yes
30289 else
30290   # If each of the values was on the command line, it overrides each guess.
30291   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30292   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30293   # Update the cache value to reflect the command line values.
30294   ac_cv_have_x="have_x=yes\
30295         ac_x_includes='$x_includes'\
30296         ac_x_libraries='$x_libraries'"
30297   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30298 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30299 fi
30300
30301 if test "$no_x" = yes; then
30302   # Not all programs may use this symbol, but it does not hurt to define it.
30303
30304 cat >>confdefs.h <<\_ACEOF
30305 #define X_DISPLAY_MISSING 1
30306 _ACEOF
30307
30308   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30309 else
30310   if test -n "$x_includes"; then
30311     X_CFLAGS="$X_CFLAGS -I$x_includes"
30312   fi
30313
30314   # It would also be nice to do this for all -L options, not just this one.
30315   if test -n "$x_libraries"; then
30316     X_LIBS="$X_LIBS -L$x_libraries"
30317     # For Solaris; some versions of Sun CC require a space after -R and
30318     # others require no space.  Words are not sufficient . . . .
30319     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30320 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30321     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30322     ac_xsave_c_werror_flag=$ac_c_werror_flag
30323     ac_c_werror_flag=yes
30324     cat >conftest.$ac_ext <<_ACEOF
30325 /* confdefs.h.  */
30326 _ACEOF
30327 cat confdefs.h >>conftest.$ac_ext
30328 cat >>conftest.$ac_ext <<_ACEOF
30329 /* end confdefs.h.  */
30330
30331 int
30332 main ()
30333 {
30334
30335   ;
30336   return 0;
30337 }
30338 _ACEOF
30339 rm -f conftest.$ac_objext conftest$ac_exeext
30340 if { (ac_try="$ac_link"
30341 case "(($ac_try" in
30342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343   *) ac_try_echo=$ac_try;;
30344 esac
30345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30346   (eval "$ac_link") 2>conftest.er1
30347   ac_status=$?
30348   grep -v '^ *+' conftest.er1 >conftest.err
30349   rm -f conftest.er1
30350   cat conftest.err >&5
30351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352   (exit $ac_status); } && {
30353          test -z "$ac_c_werror_flag" ||
30354          test ! -s conftest.err
30355        } && test -s conftest$ac_exeext &&
30356        $as_test_x conftest$ac_exeext; then
30357   { echo "$as_me:$LINENO: result: no" >&5
30358 echo "${ECHO_T}no" >&6; }
30359        X_LIBS="$X_LIBS -R$x_libraries"
30360 else
30361   echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30363
30364         LIBS="$ac_xsave_LIBS -R $x_libraries"
30365        cat >conftest.$ac_ext <<_ACEOF
30366 /* confdefs.h.  */
30367 _ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h.  */
30371
30372 int
30373 main ()
30374 {
30375
30376   ;
30377   return 0;
30378 }
30379 _ACEOF
30380 rm -f conftest.$ac_objext conftest$ac_exeext
30381 if { (ac_try="$ac_link"
30382 case "(($ac_try" in
30383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30384   *) ac_try_echo=$ac_try;;
30385 esac
30386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30387   (eval "$ac_link") 2>conftest.er1
30388   ac_status=$?
30389   grep -v '^ *+' conftest.er1 >conftest.err
30390   rm -f conftest.er1
30391   cat conftest.err >&5
30392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393   (exit $ac_status); } && {
30394          test -z "$ac_c_werror_flag" ||
30395          test ! -s conftest.err
30396        } && test -s conftest$ac_exeext &&
30397        $as_test_x conftest$ac_exeext; then
30398   { echo "$as_me:$LINENO: result: yes" >&5
30399 echo "${ECHO_T}yes" >&6; }
30400           X_LIBS="$X_LIBS -R $x_libraries"
30401 else
30402   echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30404
30405         { echo "$as_me:$LINENO: result: neither works" >&5
30406 echo "${ECHO_T}neither works" >&6; }
30407 fi
30408
30409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30410       conftest$ac_exeext conftest.$ac_ext
30411 fi
30412
30413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30414       conftest$ac_exeext conftest.$ac_ext
30415     ac_c_werror_flag=$ac_xsave_c_werror_flag
30416     LIBS=$ac_xsave_LIBS
30417   fi
30418
30419   # Check for system-dependent libraries X programs must link with.
30420   # Do this before checking for the system-independent R6 libraries
30421   # (-lICE), since we may need -lsocket or whatever for X linking.
30422
30423   if test "$ISC" = yes; then
30424     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30425   else
30426     # Martyn Johnson says this is needed for Ultrix, if the X
30427     # libraries were built with DECnet support.  And Karl Berry says
30428     # the Alpha needs dnet_stub (dnet does not exist).
30429     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30430     cat >conftest.$ac_ext <<_ACEOF
30431 /* confdefs.h.  */
30432 _ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h.  */
30436
30437 /* Override any GCC internal prototype to avoid an error.
30438    Use char because int might match the return type of a GCC
30439    builtin and then its argument prototype would still apply.  */
30440 #ifdef __cplusplus
30441 extern "C"
30442 #endif
30443 char XOpenDisplay ();
30444 int
30445 main ()
30446 {
30447 return XOpenDisplay ();
30448   ;
30449   return 0;
30450 }
30451 _ACEOF
30452 rm -f conftest.$ac_objext conftest$ac_exeext
30453 if { (ac_try="$ac_link"
30454 case "(($ac_try" in
30455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30456   *) ac_try_echo=$ac_try;;
30457 esac
30458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30459   (eval "$ac_link") 2>conftest.er1
30460   ac_status=$?
30461   grep -v '^ *+' conftest.er1 >conftest.err
30462   rm -f conftest.er1
30463   cat conftest.err >&5
30464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465   (exit $ac_status); } && {
30466          test -z "$ac_c_werror_flag" ||
30467          test ! -s conftest.err
30468        } && test -s conftest$ac_exeext &&
30469        $as_test_x conftest$ac_exeext; then
30470   :
30471 else
30472   echo "$as_me: failed program was:" >&5
30473 sed 's/^/| /' conftest.$ac_ext >&5
30474
30475         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30476 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30477 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30478   echo $ECHO_N "(cached) $ECHO_C" >&6
30479 else
30480   ac_check_lib_save_LIBS=$LIBS
30481 LIBS="-ldnet  $LIBS"
30482 cat >conftest.$ac_ext <<_ACEOF
30483 /* confdefs.h.  */
30484 _ACEOF
30485 cat confdefs.h >>conftest.$ac_ext
30486 cat >>conftest.$ac_ext <<_ACEOF
30487 /* end confdefs.h.  */
30488
30489 /* Override any GCC internal prototype to avoid an error.
30490    Use char because int might match the return type of a GCC
30491    builtin and then its argument prototype would still apply.  */
30492 #ifdef __cplusplus
30493 extern "C"
30494 #endif
30495 char dnet_ntoa ();
30496 int
30497 main ()
30498 {
30499 return dnet_ntoa ();
30500   ;
30501   return 0;
30502 }
30503 _ACEOF
30504 rm -f conftest.$ac_objext conftest$ac_exeext
30505 if { (ac_try="$ac_link"
30506 case "(($ac_try" in
30507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30508   *) ac_try_echo=$ac_try;;
30509 esac
30510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30511   (eval "$ac_link") 2>conftest.er1
30512   ac_status=$?
30513   grep -v '^ *+' conftest.er1 >conftest.err
30514   rm -f conftest.er1
30515   cat conftest.err >&5
30516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517   (exit $ac_status); } && {
30518          test -z "$ac_c_werror_flag" ||
30519          test ! -s conftest.err
30520        } && test -s conftest$ac_exeext &&
30521        $as_test_x conftest$ac_exeext; then
30522   ac_cv_lib_dnet_dnet_ntoa=yes
30523 else
30524   echo "$as_me: failed program was:" >&5
30525 sed 's/^/| /' conftest.$ac_ext >&5
30526
30527         ac_cv_lib_dnet_dnet_ntoa=no
30528 fi
30529
30530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30531       conftest$ac_exeext conftest.$ac_ext
30532 LIBS=$ac_check_lib_save_LIBS
30533 fi
30534 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30535 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30536 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30537   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30538 fi
30539
30540     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30541       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30542 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30543 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30544   echo $ECHO_N "(cached) $ECHO_C" >&6
30545 else
30546   ac_check_lib_save_LIBS=$LIBS
30547 LIBS="-ldnet_stub  $LIBS"
30548 cat >conftest.$ac_ext <<_ACEOF
30549 /* confdefs.h.  */
30550 _ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h.  */
30554
30555 /* Override any GCC internal prototype to avoid an error.
30556    Use char because int might match the return type of a GCC
30557    builtin and then its argument prototype would still apply.  */
30558 #ifdef __cplusplus
30559 extern "C"
30560 #endif
30561 char dnet_ntoa ();
30562 int
30563 main ()
30564 {
30565 return dnet_ntoa ();
30566   ;
30567   return 0;
30568 }
30569 _ACEOF
30570 rm -f conftest.$ac_objext conftest$ac_exeext
30571 if { (ac_try="$ac_link"
30572 case "(($ac_try" in
30573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574   *) ac_try_echo=$ac_try;;
30575 esac
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577   (eval "$ac_link") 2>conftest.er1
30578   ac_status=$?
30579   grep -v '^ *+' conftest.er1 >conftest.err
30580   rm -f conftest.er1
30581   cat conftest.err >&5
30582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583   (exit $ac_status); } && {
30584          test -z "$ac_c_werror_flag" ||
30585          test ! -s conftest.err
30586        } && test -s conftest$ac_exeext &&
30587        $as_test_x conftest$ac_exeext; then
30588   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30589 else
30590   echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30592
30593         ac_cv_lib_dnet_stub_dnet_ntoa=no
30594 fi
30595
30596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30597       conftest$ac_exeext conftest.$ac_ext
30598 LIBS=$ac_check_lib_save_LIBS
30599 fi
30600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30601 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30602 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30603   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30604 fi
30605
30606     fi
30607 fi
30608
30609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30610       conftest$ac_exeext conftest.$ac_ext
30611     LIBS="$ac_xsave_LIBS"
30612
30613     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30614     # to get the SysV transport functions.
30615     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30616     # needs -lnsl.
30617     # The nsl library prevents programs from opening the X display
30618     # on Irix 5.2, according to T.E. Dickey.
30619     # The functions gethostbyname, getservbyname, and inet_addr are
30620     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30621     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30622 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30623 if test "${ac_cv_func_gethostbyname+set}" = set; then
30624   echo $ECHO_N "(cached) $ECHO_C" >&6
30625 else
30626   cat >conftest.$ac_ext <<_ACEOF
30627 /* confdefs.h.  */
30628 _ACEOF
30629 cat confdefs.h >>conftest.$ac_ext
30630 cat >>conftest.$ac_ext <<_ACEOF
30631 /* end confdefs.h.  */
30632 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30634 #define gethostbyname innocuous_gethostbyname
30635
30636 /* System header to define __stub macros and hopefully few prototypes,
30637     which can conflict with char gethostbyname (); below.
30638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30639     <limits.h> exists even on freestanding compilers.  */
30640
30641 #ifdef __STDC__
30642 # include <limits.h>
30643 #else
30644 # include <assert.h>
30645 #endif
30646
30647 #undef gethostbyname
30648
30649 /* Override any GCC internal prototype to avoid an error.
30650    Use char because int might match the return type of a GCC
30651    builtin and then its argument prototype would still apply.  */
30652 #ifdef __cplusplus
30653 extern "C"
30654 #endif
30655 char gethostbyname ();
30656 /* The GNU C library defines this for functions which it implements
30657     to always fail with ENOSYS.  Some functions are actually named
30658     something starting with __ and the normal name is an alias.  */
30659 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30660 choke me
30661 #endif
30662
30663 int
30664 main ()
30665 {
30666 return gethostbyname ();
30667   ;
30668   return 0;
30669 }
30670 _ACEOF
30671 rm -f conftest.$ac_objext conftest$ac_exeext
30672 if { (ac_try="$ac_link"
30673 case "(($ac_try" in
30674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675   *) ac_try_echo=$ac_try;;
30676 esac
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678   (eval "$ac_link") 2>conftest.er1
30679   ac_status=$?
30680   grep -v '^ *+' conftest.er1 >conftest.err
30681   rm -f conftest.er1
30682   cat conftest.err >&5
30683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684   (exit $ac_status); } && {
30685          test -z "$ac_c_werror_flag" ||
30686          test ! -s conftest.err
30687        } && test -s conftest$ac_exeext &&
30688        $as_test_x conftest$ac_exeext; then
30689   ac_cv_func_gethostbyname=yes
30690 else
30691   echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30693
30694         ac_cv_func_gethostbyname=no
30695 fi
30696
30697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30698       conftest$ac_exeext conftest.$ac_ext
30699 fi
30700 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30701 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30702
30703     if test $ac_cv_func_gethostbyname = no; then
30704       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30705 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30706 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30707   echo $ECHO_N "(cached) $ECHO_C" >&6
30708 else
30709   ac_check_lib_save_LIBS=$LIBS
30710 LIBS="-lnsl  $LIBS"
30711 cat >conftest.$ac_ext <<_ACEOF
30712 /* confdefs.h.  */
30713 _ACEOF
30714 cat confdefs.h >>conftest.$ac_ext
30715 cat >>conftest.$ac_ext <<_ACEOF
30716 /* end confdefs.h.  */
30717
30718 /* Override any GCC internal prototype to avoid an error.
30719    Use char because int might match the return type of a GCC
30720    builtin and then its argument prototype would still apply.  */
30721 #ifdef __cplusplus
30722 extern "C"
30723 #endif
30724 char gethostbyname ();
30725 int
30726 main ()
30727 {
30728 return gethostbyname ();
30729   ;
30730   return 0;
30731 }
30732 _ACEOF
30733 rm -f conftest.$ac_objext conftest$ac_exeext
30734 if { (ac_try="$ac_link"
30735 case "(($ac_try" in
30736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30737   *) ac_try_echo=$ac_try;;
30738 esac
30739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30740   (eval "$ac_link") 2>conftest.er1
30741   ac_status=$?
30742   grep -v '^ *+' conftest.er1 >conftest.err
30743   rm -f conftest.er1
30744   cat conftest.err >&5
30745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); } && {
30747          test -z "$ac_c_werror_flag" ||
30748          test ! -s conftest.err
30749        } && test -s conftest$ac_exeext &&
30750        $as_test_x conftest$ac_exeext; then
30751   ac_cv_lib_nsl_gethostbyname=yes
30752 else
30753   echo "$as_me: failed program was:" >&5
30754 sed 's/^/| /' conftest.$ac_ext >&5
30755
30756         ac_cv_lib_nsl_gethostbyname=no
30757 fi
30758
30759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30760       conftest$ac_exeext conftest.$ac_ext
30761 LIBS=$ac_check_lib_save_LIBS
30762 fi
30763 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30764 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30765 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30766   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30767 fi
30768
30769       if test $ac_cv_lib_nsl_gethostbyname = no; then
30770         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30771 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30772 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30773   echo $ECHO_N "(cached) $ECHO_C" >&6
30774 else
30775   ac_check_lib_save_LIBS=$LIBS
30776 LIBS="-lbsd  $LIBS"
30777 cat >conftest.$ac_ext <<_ACEOF
30778 /* confdefs.h.  */
30779 _ACEOF
30780 cat confdefs.h >>conftest.$ac_ext
30781 cat >>conftest.$ac_ext <<_ACEOF
30782 /* end confdefs.h.  */
30783
30784 /* Override any GCC internal prototype to avoid an error.
30785    Use char because int might match the return type of a GCC
30786    builtin and then its argument prototype would still apply.  */
30787 #ifdef __cplusplus
30788 extern "C"
30789 #endif
30790 char gethostbyname ();
30791 int
30792 main ()
30793 {
30794 return gethostbyname ();
30795   ;
30796   return 0;
30797 }
30798 _ACEOF
30799 rm -f conftest.$ac_objext conftest$ac_exeext
30800 if { (ac_try="$ac_link"
30801 case "(($ac_try" in
30802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803   *) ac_try_echo=$ac_try;;
30804 esac
30805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806   (eval "$ac_link") 2>conftest.er1
30807   ac_status=$?
30808   grep -v '^ *+' conftest.er1 >conftest.err
30809   rm -f conftest.er1
30810   cat conftest.err >&5
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); } && {
30813          test -z "$ac_c_werror_flag" ||
30814          test ! -s conftest.err
30815        } && test -s conftest$ac_exeext &&
30816        $as_test_x conftest$ac_exeext; then
30817   ac_cv_lib_bsd_gethostbyname=yes
30818 else
30819   echo "$as_me: failed program was:" >&5
30820 sed 's/^/| /' conftest.$ac_ext >&5
30821
30822         ac_cv_lib_bsd_gethostbyname=no
30823 fi
30824
30825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30826       conftest$ac_exeext conftest.$ac_ext
30827 LIBS=$ac_check_lib_save_LIBS
30828 fi
30829 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30830 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30831 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30832   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30833 fi
30834
30835       fi
30836     fi
30837
30838     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30839     # socket/setsockopt and other routines are undefined under SCO ODT
30840     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30841     # on later versions), says Simon Leinen: it contains gethostby*
30842     # variants that don't use the name server (or something).  -lsocket
30843     # must be given before -lnsl if both are needed.  We assume that
30844     # if connect needs -lnsl, so does gethostbyname.
30845     { echo "$as_me:$LINENO: checking for connect" >&5
30846 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30847 if test "${ac_cv_func_connect+set}" = set; then
30848   echo $ECHO_N "(cached) $ECHO_C" >&6
30849 else
30850   cat >conftest.$ac_ext <<_ACEOF
30851 /* confdefs.h.  */
30852 _ACEOF
30853 cat confdefs.h >>conftest.$ac_ext
30854 cat >>conftest.$ac_ext <<_ACEOF
30855 /* end confdefs.h.  */
30856 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30858 #define connect innocuous_connect
30859
30860 /* System header to define __stub macros and hopefully few prototypes,
30861     which can conflict with char connect (); below.
30862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30863     <limits.h> exists even on freestanding compilers.  */
30864
30865 #ifdef __STDC__
30866 # include <limits.h>
30867 #else
30868 # include <assert.h>
30869 #endif
30870
30871 #undef connect
30872
30873 /* Override any GCC internal prototype to avoid an error.
30874    Use char because int might match the return type of a GCC
30875    builtin and then its argument prototype would still apply.  */
30876 #ifdef __cplusplus
30877 extern "C"
30878 #endif
30879 char connect ();
30880 /* The GNU C library defines this for functions which it implements
30881     to always fail with ENOSYS.  Some functions are actually named
30882     something starting with __ and the normal name is an alias.  */
30883 #if defined __stub_connect || defined __stub___connect
30884 choke me
30885 #endif
30886
30887 int
30888 main ()
30889 {
30890 return connect ();
30891   ;
30892   return 0;
30893 }
30894 _ACEOF
30895 rm -f conftest.$ac_objext conftest$ac_exeext
30896 if { (ac_try="$ac_link"
30897 case "(($ac_try" in
30898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30899   *) ac_try_echo=$ac_try;;
30900 esac
30901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30902   (eval "$ac_link") 2>conftest.er1
30903   ac_status=$?
30904   grep -v '^ *+' conftest.er1 >conftest.err
30905   rm -f conftest.er1
30906   cat conftest.err >&5
30907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908   (exit $ac_status); } && {
30909          test -z "$ac_c_werror_flag" ||
30910          test ! -s conftest.err
30911        } && test -s conftest$ac_exeext &&
30912        $as_test_x conftest$ac_exeext; then
30913   ac_cv_func_connect=yes
30914 else
30915   echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30917
30918         ac_cv_func_connect=no
30919 fi
30920
30921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30922       conftest$ac_exeext conftest.$ac_ext
30923 fi
30924 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30925 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30926
30927     if test $ac_cv_func_connect = no; then
30928       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30929 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30930 if test "${ac_cv_lib_socket_connect+set}" = set; then
30931   echo $ECHO_N "(cached) $ECHO_C" >&6
30932 else
30933   ac_check_lib_save_LIBS=$LIBS
30934 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30935 cat >conftest.$ac_ext <<_ACEOF
30936 /* confdefs.h.  */
30937 _ACEOF
30938 cat confdefs.h >>conftest.$ac_ext
30939 cat >>conftest.$ac_ext <<_ACEOF
30940 /* end confdefs.h.  */
30941
30942 /* Override any GCC internal prototype to avoid an error.
30943    Use char because int might match the return type of a GCC
30944    builtin and then its argument prototype would still apply.  */
30945 #ifdef __cplusplus
30946 extern "C"
30947 #endif
30948 char connect ();
30949 int
30950 main ()
30951 {
30952 return connect ();
30953   ;
30954   return 0;
30955 }
30956 _ACEOF
30957 rm -f conftest.$ac_objext conftest$ac_exeext
30958 if { (ac_try="$ac_link"
30959 case "(($ac_try" in
30960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961   *) ac_try_echo=$ac_try;;
30962 esac
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964   (eval "$ac_link") 2>conftest.er1
30965   ac_status=$?
30966   grep -v '^ *+' conftest.er1 >conftest.err
30967   rm -f conftest.er1
30968   cat conftest.err >&5
30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970   (exit $ac_status); } && {
30971          test -z "$ac_c_werror_flag" ||
30972          test ! -s conftest.err
30973        } && test -s conftest$ac_exeext &&
30974        $as_test_x conftest$ac_exeext; then
30975   ac_cv_lib_socket_connect=yes
30976 else
30977   echo "$as_me: failed program was:" >&5
30978 sed 's/^/| /' conftest.$ac_ext >&5
30979
30980         ac_cv_lib_socket_connect=no
30981 fi
30982
30983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30984       conftest$ac_exeext conftest.$ac_ext
30985 LIBS=$ac_check_lib_save_LIBS
30986 fi
30987 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30988 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30989 if test $ac_cv_lib_socket_connect = yes; then
30990   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30991 fi
30992
30993     fi
30994
30995     # Guillermo Gomez says -lposix is necessary on A/UX.
30996     { echo "$as_me:$LINENO: checking for remove" >&5
30997 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30998 if test "${ac_cv_func_remove+set}" = set; then
30999   echo $ECHO_N "(cached) $ECHO_C" >&6
31000 else
31001   cat >conftest.$ac_ext <<_ACEOF
31002 /* confdefs.h.  */
31003 _ACEOF
31004 cat confdefs.h >>conftest.$ac_ext
31005 cat >>conftest.$ac_ext <<_ACEOF
31006 /* end confdefs.h.  */
31007 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31009 #define remove innocuous_remove
31010
31011 /* System header to define __stub macros and hopefully few prototypes,
31012     which can conflict with char remove (); below.
31013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31014     <limits.h> exists even on freestanding compilers.  */
31015
31016 #ifdef __STDC__
31017 # include <limits.h>
31018 #else
31019 # include <assert.h>
31020 #endif
31021
31022 #undef remove
31023
31024 /* Override any GCC internal prototype to avoid an error.
31025    Use char because int might match the return type of a GCC
31026    builtin and then its argument prototype would still apply.  */
31027 #ifdef __cplusplus
31028 extern "C"
31029 #endif
31030 char remove ();
31031 /* The GNU C library defines this for functions which it implements
31032     to always fail with ENOSYS.  Some functions are actually named
31033     something starting with __ and the normal name is an alias.  */
31034 #if defined __stub_remove || defined __stub___remove
31035 choke me
31036 #endif
31037
31038 int
31039 main ()
31040 {
31041 return remove ();
31042   ;
31043   return 0;
31044 }
31045 _ACEOF
31046 rm -f conftest.$ac_objext conftest$ac_exeext
31047 if { (ac_try="$ac_link"
31048 case "(($ac_try" in
31049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050   *) ac_try_echo=$ac_try;;
31051 esac
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053   (eval "$ac_link") 2>conftest.er1
31054   ac_status=$?
31055   grep -v '^ *+' conftest.er1 >conftest.err
31056   rm -f conftest.er1
31057   cat conftest.err >&5
31058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059   (exit $ac_status); } && {
31060          test -z "$ac_c_werror_flag" ||
31061          test ! -s conftest.err
31062        } && test -s conftest$ac_exeext &&
31063        $as_test_x conftest$ac_exeext; then
31064   ac_cv_func_remove=yes
31065 else
31066   echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.$ac_ext >&5
31068
31069         ac_cv_func_remove=no
31070 fi
31071
31072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31073       conftest$ac_exeext conftest.$ac_ext
31074 fi
31075 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31076 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31077
31078     if test $ac_cv_func_remove = no; then
31079       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31080 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31081 if test "${ac_cv_lib_posix_remove+set}" = set; then
31082   echo $ECHO_N "(cached) $ECHO_C" >&6
31083 else
31084   ac_check_lib_save_LIBS=$LIBS
31085 LIBS="-lposix  $LIBS"
31086 cat >conftest.$ac_ext <<_ACEOF
31087 /* confdefs.h.  */
31088 _ACEOF
31089 cat confdefs.h >>conftest.$ac_ext
31090 cat >>conftest.$ac_ext <<_ACEOF
31091 /* end confdefs.h.  */
31092
31093 /* Override any GCC internal prototype to avoid an error.
31094    Use char because int might match the return type of a GCC
31095    builtin and then its argument prototype would still apply.  */
31096 #ifdef __cplusplus
31097 extern "C"
31098 #endif
31099 char remove ();
31100 int
31101 main ()
31102 {
31103 return remove ();
31104   ;
31105   return 0;
31106 }
31107 _ACEOF
31108 rm -f conftest.$ac_objext conftest$ac_exeext
31109 if { (ac_try="$ac_link"
31110 case "(($ac_try" in
31111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31112   *) ac_try_echo=$ac_try;;
31113 esac
31114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31115   (eval "$ac_link") 2>conftest.er1
31116   ac_status=$?
31117   grep -v '^ *+' conftest.er1 >conftest.err
31118   rm -f conftest.er1
31119   cat conftest.err >&5
31120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121   (exit $ac_status); } && {
31122          test -z "$ac_c_werror_flag" ||
31123          test ! -s conftest.err
31124        } && test -s conftest$ac_exeext &&
31125        $as_test_x conftest$ac_exeext; then
31126   ac_cv_lib_posix_remove=yes
31127 else
31128   echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.$ac_ext >&5
31130
31131         ac_cv_lib_posix_remove=no
31132 fi
31133
31134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31135       conftest$ac_exeext conftest.$ac_ext
31136 LIBS=$ac_check_lib_save_LIBS
31137 fi
31138 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31139 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31140 if test $ac_cv_lib_posix_remove = yes; then
31141   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31142 fi
31143
31144     fi
31145
31146     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31147     { echo "$as_me:$LINENO: checking for shmat" >&5
31148 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31149 if test "${ac_cv_func_shmat+set}" = set; then
31150   echo $ECHO_N "(cached) $ECHO_C" >&6
31151 else
31152   cat >conftest.$ac_ext <<_ACEOF
31153 /* confdefs.h.  */
31154 _ACEOF
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h.  */
31158 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31160 #define shmat innocuous_shmat
31161
31162 /* System header to define __stub macros and hopefully few prototypes,
31163     which can conflict with char shmat (); below.
31164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31165     <limits.h> exists even on freestanding compilers.  */
31166
31167 #ifdef __STDC__
31168 # include <limits.h>
31169 #else
31170 # include <assert.h>
31171 #endif
31172
31173 #undef shmat
31174
31175 /* Override any GCC internal prototype to avoid an error.
31176    Use char because int might match the return type of a GCC
31177    builtin and then its argument prototype would still apply.  */
31178 #ifdef __cplusplus
31179 extern "C"
31180 #endif
31181 char shmat ();
31182 /* The GNU C library defines this for functions which it implements
31183     to always fail with ENOSYS.  Some functions are actually named
31184     something starting with __ and the normal name is an alias.  */
31185 #if defined __stub_shmat || defined __stub___shmat
31186 choke me
31187 #endif
31188
31189 int
31190 main ()
31191 {
31192 return shmat ();
31193   ;
31194   return 0;
31195 }
31196 _ACEOF
31197 rm -f conftest.$ac_objext conftest$ac_exeext
31198 if { (ac_try="$ac_link"
31199 case "(($ac_try" in
31200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201   *) ac_try_echo=$ac_try;;
31202 esac
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204   (eval "$ac_link") 2>conftest.er1
31205   ac_status=$?
31206   grep -v '^ *+' conftest.er1 >conftest.err
31207   rm -f conftest.er1
31208   cat conftest.err >&5
31209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210   (exit $ac_status); } && {
31211          test -z "$ac_c_werror_flag" ||
31212          test ! -s conftest.err
31213        } && test -s conftest$ac_exeext &&
31214        $as_test_x conftest$ac_exeext; then
31215   ac_cv_func_shmat=yes
31216 else
31217   echo "$as_me: failed program was:" >&5
31218 sed 's/^/| /' conftest.$ac_ext >&5
31219
31220         ac_cv_func_shmat=no
31221 fi
31222
31223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31224       conftest$ac_exeext conftest.$ac_ext
31225 fi
31226 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31227 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31228
31229     if test $ac_cv_func_shmat = no; then
31230       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31231 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31232 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31233   echo $ECHO_N "(cached) $ECHO_C" >&6
31234 else
31235   ac_check_lib_save_LIBS=$LIBS
31236 LIBS="-lipc  $LIBS"
31237 cat >conftest.$ac_ext <<_ACEOF
31238 /* confdefs.h.  */
31239 _ACEOF
31240 cat confdefs.h >>conftest.$ac_ext
31241 cat >>conftest.$ac_ext <<_ACEOF
31242 /* end confdefs.h.  */
31243
31244 /* Override any GCC internal prototype to avoid an error.
31245    Use char because int might match the return type of a GCC
31246    builtin and then its argument prototype would still apply.  */
31247 #ifdef __cplusplus
31248 extern "C"
31249 #endif
31250 char shmat ();
31251 int
31252 main ()
31253 {
31254 return shmat ();
31255   ;
31256   return 0;
31257 }
31258 _ACEOF
31259 rm -f conftest.$ac_objext conftest$ac_exeext
31260 if { (ac_try="$ac_link"
31261 case "(($ac_try" in
31262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263   *) ac_try_echo=$ac_try;;
31264 esac
31265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31266   (eval "$ac_link") 2>conftest.er1
31267   ac_status=$?
31268   grep -v '^ *+' conftest.er1 >conftest.err
31269   rm -f conftest.er1
31270   cat conftest.err >&5
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); } && {
31273          test -z "$ac_c_werror_flag" ||
31274          test ! -s conftest.err
31275        } && test -s conftest$ac_exeext &&
31276        $as_test_x conftest$ac_exeext; then
31277   ac_cv_lib_ipc_shmat=yes
31278 else
31279   echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282         ac_cv_lib_ipc_shmat=no
31283 fi
31284
31285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31286       conftest$ac_exeext conftest.$ac_ext
31287 LIBS=$ac_check_lib_save_LIBS
31288 fi
31289 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31290 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31291 if test $ac_cv_lib_ipc_shmat = yes; then
31292   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31293 fi
31294
31295     fi
31296   fi
31297
31298   # Check for libraries that X11R6 Xt/Xaw programs need.
31299   ac_save_LDFLAGS=$LDFLAGS
31300   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31301   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31302   # check for ICE first), but we must link in the order -lSM -lICE or
31303   # we get undefined symbols.  So assume we have SM if we have ICE.
31304   # These have to be linked with before -lX11, unlike the other
31305   # libraries we check for below, so use a different variable.
31306   # John Interrante, Karl Berry
31307   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31308 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31309 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31310   echo $ECHO_N "(cached) $ECHO_C" >&6
31311 else
31312   ac_check_lib_save_LIBS=$LIBS
31313 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31314 cat >conftest.$ac_ext <<_ACEOF
31315 /* confdefs.h.  */
31316 _ACEOF
31317 cat confdefs.h >>conftest.$ac_ext
31318 cat >>conftest.$ac_ext <<_ACEOF
31319 /* end confdefs.h.  */
31320
31321 /* Override any GCC internal prototype to avoid an error.
31322    Use char because int might match the return type of a GCC
31323    builtin and then its argument prototype would still apply.  */
31324 #ifdef __cplusplus
31325 extern "C"
31326 #endif
31327 char IceConnectionNumber ();
31328 int
31329 main ()
31330 {
31331 return IceConnectionNumber ();
31332   ;
31333   return 0;
31334 }
31335 _ACEOF
31336 rm -f conftest.$ac_objext conftest$ac_exeext
31337 if { (ac_try="$ac_link"
31338 case "(($ac_try" in
31339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340   *) ac_try_echo=$ac_try;;
31341 esac
31342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343   (eval "$ac_link") 2>conftest.er1
31344   ac_status=$?
31345   grep -v '^ *+' conftest.er1 >conftest.err
31346   rm -f conftest.er1
31347   cat conftest.err >&5
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); } && {
31350          test -z "$ac_c_werror_flag" ||
31351          test ! -s conftest.err
31352        } && test -s conftest$ac_exeext &&
31353        $as_test_x conftest$ac_exeext; then
31354   ac_cv_lib_ICE_IceConnectionNumber=yes
31355 else
31356   echo "$as_me: failed program was:" >&5
31357 sed 's/^/| /' conftest.$ac_ext >&5
31358
31359         ac_cv_lib_ICE_IceConnectionNumber=no
31360 fi
31361
31362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31363       conftest$ac_exeext conftest.$ac_ext
31364 LIBS=$ac_check_lib_save_LIBS
31365 fi
31366 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31367 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31368 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31369   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31370 fi
31371
31372   LDFLAGS=$ac_save_LDFLAGS
31373
31374 fi
31375
31376
31377         if test "$no_x" = "yes"; then
31378           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31379 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31380    { (exit 1); exit 1; }; }
31381         fi
31382
31383                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31384         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31385         AFMINSTALL=afminstall
31386         COMPILED_X_PROGRAM=0
31387
31388     fi
31389
31390     if test "$wxUSE_X11" = 1; then
31391         if test "$wxUSE_NANOX" = "yes"; then
31392             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31393 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31394             if test "x$MICROWIN" = x ; then
31395                 { echo "$as_me:$LINENO: result: not found" >&5
31396 echo "${ECHO_T}not found" >&6; }
31397                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31398 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31399    { (exit 1); exit 1; }; }
31400             else
31401                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31402 echo "${ECHO_T}$MICROWIN" >&6; }
31403                 cat >>confdefs.h <<\_ACEOF
31404 #define wxUSE_NANOX 1
31405 _ACEOF
31406
31407             fi
31408         fi
31409
31410         if test "$wxUSE_UNICODE" = "yes"; then
31411
31412
31413 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31414         if test -n "$ac_tool_prefix"; then
31415   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31416 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31420   echo $ECHO_N "(cached) $ECHO_C" >&6
31421 else
31422   case $PKG_CONFIG in
31423   [\\/]* | ?:[\\/]*)
31424   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31425   ;;
31426   *)
31427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31428 for as_dir in $PATH
31429 do
31430   IFS=$as_save_IFS
31431   test -z "$as_dir" && as_dir=.
31432   for ac_exec_ext in '' $ac_executable_extensions; do
31433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31434     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31436     break 2
31437   fi
31438 done
31439 done
31440 IFS=$as_save_IFS
31441
31442   ;;
31443 esac
31444 fi
31445 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31446 if test -n "$PKG_CONFIG"; then
31447   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31448 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31449 else
31450   { echo "$as_me:$LINENO: result: no" >&5
31451 echo "${ECHO_T}no" >&6; }
31452 fi
31453
31454
31455 fi
31456 if test -z "$ac_cv_path_PKG_CONFIG"; then
31457   ac_pt_PKG_CONFIG=$PKG_CONFIG
31458   # Extract the first word of "pkg-config", so it can be a program name with args.
31459 set dummy pkg-config; ac_word=$2
31460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31462 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31463   echo $ECHO_N "(cached) $ECHO_C" >&6
31464 else
31465   case $ac_pt_PKG_CONFIG in
31466   [\\/]* | ?:[\\/]*)
31467   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31468   ;;
31469   *)
31470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31471 for as_dir in $PATH
31472 do
31473   IFS=$as_save_IFS
31474   test -z "$as_dir" && as_dir=.
31475   for ac_exec_ext in '' $ac_executable_extensions; do
31476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31477     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31479     break 2
31480   fi
31481 done
31482 done
31483 IFS=$as_save_IFS
31484
31485   ;;
31486 esac
31487 fi
31488 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31489 if test -n "$ac_pt_PKG_CONFIG"; then
31490   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31491 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31492 else
31493   { echo "$as_me:$LINENO: result: no" >&5
31494 echo "${ECHO_T}no" >&6; }
31495 fi
31496
31497   if test "x$ac_pt_PKG_CONFIG" = x; then
31498     PKG_CONFIG=""
31499   else
31500     case $cross_compiling:$ac_tool_warned in
31501 yes:)
31502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31503 whose name does not start with the host triplet.  If you think this
31504 configuration is useful to you, please write to autoconf@gnu.org." >&5
31505 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31506 whose name does not start with the host triplet.  If you think this
31507 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31508 ac_tool_warned=yes ;;
31509 esac
31510     PKG_CONFIG=$ac_pt_PKG_CONFIG
31511   fi
31512 else
31513   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31514 fi
31515
31516 fi
31517 if test -n "$PKG_CONFIG"; then
31518         _pkg_min_version=0.9.0
31519         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31520 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31521         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31522                 { echo "$as_me:$LINENO: result: yes" >&5
31523 echo "${ECHO_T}yes" >&6; }
31524         else
31525                 { echo "$as_me:$LINENO: result: no" >&5
31526 echo "${ECHO_T}no" >&6; }
31527                 PKG_CONFIG=""
31528         fi
31529
31530 fi
31531
31532
31533 pkg_failed=no
31534 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31535 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31536
31537 if test -n "$PKG_CONFIG"; then
31538     if test -n "$PANGOX_CFLAGS"; then
31539         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31540     else
31541         if test -n "$PKG_CONFIG" && \
31542     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31543   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31544   ac_status=$?
31545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546   (exit $ac_status); }; then
31547   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31548 else
31549   pkg_failed=yes
31550 fi
31551     fi
31552 else
31553         pkg_failed=untried
31554 fi
31555 if test -n "$PKG_CONFIG"; then
31556     if test -n "$PANGOX_LIBS"; then
31557         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31558     else
31559         if test -n "$PKG_CONFIG" && \
31560     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31561   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31562   ac_status=$?
31563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564   (exit $ac_status); }; then
31565   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31566 else
31567   pkg_failed=yes
31568 fi
31569     fi
31570 else
31571         pkg_failed=untried
31572 fi
31573
31574
31575
31576 if test $pkg_failed = yes; then
31577
31578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31579         _pkg_short_errors_supported=yes
31580 else
31581         _pkg_short_errors_supported=no
31582 fi
31583         if test $_pkg_short_errors_supported = yes; then
31584                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31585         else
31586                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31587         fi
31588         # Put the nasty error message in config.log where it belongs
31589         echo "$PANGOX_PKG_ERRORS" >&5
31590
31591
31592                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31593 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31594    { (exit 1); exit 1; }; }
31595
31596
31597 elif test $pkg_failed = untried; then
31598
31599                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31600 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31601    { (exit 1); exit 1; }; }
31602
31603
31604 else
31605         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31606         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31607         { echo "$as_me:$LINENO: result: yes" >&5
31608 echo "${ECHO_T}yes" >&6; }
31609
31610                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31611                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31612                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31613
31614 fi
31615
31616 pkg_failed=no
31617 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31618 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31619
31620 if test -n "$PKG_CONFIG"; then
31621     if test -n "$PANGOFT2_CFLAGS"; then
31622         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31623     else
31624         if test -n "$PKG_CONFIG" && \
31625     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31626   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31627   ac_status=$?
31628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629   (exit $ac_status); }; then
31630   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31631 else
31632   pkg_failed=yes
31633 fi
31634     fi
31635 else
31636         pkg_failed=untried
31637 fi
31638 if test -n "$PKG_CONFIG"; then
31639     if test -n "$PANGOFT2_LIBS"; then
31640         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31641     else
31642         if test -n "$PKG_CONFIG" && \
31643     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31644   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31645   ac_status=$?
31646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647   (exit $ac_status); }; then
31648   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31649 else
31650   pkg_failed=yes
31651 fi
31652     fi
31653 else
31654         pkg_failed=untried
31655 fi
31656
31657
31658
31659 if test $pkg_failed = yes; then
31660
31661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31662         _pkg_short_errors_supported=yes
31663 else
31664         _pkg_short_errors_supported=no
31665 fi
31666         if test $_pkg_short_errors_supported = yes; then
31667                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31668         else
31669                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31670         fi
31671         # Put the nasty error message in config.log where it belongs
31672         echo "$PANGOFT2_PKG_ERRORS" >&5
31673
31674
31675                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31676 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31677                     wxUSE_PRINTING_ARCHITECTURE="no"
31678
31679
31680 elif test $pkg_failed = untried; then
31681
31682                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31683 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31684                     wxUSE_PRINTING_ARCHITECTURE="no"
31685
31686
31687 else
31688         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31689         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31690         { echo "$as_me:$LINENO: result: yes" >&5
31691 echo "${ECHO_T}yes" >&6; }
31692
31693                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31694                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31695                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31696
31697 fi
31698
31699 pkg_failed=no
31700 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31701 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31702
31703 if test -n "$PKG_CONFIG"; then
31704     if test -n "$PANGOXFT_CFLAGS"; then
31705         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31706     else
31707         if test -n "$PKG_CONFIG" && \
31708     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31709   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31710   ac_status=$?
31711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712   (exit $ac_status); }; then
31713   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31714 else
31715   pkg_failed=yes
31716 fi
31717     fi
31718 else
31719         pkg_failed=untried
31720 fi
31721 if test -n "$PKG_CONFIG"; then
31722     if test -n "$PANGOXFT_LIBS"; then
31723         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31724     else
31725         if test -n "$PKG_CONFIG" && \
31726     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31727   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31728   ac_status=$?
31729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730   (exit $ac_status); }; then
31731   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31732 else
31733   pkg_failed=yes
31734 fi
31735     fi
31736 else
31737         pkg_failed=untried
31738 fi
31739
31740
31741
31742 if test $pkg_failed = yes; then
31743
31744 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31745         _pkg_short_errors_supported=yes
31746 else
31747         _pkg_short_errors_supported=no
31748 fi
31749         if test $_pkg_short_errors_supported = yes; then
31750                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31751         else
31752                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31753         fi
31754         # Put the nasty error message in config.log where it belongs
31755         echo "$PANGOXFT_PKG_ERRORS" >&5
31756
31757
31758                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31759 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31760
31761
31762 elif test $pkg_failed = untried; then
31763
31764                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31765 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31766
31767
31768 else
31769         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31770         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31771         { echo "$as_me:$LINENO: result: yes" >&5
31772 echo "${ECHO_T}yes" >&6; }
31773
31774                     cat >>confdefs.h <<\_ACEOF
31775 #define HAVE_PANGO_XFT 1
31776 _ACEOF
31777
31778                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31779                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31780                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31781
31782 fi
31783             save_LIBS="$LIBS"
31784             LIBS="$LIBS $PANGOX_LIBS"
31785
31786 for ac_func in pango_font_family_is_monospace
31787 do
31788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31792   echo $ECHO_N "(cached) $ECHO_C" >&6
31793 else
31794   cat >conftest.$ac_ext <<_ACEOF
31795 /* confdefs.h.  */
31796 _ACEOF
31797 cat confdefs.h >>conftest.$ac_ext
31798 cat >>conftest.$ac_ext <<_ACEOF
31799 /* end confdefs.h.  */
31800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31802 #define $ac_func innocuous_$ac_func
31803
31804 /* System header to define __stub macros and hopefully few prototypes,
31805     which can conflict with char $ac_func (); below.
31806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31807     <limits.h> exists even on freestanding compilers.  */
31808
31809 #ifdef __STDC__
31810 # include <limits.h>
31811 #else
31812 # include <assert.h>
31813 #endif
31814
31815 #undef $ac_func
31816
31817 /* Override any GCC internal prototype to avoid an error.
31818    Use char because int might match the return type of a GCC
31819    builtin and then its argument prototype would still apply.  */
31820 #ifdef __cplusplus
31821 extern "C"
31822 #endif
31823 char $ac_func ();
31824 /* The GNU C library defines this for functions which it implements
31825     to always fail with ENOSYS.  Some functions are actually named
31826     something starting with __ and the normal name is an alias.  */
31827 #if defined __stub_$ac_func || defined __stub___$ac_func
31828 choke me
31829 #endif
31830
31831 int
31832 main ()
31833 {
31834 return $ac_func ();
31835   ;
31836   return 0;
31837 }
31838 _ACEOF
31839 rm -f conftest.$ac_objext conftest$ac_exeext
31840 if { (ac_try="$ac_link"
31841 case "(($ac_try" in
31842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843   *) ac_try_echo=$ac_try;;
31844 esac
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846   (eval "$ac_link") 2>conftest.er1
31847   ac_status=$?
31848   grep -v '^ *+' conftest.er1 >conftest.err
31849   rm -f conftest.er1
31850   cat conftest.err >&5
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); } && {
31853          test -z "$ac_c_werror_flag" ||
31854          test ! -s conftest.err
31855        } && test -s conftest$ac_exeext &&
31856        $as_test_x conftest$ac_exeext; then
31857   eval "$as_ac_var=yes"
31858 else
31859   echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31861
31862         eval "$as_ac_var=no"
31863 fi
31864
31865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31866       conftest$ac_exeext conftest.$ac_ext
31867 fi
31868 ac_res=`eval echo '${'$as_ac_var'}'`
31869                { echo "$as_me:$LINENO: result: $ac_res" >&5
31870 echo "${ECHO_T}$ac_res" >&6; }
31871 if test `eval echo '${'$as_ac_var'}'` = yes; then
31872   cat >>confdefs.h <<_ACEOF
31873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31874 _ACEOF
31875
31876 fi
31877 done
31878
31879             LIBS="$save_LIBS"
31880         fi
31881
31882         wxUSE_UNIVERSAL="yes"
31883
31884         if test "$wxUSE_NANOX" = "yes"; then
31885             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31886             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"
31887             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31888         else
31889             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31890         fi
31891
31892         TOOLKIT=X11
31893         GUIDIST=X11_DIST
31894     fi
31895
31896     if test "$wxUSE_MOTIF" = 1; then
31897         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31898 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31899
31900 ac_find_includes=
31901 for ac_dir in $SEARCH_INCLUDE /usr/include;
31902   do
31903     if test -f "$ac_dir/Xm/Xm.h"; then
31904       ac_find_includes=$ac_dir
31905       break
31906     fi
31907   done
31908
31909         if test "$ac_find_includes" != "" ; then
31910             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31911 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31912
31913     if test "x$ac_find_includes" = "x/usr/include"; then
31914     ac_path_to_include=""
31915   else
31916     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31917     result=$?
31918     if test $result = 0; then
31919       ac_path_to_include=""
31920     else
31921       ac_path_to_include=" -I$ac_find_includes"
31922     fi
31923   fi
31924
31925             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31926         else
31927             save_CFLAGS=$CFLAGS
31928             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31929
31930             cat >conftest.$ac_ext <<_ACEOF
31931 /* confdefs.h.  */
31932 _ACEOF
31933 cat confdefs.h >>conftest.$ac_ext
31934 cat >>conftest.$ac_ext <<_ACEOF
31935 /* end confdefs.h.  */
31936
31937                     #include <Xm/Xm.h>
31938
31939 int
31940 main ()
31941 {
31942
31943                     int version;
31944                     version = xmUseVersion;
31945
31946   ;
31947   return 0;
31948 }
31949 _ACEOF
31950 rm -f conftest.$ac_objext
31951 if { (ac_try="$ac_compile"
31952 case "(($ac_try" in
31953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954   *) ac_try_echo=$ac_try;;
31955 esac
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957   (eval "$ac_compile") 2>conftest.er1
31958   ac_status=$?
31959   grep -v '^ *+' conftest.er1 >conftest.err
31960   rm -f conftest.er1
31961   cat conftest.err >&5
31962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963   (exit $ac_status); } && {
31964          test -z "$ac_c_werror_flag" ||
31965          test ! -s conftest.err
31966        } && test -s conftest.$ac_objext; then
31967
31968                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31969 echo "${ECHO_T}found in default search path" >&6; }
31970                     COMPILED_X_PROGRAM=1
31971
31972 else
31973   echo "$as_me: failed program was:" >&5
31974 sed 's/^/| /' conftest.$ac_ext >&5
31975
31976
31977                     { echo "$as_me:$LINENO: result: no" >&5
31978 echo "${ECHO_T}no" >&6; }
31979                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31980 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31981    { (exit 1); exit 1; }; }
31982
31983
31984 fi
31985
31986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31987
31988             CFLAGS=$save_CFLAGS
31989         fi
31990
31991
31992         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31993 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31994
31995   ac_find_libraries=
31996   for ac_dir in $SEARCH_LIB;
31997   do
31998     for ac_extension in a so sl dylib dll.a; do
31999       if test -f "$ac_dir/libXm.$ac_extension"; then
32000         ac_find_libraries=$ac_dir
32001         break 2
32002       fi
32003     done
32004   done
32005
32006
32007         if test "x$ac_find_libraries" != "x" ; then
32008             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32009 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32010
32011
32012     if test "$ac_find_libraries" = "default location"; then
32013     ac_path_to_link=""
32014   else
32015     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32016     result=$?
32017     if test $result = 0; then
32018       ac_path_to_link=""
32019     else
32020       ac_path_to_link=" -L$ac_find_libraries"
32021     fi
32022   fi
32023
32024             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32025         else
32026                                                 save_CFLAGS=$CFLAGS
32027             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32028             save_LIBS="$LIBS"
32029             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
32030
32031             cat >conftest.$ac_ext <<_ACEOF
32032 /* confdefs.h.  */
32033 _ACEOF
32034 cat confdefs.h >>conftest.$ac_ext
32035 cat >>conftest.$ac_ext <<_ACEOF
32036 /* end confdefs.h.  */
32037
32038                     #include <Xm/Xm.h>
32039
32040 int
32041 main ()
32042 {
32043
32044                     int version;
32045                     version = xmUseVersion;
32046
32047   ;
32048   return 0;
32049 }
32050 _ACEOF
32051 rm -f conftest.$ac_objext conftest$ac_exeext
32052 if { (ac_try="$ac_link"
32053 case "(($ac_try" in
32054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32055   *) ac_try_echo=$ac_try;;
32056 esac
32057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32058   (eval "$ac_link") 2>conftest.er1
32059   ac_status=$?
32060   grep -v '^ *+' conftest.er1 >conftest.err
32061   rm -f conftest.er1
32062   cat conftest.err >&5
32063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064   (exit $ac_status); } && {
32065          test -z "$ac_c_werror_flag" ||
32066          test ! -s conftest.err
32067        } && test -s conftest$ac_exeext &&
32068        $as_test_x conftest$ac_exeext; then
32069
32070                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32071 echo "${ECHO_T}found in default search path" >&6; }
32072                     COMPILED_X_PROGRAM=1
32073
32074 else
32075   echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32077
32078
32079                     { echo "$as_me:$LINENO: result: no" >&5
32080 echo "${ECHO_T}no" >&6; }
32081                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32082 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32083    { (exit 1); exit 1; }; }
32084
32085
32086 fi
32087
32088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32089       conftest$ac_exeext conftest.$ac_ext
32090
32091             CFLAGS=$save_CFLAGS
32092             LIBS="$save_LIBS"
32093         fi
32094
32095         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32096 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32097         libp_link=""
32098         libsm_ice_link=""
32099         libs_found=0
32100         for libp in "" " -lXp"; do
32101             if test "$libs_found" = 0; then
32102                 for libsm_ice in "" " -lSM -lICE"; do
32103                     if test "$libs_found" = 0; then
32104                         save_LIBS="$LIBS"
32105                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32106                         save_CFLAGS=$CFLAGS
32107                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32108
32109                         cat >conftest.$ac_ext <<_ACEOF
32110 /* confdefs.h.  */
32111 _ACEOF
32112 cat confdefs.h >>conftest.$ac_ext
32113 cat >>conftest.$ac_ext <<_ACEOF
32114 /* end confdefs.h.  */
32115
32116                                 #include <Xm/Xm.h>
32117                                 #include <Xm/List.h>
32118
32119 int
32120 main ()
32121 {
32122
32123                                 XmString string = NULL;
32124                                 Widget w = NULL;
32125                                 int position = 0;
32126                                 XmListAddItem(w, string, position);
32127
32128   ;
32129   return 0;
32130 }
32131 _ACEOF
32132 rm -f conftest.$ac_objext conftest$ac_exeext
32133 if { (ac_try="$ac_link"
32134 case "(($ac_try" in
32135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136   *) ac_try_echo=$ac_try;;
32137 esac
32138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139   (eval "$ac_link") 2>conftest.er1
32140   ac_status=$?
32141   grep -v '^ *+' conftest.er1 >conftest.err
32142   rm -f conftest.er1
32143   cat conftest.err >&5
32144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145   (exit $ac_status); } && {
32146          test -z "$ac_c_werror_flag" ||
32147          test ! -s conftest.err
32148        } && test -s conftest$ac_exeext &&
32149        $as_test_x conftest$ac_exeext; then
32150
32151                                 libp_link="$libp"
32152                                 libsm_ice_link="$libsm_ice"
32153                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32154 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32155                                 libs_found=1
32156
32157 else
32158   echo "$as_me: failed program was:" >&5
32159 sed 's/^/| /' conftest.$ac_ext >&5
32160
32161
32162
32163 fi
32164
32165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32166       conftest$ac_exeext conftest.$ac_ext
32167
32168                         LIBS="$save_LIBS"
32169                         CFLAGS=$save_CFLAGS
32170                     fi
32171                 done
32172             fi
32173         done
32174
32175         if test "$libs_found" = 0; then
32176             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32177 echo "${ECHO_T}can't find the right libraries" >&6; }
32178             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32179 echo "$as_me: error: can't link a simple motif program" >&2;}
32180    { (exit 1); exit 1; }; }
32181         fi
32182
32183                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32184 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32185 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32186   echo $ECHO_N "(cached) $ECHO_C" >&6
32187 else
32188   ac_check_lib_save_LIBS=$LIBS
32189 LIBS="-lSgm  $LIBS"
32190 cat >conftest.$ac_ext <<_ACEOF
32191 /* confdefs.h.  */
32192 _ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h.  */
32196
32197 /* Override any GCC internal prototype to avoid an error.
32198    Use char because int might match the return type of a GCC
32199    builtin and then its argument prototype would still apply.  */
32200 #ifdef __cplusplus
32201 extern "C"
32202 #endif
32203 char SgCreateList ();
32204 int
32205 main ()
32206 {
32207 return SgCreateList ();
32208   ;
32209   return 0;
32210 }
32211 _ACEOF
32212 rm -f conftest.$ac_objext conftest$ac_exeext
32213 if { (ac_try="$ac_link"
32214 case "(($ac_try" in
32215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216   *) ac_try_echo=$ac_try;;
32217 esac
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219   (eval "$ac_link") 2>conftest.er1
32220   ac_status=$?
32221   grep -v '^ *+' conftest.er1 >conftest.err
32222   rm -f conftest.er1
32223   cat conftest.err >&5
32224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225   (exit $ac_status); } && {
32226          test -z "$ac_c_werror_flag" ||
32227          test ! -s conftest.err
32228        } && test -s conftest$ac_exeext &&
32229        $as_test_x conftest$ac_exeext; then
32230   ac_cv_lib_Sgm_SgCreateList=yes
32231 else
32232   echo "$as_me: failed program was:" >&5
32233 sed 's/^/| /' conftest.$ac_ext >&5
32234
32235         ac_cv_lib_Sgm_SgCreateList=no
32236 fi
32237
32238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32239       conftest$ac_exeext conftest.$ac_ext
32240 LIBS=$ac_check_lib_save_LIBS
32241 fi
32242 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32243 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32244 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32245   libsgm_link=" -lSgm"
32246 fi
32247
32248
32249         save_CFLAGS=$CFLAGS
32250         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32251
32252         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32253 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32254 if test "${wx_cv_lib_motif2+set}" = set; then
32255   echo $ECHO_N "(cached) $ECHO_C" >&6
32256 else
32257   cat >conftest.$ac_ext <<_ACEOF
32258 /* confdefs.h.  */
32259 _ACEOF
32260 cat confdefs.h >>conftest.$ac_ext
32261 cat >>conftest.$ac_ext <<_ACEOF
32262 /* end confdefs.h.  */
32263
32264                             #include <Xm/Xm.h>
32265
32266 int
32267 main ()
32268 {
32269
32270                             #if XmVersion < 2000
32271                             Not Motif 2
32272                             #endif
32273
32274   ;
32275   return 0;
32276 }
32277 _ACEOF
32278 rm -f conftest.$ac_objext
32279 if { (ac_try="$ac_compile"
32280 case "(($ac_try" in
32281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282   *) ac_try_echo=$ac_try;;
32283 esac
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285   (eval "$ac_compile") 2>conftest.er1
32286   ac_status=$?
32287   grep -v '^ *+' conftest.er1 >conftest.err
32288   rm -f conftest.er1
32289   cat conftest.err >&5
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); } && {
32292          test -z "$ac_c_werror_flag" ||
32293          test ! -s conftest.err
32294        } && test -s conftest.$ac_objext; then
32295   wx_cv_lib_motif2="yes"
32296 else
32297   echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.$ac_ext >&5
32299
32300         wx_cv_lib_motif2="no"
32301 fi
32302
32303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32304 fi
32305 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32306 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32307         if test "$wx_cv_lib_motif2" = "yes"; then
32308             cat >>confdefs.h <<\_ACEOF
32309 #define __WXMOTIF20__ 1
32310 _ACEOF
32311
32312         else
32313             cat >>confdefs.h <<\_ACEOF
32314 #define __WXMOTIF20__ 0
32315 _ACEOF
32316
32317         fi
32318
32319         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32320 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32321 if test "${wx_cv_lib_lesstif+set}" = set; then
32322   echo $ECHO_N "(cached) $ECHO_C" >&6
32323 else
32324   cat >conftest.$ac_ext <<_ACEOF
32325 /* confdefs.h.  */
32326 _ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h.  */
32330
32331                             #include <Xm/Xm.h>
32332
32333 int
32334 main ()
32335 {
32336
32337                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32338                             Not Lesstif
32339                             #endif
32340
32341   ;
32342   return 0;
32343 }
32344 _ACEOF
32345 rm -f conftest.$ac_objext
32346 if { (ac_try="$ac_compile"
32347 case "(($ac_try" in
32348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32349   *) ac_try_echo=$ac_try;;
32350 esac
32351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32352   (eval "$ac_compile") 2>conftest.er1
32353   ac_status=$?
32354   grep -v '^ *+' conftest.er1 >conftest.err
32355   rm -f conftest.er1
32356   cat conftest.err >&5
32357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358   (exit $ac_status); } && {
32359          test -z "$ac_c_werror_flag" ||
32360          test ! -s conftest.err
32361        } && test -s conftest.$ac_objext; then
32362   wx_cv_lib_lesstif="yes"
32363 else
32364   echo "$as_me: failed program was:" >&5
32365 sed 's/^/| /' conftest.$ac_ext >&5
32366
32367         wx_cv_lib_lesstif="no"
32368 fi
32369
32370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32371
32372 fi
32373 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32374 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32375         if test "$wx_cv_lib_lesstif" = "yes"; then
32376             cat >>confdefs.h <<\_ACEOF
32377 #define __WXLESSTIF__ 1
32378 _ACEOF
32379
32380         else
32381             cat >>confdefs.h <<\_ACEOF
32382 #define __WXLESSTIF__ 0
32383 _ACEOF
32384
32385         fi
32386
32387         CFLAGS=$save_CFLAGS
32388
32389         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32390         TOOLKIT=MOTIF
32391         GUIDIST=MOTIF_DIST
32392     fi
32393
32394         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32395                 if test "$wxUSE_LIBXPM" = "sys"; then
32396             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32397 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32398
32399   ac_find_libraries=
32400   for ac_dir in $SEARCH_LIB;
32401   do
32402     for ac_extension in a so sl dylib dll.a; do
32403       if test -f "$ac_dir/libXpm.$ac_extension"; then
32404         ac_find_libraries=$ac_dir
32405         break 2
32406       fi
32407     done
32408   done
32409
32410             if test "$ac_find_libraries" != "" ; then
32411
32412     if test "$ac_find_libraries" = "default location"; then
32413     ac_path_to_link=""
32414   else
32415     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32416     result=$?
32417     if test $result = 0; then
32418       ac_path_to_link=""
32419     else
32420       ac_path_to_link=" -L$ac_find_libraries"
32421     fi
32422   fi
32423
32424                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32425                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32426 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32427
32428                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32429 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32430 if test "${wx_cv_x11_xpm_h+set}" = set; then
32431   echo $ECHO_N "(cached) $ECHO_C" >&6
32432 else
32433
32434                         save_CFLAGS=$CFLAGS
32435                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32436
32437                         cat >conftest.$ac_ext <<_ACEOF
32438 /* confdefs.h.  */
32439 _ACEOF
32440 cat confdefs.h >>conftest.$ac_ext
32441 cat >>conftest.$ac_ext <<_ACEOF
32442 /* end confdefs.h.  */
32443
32444                                 #include <X11/xpm.h>
32445
32446 int
32447 main ()
32448 {
32449
32450                                 int version;
32451                                 version = XpmLibraryVersion();
32452
32453   ;
32454   return 0;
32455 }
32456 _ACEOF
32457 rm -f conftest.$ac_objext
32458 if { (ac_try="$ac_compile"
32459 case "(($ac_try" in
32460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461   *) ac_try_echo=$ac_try;;
32462 esac
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464   (eval "$ac_compile") 2>conftest.er1
32465   ac_status=$?
32466   grep -v '^ *+' conftest.er1 >conftest.err
32467   rm -f conftest.er1
32468   cat conftest.err >&5
32469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470   (exit $ac_status); } && {
32471          test -z "$ac_c_werror_flag" ||
32472          test ! -s conftest.err
32473        } && test -s conftest.$ac_objext; then
32474   wx_cv_x11_xpm_h=yes
32475 else
32476   echo "$as_me: failed program was:" >&5
32477 sed 's/^/| /' conftest.$ac_ext >&5
32478
32479         wx_cv_x11_xpm_h=no
32480
32481 fi
32482
32483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32484
32485                         CFLAGS=$save_CFLAGS
32486
32487
32488 fi
32489 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32490 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32491
32492                 if test $wx_cv_x11_xpm_h = "yes"; then
32493                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32494                     cat >>confdefs.h <<\_ACEOF
32495 #define wxHAVE_LIB_XPM 1
32496 _ACEOF
32497
32498                 else
32499                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32500 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32501                 fi
32502             fi
32503
32504         fi
32505
32506                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32507 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32508 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32509   echo $ECHO_N "(cached) $ECHO_C" >&6
32510 else
32511   ac_check_lib_save_LIBS=$LIBS
32512 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32513 cat >conftest.$ac_ext <<_ACEOF
32514 /* confdefs.h.  */
32515 _ACEOF
32516 cat confdefs.h >>conftest.$ac_ext
32517 cat >>conftest.$ac_ext <<_ACEOF
32518 /* end confdefs.h.  */
32519
32520 /* Override any GCC internal prototype to avoid an error.
32521    Use char because int might match the return type of a GCC
32522    builtin and then its argument prototype would still apply.  */
32523 #ifdef __cplusplus
32524 extern "C"
32525 #endif
32526 char XShapeQueryExtension ();
32527 int
32528 main ()
32529 {
32530 return XShapeQueryExtension ();
32531   ;
32532   return 0;
32533 }
32534 _ACEOF
32535 rm -f conftest.$ac_objext conftest$ac_exeext
32536 if { (ac_try="$ac_link"
32537 case "(($ac_try" in
32538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32539   *) ac_try_echo=$ac_try;;
32540 esac
32541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32542   (eval "$ac_link") 2>conftest.er1
32543   ac_status=$?
32544   grep -v '^ *+' conftest.er1 >conftest.err
32545   rm -f conftest.er1
32546   cat conftest.err >&5
32547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548   (exit $ac_status); } && {
32549          test -z "$ac_c_werror_flag" ||
32550          test ! -s conftest.err
32551        } && test -s conftest$ac_exeext &&
32552        $as_test_x conftest$ac_exeext; then
32553   ac_cv_lib_Xext_XShapeQueryExtension=yes
32554 else
32555   echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32557
32558         ac_cv_lib_Xext_XShapeQueryExtension=no
32559 fi
32560
32561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32562       conftest$ac_exeext conftest.$ac_ext
32563 LIBS=$ac_check_lib_save_LIBS
32564 fi
32565 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32566 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32567 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32568
32569                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32570                       wxHAVE_XEXT_LIB=1
32571
32572 fi
32573
32574
32575         if test "$wxHAVE_XEXT_LIB" = 1; then
32576             save_CFLAGS="$CFLAGS"
32577             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32578
32579             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32580 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32581             cat >conftest.$ac_ext <<_ACEOF
32582 /* confdefs.h.  */
32583 _ACEOF
32584 cat confdefs.h >>conftest.$ac_ext
32585 cat >>conftest.$ac_ext <<_ACEOF
32586 /* end confdefs.h.  */
32587
32588                             #include <X11/Xlib.h>
32589                             #include <X11/extensions/shape.h>
32590
32591 int
32592 main ()
32593 {
32594
32595                             int dummy1, dummy2;
32596                             XShapeQueryExtension((Display*)NULL,
32597                                                  (int*)NULL, (int*)NULL);
32598
32599   ;
32600   return 0;
32601 }
32602 _ACEOF
32603 rm -f conftest.$ac_objext
32604 if { (ac_try="$ac_compile"
32605 case "(($ac_try" in
32606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607   *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610   (eval "$ac_compile") 2>conftest.er1
32611   ac_status=$?
32612   grep -v '^ *+' conftest.er1 >conftest.err
32613   rm -f conftest.er1
32614   cat conftest.err >&5
32615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616   (exit $ac_status); } && {
32617          test -z "$ac_c_werror_flag" ||
32618          test ! -s conftest.err
32619        } && test -s conftest.$ac_objext; then
32620
32621                             cat >>confdefs.h <<\_ACEOF
32622 #define HAVE_XSHAPE 1
32623 _ACEOF
32624
32625                             { echo "$as_me:$LINENO: result: found" >&5
32626 echo "${ECHO_T}found" >&6; }
32627
32628 else
32629   echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32631
32632
32633                             { echo "$as_me:$LINENO: result: not found" >&5
32634 echo "${ECHO_T}not found" >&6; }
32635
32636 fi
32637
32638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32639             CFLAGS="$save_CFLAGS"
32640
32641         fi
32642     fi
32643
32644     if test "$wxUSE_OSX_CARBON" = 1; then
32645         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32646 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32647         if test "$GCC" = yes; then
32648             { echo "$as_me:$LINENO: result: gcc" >&5
32649 echo "${ECHO_T}gcc" >&6; }
32650             CPPFLAGS_PASCAL="-fpascal-strings"
32651         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32652             { echo "$as_me:$LINENO: result: xlc" >&5
32653 echo "${ECHO_T}xlc" >&6; }
32654             CPPFLAGS_PASCAL="-qmacpstr"
32655         else
32656             { echo "$as_me:$LINENO: result: none" >&5
32657 echo "${ECHO_T}none" >&6; }
32658         fi
32659
32660         if test "x$wxUSE_UNIX" = "xyes"; then
32661             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32662         else
32663                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32664         fi
32665
32666         TOOLKIT=OSX_CARBON
32667                 GUIDIST=OSX_CARBON_DIST
32668                         WXBASEPORT="_carbon"
32669     fi
32670
32671     if test "$wxUSE_OSX_COCOA" = 1; then
32672         TOOLKIT=OSX_COCOA
32673         GUIDIST=OSX_COCOA_DIST
32674     fi
32675
32676     if test "$wxUSE_COCOA" = 1; then
32677         TOOLKIT=COCOA
32678         GUIDIST=COCOA_DIST
32679     fi
32680
32681     if test "$wxUSE_PM" = 1; then
32682         TOOLKIT=PM
32683         GUIDIST=PM_DIST
32684         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32685 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32686 if test "${wx_cv_spbcdata+set}" = set; then
32687   echo $ECHO_N "(cached) $ECHO_C" >&6
32688 else
32689
32690                 cat >conftest.$ac_ext <<_ACEOF
32691 /* confdefs.h.  */
32692 _ACEOF
32693 cat confdefs.h >>conftest.$ac_ext
32694 cat >>conftest.$ac_ext <<_ACEOF
32695 /* end confdefs.h.  */
32696
32697                         #define INCL_PM
32698                         #include <os2.h>
32699
32700 int
32701 main ()
32702 {
32703
32704                         SPBCDATA test;
32705
32706   ;
32707   return 0;
32708 }
32709 _ACEOF
32710 rm -f conftest.$ac_objext
32711 if { (ac_try="$ac_compile"
32712 case "(($ac_try" in
32713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714   *) ac_try_echo=$ac_try;;
32715 esac
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717   (eval "$ac_compile") 2>conftest.er1
32718   ac_status=$?
32719   grep -v '^ *+' conftest.er1 >conftest.err
32720   rm -f conftest.er1
32721   cat conftest.err >&5
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); } && {
32724          test -z "$ac_c_werror_flag" ||
32725          test ! -s conftest.err
32726        } && test -s conftest.$ac_objext; then
32727   wx_cv_spbcdata=yes
32728 else
32729   echo "$as_me: failed program was:" >&5
32730 sed 's/^/| /' conftest.$ac_ext >&5
32731
32732         wx_cv_spbcdata=no
32733
32734 fi
32735
32736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32737
32738
32739 fi
32740 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32741 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32742
32743         if test $wx_cv_spbcdata = "yes"; then
32744             cat >>confdefs.h <<\_ACEOF
32745 #define HAVE_SPBCDATA 1
32746 _ACEOF
32747
32748         fi
32749     fi
32750
32751         if test "$TOOLKIT" = "PM" ; then
32752         TOOLKIT_DIR="os2"
32753     else
32754         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32755     fi
32756
32757     if test "$wxUSE_UNIVERSAL" = "yes"; then
32758         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32759         WIDGET_SET=univ
32760     fi
32761
32762         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32763     DISTDIR="wx\$(TOOLKIT)"
32764 else
32765     USE_GUI=0
32766
32767             TOOLKIT_DIR="base"
32768
32769         if test "$USE_WIN32" = 1 ; then
32770                         TOOLKIT="MSW"
32771     fi
32772
32773         GUIDIST="BASE_DIST"
32774     DISTDIR="wxBase"
32775 fi
32776
32777
32778
32779 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32780     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32781         wxUSE_UNICODE_UTF8=yes
32782     elif test "$USE_OS2" = 1 ; then
32783                                 wxUSE_UNICODE_UTF8=yes
32784     else
32785         wxUSE_UNICODE_UTF8=no
32786     fi
32787 fi
32788
32789
32790 if test "$wxUSE_GUI" = "yes"; then
32791     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32792
32793 for ac_header in X11/Xlib.h
32794 do
32795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32799   echo $ECHO_N "(cached) $ECHO_C" >&6
32800 else
32801   cat >conftest.$ac_ext <<_ACEOF
32802 /* confdefs.h.  */
32803 _ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h.  */
32807
32808
32809 #include <$ac_header>
32810 _ACEOF
32811 rm -f conftest.$ac_objext
32812 if { (ac_try="$ac_compile"
32813 case "(($ac_try" in
32814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32815   *) ac_try_echo=$ac_try;;
32816 esac
32817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32818   (eval "$ac_compile") 2>conftest.er1
32819   ac_status=$?
32820   grep -v '^ *+' conftest.er1 >conftest.err
32821   rm -f conftest.er1
32822   cat conftest.err >&5
32823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824   (exit $ac_status); } && {
32825          test -z "$ac_c_werror_flag" ||
32826          test ! -s conftest.err
32827        } && test -s conftest.$ac_objext; then
32828   eval "$as_ac_Header=yes"
32829 else
32830   echo "$as_me: failed program was:" >&5
32831 sed 's/^/| /' conftest.$ac_ext >&5
32832
32833         eval "$as_ac_Header=no"
32834 fi
32835
32836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32837 fi
32838 ac_res=`eval echo '${'$as_ac_Header'}'`
32839                { echo "$as_me:$LINENO: result: $ac_res" >&5
32840 echo "${ECHO_T}$ac_res" >&6; }
32841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32842   cat >>confdefs.h <<_ACEOF
32843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32844 _ACEOF
32845
32846 fi
32847
32848 done
32849
32850
32851 for ac_header in X11/XKBlib.h
32852 do
32853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32857   echo $ECHO_N "(cached) $ECHO_C" >&6
32858 else
32859   cat >conftest.$ac_ext <<_ACEOF
32860 /* confdefs.h.  */
32861 _ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h.  */
32865
32866                           #if HAVE_X11_XLIB_H
32867                             #include <X11/Xlib.h>
32868                           #endif
32869
32870
32871 #include <$ac_header>
32872 _ACEOF
32873 rm -f conftest.$ac_objext
32874 if { (ac_try="$ac_compile"
32875 case "(($ac_try" in
32876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877   *) ac_try_echo=$ac_try;;
32878 esac
32879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880   (eval "$ac_compile") 2>conftest.er1
32881   ac_status=$?
32882   grep -v '^ *+' conftest.er1 >conftest.err
32883   rm -f conftest.er1
32884   cat conftest.err >&5
32885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); } && {
32887          test -z "$ac_c_werror_flag" ||
32888          test ! -s conftest.err
32889        } && test -s conftest.$ac_objext; then
32890   eval "$as_ac_Header=yes"
32891 else
32892   echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895         eval "$as_ac_Header=no"
32896 fi
32897
32898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32899 fi
32900 ac_res=`eval echo '${'$as_ac_Header'}'`
32901                { echo "$as_me:$LINENO: result: $ac_res" >&5
32902 echo "${ECHO_T}$ac_res" >&6; }
32903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32904   cat >>confdefs.h <<_ACEOF
32905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32906 _ACEOF
32907
32908 fi
32909
32910 done
32911
32912     fi
32913 fi
32914
32915
32916
32917 if test "$wxUSE_DISPLAY" = "yes"; then
32918     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32919         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32920 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32921
32922   ac_find_libraries=
32923   for ac_dir in $SEARCH_LIB;
32924   do
32925     for ac_extension in a so sl dylib dll.a; do
32926       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32927         ac_find_libraries=$ac_dir
32928         break 2
32929       fi
32930     done
32931   done
32932
32933         if test "$ac_find_libraries" != "" ; then
32934
32935     if test "$ac_find_libraries" = "default location"; then
32936     ac_path_to_link=""
32937   else
32938     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32939     result=$?
32940     if test $result = 0; then
32941       ac_path_to_link=""
32942     else
32943       ac_path_to_link=" -L$ac_find_libraries"
32944     fi
32945   fi
32946
32947             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32948                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32949             fi
32950             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32951             { echo "$as_me:$LINENO: result: yes" >&5
32952 echo "${ECHO_T}yes" >&6; }
32953
32954             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32955 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32956
32957   ac_find_libraries=
32958   for ac_dir in $SEARCH_LIB;
32959   do
32960     for ac_extension in a so sl dylib dll.a; do
32961       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32962         ac_find_libraries=$ac_dir
32963         break 2
32964       fi
32965     done
32966   done
32967
32968             if test "$ac_find_libraries" != "" ; then
32969                 { echo "$as_me:$LINENO: result: yes" >&5
32970 echo "${ECHO_T}yes" >&6; }
32971
32972 for ac_header in X11/extensions/xf86vmode.h
32973 do
32974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32978   echo $ECHO_N "(cached) $ECHO_C" >&6
32979 else
32980   cat >conftest.$ac_ext <<_ACEOF
32981 /* confdefs.h.  */
32982 _ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h.  */
32986
32987                                       #if HAVE_X11_XLIB_H
32988                                         #include <X11/Xlib.h>
32989                                       #endif
32990
32991
32992 #include <$ac_header>
32993 _ACEOF
32994 rm -f conftest.$ac_objext
32995 if { (ac_try="$ac_compile"
32996 case "(($ac_try" in
32997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32998   *) ac_try_echo=$ac_try;;
32999 esac
33000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33001   (eval "$ac_compile") 2>conftest.er1
33002   ac_status=$?
33003   grep -v '^ *+' conftest.er1 >conftest.err
33004   rm -f conftest.er1
33005   cat conftest.err >&5
33006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007   (exit $ac_status); } && {
33008          test -z "$ac_c_werror_flag" ||
33009          test ! -s conftest.err
33010        } && test -s conftest.$ac_objext; then
33011   eval "$as_ac_Header=yes"
33012 else
33013   echo "$as_me: failed program was:" >&5
33014 sed 's/^/| /' conftest.$ac_ext >&5
33015
33016         eval "$as_ac_Header=no"
33017 fi
33018
33019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33020 fi
33021 ac_res=`eval echo '${'$as_ac_Header'}'`
33022                { echo "$as_me:$LINENO: result: $ac_res" >&5
33023 echo "${ECHO_T}$ac_res" >&6; }
33024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33025   cat >>confdefs.h <<_ACEOF
33026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33027 _ACEOF
33028
33029                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33030
33031 fi
33032
33033 done
33034
33035             else
33036                 { echo "$as_me:$LINENO: result: no" >&5
33037 echo "${ECHO_T}no" >&6; }
33038             fi
33039
33040         else
33041             { echo "$as_me:$LINENO: result: no" >&5
33042 echo "${ECHO_T}no" >&6; }
33043             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33044 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33045             wxUSE_DISPLAY="no"
33046         fi
33047     elif test "$wxUSE_MSW" = 1; then
33048         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
33049 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
33050 if test "${ac_cv_header_ddraw_h+set}" = set; then
33051   echo $ECHO_N "(cached) $ECHO_C" >&6
33052 else
33053   cat >conftest.$ac_ext <<_ACEOF
33054 /* confdefs.h.  */
33055 _ACEOF
33056 cat confdefs.h >>conftest.$ac_ext
33057 cat >>conftest.$ac_ext <<_ACEOF
33058 /* end confdefs.h.  */
33059 #include <windows.h>
33060
33061 #include <ddraw.h>
33062 _ACEOF
33063 rm -f conftest.$ac_objext
33064 if { (ac_try="$ac_compile"
33065 case "(($ac_try" in
33066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067   *) ac_try_echo=$ac_try;;
33068 esac
33069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070   (eval "$ac_compile") 2>conftest.er1
33071   ac_status=$?
33072   grep -v '^ *+' conftest.er1 >conftest.err
33073   rm -f conftest.er1
33074   cat conftest.err >&5
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); } && {
33077          test -z "$ac_c_werror_flag" ||
33078          test ! -s conftest.err
33079        } && test -s conftest.$ac_objext; then
33080   ac_cv_header_ddraw_h=yes
33081 else
33082   echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33084
33085         ac_cv_header_ddraw_h=no
33086 fi
33087
33088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33089 fi
33090 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33091 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33092
33093
33094     fi
33095 fi
33096
33097 if test "$wxUSE_DETECT_SM" = "yes"; then
33098     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33099         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33100 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33101
33102   ac_find_libraries=
33103   for ac_dir in $SEARCH_LIB;
33104   do
33105     for ac_extension in a so sl dylib dll.a; do
33106       if test -f "$ac_dir/libSM.$ac_extension"; then
33107         ac_find_libraries=$ac_dir
33108         break 2
33109       fi
33110     done
33111   done
33112
33113         if test "$ac_find_libraries" != "" ; then
33114
33115     if test "$ac_find_libraries" = "default location"; then
33116     ac_path_to_link=""
33117   else
33118     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33119     result=$?
33120     if test $result = 0; then
33121       ac_path_to_link=""
33122     else
33123       ac_path_to_link=" -L$ac_find_libraries"
33124     fi
33125   fi
33126
33127             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33128                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33129             fi
33130             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33131             { echo "$as_me:$LINENO: result: yes" >&5
33132 echo "${ECHO_T}yes" >&6; }
33133         else
33134             { echo "$as_me:$LINENO: result: no" >&5
33135 echo "${ECHO_T}no" >&6; }
33136             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33137 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33138             wxUSE_DETECT_SM="no"
33139         fi
33140     else
33141         wxUSE_DETECT_SM="no"
33142     fi
33143 fi
33144
33145
33146
33147 USE_OPENGL=0
33148 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33149
33150
33151     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33152         OPENGL_LIBS="-framework OpenGL -framework AGL"
33153     elif test "$wxUSE_MSW" = 1; then
33154         OPENGL_LIBS="-lopengl32 -lglu32"
33155     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33156
33157                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33158 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33159
33160 ac_find_includes=
33161 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33162   do
33163     if test -f "$ac_dir/GL/gl.h"; then
33164       ac_find_includes=$ac_dir
33165       break
33166     fi
33167   done
33168
33169         if test "$ac_find_includes" != "" ; then
33170             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33171 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33172
33173     if test "x$ac_find_includes" = "x/usr/include"; then
33174     ac_path_to_include=""
33175   else
33176     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33177     result=$?
33178     if test $result = 0; then
33179       ac_path_to_include=""
33180     else
33181       ac_path_to_include=" -I$ac_find_includes"
33182     fi
33183   fi
33184
33185             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33186         else
33187             { echo "$as_me:$LINENO: result: not found" >&5
33188 echo "${ECHO_T}not found" >&6; }
33189         fi
33190
33191         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33192 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33193 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33194   echo $ECHO_N "(cached) $ECHO_C" >&6
33195 else
33196   cat >conftest.$ac_ext <<_ACEOF
33197 /* confdefs.h.  */
33198 _ACEOF
33199 cat confdefs.h >>conftest.$ac_ext
33200 cat >>conftest.$ac_ext <<_ACEOF
33201 /* end confdefs.h.  */
33202
33203
33204 #include <GL/gl.h>
33205 _ACEOF
33206 rm -f conftest.$ac_objext
33207 if { (ac_try="$ac_compile"
33208 case "(($ac_try" in
33209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33210   *) ac_try_echo=$ac_try;;
33211 esac
33212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33213   (eval "$ac_compile") 2>conftest.er1
33214   ac_status=$?
33215   grep -v '^ *+' conftest.er1 >conftest.err
33216   rm -f conftest.er1
33217   cat conftest.err >&5
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); } && {
33220          test -z "$ac_c_werror_flag" ||
33221          test ! -s conftest.err
33222        } && test -s conftest.$ac_objext; then
33223   ac_cv_header_GL_gl_h=yes
33224 else
33225   echo "$as_me: failed program was:" >&5
33226 sed 's/^/| /' conftest.$ac_ext >&5
33227
33228         ac_cv_header_GL_gl_h=no
33229 fi
33230
33231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33232 fi
33233 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33234 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33235 if test $ac_cv_header_GL_gl_h = yes; then
33236
33237             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33238 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33239 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33240   echo $ECHO_N "(cached) $ECHO_C" >&6
33241 else
33242   cat >conftest.$ac_ext <<_ACEOF
33243 /* confdefs.h.  */
33244 _ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h.  */
33248
33249
33250 #include <GL/glu.h>
33251 _ACEOF
33252 rm -f conftest.$ac_objext
33253 if { (ac_try="$ac_compile"
33254 case "(($ac_try" in
33255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256   *) ac_try_echo=$ac_try;;
33257 esac
33258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33259   (eval "$ac_compile") 2>conftest.er1
33260   ac_status=$?
33261   grep -v '^ *+' conftest.er1 >conftest.err
33262   rm -f conftest.er1
33263   cat conftest.err >&5
33264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265   (exit $ac_status); } && {
33266          test -z "$ac_c_werror_flag" ||
33267          test ! -s conftest.err
33268        } && test -s conftest.$ac_objext; then
33269   ac_cv_header_GL_glu_h=yes
33270 else
33271   echo "$as_me: failed program was:" >&5
33272 sed 's/^/| /' conftest.$ac_ext >&5
33273
33274         ac_cv_header_GL_glu_h=no
33275 fi
33276
33277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33278 fi
33279 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33280 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33281 if test $ac_cv_header_GL_glu_h = yes; then
33282
33283                 found_gl=0
33284
33285                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33286 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33287
33288   ac_find_libraries=
33289   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33290   do
33291     for ac_extension in a so sl dylib dll.a; do
33292       if test -f "$ac_dir/libGL.$ac_extension"; then
33293         ac_find_libraries=$ac_dir
33294         break 2
33295       fi
33296     done
33297   done
33298
33299                 if test "$ac_find_libraries" != "" ; then
33300                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33301 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33302
33303
33304     if test "$ac_find_libraries" = "default location"; then
33305     ac_path_to_link=""
33306   else
33307     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33308     result=$?
33309     if test $result = 0; then
33310       ac_path_to_link=""
33311     else
33312       ac_path_to_link=" -L$ac_find_libraries"
33313     fi
33314   fi
33315
33316                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33317                         LDFLAGS_GL="$ac_path_to_link"
33318                     fi
33319
33320                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33321 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33322
33323   ac_find_libraries=
33324   for ac_dir in $SEARCH_LIB;
33325   do
33326     for ac_extension in a so sl dylib dll.a; do
33327       if test -f "$ac_dir/libGLU.$ac_extension"; then
33328         ac_find_libraries=$ac_dir
33329         break 2
33330       fi
33331     done
33332   done
33333
33334                     if test "$ac_find_libraries" != "" ; then
33335
33336     if test "$ac_find_libraries" = "default location"; then
33337     ac_path_to_link=""
33338   else
33339     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33340     result=$?
33341     if test $result = 0; then
33342       ac_path_to_link=""
33343     else
33344       ac_path_to_link=" -L$ac_find_libraries"
33345     fi
33346   fi
33347
33348                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33349                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33350                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33351                         fi
33352
33353                         found_gl=1
33354                         OPENGL_LIBS="-lGL -lGLU"
33355                         { echo "$as_me:$LINENO: result: yes" >&5
33356 echo "${ECHO_T}yes" >&6; }
33357                     else
33358                         { echo "$as_me:$LINENO: result: no" >&5
33359 echo "${ECHO_T}no" >&6; }
33360                     fi
33361                 else
33362                     { echo "$as_me:$LINENO: result: no" >&5
33363 echo "${ECHO_T}no" >&6; }
33364                 fi
33365
33366                 if test "$found_gl" != 1; then
33367                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33368 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33369
33370   ac_find_libraries=
33371   for ac_dir in $SEARCH_LIB;
33372   do
33373     for ac_extension in a so sl dylib dll.a; do
33374       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33375         ac_find_libraries=$ac_dir
33376         break 2
33377       fi
33378     done
33379   done
33380
33381                     if test "$ac_find_libraries" != "" ; then
33382
33383     if test "$ac_find_libraries" = "default location"; then
33384     ac_path_to_link=""
33385   else
33386     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33387     result=$?
33388     if test $result = 0; then
33389       ac_path_to_link=""
33390     else
33391       ac_path_to_link=" -L$ac_find_libraries"
33392     fi
33393   fi
33394
33395                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33396                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33397                         { echo "$as_me:$LINENO: result: yes" >&5
33398 echo "${ECHO_T}yes" >&6; }
33399                     else
33400                         { echo "$as_me:$LINENO: result: no" >&5
33401 echo "${ECHO_T}no" >&6; }
33402                     fi
33403                 fi
33404
33405 fi
33406
33407
33408
33409 fi
33410
33411
33412
33413         if test "x$OPENGL_LIBS" = "x"; then
33414             if test "$wxUSE_OPENGL" = "yes"; then
33415                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33416 echo "$as_me: error: OpenGL libraries not available" >&2;}
33417    { (exit 1); exit 1; }; }
33418             else
33419                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33420 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
33421                 wxUSE_OPENGL=no
33422                 USE_OPENGL=0
33423             fi
33424         fi
33425     else
33426         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33427 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33428         wxUSE_OPENGL="no"
33429     fi
33430
33431     if test "$wxUSE_OPENGL" = "auto"; then
33432                                 wxUSE_OPENGL=yes
33433     fi
33434
33435     if test "$wxUSE_OPENGL" = "yes"; then
33436         USE_OPENGL=1
33437         cat >>confdefs.h <<\_ACEOF
33438 #define wxUSE_OPENGL 1
33439 _ACEOF
33440
33441         cat >>confdefs.h <<\_ACEOF
33442 #define wxUSE_GLCANVAS 1
33443 _ACEOF
33444
33445         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33446     fi
33447 fi
33448
33449
33450 if test -n "$TOOLKIT" ; then
33451     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33452 fi
33453
33454
33455
33456 if test "$wxUSE_SHARED" = "yes"; then
33457     case "${host}" in
33458       *-pc-msdosdjgpp )
33459                 wxUSE_SHARED=no
33460         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33461 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33462       ;;
33463     esac
33464 fi
33465
33466 if test "$wxUSE_SHARED" = "yes"; then
33467
33468
33469     case "${host}" in
33470         *-*-cygwin* | *-*-mingw* )
33471                                                                                                 wx_cv_version_script=no
33472             ;;
33473
33474         *)
33475             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33476 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33477 if test "${wx_cv_version_script+set}" = set; then
33478   echo $ECHO_N "(cached) $ECHO_C" >&6
33479 else
33480
33481                 echo "VER_1 { *; };" >conftest.sym
33482                 echo "int main() { return 0; }" >conftest.cpp
33483
33484                 if { ac_try='
33485                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33486                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33488   (eval $ac_try) 2>&5
33489   ac_status=$?
33490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491   (exit $ac_status); }; } ; then
33492                   if test -s conftest.stderr ; then
33493                       wx_cv_version_script=no
33494                   else
33495                       wx_cv_version_script=yes
33496                   fi
33497                 else
33498                   wx_cv_version_script=no
33499                 fi
33500
33501                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33502                 then
33503                   echo "struct B { virtual ~B() { } }; \
33504                         struct D : public B { }; \
33505                         void F() { D d; }" > conftest.cpp
33506
33507                   if { ac_try='
33508                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33509                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33511   (eval $ac_try) 2>&5
33512   ac_status=$?
33513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514   (exit $ac_status); }; } &&
33515                      { ac_try='
33516                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33517                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519   (eval $ac_try) 2>&5
33520   ac_status=$?
33521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522   (exit $ac_status); }; }
33523                   then
33524                     if { ac_try='
33525                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33526                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528   (eval $ac_try) 2>&5
33529   ac_status=$?
33530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531   (exit $ac_status); }; }
33532                     then
33533                       wx_cv_version_script=yes
33534                     else
33535                       wx_cv_version_script=no
33536                     fi
33537                   fi
33538                 fi
33539
33540                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33541                 rm -f conftest1.output conftest2.output conftest3.output
33542
33543 fi
33544 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33545 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33546
33547             if test $wx_cv_version_script = yes ; then
33548                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33549             fi
33550             ;;
33551     esac
33552
33553
33554             if test "$wxUSE_VISIBILITY" != "no"; then
33555
33556
33557   if test -n "$GCC"; then
33558     CFLAGS_VISIBILITY="-fvisibility=hidden"
33559     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33560     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33561 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33562     if test "${wx_cv_cc_visibility+set}" = set; then
33563   echo $ECHO_N "(cached) $ECHO_C" >&6
33564 else
33565
33566       wx_save_CXXFLAGS="$CXXFLAGS"
33567       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33568       ac_ext=cpp
33569 ac_cpp='$CXXCPP $CPPFLAGS'
33570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33573
33574       cat >conftest.$ac_ext <<_ACEOF
33575 /* confdefs.h.  */
33576 _ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h.  */
33580
33581          /* we need gcc >= 4.0, older versions with visibility support
33582             didn't have class visibility: */
33583          #if defined(__GNUC__) && __GNUC__ < 4
33584          error this gcc is too old;
33585          #endif
33586
33587          /* visibility only makes sense for ELF shared libs: */
33588          #if !defined(__ELF__) && !defined(__APPLE__)
33589          error this platform has no visibility;
33590          #endif
33591
33592          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33593          extern __attribute__((__visibility__("default"))) int exportedvar;
33594          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33595          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33596          class __attribute__((__visibility__("default"))) Foo {
33597            Foo() {}
33598          };
33599
33600 int
33601 main ()
33602 {
33603
33604   ;
33605   return 0;
33606 }
33607 _ACEOF
33608 rm -f conftest.$ac_objext
33609 if { (ac_try="$ac_compile"
33610 case "(($ac_try" in
33611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612   *) ac_try_echo=$ac_try;;
33613 esac
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615   (eval "$ac_compile") 2>conftest.er1
33616   ac_status=$?
33617   grep -v '^ *+' conftest.er1 >conftest.err
33618   rm -f conftest.er1
33619   cat conftest.err >&5
33620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621   (exit $ac_status); } && {
33622          test -z "$ac_cxx_werror_flag" ||
33623          test ! -s conftest.err
33624        } && test -s conftest.$ac_objext; then
33625   wx_cv_cc_visibility=yes
33626 else
33627   echo "$as_me: failed program was:" >&5
33628 sed 's/^/| /' conftest.$ac_ext >&5
33629
33630         wx_cv_cc_visibility=no
33631 fi
33632
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33634       ac_ext=c
33635 ac_cpp='$CPP $CPPFLAGS'
33636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33639
33640       CXXFLAGS="$wx_save_CXXFLAGS"
33641 fi
33642
33643     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33644 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33645     if test $wx_cv_cc_visibility = yes; then
33646                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33647 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33648       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33649   echo $ECHO_N "(cached) $ECHO_C" >&6
33650 else
33651
33652         wx_save_CXXFLAGS="$CXXFLAGS"
33653         wx_save_LDFLAGS="$LDFLAGS"
33654         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33655         LDFLAGS="$LDFLAGS -shared -fPIC"
33656         ac_ext=cpp
33657 ac_cpp='$CXXCPP $CPPFLAGS'
33658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33661
33662         cat >conftest.$ac_ext <<_ACEOF
33663 /* confdefs.h.  */
33664 _ACEOF
33665 cat confdefs.h >>conftest.$ac_ext
33666 cat >>conftest.$ac_ext <<_ACEOF
33667 /* end confdefs.h.  */
33668
33669             #include <string>
33670
33671 int
33672 main ()
33673 {
33674
33675             std::string s("hello");
33676             return s.length();
33677
33678   ;
33679   return 0;
33680 }
33681 _ACEOF
33682 rm -f conftest.$ac_objext conftest$ac_exeext
33683 if { (ac_try="$ac_link"
33684 case "(($ac_try" in
33685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686   *) ac_try_echo=$ac_try;;
33687 esac
33688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689   (eval "$ac_link") 2>conftest.er1
33690   ac_status=$?
33691   grep -v '^ *+' conftest.er1 >conftest.err
33692   rm -f conftest.er1
33693   cat conftest.err >&5
33694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695   (exit $ac_status); } && {
33696          test -z "$ac_cxx_werror_flag" ||
33697          test ! -s conftest.err
33698        } && test -s conftest$ac_exeext &&
33699        $as_test_x conftest$ac_exeext; then
33700   wx_cv_cc_broken_libstdcxx_visibility=no
33701 else
33702   echo "$as_me: failed program was:" >&5
33703 sed 's/^/| /' conftest.$ac_ext >&5
33704
33705         wx_cv_cc_broken_libstdcxx_visibility=yes
33706 fi
33707
33708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33709       conftest$ac_exeext conftest.$ac_ext
33710         ac_ext=c
33711 ac_cpp='$CPP $CPPFLAGS'
33712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33715
33716         CXXFLAGS="$wx_save_CXXFLAGS"
33717         LDFLAGS="$wx_save_LDFLAGS"
33718 fi
33719
33720       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33721 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33722
33723       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33724         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33725 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33726         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33727   echo $ECHO_N "(cached) $ECHO_C" >&6
33728 else
33729
33730           ac_ext=cpp
33731 ac_cpp='$CXXCPP $CPPFLAGS'
33732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33735
33736           cat >conftest.$ac_ext <<_ACEOF
33737 /* confdefs.h.  */
33738 _ACEOF
33739 cat confdefs.h >>conftest.$ac_ext
33740 cat >>conftest.$ac_ext <<_ACEOF
33741 /* end confdefs.h.  */
33742
33743               #pragma GCC visibility push(default)
33744               #include <string>
33745               #pragma GCC visibility pop
33746
33747 int
33748 main ()
33749 {
33750
33751               std::string s("hello");
33752               return s.length();
33753
33754   ;
33755   return 0;
33756 }
33757 _ACEOF
33758 rm -f conftest.$ac_objext conftest$ac_exeext
33759 if { (ac_try="$ac_link"
33760 case "(($ac_try" in
33761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762   *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765   (eval "$ac_link") 2>conftest.er1
33766   ac_status=$?
33767   grep -v '^ *+' conftest.er1 >conftest.err
33768   rm -f conftest.er1
33769   cat conftest.err >&5
33770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771   (exit $ac_status); } && {
33772          test -z "$ac_cxx_werror_flag" ||
33773          test ! -s conftest.err
33774        } && test -s conftest$ac_exeext &&
33775        $as_test_x conftest$ac_exeext; then
33776   wx_cv_cc_visibility_workaround=no
33777 else
33778   echo "$as_me: failed program was:" >&5
33779 sed 's/^/| /' conftest.$ac_ext >&5
33780
33781         wx_cv_cc_visibility_workaround=yes
33782 fi
33783
33784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33785       conftest$ac_exeext conftest.$ac_ext
33786           ac_ext=c
33787 ac_cpp='$CPP $CPPFLAGS'
33788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33791
33792
33793 fi
33794
33795         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33796 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33797
33798         if test $wx_cv_cc_visibility_workaround = no; then
33799                     wx_cv_cc_visibility=no
33800         fi
33801       fi
33802     fi
33803
33804     if test $wx_cv_cc_visibility = yes; then
33805       cat >>confdefs.h <<\_ACEOF
33806 #define HAVE_VISIBILITY 1
33807 _ACEOF
33808
33809       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33810         cat >>confdefs.h <<\_ACEOF
33811 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33812 _ACEOF
33813
33814       fi
33815     else
33816       CFLAGS_VISIBILITY=""
33817       CXXFLAGS_VISIBILITY=""
33818     fi
33819
33820
33821   fi
33822
33823     fi
33824
33825         if test "x$SUNCXX" = xyes; then
33826         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33827         WXCONFIG_RPATH="-R\$libdir"
33828     else
33829     case "${host}" in
33830       *-*-linux* | *-*-gnu* )
33831         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33832         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33833         ;;
33834
33835       *-*-solaris2* )
33836
33837                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33838
33839                         saveLdflags="$LDFLAGS"
33840         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33841         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33842 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33843         cat >conftest.$ac_ext <<_ACEOF
33844 /* confdefs.h.  */
33845 _ACEOF
33846 cat confdefs.h >>conftest.$ac_ext
33847 cat >>conftest.$ac_ext <<_ACEOF
33848 /* end confdefs.h.  */
33849
33850 int
33851 main ()
33852 {
33853
33854   ;
33855   return 0;
33856 }
33857 _ACEOF
33858 rm -f conftest.$ac_objext conftest$ac_exeext
33859 if { (ac_try="$ac_link"
33860 case "(($ac_try" in
33861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33862   *) ac_try_echo=$ac_try;;
33863 esac
33864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33865   (eval "$ac_link") 2>conftest.er1
33866   ac_status=$?
33867   grep -v '^ *+' conftest.er1 >conftest.err
33868   rm -f conftest.er1
33869   cat conftest.err >&5
33870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871   (exit $ac_status); } && {
33872          test -z "$ac_c_werror_flag" ||
33873          test ! -s conftest.err
33874        } && test -s conftest$ac_exeext &&
33875        $as_test_x conftest$ac_exeext; then
33876
33877                 { echo "$as_me:$LINENO: result: yes" >&5
33878 echo "${ECHO_T}yes" >&6; }
33879                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33880                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33881
33882 else
33883   echo "$as_me: failed program was:" >&5
33884 sed 's/^/| /' conftest.$ac_ext >&5
33885
33886
33887                 { echo "$as_me:$LINENO: result: no" >&5
33888 echo "${ECHO_T}no" >&6; }
33889                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33890 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33891                 LDFLAGS="$saveLdflags -Wl,-R,/"
33892                 cat >conftest.$ac_ext <<_ACEOF
33893 /* confdefs.h.  */
33894 _ACEOF
33895 cat confdefs.h >>conftest.$ac_ext
33896 cat >>conftest.$ac_ext <<_ACEOF
33897 /* end confdefs.h.  */
33898
33899 int
33900 main ()
33901 {
33902
33903   ;
33904   return 0;
33905 }
33906 _ACEOF
33907 rm -f conftest.$ac_objext conftest$ac_exeext
33908 if { (ac_try="$ac_link"
33909 case "(($ac_try" in
33910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33911   *) ac_try_echo=$ac_try;;
33912 esac
33913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33914   (eval "$ac_link") 2>conftest.er1
33915   ac_status=$?
33916   grep -v '^ *+' conftest.er1 >conftest.err
33917   rm -f conftest.er1
33918   cat conftest.err >&5
33919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920   (exit $ac_status); } && {
33921          test -z "$ac_c_werror_flag" ||
33922          test ! -s conftest.err
33923        } && test -s conftest$ac_exeext &&
33924        $as_test_x conftest$ac_exeext; then
33925
33926                         { echo "$as_me:$LINENO: result: yes" >&5
33927 echo "${ECHO_T}yes" >&6; }
33928                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33929                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33930
33931 else
33932   echo "$as_me: failed program was:" >&5
33933 sed 's/^/| /' conftest.$ac_ext >&5
33934
33935
33936                         { echo "$as_me:$LINENO: result: no" >&5
33937 echo "${ECHO_T}no" >&6; }
33938
33939 fi
33940
33941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33942       conftest$ac_exeext conftest.$ac_ext
33943
33944 fi
33945
33946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33947       conftest$ac_exeext conftest.$ac_ext
33948         LDFLAGS="$saveLdflags"
33949       ;;
33950
33951       *-*-darwin* )
33952         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
33953         if test "$install_name_tool" -a -x "$install_name_tool"; then
33954             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
33955             cat <<EOF >change-install-names
33956 #!/bin/sh
33957 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33958 for i in \${libnames} ; do
33959     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
33960     for dep in \${libnames} ; do
33961         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
33962     done
33963 done
33964 EOF
33965             chmod +x change-install-names
33966             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
33967         fi
33968
33969                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
33970       ;;
33971
33972       *-*-cygwin* | *-*-mingw32* )
33973         ;;
33974
33975       *-*-hpux* )
33976         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33977         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33978         ;;
33979
33980     esac
33981     fi
33982
33983             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33984
33985     if test $wxUSE_RPATH = "no"; then
33986         SAMPLES_RPATH_FLAG=''
33987         DYLIB_PATH_POSTLINK=''
33988         WXCONFIG_RPATH=''
33989     fi
33990
33991     SHARED=1
33992
33993 else
33994
33995     config_linkage_component="-static"
33996     SHARED=0
33997
33998 fi
33999
34000
34001 UNICODE=0
34002 lib_unicode_suffix=
34003 WX_CHARTYPE="ansi"
34004 if test "$wxUSE_UNICODE" = "yes"; then
34005     lib_unicode_suffix=u
34006     WX_CHARTYPE="unicode"
34007     UNICODE=1
34008 fi
34009
34010 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34011 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
34012
34013 DEBUG_INFO=0
34014 if test "$wxUSE_DEBUG_INFO" = "yes"; then
34015     DEBUG_INFO=1
34016 fi
34017
34018 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
34019
34020 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
34021
34022 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
34023
34024
34025 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
34026     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34027 else
34028     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34029 fi
34030 if test "${TOOLKIT_DIR}" = "os2"; then
34031     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34032 else
34033     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34034 fi
34035
34036
34037
34038 if test "$wxUSE_COCOA" = 1; then
34039
34040     ac_ext=c
34041 ac_cpp='$CPP $CPPFLAGS'
34042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34045
34046 ac_ext=m
34047
34048     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34049 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
34050     cat >conftest.$ac_ext <<_ACEOF
34051 /* confdefs.h.  */
34052 _ACEOF
34053 cat confdefs.h >>conftest.$ac_ext
34054 cat >>conftest.$ac_ext <<_ACEOF
34055 /* end confdefs.h.  */
34056 #include <AppKit/NSEvent.h>
34057 #include <CoreFoundation/CoreFoundation.h>
34058
34059 int
34060 main ()
34061 {
34062
34063   ;
34064   return 0;
34065 }
34066 _ACEOF
34067 rm -f conftest.$ac_objext
34068 if { (ac_try="$ac_compile"
34069 case "(($ac_try" in
34070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071   *) ac_try_echo=$ac_try;;
34072 esac
34073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34074   (eval "$ac_compile") 2>conftest.er1
34075   ac_status=$?
34076   grep -v '^ *+' conftest.er1 >conftest.err
34077   rm -f conftest.er1
34078   cat conftest.err >&5
34079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080   (exit $ac_status); } && {
34081          test -z "$ac_c_werror_flag" ||
34082          test ! -s conftest.err
34083        } && test -s conftest.$ac_objext; then
34084   { echo "$as_me:$LINENO: result: no" >&5
34085 echo "${ECHO_T}no" >&6; }
34086 else
34087   echo "$as_me: failed program was:" >&5
34088 sed 's/^/| /' conftest.$ac_ext >&5
34089
34090         { echo "$as_me:$LINENO: result: yes" >&5
34091 echo "${ECHO_T}yes" >&6; }
34092         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34093 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34094         cat >conftest.$ac_ext <<_ACEOF
34095 /* confdefs.h.  */
34096 _ACEOF
34097 cat confdefs.h >>conftest.$ac_ext
34098 cat >>conftest.$ac_ext <<_ACEOF
34099 /* end confdefs.h.  */
34100 #define __Point__ 1
34101 #include <AppKit/NSEvent.h>
34102 #include <CoreFoundation/CoreFoundation.h>
34103
34104 int
34105 main ()
34106 {
34107
34108   ;
34109   return 0;
34110 }
34111 _ACEOF
34112 rm -f conftest.$ac_objext
34113 if { (ac_try="$ac_compile"
34114 case "(($ac_try" in
34115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34116   *) ac_try_echo=$ac_try;;
34117 esac
34118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34119   (eval "$ac_compile") 2>conftest.er1
34120   ac_status=$?
34121   grep -v '^ *+' conftest.er1 >conftest.err
34122   rm -f conftest.er1
34123   cat conftest.err >&5
34124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125   (exit $ac_status); } && {
34126          test -z "$ac_c_werror_flag" ||
34127          test ! -s conftest.err
34128        } && test -s conftest.$ac_objext; then
34129   { echo "$as_me:$LINENO: result: yes" >&5
34130 echo "${ECHO_T}yes" >&6; }
34131             cat >>confdefs.h <<\_ACEOF
34132 #define __Point__ 1
34133 _ACEOF
34134
34135
34136 else
34137   echo "$as_me: failed program was:" >&5
34138 sed 's/^/| /' conftest.$ac_ext >&5
34139
34140         { { echo "$as_me:$LINENO: error: no
34141 See \`config.log' for more details." >&5
34142 echo "$as_me: error: no
34143 See \`config.log' for more details." >&2;}
34144    { (exit 1); exit 1; }; }
34145
34146 fi
34147
34148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34149
34150 fi
34151
34152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34153     ac_ext=c
34154 ac_cpp='$CPP $CPPFLAGS'
34155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34158
34159 fi
34160
34161
34162 { echo "$as_me:$LINENO: checking for mode_t" >&5
34163 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34164 if test "${ac_cv_type_mode_t+set}" = set; then
34165   echo $ECHO_N "(cached) $ECHO_C" >&6
34166 else
34167   cat >conftest.$ac_ext <<_ACEOF
34168 /* confdefs.h.  */
34169 _ACEOF
34170 cat confdefs.h >>conftest.$ac_ext
34171 cat >>conftest.$ac_ext <<_ACEOF
34172 /* end confdefs.h.  */
34173 $ac_includes_default
34174 typedef mode_t ac__type_new_;
34175 int
34176 main ()
34177 {
34178 if ((ac__type_new_ *) 0)
34179   return 0;
34180 if (sizeof (ac__type_new_))
34181   return 0;
34182   ;
34183   return 0;
34184 }
34185 _ACEOF
34186 rm -f conftest.$ac_objext
34187 if { (ac_try="$ac_compile"
34188 case "(($ac_try" in
34189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34190   *) ac_try_echo=$ac_try;;
34191 esac
34192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34193   (eval "$ac_compile") 2>conftest.er1
34194   ac_status=$?
34195   grep -v '^ *+' conftest.er1 >conftest.err
34196   rm -f conftest.er1
34197   cat conftest.err >&5
34198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199   (exit $ac_status); } && {
34200          test -z "$ac_c_werror_flag" ||
34201          test ! -s conftest.err
34202        } && test -s conftest.$ac_objext; then
34203   ac_cv_type_mode_t=yes
34204 else
34205   echo "$as_me: failed program was:" >&5
34206 sed 's/^/| /' conftest.$ac_ext >&5
34207
34208         ac_cv_type_mode_t=no
34209 fi
34210
34211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34212 fi
34213 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34214 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34215 if test $ac_cv_type_mode_t = yes; then
34216   :
34217 else
34218
34219 cat >>confdefs.h <<_ACEOF
34220 #define mode_t int
34221 _ACEOF
34222
34223 fi
34224
34225 { echo "$as_me:$LINENO: checking for off_t" >&5
34226 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34227 if test "${ac_cv_type_off_t+set}" = set; then
34228   echo $ECHO_N "(cached) $ECHO_C" >&6
34229 else
34230   cat >conftest.$ac_ext <<_ACEOF
34231 /* confdefs.h.  */
34232 _ACEOF
34233 cat confdefs.h >>conftest.$ac_ext
34234 cat >>conftest.$ac_ext <<_ACEOF
34235 /* end confdefs.h.  */
34236 $ac_includes_default
34237 typedef off_t ac__type_new_;
34238 int
34239 main ()
34240 {
34241 if ((ac__type_new_ *) 0)
34242   return 0;
34243 if (sizeof (ac__type_new_))
34244   return 0;
34245   ;
34246   return 0;
34247 }
34248 _ACEOF
34249 rm -f conftest.$ac_objext
34250 if { (ac_try="$ac_compile"
34251 case "(($ac_try" in
34252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34253   *) ac_try_echo=$ac_try;;
34254 esac
34255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34256   (eval "$ac_compile") 2>conftest.er1
34257   ac_status=$?
34258   grep -v '^ *+' conftest.er1 >conftest.err
34259   rm -f conftest.er1
34260   cat conftest.err >&5
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); } && {
34263          test -z "$ac_c_werror_flag" ||
34264          test ! -s conftest.err
34265        } && test -s conftest.$ac_objext; then
34266   ac_cv_type_off_t=yes
34267 else
34268   echo "$as_me: failed program was:" >&5
34269 sed 's/^/| /' conftest.$ac_ext >&5
34270
34271         ac_cv_type_off_t=no
34272 fi
34273
34274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34275 fi
34276 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34277 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34278 if test $ac_cv_type_off_t = yes; then
34279   :
34280 else
34281
34282 cat >>confdefs.h <<_ACEOF
34283 #define off_t long int
34284 _ACEOF
34285
34286 fi
34287
34288 { echo "$as_me:$LINENO: checking for pid_t" >&5
34289 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34290 if test "${ac_cv_type_pid_t+set}" = set; then
34291   echo $ECHO_N "(cached) $ECHO_C" >&6
34292 else
34293   cat >conftest.$ac_ext <<_ACEOF
34294 /* confdefs.h.  */
34295 _ACEOF
34296 cat confdefs.h >>conftest.$ac_ext
34297 cat >>conftest.$ac_ext <<_ACEOF
34298 /* end confdefs.h.  */
34299 $ac_includes_default
34300 typedef pid_t ac__type_new_;
34301 int
34302 main ()
34303 {
34304 if ((ac__type_new_ *) 0)
34305   return 0;
34306 if (sizeof (ac__type_new_))
34307   return 0;
34308   ;
34309   return 0;
34310 }
34311 _ACEOF
34312 rm -f conftest.$ac_objext
34313 if { (ac_try="$ac_compile"
34314 case "(($ac_try" in
34315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34316   *) ac_try_echo=$ac_try;;
34317 esac
34318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34319   (eval "$ac_compile") 2>conftest.er1
34320   ac_status=$?
34321   grep -v '^ *+' conftest.er1 >conftest.err
34322   rm -f conftest.er1
34323   cat conftest.err >&5
34324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325   (exit $ac_status); } && {
34326          test -z "$ac_c_werror_flag" ||
34327          test ! -s conftest.err
34328        } && test -s conftest.$ac_objext; then
34329   ac_cv_type_pid_t=yes
34330 else
34331   echo "$as_me: failed program was:" >&5
34332 sed 's/^/| /' conftest.$ac_ext >&5
34333
34334         ac_cv_type_pid_t=no
34335 fi
34336
34337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34338 fi
34339 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34340 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34341 if test $ac_cv_type_pid_t = yes; then
34342   :
34343 else
34344
34345 cat >>confdefs.h <<_ACEOF
34346 #define pid_t int
34347 _ACEOF
34348
34349 fi
34350
34351 { echo "$as_me:$LINENO: checking for size_t" >&5
34352 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34353 if test "${ac_cv_type_size_t+set}" = set; then
34354   echo $ECHO_N "(cached) $ECHO_C" >&6
34355 else
34356   cat >conftest.$ac_ext <<_ACEOF
34357 /* confdefs.h.  */
34358 _ACEOF
34359 cat confdefs.h >>conftest.$ac_ext
34360 cat >>conftest.$ac_ext <<_ACEOF
34361 /* end confdefs.h.  */
34362 $ac_includes_default
34363 typedef size_t ac__type_new_;
34364 int
34365 main ()
34366 {
34367 if ((ac__type_new_ *) 0)
34368   return 0;
34369 if (sizeof (ac__type_new_))
34370   return 0;
34371   ;
34372   return 0;
34373 }
34374 _ACEOF
34375 rm -f conftest.$ac_objext
34376 if { (ac_try="$ac_compile"
34377 case "(($ac_try" in
34378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34379   *) ac_try_echo=$ac_try;;
34380 esac
34381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34382   (eval "$ac_compile") 2>conftest.er1
34383   ac_status=$?
34384   grep -v '^ *+' conftest.er1 >conftest.err
34385   rm -f conftest.er1
34386   cat conftest.err >&5
34387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388   (exit $ac_status); } && {
34389          test -z "$ac_c_werror_flag" ||
34390          test ! -s conftest.err
34391        } && test -s conftest.$ac_objext; then
34392   ac_cv_type_size_t=yes
34393 else
34394   echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34396
34397         ac_cv_type_size_t=no
34398 fi
34399
34400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34401 fi
34402 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34403 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34404 if test $ac_cv_type_size_t = yes; then
34405   :
34406 else
34407
34408 cat >>confdefs.h <<_ACEOF
34409 #define size_t unsigned int
34410 _ACEOF
34411
34412 fi
34413
34414
34415 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34416 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34417 if test "${ac_cv_type_ssize_t+set}" = set; then
34418   echo $ECHO_N "(cached) $ECHO_C" >&6
34419 else
34420   cat >conftest.$ac_ext <<_ACEOF
34421 /* confdefs.h.  */
34422 _ACEOF
34423 cat confdefs.h >>conftest.$ac_ext
34424 cat >>conftest.$ac_ext <<_ACEOF
34425 /* end confdefs.h.  */
34426 $ac_includes_default
34427 typedef ssize_t ac__type_new_;
34428 int
34429 main ()
34430 {
34431 if ((ac__type_new_ *) 0)
34432   return 0;
34433 if (sizeof (ac__type_new_))
34434   return 0;
34435   ;
34436   return 0;
34437 }
34438 _ACEOF
34439 rm -f conftest.$ac_objext
34440 if { (ac_try="$ac_compile"
34441 case "(($ac_try" in
34442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34443   *) ac_try_echo=$ac_try;;
34444 esac
34445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34446   (eval "$ac_compile") 2>conftest.er1
34447   ac_status=$?
34448   grep -v '^ *+' conftest.er1 >conftest.err
34449   rm -f conftest.er1
34450   cat conftest.err >&5
34451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452   (exit $ac_status); } && {
34453          test -z "$ac_c_werror_flag" ||
34454          test ! -s conftest.err
34455        } && test -s conftest.$ac_objext; then
34456   ac_cv_type_ssize_t=yes
34457 else
34458   echo "$as_me: failed program was:" >&5
34459 sed 's/^/| /' conftest.$ac_ext >&5
34460
34461         ac_cv_type_ssize_t=no
34462 fi
34463
34464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34465 fi
34466 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34467 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34468 if test $ac_cv_type_ssize_t = yes; then
34469
34470 cat >>confdefs.h <<_ACEOF
34471 #define HAVE_SSIZE_T 1
34472 _ACEOF
34473
34474
34475 fi
34476
34477
34478 ac_ext=cpp
34479 ac_cpp='$CXXCPP $CPPFLAGS'
34480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34483  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34484 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34485 if test "${wx_cv_size_t_is_uint+set}" = set; then
34486   echo $ECHO_N "(cached) $ECHO_C" >&6
34487 else
34488
34489                             cat >conftest.$ac_ext <<_ACEOF
34490 /* confdefs.h.  */
34491 _ACEOF
34492 cat confdefs.h >>conftest.$ac_ext
34493 cat >>conftest.$ac_ext <<_ACEOF
34494 /* end confdefs.h.  */
34495 #include <stddef.h>
34496 int
34497 main ()
34498 {
34499
34500             return 0; }
34501
34502             struct Foo { void foo(size_t); void foo(unsigned int); };
34503
34504             int bar() {
34505
34506   ;
34507   return 0;
34508 }
34509 _ACEOF
34510 rm -f conftest.$ac_objext
34511 if { (ac_try="$ac_compile"
34512 case "(($ac_try" in
34513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34514   *) ac_try_echo=$ac_try;;
34515 esac
34516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34517   (eval "$ac_compile") 2>conftest.er1
34518   ac_status=$?
34519   grep -v '^ *+' conftest.er1 >conftest.err
34520   rm -f conftest.er1
34521   cat conftest.err >&5
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); } && {
34524          test -z "$ac_cxx_werror_flag" ||
34525          test ! -s conftest.err
34526        } && test -s conftest.$ac_objext; then
34527   wx_cv_size_t_is_uint=no
34528 else
34529   echo "$as_me: failed program was:" >&5
34530 sed 's/^/| /' conftest.$ac_ext >&5
34531
34532         wx_cv_size_t_is_uint=yes
34533
34534 fi
34535
34536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34537
34538
34539 fi
34540 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34541 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34542
34543 if test "$wx_cv_size_t_is_uint" = "yes"; then
34544     cat >>confdefs.h <<\_ACEOF
34545 #define wxSIZE_T_IS_UINT 1
34546 _ACEOF
34547
34548 else
34549     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34550 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34551 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34552   echo $ECHO_N "(cached) $ECHO_C" >&6
34553 else
34554   cat >conftest.$ac_ext <<_ACEOF
34555 /* confdefs.h.  */
34556 _ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h.  */
34560 #include <stddef.h>
34561 int
34562 main ()
34563 {
34564
34565                 return 0; }
34566
34567                 struct Foo { void foo(size_t); void foo(unsigned long); };
34568
34569                 int bar() {
34570
34571   ;
34572   return 0;
34573 }
34574 _ACEOF
34575 rm -f conftest.$ac_objext
34576 if { (ac_try="$ac_compile"
34577 case "(($ac_try" in
34578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34579   *) ac_try_echo=$ac_try;;
34580 esac
34581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34582   (eval "$ac_compile") 2>conftest.er1
34583   ac_status=$?
34584   grep -v '^ *+' conftest.er1 >conftest.err
34585   rm -f conftest.er1
34586   cat conftest.err >&5
34587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588   (exit $ac_status); } && {
34589          test -z "$ac_cxx_werror_flag" ||
34590          test ! -s conftest.err
34591        } && test -s conftest.$ac_objext; then
34592   wx_cv_size_t_is_ulong=no
34593 else
34594   echo "$as_me: failed program was:" >&5
34595 sed 's/^/| /' conftest.$ac_ext >&5
34596
34597         wx_cv_size_t_is_ulong=yes
34598
34599 fi
34600
34601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34602
34603 fi
34604 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34605 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34606
34607     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34608         cat >>confdefs.h <<\_ACEOF
34609 #define wxSIZE_T_IS_ULONG 1
34610 _ACEOF
34611
34612     fi
34613 fi
34614
34615 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34616 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34617 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34618   echo $ECHO_N "(cached) $ECHO_C" >&6
34619 else
34620   cat >conftest.$ac_ext <<_ACEOF
34621 /* confdefs.h.  */
34622 _ACEOF
34623 cat confdefs.h >>conftest.$ac_ext
34624 cat >>conftest.$ac_ext <<_ACEOF
34625 /* end confdefs.h.  */
34626 #include <wchar.h>
34627 int
34628 main ()
34629 {
34630
34631             return 0; }
34632
34633             struct Foo { void foo(wchar_t);
34634                          void foo(unsigned short);
34635                          void foo(unsigned int);
34636                          void foo(unsigned long); };
34637
34638             int bar() {
34639
34640   ;
34641   return 0;
34642 }
34643 _ACEOF
34644 rm -f conftest.$ac_objext
34645 if { (ac_try="$ac_compile"
34646 case "(($ac_try" in
34647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34648   *) ac_try_echo=$ac_try;;
34649 esac
34650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34651   (eval "$ac_compile") 2>conftest.er1
34652   ac_status=$?
34653   grep -v '^ *+' conftest.er1 >conftest.err
34654   rm -f conftest.er1
34655   cat conftest.err >&5
34656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657   (exit $ac_status); } && {
34658          test -z "$ac_cxx_werror_flag" ||
34659          test ! -s conftest.err
34660        } && test -s conftest.$ac_objext; then
34661   wx_cv_wchar_t_is_separate_type=yes
34662 else
34663   echo "$as_me: failed program was:" >&5
34664 sed 's/^/| /' conftest.$ac_ext >&5
34665
34666         wx_cv_wchar_t_is_separate_type=no
34667
34668 fi
34669
34670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34671
34672 fi
34673 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34674 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34675
34676 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34677     cat >>confdefs.h <<\_ACEOF
34678 #define wxWCHAR_T_IS_REAL_TYPE 1
34679 _ACEOF
34680
34681 else
34682     cat >>confdefs.h <<\_ACEOF
34683 #define wxWCHAR_T_IS_REAL_TYPE 0
34684 _ACEOF
34685
34686 fi
34687
34688 ac_ext=c
34689 ac_cpp='$CPP $CPPFLAGS'
34690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34693
34694
34695 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34696 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34697 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34698   echo $ECHO_N "(cached) $ECHO_C" >&6
34699 else
34700
34701         cat >conftest.$ac_ext <<_ACEOF
34702 /* confdefs.h.  */
34703 _ACEOF
34704 cat confdefs.h >>conftest.$ac_ext
34705 cat >>conftest.$ac_ext <<_ACEOF
34706 /* end confdefs.h.  */
34707 #include <pwd.h>
34708 int
34709 main ()
34710 {
34711
34712                 char *p;
34713                 struct passwd *pw;
34714                 p = pw->pw_gecos;
34715
34716   ;
34717   return 0;
34718 }
34719 _ACEOF
34720 rm -f conftest.$ac_objext
34721 if { (ac_try="$ac_compile"
34722 case "(($ac_try" in
34723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34724   *) ac_try_echo=$ac_try;;
34725 esac
34726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34727   (eval "$ac_compile") 2>conftest.er1
34728   ac_status=$?
34729   grep -v '^ *+' conftest.er1 >conftest.err
34730   rm -f conftest.er1
34731   cat conftest.err >&5
34732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733   (exit $ac_status); } && {
34734          test -z "$ac_c_werror_flag" ||
34735          test ! -s conftest.err
34736        } && test -s conftest.$ac_objext; then
34737
34738                 wx_cv_struct_pw_gecos=yes
34739
34740 else
34741   echo "$as_me: failed program was:" >&5
34742 sed 's/^/| /' conftest.$ac_ext >&5
34743
34744
34745                 wx_cv_struct_pw_gecos=no
34746
34747
34748 fi
34749
34750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34751
34752
34753 fi
34754 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34755 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34756
34757 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34758     cat >>confdefs.h <<\_ACEOF
34759 #define HAVE_PW_GECOS 1
34760 _ACEOF
34761
34762 fi
34763
34764
34765 if test "$wxUSE_WCHAR_T" = "yes"; then
34766     cat >>confdefs.h <<\_ACEOF
34767 #define wxUSE_WCHAR_T 1
34768 _ACEOF
34769
34770
34771         WCSLEN_FOUND=0
34772     WCHAR_LINK=
34773
34774 for ac_func in wcslen
34775 do
34776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34780   echo $ECHO_N "(cached) $ECHO_C" >&6
34781 else
34782   cat >conftest.$ac_ext <<_ACEOF
34783 /* confdefs.h.  */
34784 _ACEOF
34785 cat confdefs.h >>conftest.$ac_ext
34786 cat >>conftest.$ac_ext <<_ACEOF
34787 /* end confdefs.h.  */
34788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34790 #define $ac_func innocuous_$ac_func
34791
34792 /* System header to define __stub macros and hopefully few prototypes,
34793     which can conflict with char $ac_func (); below.
34794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34795     <limits.h> exists even on freestanding compilers.  */
34796
34797 #ifdef __STDC__
34798 # include <limits.h>
34799 #else
34800 # include <assert.h>
34801 #endif
34802
34803 #undef $ac_func
34804
34805 /* Override any GCC internal prototype to avoid an error.
34806    Use char because int might match the return type of a GCC
34807    builtin and then its argument prototype would still apply.  */
34808 #ifdef __cplusplus
34809 extern "C"
34810 #endif
34811 char $ac_func ();
34812 /* The GNU C library defines this for functions which it implements
34813     to always fail with ENOSYS.  Some functions are actually named
34814     something starting with __ and the normal name is an alias.  */
34815 #if defined __stub_$ac_func || defined __stub___$ac_func
34816 choke me
34817 #endif
34818
34819 int
34820 main ()
34821 {
34822 return $ac_func ();
34823   ;
34824   return 0;
34825 }
34826 _ACEOF
34827 rm -f conftest.$ac_objext conftest$ac_exeext
34828 if { (ac_try="$ac_link"
34829 case "(($ac_try" in
34830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34831   *) ac_try_echo=$ac_try;;
34832 esac
34833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34834   (eval "$ac_link") 2>conftest.er1
34835   ac_status=$?
34836   grep -v '^ *+' conftest.er1 >conftest.err
34837   rm -f conftest.er1
34838   cat conftest.err >&5
34839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840   (exit $ac_status); } && {
34841          test -z "$ac_c_werror_flag" ||
34842          test ! -s conftest.err
34843        } && test -s conftest$ac_exeext &&
34844        $as_test_x conftest$ac_exeext; then
34845   eval "$as_ac_var=yes"
34846 else
34847   echo "$as_me: failed program was:" >&5
34848 sed 's/^/| /' conftest.$ac_ext >&5
34849
34850         eval "$as_ac_var=no"
34851 fi
34852
34853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34854       conftest$ac_exeext conftest.$ac_ext
34855 fi
34856 ac_res=`eval echo '${'$as_ac_var'}'`
34857                { echo "$as_me:$LINENO: result: $ac_res" >&5
34858 echo "${ECHO_T}$ac_res" >&6; }
34859 if test `eval echo '${'$as_ac_var'}'` = yes; then
34860   cat >>confdefs.h <<_ACEOF
34861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34862 _ACEOF
34863  WCSLEN_FOUND=1
34864 fi
34865 done
34866
34867
34868     if test "$WCSLEN_FOUND" = 0; then
34869         if test "$TOOLKIT" = "MSW"; then
34870             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34871 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34872 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34873   echo $ECHO_N "(cached) $ECHO_C" >&6
34874 else
34875   ac_check_lib_save_LIBS=$LIBS
34876 LIBS="-lmsvcrt  $LIBS"
34877 cat >conftest.$ac_ext <<_ACEOF
34878 /* confdefs.h.  */
34879 _ACEOF
34880 cat confdefs.h >>conftest.$ac_ext
34881 cat >>conftest.$ac_ext <<_ACEOF
34882 /* end confdefs.h.  */
34883
34884 /* Override any GCC internal prototype to avoid an error.
34885    Use char because int might match the return type of a GCC
34886    builtin and then its argument prototype would still apply.  */
34887 #ifdef __cplusplus
34888 extern "C"
34889 #endif
34890 char wcslen ();
34891 int
34892 main ()
34893 {
34894 return wcslen ();
34895   ;
34896   return 0;
34897 }
34898 _ACEOF
34899 rm -f conftest.$ac_objext conftest$ac_exeext
34900 if { (ac_try="$ac_link"
34901 case "(($ac_try" in
34902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903   *) ac_try_echo=$ac_try;;
34904 esac
34905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34906   (eval "$ac_link") 2>conftest.er1
34907   ac_status=$?
34908   grep -v '^ *+' conftest.er1 >conftest.err
34909   rm -f conftest.er1
34910   cat conftest.err >&5
34911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912   (exit $ac_status); } && {
34913          test -z "$ac_c_werror_flag" ||
34914          test ! -s conftest.err
34915        } && test -s conftest$ac_exeext &&
34916        $as_test_x conftest$ac_exeext; then
34917   ac_cv_lib_msvcrt_wcslen=yes
34918 else
34919   echo "$as_me: failed program was:" >&5
34920 sed 's/^/| /' conftest.$ac_ext >&5
34921
34922         ac_cv_lib_msvcrt_wcslen=no
34923 fi
34924
34925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34926       conftest$ac_exeext conftest.$ac_ext
34927 LIBS=$ac_check_lib_save_LIBS
34928 fi
34929 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34930 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34931 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34932   WCHAR_OK=1
34933 fi
34934
34935         else
34936             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34937 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34938 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34939   echo $ECHO_N "(cached) $ECHO_C" >&6
34940 else
34941   ac_check_lib_save_LIBS=$LIBS
34942 LIBS="-lw  $LIBS"
34943 cat >conftest.$ac_ext <<_ACEOF
34944 /* confdefs.h.  */
34945 _ACEOF
34946 cat confdefs.h >>conftest.$ac_ext
34947 cat >>conftest.$ac_ext <<_ACEOF
34948 /* end confdefs.h.  */
34949
34950 /* Override any GCC internal prototype to avoid an error.
34951    Use char because int might match the return type of a GCC
34952    builtin and then its argument prototype would still apply.  */
34953 #ifdef __cplusplus
34954 extern "C"
34955 #endif
34956 char wcslen ();
34957 int
34958 main ()
34959 {
34960 return wcslen ();
34961   ;
34962   return 0;
34963 }
34964 _ACEOF
34965 rm -f conftest.$ac_objext conftest$ac_exeext
34966 if { (ac_try="$ac_link"
34967 case "(($ac_try" in
34968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34969   *) ac_try_echo=$ac_try;;
34970 esac
34971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34972   (eval "$ac_link") 2>conftest.er1
34973   ac_status=$?
34974   grep -v '^ *+' conftest.er1 >conftest.err
34975   rm -f conftest.er1
34976   cat conftest.err >&5
34977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978   (exit $ac_status); } && {
34979          test -z "$ac_c_werror_flag" ||
34980          test ! -s conftest.err
34981        } && test -s conftest$ac_exeext &&
34982        $as_test_x conftest$ac_exeext; then
34983   ac_cv_lib_w_wcslen=yes
34984 else
34985   echo "$as_me: failed program was:" >&5
34986 sed 's/^/| /' conftest.$ac_ext >&5
34987
34988         ac_cv_lib_w_wcslen=no
34989 fi
34990
34991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34992       conftest$ac_exeext conftest.$ac_ext
34993 LIBS=$ac_check_lib_save_LIBS
34994 fi
34995 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34996 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34997 if test $ac_cv_lib_w_wcslen = yes; then
34998
34999                             WCHAR_LINK=" -lw"
35000                             WCSLEN_FOUND=1
35001
35002 fi
35003
35004         fi
35005     fi
35006
35007     if test "$WCSLEN_FOUND" = 1; then
35008         cat >>confdefs.h <<\_ACEOF
35009 #define HAVE_WCSLEN 1
35010 _ACEOF
35011
35012     fi
35013
35014
35015
35016
35017
35018
35019 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
35020 do
35021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35025   echo $ECHO_N "(cached) $ECHO_C" >&6
35026 else
35027   cat >conftest.$ac_ext <<_ACEOF
35028 /* confdefs.h.  */
35029 _ACEOF
35030 cat confdefs.h >>conftest.$ac_ext
35031 cat >>conftest.$ac_ext <<_ACEOF
35032 /* end confdefs.h.  */
35033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35035 #define $ac_func innocuous_$ac_func
35036
35037 /* System header to define __stub macros and hopefully few prototypes,
35038     which can conflict with char $ac_func (); below.
35039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35040     <limits.h> exists even on freestanding compilers.  */
35041
35042 #ifdef __STDC__
35043 # include <limits.h>
35044 #else
35045 # include <assert.h>
35046 #endif
35047
35048 #undef $ac_func
35049
35050 /* Override any GCC internal prototype to avoid an error.
35051    Use char because int might match the return type of a GCC
35052    builtin and then its argument prototype would still apply.  */
35053 #ifdef __cplusplus
35054 extern "C"
35055 #endif
35056 char $ac_func ();
35057 /* The GNU C library defines this for functions which it implements
35058     to always fail with ENOSYS.  Some functions are actually named
35059     something starting with __ and the normal name is an alias.  */
35060 #if defined __stub_$ac_func || defined __stub___$ac_func
35061 choke me
35062 #endif
35063
35064 int
35065 main ()
35066 {
35067 return $ac_func ();
35068   ;
35069   return 0;
35070 }
35071 _ACEOF
35072 rm -f conftest.$ac_objext conftest$ac_exeext
35073 if { (ac_try="$ac_link"
35074 case "(($ac_try" in
35075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35076   *) ac_try_echo=$ac_try;;
35077 esac
35078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35079   (eval "$ac_link") 2>conftest.er1
35080   ac_status=$?
35081   grep -v '^ *+' conftest.er1 >conftest.err
35082   rm -f conftest.er1
35083   cat conftest.err >&5
35084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085   (exit $ac_status); } && {
35086          test -z "$ac_c_werror_flag" ||
35087          test ! -s conftest.err
35088        } && test -s conftest$ac_exeext &&
35089        $as_test_x conftest$ac_exeext; then
35090   eval "$as_ac_var=yes"
35091 else
35092   echo "$as_me: failed program was:" >&5
35093 sed 's/^/| /' conftest.$ac_ext >&5
35094
35095         eval "$as_ac_var=no"
35096 fi
35097
35098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35099       conftest$ac_exeext conftest.$ac_ext
35100 fi
35101 ac_res=`eval echo '${'$as_ac_var'}'`
35102                { echo "$as_me:$LINENO: result: $ac_res" >&5
35103 echo "${ECHO_T}$ac_res" >&6; }
35104 if test `eval echo '${'$as_ac_var'}'` = yes; then
35105   cat >>confdefs.h <<_ACEOF
35106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35107 _ACEOF
35108
35109 fi
35110 done
35111
35112
35113                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35114         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35115     fi
35116
35117                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35118 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35119 if test "${ac_cv_type_mbstate_t+set}" = set; then
35120   echo $ECHO_N "(cached) $ECHO_C" >&6
35121 else
35122   cat >conftest.$ac_ext <<_ACEOF
35123 /* confdefs.h.  */
35124 _ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h.  */
35128 #include <wchar.h>
35129
35130 typedef mbstate_t ac__type_new_;
35131 int
35132 main ()
35133 {
35134 if ((ac__type_new_ *) 0)
35135   return 0;
35136 if (sizeof (ac__type_new_))
35137   return 0;
35138   ;
35139   return 0;
35140 }
35141 _ACEOF
35142 rm -f conftest.$ac_objext
35143 if { (ac_try="$ac_compile"
35144 case "(($ac_try" in
35145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35146   *) ac_try_echo=$ac_try;;
35147 esac
35148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35149   (eval "$ac_compile") 2>conftest.er1
35150   ac_status=$?
35151   grep -v '^ *+' conftest.er1 >conftest.err
35152   rm -f conftest.er1
35153   cat conftest.err >&5
35154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35155   (exit $ac_status); } && {
35156          test -z "$ac_c_werror_flag" ||
35157          test ! -s conftest.err
35158        } && test -s conftest.$ac_objext; then
35159   ac_cv_type_mbstate_t=yes
35160 else
35161   echo "$as_me: failed program was:" >&5
35162 sed 's/^/| /' conftest.$ac_ext >&5
35163
35164         ac_cv_type_mbstate_t=no
35165 fi
35166
35167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35168 fi
35169 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35170 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35171 if test $ac_cv_type_mbstate_t = yes; then
35172
35173 cat >>confdefs.h <<_ACEOF
35174 #define HAVE_MBSTATE_T 1
35175 _ACEOF
35176
35177
35178 for ac_func in wcsrtombs
35179 do
35180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35184   echo $ECHO_N "(cached) $ECHO_C" >&6
35185 else
35186   cat >conftest.$ac_ext <<_ACEOF
35187 /* confdefs.h.  */
35188 _ACEOF
35189 cat confdefs.h >>conftest.$ac_ext
35190 cat >>conftest.$ac_ext <<_ACEOF
35191 /* end confdefs.h.  */
35192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35194 #define $ac_func innocuous_$ac_func
35195
35196 /* System header to define __stub macros and hopefully few prototypes,
35197     which can conflict with char $ac_func (); below.
35198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35199     <limits.h> exists even on freestanding compilers.  */
35200
35201 #ifdef __STDC__
35202 # include <limits.h>
35203 #else
35204 # include <assert.h>
35205 #endif
35206
35207 #undef $ac_func
35208
35209 /* Override any GCC internal prototype to avoid an error.
35210    Use char because int might match the return type of a GCC
35211    builtin and then its argument prototype would still apply.  */
35212 #ifdef __cplusplus
35213 extern "C"
35214 #endif
35215 char $ac_func ();
35216 /* The GNU C library defines this for functions which it implements
35217     to always fail with ENOSYS.  Some functions are actually named
35218     something starting with __ and the normal name is an alias.  */
35219 #if defined __stub_$ac_func || defined __stub___$ac_func
35220 choke me
35221 #endif
35222
35223 int
35224 main ()
35225 {
35226 return $ac_func ();
35227   ;
35228   return 0;
35229 }
35230 _ACEOF
35231 rm -f conftest.$ac_objext conftest$ac_exeext
35232 if { (ac_try="$ac_link"
35233 case "(($ac_try" in
35234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35235   *) ac_try_echo=$ac_try;;
35236 esac
35237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35238   (eval "$ac_link") 2>conftest.er1
35239   ac_status=$?
35240   grep -v '^ *+' conftest.er1 >conftest.err
35241   rm -f conftest.er1
35242   cat conftest.err >&5
35243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244   (exit $ac_status); } && {
35245          test -z "$ac_c_werror_flag" ||
35246          test ! -s conftest.err
35247        } && test -s conftest$ac_exeext &&
35248        $as_test_x conftest$ac_exeext; then
35249   eval "$as_ac_var=yes"
35250 else
35251   echo "$as_me: failed program was:" >&5
35252 sed 's/^/| /' conftest.$ac_ext >&5
35253
35254         eval "$as_ac_var=no"
35255 fi
35256
35257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35258       conftest$ac_exeext conftest.$ac_ext
35259 fi
35260 ac_res=`eval echo '${'$as_ac_var'}'`
35261                { echo "$as_me:$LINENO: result: $ac_res" >&5
35262 echo "${ECHO_T}$ac_res" >&6; }
35263 if test `eval echo '${'$as_ac_var'}'` = yes; then
35264   cat >>confdefs.h <<_ACEOF
35265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35266 _ACEOF
35267
35268 fi
35269 done
35270
35271 fi
35272
35273 else
35274     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35275 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35276 fi
35277
35278
35279
35280
35281 for ac_func in snprintf vsnprintf vsscanf
35282 do
35283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35287   echo $ECHO_N "(cached) $ECHO_C" >&6
35288 else
35289   cat >conftest.$ac_ext <<_ACEOF
35290 /* confdefs.h.  */
35291 _ACEOF
35292 cat confdefs.h >>conftest.$ac_ext
35293 cat >>conftest.$ac_ext <<_ACEOF
35294 /* end confdefs.h.  */
35295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35297 #define $ac_func innocuous_$ac_func
35298
35299 /* System header to define __stub macros and hopefully few prototypes,
35300     which can conflict with char $ac_func (); below.
35301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35302     <limits.h> exists even on freestanding compilers.  */
35303
35304 #ifdef __STDC__
35305 # include <limits.h>
35306 #else
35307 # include <assert.h>
35308 #endif
35309
35310 #undef $ac_func
35311
35312 /* Override any GCC internal prototype to avoid an error.
35313    Use char because int might match the return type of a GCC
35314    builtin and then its argument prototype would still apply.  */
35315 #ifdef __cplusplus
35316 extern "C"
35317 #endif
35318 char $ac_func ();
35319 /* The GNU C library defines this for functions which it implements
35320     to always fail with ENOSYS.  Some functions are actually named
35321     something starting with __ and the normal name is an alias.  */
35322 #if defined __stub_$ac_func || defined __stub___$ac_func
35323 choke me
35324 #endif
35325
35326 int
35327 main ()
35328 {
35329 return $ac_func ();
35330   ;
35331   return 0;
35332 }
35333 _ACEOF
35334 rm -f conftest.$ac_objext conftest$ac_exeext
35335 if { (ac_try="$ac_link"
35336 case "(($ac_try" in
35337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35338   *) ac_try_echo=$ac_try;;
35339 esac
35340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35341   (eval "$ac_link") 2>conftest.er1
35342   ac_status=$?
35343   grep -v '^ *+' conftest.er1 >conftest.err
35344   rm -f conftest.er1
35345   cat conftest.err >&5
35346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347   (exit $ac_status); } && {
35348          test -z "$ac_c_werror_flag" ||
35349          test ! -s conftest.err
35350        } && test -s conftest$ac_exeext &&
35351        $as_test_x conftest$ac_exeext; then
35352   eval "$as_ac_var=yes"
35353 else
35354   echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35356
35357         eval "$as_ac_var=no"
35358 fi
35359
35360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35361       conftest$ac_exeext conftest.$ac_ext
35362 fi
35363 ac_res=`eval echo '${'$as_ac_var'}'`
35364                { echo "$as_me:$LINENO: result: $ac_res" >&5
35365 echo "${ECHO_T}$ac_res" >&6; }
35366 if test `eval echo '${'$as_ac_var'}'` = yes; then
35367   cat >>confdefs.h <<_ACEOF
35368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35369 _ACEOF
35370
35371 fi
35372 done
35373
35374
35375 ac_ext=cpp
35376 ac_cpp='$CXXCPP $CPPFLAGS'
35377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35380
35381 if test "$ac_cv_func_vsnprintf" = "yes"; then
35382         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35383 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35384 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35385   echo $ECHO_N "(cached) $ECHO_C" >&6
35386 else
35387
35388                                                             cat >conftest.$ac_ext <<_ACEOF
35389 /* confdefs.h.  */
35390 _ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h.  */
35394
35395                     #include <stdio.h>
35396                     #include <stdarg.h>
35397                     #ifdef __MSL__
35398                     #if __MSL__ >= 0x6000
35399                     namespace std {}
35400                     using namespace std;
35401                     #endif
35402                     #endif
35403
35404 int
35405 main ()
35406 {
35407
35408                     char *buf;
35409                     va_list ap;
35410                     vsnprintf(buf, 10u, "%s", ap);
35411
35412   ;
35413   return 0;
35414 }
35415 _ACEOF
35416 rm -f conftest.$ac_objext
35417 if { (ac_try="$ac_compile"
35418 case "(($ac_try" in
35419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35420   *) ac_try_echo=$ac_try;;
35421 esac
35422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35423   (eval "$ac_compile") 2>conftest.er1
35424   ac_status=$?
35425   grep -v '^ *+' conftest.er1 >conftest.err
35426   rm -f conftest.er1
35427   cat conftest.err >&5
35428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429   (exit $ac_status); } && {
35430          test -z "$ac_cxx_werror_flag" ||
35431          test ! -s conftest.err
35432        } && test -s conftest.$ac_objext; then
35433   wx_cv_func_vsnprintf_decl=yes
35434 else
35435   echo "$as_me: failed program was:" >&5
35436 sed 's/^/| /' conftest.$ac_ext >&5
35437
35438         wx_cv_func_vsnprintf_decl=no
35439
35440 fi
35441
35442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35443
35444
35445 fi
35446 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35447 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35448
35449     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35450         cat >>confdefs.h <<\_ACEOF
35451 #define HAVE_VSNPRINTF_DECL 1
35452 _ACEOF
35453
35454
35455                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35456 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35457 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35458   echo $ECHO_N "(cached) $ECHO_C" >&6
35459 else
35460
35461                 cat >conftest.$ac_ext <<_ACEOF
35462 /* confdefs.h.  */
35463 _ACEOF
35464 cat confdefs.h >>conftest.$ac_ext
35465 cat >>conftest.$ac_ext <<_ACEOF
35466 /* end confdefs.h.  */
35467
35468                         #include <stdio.h>
35469                         #include <stdarg.h>
35470                         #ifdef __MSL__
35471                         #if __MSL__ >= 0x6000
35472                         namespace std {}
35473                         using namespace std;
35474                         #endif
35475                         #endif
35476
35477 int
35478 main ()
35479 {
35480
35481                         char *buf;
35482                         va_list ap;
35483                         const char *fmt = "%s";
35484                         vsnprintf(buf, 10u, fmt, ap);
35485
35486   ;
35487   return 0;
35488 }
35489 _ACEOF
35490 rm -f conftest.$ac_objext
35491 if { (ac_try="$ac_compile"
35492 case "(($ac_try" in
35493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494   *) ac_try_echo=$ac_try;;
35495 esac
35496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35497   (eval "$ac_compile") 2>conftest.er1
35498   ac_status=$?
35499   grep -v '^ *+' conftest.er1 >conftest.err
35500   rm -f conftest.er1
35501   cat conftest.err >&5
35502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503   (exit $ac_status); } && {
35504          test -z "$ac_cxx_werror_flag" ||
35505          test ! -s conftest.err
35506        } && test -s conftest.$ac_objext; then
35507   wx_cv_func_broken_vsnprintf_decl=no
35508 else
35509   echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35511
35512         wx_cv_func_broken_vsnprintf_decl=yes
35513
35514 fi
35515
35516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35517
35518
35519 fi
35520 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35521 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35522
35523         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35524             cat >>confdefs.h <<\_ACEOF
35525 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35526 _ACEOF
35527
35528         fi
35529     fi
35530 fi
35531
35532 if test "$ac_cv_func_snprintf" = "yes"; then
35533     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35534 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35535 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35536   echo $ECHO_N "(cached) $ECHO_C" >&6
35537 else
35538
35539             cat >conftest.$ac_ext <<_ACEOF
35540 /* confdefs.h.  */
35541 _ACEOF
35542 cat confdefs.h >>conftest.$ac_ext
35543 cat >>conftest.$ac_ext <<_ACEOF
35544 /* end confdefs.h.  */
35545
35546                     #include <stdio.h>
35547                     #include <stdarg.h>
35548                     #ifdef __MSL__
35549                     #if __MSL__ >= 0x6000
35550                     namespace std {}
35551                     using namespace std;
35552                     #endif
35553                     #endif
35554
35555 int
35556 main ()
35557 {
35558
35559                     char *buf;
35560                     snprintf(buf, 10u, "%s", "wx");
35561
35562   ;
35563   return 0;
35564 }
35565 _ACEOF
35566 rm -f conftest.$ac_objext
35567 if { (ac_try="$ac_compile"
35568 case "(($ac_try" in
35569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570   *) ac_try_echo=$ac_try;;
35571 esac
35572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35573   (eval "$ac_compile") 2>conftest.er1
35574   ac_status=$?
35575   grep -v '^ *+' conftest.er1 >conftest.err
35576   rm -f conftest.er1
35577   cat conftest.err >&5
35578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579   (exit $ac_status); } && {
35580          test -z "$ac_cxx_werror_flag" ||
35581          test ! -s conftest.err
35582        } && test -s conftest.$ac_objext; then
35583   wx_cv_func_snprintf_decl=yes
35584 else
35585   echo "$as_me: failed program was:" >&5
35586 sed 's/^/| /' conftest.$ac_ext >&5
35587
35588         wx_cv_func_snprintf_decl=no
35589
35590 fi
35591
35592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35593
35594
35595 fi
35596 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35597 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35598
35599     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35600         cat >>confdefs.h <<\_ACEOF
35601 #define HAVE_SNPRINTF_DECL 1
35602 _ACEOF
35603
35604     fi
35605
35606     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35607
35608                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35609 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35610 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35611   echo $ECHO_N "(cached) $ECHO_C" >&6
35612 else
35613
35614                 if test "$cross_compiling" = yes; then
35615
35616                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35617 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35618 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35619 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35620                         wx_cv_func_snprintf_pos_params=no
35621
35622
35623 else
35624   cat >conftest.$ac_ext <<_ACEOF
35625 /* confdefs.h.  */
35626 _ACEOF
35627 cat confdefs.h >>conftest.$ac_ext
35628 cat >>conftest.$ac_ext <<_ACEOF
35629 /* end confdefs.h.  */
35630
35631                         #include <stdio.h>
35632
35633                         int main (void)
35634                         {
35635                             char buffer[128];
35636                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35637                             if (strcmp ("2 3 1", buffer) == 0)
35638                                 exit (0);
35639                             exit (1);
35640                         }
35641
35642 _ACEOF
35643 rm -f conftest$ac_exeext
35644 if { (ac_try="$ac_link"
35645 case "(($ac_try" in
35646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35647   *) ac_try_echo=$ac_try;;
35648 esac
35649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35650   (eval "$ac_link") 2>&5
35651   ac_status=$?
35652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35654   { (case "(($ac_try" in
35655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35656   *) ac_try_echo=$ac_try;;
35657 esac
35658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35659   (eval "$ac_try") 2>&5
35660   ac_status=$?
35661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662   (exit $ac_status); }; }; then
35663   wx_cv_func_snprintf_pos_params=no
35664 else
35665   echo "$as_me: program exited with status $ac_status" >&5
35666 echo "$as_me: failed program was:" >&5
35667 sed 's/^/| /' conftest.$ac_ext >&5
35668
35669 ( exit $ac_status )
35670 wx_cv_func_snprintf_pos_params=yes
35671 fi
35672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35673 fi
35674
35675
35676
35677
35678 fi
35679 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35680 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35681
35682         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35683             cat >>confdefs.h <<\_ACEOF
35684 #define HAVE_UNIX98_PRINTF 1
35685 _ACEOF
35686
35687         fi
35688     fi
35689 fi
35690
35691 if test "$ac_cv_func_vsscanf" = "yes"; then
35692     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35693 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35694 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35695   echo $ECHO_N "(cached) $ECHO_C" >&6
35696 else
35697
35698             cat >conftest.$ac_ext <<_ACEOF
35699 /* confdefs.h.  */
35700 _ACEOF
35701 cat confdefs.h >>conftest.$ac_ext
35702 cat >>conftest.$ac_ext <<_ACEOF
35703 /* end confdefs.h.  */
35704
35705                     #include <stdio.h>
35706                     #include <stdarg.h>
35707                     #ifdef __MSL__
35708                     #if __MSL__ >= 0x6000
35709                     namespace std {}
35710                     using namespace std;
35711                     #endif
35712                     #endif
35713
35714 int
35715 main ()
35716 {
35717
35718                     char *buf;
35719                     va_list args;
35720                     vsscanf(buf, "%s", args);
35721
35722   ;
35723   return 0;
35724 }
35725 _ACEOF
35726 rm -f conftest.$ac_objext
35727 if { (ac_try="$ac_compile"
35728 case "(($ac_try" in
35729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35730   *) ac_try_echo=$ac_try;;
35731 esac
35732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35733   (eval "$ac_compile") 2>conftest.er1
35734   ac_status=$?
35735   grep -v '^ *+' conftest.er1 >conftest.err
35736   rm -f conftest.er1
35737   cat conftest.err >&5
35738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739   (exit $ac_status); } && {
35740          test -z "$ac_cxx_werror_flag" ||
35741          test ! -s conftest.err
35742        } && test -s conftest.$ac_objext; then
35743   wx_cv_func_vsscanf_decl=yes
35744 else
35745   echo "$as_me: failed program was:" >&5
35746 sed 's/^/| /' conftest.$ac_ext >&5
35747
35748         wx_cv_func_vsscanf_decl=no
35749
35750 fi
35751
35752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35753
35754
35755 fi
35756 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35757 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35758
35759     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35760         cat >>confdefs.h <<\_ACEOF
35761 #define HAVE_VSSCANF_DECL 1
35762 _ACEOF
35763
35764     fi
35765 fi
35766 ac_ext=c
35767 ac_cpp='$CPP $CPPFLAGS'
35768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35771
35772
35773 if test "$wxUSE_UNICODE" = yes; then
35774
35775             wchar_headers="#include <stdio.h>
35776 #include <wchar.h>"
35777     case "${host}" in
35778         *-*-solaris2* )
35779
35780 for ac_header in widec.h
35781 do
35782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35786   echo $ECHO_N "(cached) $ECHO_C" >&6
35787 else
35788   cat >conftest.$ac_ext <<_ACEOF
35789 /* confdefs.h.  */
35790 _ACEOF
35791 cat confdefs.h >>conftest.$ac_ext
35792 cat >>conftest.$ac_ext <<_ACEOF
35793 /* end confdefs.h.  */
35794 $ac_includes_default
35795
35796 #include <$ac_header>
35797 _ACEOF
35798 rm -f conftest.$ac_objext
35799 if { (ac_try="$ac_compile"
35800 case "(($ac_try" in
35801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35802   *) ac_try_echo=$ac_try;;
35803 esac
35804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35805   (eval "$ac_compile") 2>conftest.er1
35806   ac_status=$?
35807   grep -v '^ *+' conftest.er1 >conftest.err
35808   rm -f conftest.er1
35809   cat conftest.err >&5
35810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35811   (exit $ac_status); } && {
35812          test -z "$ac_c_werror_flag" ||
35813          test ! -s conftest.err
35814        } && test -s conftest.$ac_objext; then
35815   eval "$as_ac_Header=yes"
35816 else
35817   echo "$as_me: failed program was:" >&5
35818 sed 's/^/| /' conftest.$ac_ext >&5
35819
35820         eval "$as_ac_Header=no"
35821 fi
35822
35823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35824 fi
35825 ac_res=`eval echo '${'$as_ac_Header'}'`
35826                { echo "$as_me:$LINENO: result: $ac_res" >&5
35827 echo "${ECHO_T}$ac_res" >&6; }
35828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35829   cat >>confdefs.h <<_ACEOF
35830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35831 _ACEOF
35832
35833 fi
35834
35835 done
35836
35837             if test "$ac_cv_header_widec_h" = "yes"; then
35838                 wchar_headers="$wchar_headers
35839 #include <widec.h>"
35840             fi
35841     esac
35842
35843
35844   for wx_func in putws fputws wprintf vswprintf vswscanf
35845   do
35846     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35847 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35848 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35849   echo $ECHO_N "(cached) $ECHO_C" >&6
35850 else
35851
35852         cat >conftest.$ac_ext <<_ACEOF
35853
35854             /* confdefs.h.  */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h.  */
35859
35860                 $wchar_headers
35861                 $ac_includes_default
35862
35863 int
35864 main ()
35865 {
35866
35867                 #ifndef $wx_func
35868                   &$wx_func;
35869                 #endif
35870
35871
35872   ;
35873   return 0;
35874 }
35875
35876 _ACEOF
35877 rm -f conftest.$ac_objext conftest$ac_exeext
35878 if { (ac_try="$ac_link"
35879 case "(($ac_try" in
35880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35881   *) ac_try_echo=$ac_try;;
35882 esac
35883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35884   (eval "$ac_link") 2>conftest.er1
35885   ac_status=$?
35886   grep -v '^ *+' conftest.er1 >conftest.err
35887   rm -f conftest.er1
35888   cat conftest.err >&5
35889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890   (exit $ac_status); } && {
35891          test -z "$ac_c_werror_flag" ||
35892          test ! -s conftest.err
35893        } && test -s conftest$ac_exeext &&
35894        $as_test_x conftest$ac_exeext; then
35895   eval wx_cv_func_$wx_func=yes
35896 else
35897   echo "$as_me: failed program was:" >&5
35898 sed 's/^/| /' conftest.$ac_ext >&5
35899
35900         eval wx_cv_func_$wx_func=no
35901 fi
35902
35903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35904       conftest$ac_exeext conftest.$ac_ext
35905
35906 fi
35907 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35908                { echo "$as_me:$LINENO: result: $ac_res" >&5
35909 echo "${ECHO_T}$ac_res" >&6; }
35910
35911     if eval test \$wx_cv_func_$wx_func = yes
35912     then
35913       cat >>confdefs.h <<_ACEOF
35914 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35915 _ACEOF
35916
35917
35918     else
35919       :
35920
35921     fi
35922   done
35923
35924
35925                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35926 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35927     cat >conftest.$ac_ext <<_ACEOF
35928 /* confdefs.h.  */
35929 _ACEOF
35930 cat confdefs.h >>conftest.$ac_ext
35931 cat >>conftest.$ac_ext <<_ACEOF
35932 /* end confdefs.h.  */
35933 #include <wchar.h>
35934 int
35935 main ()
35936 {
35937 &_vsnwprintf;
35938   ;
35939   return 0;
35940 }
35941 _ACEOF
35942 rm -f conftest.$ac_objext
35943 if { (ac_try="$ac_compile"
35944 case "(($ac_try" in
35945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35946   *) ac_try_echo=$ac_try;;
35947 esac
35948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35949   (eval "$ac_compile") 2>conftest.er1
35950   ac_status=$?
35951   grep -v '^ *+' conftest.er1 >conftest.err
35952   rm -f conftest.er1
35953   cat conftest.err >&5
35954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955   (exit $ac_status); } && {
35956          test -z "$ac_c_werror_flag" ||
35957          test ! -s conftest.err
35958        } && test -s conftest.$ac_objext; then
35959   { echo "$as_me:$LINENO: result: yes" >&5
35960 echo "${ECHO_T}yes" >&6; }
35961                     cat >>confdefs.h <<\_ACEOF
35962 #define HAVE__VSNWPRINTF 1
35963 _ACEOF
35964
35965 else
35966   echo "$as_me: failed program was:" >&5
35967 sed 's/^/| /' conftest.$ac_ext >&5
35968
35969         { echo "$as_me:$LINENO: result: no" >&5
35970 echo "${ECHO_T}no" >&6; }
35971 fi
35972
35973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35974 fi
35975
35976 if test "$wxUSE_FILE" = "yes"; then
35977
35978   for wx_func in fsync
35979   do
35980     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35981 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35982 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35983   echo $ECHO_N "(cached) $ECHO_C" >&6
35984 else
35985
35986         cat >conftest.$ac_ext <<_ACEOF
35987
35988             /* confdefs.h.  */
35989 _ACEOF
35990 cat confdefs.h >>conftest.$ac_ext
35991 cat >>conftest.$ac_ext <<_ACEOF
35992 /* end confdefs.h.  */
35993
35994
35995                 $ac_includes_default
35996
35997 int
35998 main ()
35999 {
36000
36001                 #ifndef $wx_func
36002                   &$wx_func;
36003                 #endif
36004
36005
36006   ;
36007   return 0;
36008 }
36009
36010 _ACEOF
36011 rm -f conftest.$ac_objext conftest$ac_exeext
36012 if { (ac_try="$ac_link"
36013 case "(($ac_try" in
36014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36015   *) ac_try_echo=$ac_try;;
36016 esac
36017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36018   (eval "$ac_link") 2>conftest.er1
36019   ac_status=$?
36020   grep -v '^ *+' conftest.er1 >conftest.err
36021   rm -f conftest.er1
36022   cat conftest.err >&5
36023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024   (exit $ac_status); } && {
36025          test -z "$ac_c_werror_flag" ||
36026          test ! -s conftest.err
36027        } && test -s conftest$ac_exeext &&
36028        $as_test_x conftest$ac_exeext; then
36029   eval wx_cv_func_$wx_func=yes
36030 else
36031   echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36033
36034         eval wx_cv_func_$wx_func=no
36035 fi
36036
36037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36038       conftest$ac_exeext conftest.$ac_ext
36039
36040 fi
36041 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36042                { echo "$as_me:$LINENO: result: $ac_res" >&5
36043 echo "${ECHO_T}$ac_res" >&6; }
36044
36045     if eval test \$wx_cv_func_$wx_func = yes
36046     then
36047       cat >>confdefs.h <<_ACEOF
36048 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36049 _ACEOF
36050
36051
36052     else
36053       :
36054
36055     fi
36056   done
36057
36058 fi
36059
36060 ac_ext=cpp
36061 ac_cpp='$CXXCPP $CPPFLAGS'
36062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36065
36066
36067   for wx_func in round
36068   do
36069     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36070 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36071 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36072   echo $ECHO_N "(cached) $ECHO_C" >&6
36073 else
36074
36075         cat >conftest.$ac_ext <<_ACEOF
36076
36077             /* confdefs.h.  */
36078 _ACEOF
36079 cat confdefs.h >>conftest.$ac_ext
36080 cat >>conftest.$ac_ext <<_ACEOF
36081 /* end confdefs.h.  */
36082
36083                 #include <math.h>
36084                 $ac_includes_default
36085
36086 int
36087 main ()
36088 {
36089
36090                 #ifndef $wx_func
36091                   &$wx_func;
36092                 #endif
36093
36094
36095   ;
36096   return 0;
36097 }
36098
36099 _ACEOF
36100 rm -f conftest.$ac_objext conftest$ac_exeext
36101 if { (ac_try="$ac_link"
36102 case "(($ac_try" in
36103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36104   *) ac_try_echo=$ac_try;;
36105 esac
36106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36107   (eval "$ac_link") 2>conftest.er1
36108   ac_status=$?
36109   grep -v '^ *+' conftest.er1 >conftest.err
36110   rm -f conftest.er1
36111   cat conftest.err >&5
36112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113   (exit $ac_status); } && {
36114          test -z "$ac_cxx_werror_flag" ||
36115          test ! -s conftest.err
36116        } && test -s conftest$ac_exeext &&
36117        $as_test_x conftest$ac_exeext; then
36118   eval wx_cv_func_$wx_func=yes
36119 else
36120   echo "$as_me: failed program was:" >&5
36121 sed 's/^/| /' conftest.$ac_ext >&5
36122
36123         eval wx_cv_func_$wx_func=no
36124 fi
36125
36126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36127       conftest$ac_exeext conftest.$ac_ext
36128
36129 fi
36130 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36131                { echo "$as_me:$LINENO: result: $ac_res" >&5
36132 echo "${ECHO_T}$ac_res" >&6; }
36133
36134     if eval test \$wx_cv_func_$wx_func = yes
36135     then
36136       cat >>confdefs.h <<_ACEOF
36137 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36138 _ACEOF
36139
36140
36141     else
36142       :
36143
36144     fi
36145   done
36146
36147 ac_ext=c
36148 ac_cpp='$CPP $CPPFLAGS'
36149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36152
36153
36154 if test "$TOOLKIT" != "MSW"; then
36155
36156 if test "$wxUSE_LIBICONV" != "no" ; then
36157
36158
36159
36160 # Check whether --with-libiconv-prefix was given.
36161 if test "${with_libiconv_prefix+set}" = set; then
36162   withval=$with_libiconv_prefix;
36163     for dir in `echo "$withval" | tr : ' '`; do
36164       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36165       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36166     done
36167
36168 fi
36169
36170
36171   { echo "$as_me:$LINENO: checking for iconv" >&5
36172 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36173 if test "${am_cv_func_iconv+set}" = set; then
36174   echo $ECHO_N "(cached) $ECHO_C" >&6
36175 else
36176
36177     am_cv_func_iconv="no, consider installing GNU libiconv"
36178     am_cv_lib_iconv=no
36179     cat >conftest.$ac_ext <<_ACEOF
36180 /* confdefs.h.  */
36181 _ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h.  */
36185 #include <stdlib.h>
36186 #include <iconv.h>
36187 int
36188 main ()
36189 {
36190 iconv_t cd = iconv_open("","");
36191        iconv(cd,NULL,NULL,NULL,NULL);
36192        iconv_close(cd);
36193   ;
36194   return 0;
36195 }
36196 _ACEOF
36197 rm -f conftest.$ac_objext conftest$ac_exeext
36198 if { (ac_try="$ac_link"
36199 case "(($ac_try" in
36200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36201   *) ac_try_echo=$ac_try;;
36202 esac
36203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36204   (eval "$ac_link") 2>conftest.er1
36205   ac_status=$?
36206   grep -v '^ *+' conftest.er1 >conftest.err
36207   rm -f conftest.er1
36208   cat conftest.err >&5
36209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210   (exit $ac_status); } && {
36211          test -z "$ac_c_werror_flag" ||
36212          test ! -s conftest.err
36213        } && test -s conftest$ac_exeext &&
36214        $as_test_x conftest$ac_exeext; then
36215   am_cv_func_iconv=yes
36216 else
36217   echo "$as_me: failed program was:" >&5
36218 sed 's/^/| /' conftest.$ac_ext >&5
36219
36220
36221 fi
36222
36223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36224       conftest$ac_exeext conftest.$ac_ext
36225     if test "$am_cv_func_iconv" != yes; then
36226       am_save_LIBS="$LIBS"
36227       LIBS="$LIBS -liconv"
36228       cat >conftest.$ac_ext <<_ACEOF
36229 /* confdefs.h.  */
36230 _ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h.  */
36234 #include <stdlib.h>
36235 #include <iconv.h>
36236 int
36237 main ()
36238 {
36239 iconv_t cd = iconv_open("","");
36240          iconv(cd,NULL,NULL,NULL,NULL);
36241          iconv_close(cd);
36242   ;
36243   return 0;
36244 }
36245 _ACEOF
36246 rm -f conftest.$ac_objext conftest$ac_exeext
36247 if { (ac_try="$ac_link"
36248 case "(($ac_try" in
36249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36250   *) ac_try_echo=$ac_try;;
36251 esac
36252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36253   (eval "$ac_link") 2>conftest.er1
36254   ac_status=$?
36255   grep -v '^ *+' conftest.er1 >conftest.err
36256   rm -f conftest.er1
36257   cat conftest.err >&5
36258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259   (exit $ac_status); } && {
36260          test -z "$ac_c_werror_flag" ||
36261          test ! -s conftest.err
36262        } && test -s conftest$ac_exeext &&
36263        $as_test_x conftest$ac_exeext; then
36264   am_cv_lib_iconv=yes
36265         am_cv_func_iconv=yes
36266 else
36267   echo "$as_me: failed program was:" >&5
36268 sed 's/^/| /' conftest.$ac_ext >&5
36269
36270
36271 fi
36272
36273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36274       conftest$ac_exeext conftest.$ac_ext
36275       LIBS="$am_save_LIBS"
36276     fi
36277
36278 fi
36279 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36280 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36281   if test "$am_cv_func_iconv" = yes; then
36282
36283 cat >>confdefs.h <<\_ACEOF
36284 #define HAVE_ICONV 1
36285 _ACEOF
36286
36287     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36288 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36289 if test "${wx_cv_func_iconv_const+set}" = set; then
36290   echo $ECHO_N "(cached) $ECHO_C" >&6
36291 else
36292   cat >conftest.$ac_ext <<_ACEOF
36293 /* confdefs.h.  */
36294 _ACEOF
36295 cat confdefs.h >>conftest.$ac_ext
36296 cat >>conftest.$ac_ext <<_ACEOF
36297 /* end confdefs.h.  */
36298
36299 #include <stdlib.h>
36300 #include <iconv.h>
36301 extern
36302 #ifdef __cplusplus
36303 "C"
36304 #endif
36305 #if defined(__STDC__) || defined(__cplusplus)
36306 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36307 #else
36308 size_t iconv();
36309 #endif
36310
36311 int
36312 main ()
36313 {
36314
36315   ;
36316   return 0;
36317 }
36318 _ACEOF
36319 rm -f conftest.$ac_objext
36320 if { (ac_try="$ac_compile"
36321 case "(($ac_try" in
36322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36323   *) ac_try_echo=$ac_try;;
36324 esac
36325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36326   (eval "$ac_compile") 2>conftest.er1
36327   ac_status=$?
36328   grep -v '^ *+' conftest.er1 >conftest.err
36329   rm -f conftest.er1
36330   cat conftest.err >&5
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); } && {
36333          test -z "$ac_c_werror_flag" ||
36334          test ! -s conftest.err
36335        } && test -s conftest.$ac_objext; then
36336   wx_cv_func_iconv_const="no"
36337 else
36338   echo "$as_me: failed program was:" >&5
36339 sed 's/^/| /' conftest.$ac_ext >&5
36340
36341         wx_cv_func_iconv_const="yes"
36342
36343 fi
36344
36345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36346
36347 fi
36348 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36349 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36350
36351     iconv_const=
36352     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36353         iconv_const="const"
36354     fi
36355
36356
36357 cat >>confdefs.h <<_ACEOF
36358 #define ICONV_CONST $iconv_const
36359 _ACEOF
36360
36361   fi
36362   LIBICONV=
36363   if test "$am_cv_lib_iconv" = yes; then
36364     LIBICONV="-liconv"
36365   fi
36366
36367
36368     LIBS="$LIBICONV $LIBS"
36369 fi
36370
36371 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36372
36373 for ac_func in sigaction
36374 do
36375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36379   echo $ECHO_N "(cached) $ECHO_C" >&6
36380 else
36381   cat >conftest.$ac_ext <<_ACEOF
36382 /* confdefs.h.  */
36383 _ACEOF
36384 cat confdefs.h >>conftest.$ac_ext
36385 cat >>conftest.$ac_ext <<_ACEOF
36386 /* end confdefs.h.  */
36387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36389 #define $ac_func innocuous_$ac_func
36390
36391 /* System header to define __stub macros and hopefully few prototypes,
36392     which can conflict with char $ac_func (); below.
36393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36394     <limits.h> exists even on freestanding compilers.  */
36395
36396 #ifdef __STDC__
36397 # include <limits.h>
36398 #else
36399 # include <assert.h>
36400 #endif
36401
36402 #undef $ac_func
36403
36404 /* Override any GCC internal prototype to avoid an error.
36405    Use char because int might match the return type of a GCC
36406    builtin and then its argument prototype would still apply.  */
36407 #ifdef __cplusplus
36408 extern "C"
36409 #endif
36410 char $ac_func ();
36411 /* The GNU C library defines this for functions which it implements
36412     to always fail with ENOSYS.  Some functions are actually named
36413     something starting with __ and the normal name is an alias.  */
36414 #if defined __stub_$ac_func || defined __stub___$ac_func
36415 choke me
36416 #endif
36417
36418 int
36419 main ()
36420 {
36421 return $ac_func ();
36422   ;
36423   return 0;
36424 }
36425 _ACEOF
36426 rm -f conftest.$ac_objext conftest$ac_exeext
36427 if { (ac_try="$ac_link"
36428 case "(($ac_try" in
36429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36430   *) ac_try_echo=$ac_try;;
36431 esac
36432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36433   (eval "$ac_link") 2>conftest.er1
36434   ac_status=$?
36435   grep -v '^ *+' conftest.er1 >conftest.err
36436   rm -f conftest.er1
36437   cat conftest.err >&5
36438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439   (exit $ac_status); } && {
36440          test -z "$ac_c_werror_flag" ||
36441          test ! -s conftest.err
36442        } && test -s conftest$ac_exeext &&
36443        $as_test_x conftest$ac_exeext; then
36444   eval "$as_ac_var=yes"
36445 else
36446   echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36448
36449         eval "$as_ac_var=no"
36450 fi
36451
36452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36453       conftest$ac_exeext conftest.$ac_ext
36454 fi
36455 ac_res=`eval echo '${'$as_ac_var'}'`
36456                { echo "$as_me:$LINENO: result: $ac_res" >&5
36457 echo "${ECHO_T}$ac_res" >&6; }
36458 if test `eval echo '${'$as_ac_var'}'` = yes; then
36459   cat >>confdefs.h <<_ACEOF
36460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36461 _ACEOF
36462
36463 fi
36464 done
36465
36466
36467     if test "$ac_cv_func_sigaction" = "no"; then
36468         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36469 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36470         wxUSE_ON_FATAL_EXCEPTION=no
36471     fi
36472
36473     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36474       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36475 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36476 if test "${wx_cv_type_sa_handler+set}" = set; then
36477   echo $ECHO_N "(cached) $ECHO_C" >&6
36478 else
36479
36480                 ac_ext=cpp
36481 ac_cpp='$CXXCPP $CPPFLAGS'
36482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36485
36486         cat >conftest.$ac_ext <<_ACEOF
36487 /* confdefs.h.  */
36488 _ACEOF
36489 cat confdefs.h >>conftest.$ac_ext
36490 cat >>conftest.$ac_ext <<_ACEOF
36491 /* end confdefs.h.  */
36492 #include <signal.h>
36493 int
36494 main ()
36495 {
36496
36497                         extern void testSigHandler(int);
36498
36499                         struct sigaction sa;
36500                         sa.sa_handler = testSigHandler;
36501
36502   ;
36503   return 0;
36504 }
36505 _ACEOF
36506 rm -f conftest.$ac_objext
36507 if { (ac_try="$ac_compile"
36508 case "(($ac_try" in
36509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36510   *) ac_try_echo=$ac_try;;
36511 esac
36512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36513   (eval "$ac_compile") 2>conftest.er1
36514   ac_status=$?
36515   grep -v '^ *+' conftest.er1 >conftest.err
36516   rm -f conftest.er1
36517   cat conftest.err >&5
36518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519   (exit $ac_status); } && {
36520          test -z "$ac_cxx_werror_flag" ||
36521          test ! -s conftest.err
36522        } && test -s conftest.$ac_objext; then
36523
36524                         wx_cv_type_sa_handler=int
36525
36526 else
36527   echo "$as_me: failed program was:" >&5
36528 sed 's/^/| /' conftest.$ac_ext >&5
36529
36530
36531                         wx_cv_type_sa_handler=void
36532
36533 fi
36534
36535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36536         ac_ext=c
36537 ac_cpp='$CPP $CPPFLAGS'
36538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36541
36542
36543 fi
36544 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36545 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36546
36547       cat >>confdefs.h <<_ACEOF
36548 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36549 _ACEOF
36550
36551     fi
36552 fi
36553
36554 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36555     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36556 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36557 if test "${wx_cv_func_backtrace+set}" = set; then
36558   echo $ECHO_N "(cached) $ECHO_C" >&6
36559 else
36560
36561             ac_ext=cpp
36562 ac_cpp='$CXXCPP $CPPFLAGS'
36563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36566
36567             cat >conftest.$ac_ext <<_ACEOF
36568 /* confdefs.h.  */
36569 _ACEOF
36570 cat confdefs.h >>conftest.$ac_ext
36571 cat >>conftest.$ac_ext <<_ACEOF
36572 /* end confdefs.h.  */
36573 #include <execinfo.h>
36574 int
36575 main ()
36576 {
36577
36578                     void *trace[1];
36579                     char **messages;
36580
36581                     backtrace(trace, 1);
36582                     messages = backtrace_symbols(trace, 1);
36583
36584   ;
36585   return 0;
36586 }
36587 _ACEOF
36588 rm -f conftest.$ac_objext
36589 if { (ac_try="$ac_compile"
36590 case "(($ac_try" in
36591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36592   *) ac_try_echo=$ac_try;;
36593 esac
36594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36595   (eval "$ac_compile") 2>conftest.er1
36596   ac_status=$?
36597   grep -v '^ *+' conftest.er1 >conftest.err
36598   rm -f conftest.er1
36599   cat conftest.err >&5
36600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36601   (exit $ac_status); } && {
36602          test -z "$ac_cxx_werror_flag" ||
36603          test ! -s conftest.err
36604        } && test -s conftest.$ac_objext; then
36605   wx_cv_func_backtrace=yes
36606 else
36607   echo "$as_me: failed program was:" >&5
36608 sed 's/^/| /' conftest.$ac_ext >&5
36609
36610         wx_cv_func_backtrace=no
36611
36612 fi
36613
36614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36615             ac_ext=c
36616 ac_cpp='$CPP $CPPFLAGS'
36617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36620
36621
36622
36623 fi
36624 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36625 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36626
36627
36628     if test "$wx_cv_func_backtrace" = "no"; then
36629         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36630 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36631         wxUSE_STACKWALKER=no
36632     else
36633         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36634 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36635 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36636   echo $ECHO_N "(cached) $ECHO_C" >&6
36637 else
36638
36639                 ac_ext=cpp
36640 ac_cpp='$CXXCPP $CPPFLAGS'
36641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36644
36645                 cat >conftest.$ac_ext <<_ACEOF
36646 /* confdefs.h.  */
36647 _ACEOF
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h.  */
36651 #include <cxxabi.h>
36652 int
36653 main ()
36654 {
36655
36656                         int rc;
36657                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36658
36659   ;
36660   return 0;
36661 }
36662 _ACEOF
36663 rm -f conftest.$ac_objext conftest$ac_exeext
36664 if { (ac_try="$ac_link"
36665 case "(($ac_try" in
36666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36667   *) ac_try_echo=$ac_try;;
36668 esac
36669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36670   (eval "$ac_link") 2>conftest.er1
36671   ac_status=$?
36672   grep -v '^ *+' conftest.er1 >conftest.err
36673   rm -f conftest.er1
36674   cat conftest.err >&5
36675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676   (exit $ac_status); } && {
36677          test -z "$ac_cxx_werror_flag" ||
36678          test ! -s conftest.err
36679        } && test -s conftest$ac_exeext &&
36680        $as_test_x conftest$ac_exeext; then
36681   wx_cv_func_cxa_demangle=yes
36682 else
36683   echo "$as_me: failed program was:" >&5
36684 sed 's/^/| /' conftest.$ac_ext >&5
36685
36686         wx_cv_func_cxa_demangle=no
36687
36688 fi
36689
36690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36691       conftest$ac_exeext conftest.$ac_ext
36692                 ac_ext=c
36693 ac_cpp='$CPP $CPPFLAGS'
36694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36697
36698
36699
36700 fi
36701 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36702 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36703
36704         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36705             cat >>confdefs.h <<\_ACEOF
36706 #define HAVE_CXA_DEMANGLE 1
36707 _ACEOF
36708
36709         fi
36710     fi
36711 fi
36712
36713 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36714     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36715 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36716     wxUSE_STACKWALKER=no
36717 fi
36718
36719
36720
36721
36722 for ac_func in mkstemp mktemp
36723 do
36724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36728   echo $ECHO_N "(cached) $ECHO_C" >&6
36729 else
36730   cat >conftest.$ac_ext <<_ACEOF
36731 /* confdefs.h.  */
36732 _ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h.  */
36736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36738 #define $ac_func innocuous_$ac_func
36739
36740 /* System header to define __stub macros and hopefully few prototypes,
36741     which can conflict with char $ac_func (); below.
36742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36743     <limits.h> exists even on freestanding compilers.  */
36744
36745 #ifdef __STDC__
36746 # include <limits.h>
36747 #else
36748 # include <assert.h>
36749 #endif
36750
36751 #undef $ac_func
36752
36753 /* Override any GCC internal prototype to avoid an error.
36754    Use char because int might match the return type of a GCC
36755    builtin and then its argument prototype would still apply.  */
36756 #ifdef __cplusplus
36757 extern "C"
36758 #endif
36759 char $ac_func ();
36760 /* The GNU C library defines this for functions which it implements
36761     to always fail with ENOSYS.  Some functions are actually named
36762     something starting with __ and the normal name is an alias.  */
36763 #if defined __stub_$ac_func || defined __stub___$ac_func
36764 choke me
36765 #endif
36766
36767 int
36768 main ()
36769 {
36770 return $ac_func ();
36771   ;
36772   return 0;
36773 }
36774 _ACEOF
36775 rm -f conftest.$ac_objext conftest$ac_exeext
36776 if { (ac_try="$ac_link"
36777 case "(($ac_try" in
36778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36779   *) ac_try_echo=$ac_try;;
36780 esac
36781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36782   (eval "$ac_link") 2>conftest.er1
36783   ac_status=$?
36784   grep -v '^ *+' conftest.er1 >conftest.err
36785   rm -f conftest.er1
36786   cat conftest.err >&5
36787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36788   (exit $ac_status); } && {
36789          test -z "$ac_c_werror_flag" ||
36790          test ! -s conftest.err
36791        } && test -s conftest$ac_exeext &&
36792        $as_test_x conftest$ac_exeext; then
36793   eval "$as_ac_var=yes"
36794 else
36795   echo "$as_me: failed program was:" >&5
36796 sed 's/^/| /' conftest.$ac_ext >&5
36797
36798         eval "$as_ac_var=no"
36799 fi
36800
36801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36802       conftest$ac_exeext conftest.$ac_ext
36803 fi
36804 ac_res=`eval echo '${'$as_ac_var'}'`
36805                { echo "$as_me:$LINENO: result: $ac_res" >&5
36806 echo "${ECHO_T}$ac_res" >&6; }
36807 if test `eval echo '${'$as_ac_var'}'` = yes; then
36808   cat >>confdefs.h <<_ACEOF
36809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36810 _ACEOF
36811  break
36812 fi
36813 done
36814
36815
36816 { echo "$as_me:$LINENO: checking for statfs" >&5
36817 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36818 if test "${wx_cv_func_statfs+set}" = set; then
36819   echo $ECHO_N "(cached) $ECHO_C" >&6
36820 else
36821   cat >conftest.$ac_ext <<_ACEOF
36822 /* confdefs.h.  */
36823 _ACEOF
36824 cat confdefs.h >>conftest.$ac_ext
36825 cat >>conftest.$ac_ext <<_ACEOF
36826 /* end confdefs.h.  */
36827
36828              #if defined(__BSD__)
36829              #include <sys/param.h>
36830              #include <sys/mount.h>
36831              #else
36832              #include <sys/vfs.h>
36833              #endif
36834
36835 int
36836 main ()
36837 {
36838
36839              long l;
36840              struct statfs fs;
36841              statfs("/", &fs);
36842              l = fs.f_bsize;
36843              l += fs.f_blocks;
36844              l += fs.f_bavail;
36845
36846   ;
36847   return 0;
36848 }
36849 _ACEOF
36850 rm -f conftest.$ac_objext
36851 if { (ac_try="$ac_compile"
36852 case "(($ac_try" in
36853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36854   *) ac_try_echo=$ac_try;;
36855 esac
36856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36857   (eval "$ac_compile") 2>conftest.er1
36858   ac_status=$?
36859   grep -v '^ *+' conftest.er1 >conftest.err
36860   rm -f conftest.er1
36861   cat conftest.err >&5
36862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863   (exit $ac_status); } && {
36864          test -z "$ac_c_werror_flag" ||
36865          test ! -s conftest.err
36866        } && test -s conftest.$ac_objext; then
36867   wx_cv_func_statfs=yes
36868 else
36869   echo "$as_me: failed program was:" >&5
36870 sed 's/^/| /' conftest.$ac_ext >&5
36871
36872         wx_cv_func_statfs=no
36873
36874 fi
36875
36876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36877
36878 fi
36879 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36880 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36881
36882 if test "$wx_cv_func_statfs" = "yes"; then
36883         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36884 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36885 if test "${wx_cv_func_statfs_decl+set}" = set; then
36886   echo $ECHO_N "(cached) $ECHO_C" >&6
36887 else
36888   ac_ext=cpp
36889 ac_cpp='$CXXCPP $CPPFLAGS'
36890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36893
36894         cat >conftest.$ac_ext <<_ACEOF
36895 /* confdefs.h.  */
36896 _ACEOF
36897 cat confdefs.h >>conftest.$ac_ext
36898 cat >>conftest.$ac_ext <<_ACEOF
36899 /* end confdefs.h.  */
36900
36901                  #if defined(__BSD__)
36902                  #include <sys/param.h>
36903                  #include <sys/mount.h>
36904                  #else
36905                  #include <sys/vfs.h>
36906                  #endif
36907
36908 int
36909 main ()
36910 {
36911
36912                 struct statfs fs;
36913                 statfs("", &fs);
36914
36915   ;
36916   return 0;
36917 }
36918 _ACEOF
36919 rm -f conftest.$ac_objext
36920 if { (ac_try="$ac_compile"
36921 case "(($ac_try" in
36922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36923   *) ac_try_echo=$ac_try;;
36924 esac
36925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36926   (eval "$ac_compile") 2>conftest.er1
36927   ac_status=$?
36928   grep -v '^ *+' conftest.er1 >conftest.err
36929   rm -f conftest.er1
36930   cat conftest.err >&5
36931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932   (exit $ac_status); } && {
36933          test -z "$ac_cxx_werror_flag" ||
36934          test ! -s conftest.err
36935        } && test -s conftest.$ac_objext; then
36936   wx_cv_func_statfs_decl=yes
36937 else
36938   echo "$as_me: failed program was:" >&5
36939 sed 's/^/| /' conftest.$ac_ext >&5
36940
36941         wx_cv_func_statfs_decl=no
36942
36943 fi
36944
36945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36946         ac_ext=c
36947 ac_cpp='$CPP $CPPFLAGS'
36948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36951
36952
36953 fi
36954 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36955 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36956
36957     if test "$wx_cv_func_statfs_decl" = "yes"; then
36958         cat >>confdefs.h <<\_ACEOF
36959 #define HAVE_STATFS_DECL 1
36960 _ACEOF
36961
36962     fi
36963
36964     wx_cv_type_statvfs_t="struct statfs"
36965     cat >>confdefs.h <<\_ACEOF
36966 #define HAVE_STATFS 1
36967 _ACEOF
36968
36969 else
36970     { echo "$as_me:$LINENO: checking for statvfs" >&5
36971 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36972 if test "${wx_cv_func_statvfs+set}" = set; then
36973   echo $ECHO_N "(cached) $ECHO_C" >&6
36974 else
36975   cat >conftest.$ac_ext <<_ACEOF
36976 /* confdefs.h.  */
36977 _ACEOF
36978 cat confdefs.h >>conftest.$ac_ext
36979 cat >>conftest.$ac_ext <<_ACEOF
36980 /* end confdefs.h.  */
36981
36982                 #include <stddef.h>
36983                 #include <sys/statvfs.h>
36984
36985 int
36986 main ()
36987 {
36988
36989                 statvfs("/", NULL);
36990
36991   ;
36992   return 0;
36993 }
36994 _ACEOF
36995 rm -f conftest.$ac_objext
36996 if { (ac_try="$ac_compile"
36997 case "(($ac_try" in
36998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36999   *) ac_try_echo=$ac_try;;
37000 esac
37001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37002   (eval "$ac_compile") 2>conftest.er1
37003   ac_status=$?
37004   grep -v '^ *+' conftest.er1 >conftest.err
37005   rm -f conftest.er1
37006   cat conftest.err >&5
37007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008   (exit $ac_status); } && {
37009          test -z "$ac_c_werror_flag" ||
37010          test ! -s conftest.err
37011        } && test -s conftest.$ac_objext; then
37012   wx_cv_func_statvfs=yes
37013 else
37014   echo "$as_me: failed program was:" >&5
37015 sed 's/^/| /' conftest.$ac_ext >&5
37016
37017         wx_cv_func_statvfs=no
37018
37019 fi
37020
37021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37022
37023 fi
37024 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37025 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
37026
37027     if test "$wx_cv_func_statvfs" = "yes"; then
37028                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37029 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
37030 if test "${wx_cv_type_statvfs_t+set}" = set; then
37031   echo $ECHO_N "(cached) $ECHO_C" >&6
37032 else
37033   ac_ext=cpp
37034 ac_cpp='$CXXCPP $CPPFLAGS'
37035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37038
37039             cat >conftest.$ac_ext <<_ACEOF
37040 /* confdefs.h.  */
37041 _ACEOF
37042 cat confdefs.h >>conftest.$ac_ext
37043 cat >>conftest.$ac_ext <<_ACEOF
37044 /* end confdefs.h.  */
37045
37046                     #include <sys/statvfs.h>
37047
37048 int
37049 main ()
37050 {
37051
37052                     long l;
37053                     statvfs_t fs;
37054                     statvfs("/", &fs);
37055                     l = fs.f_bsize;
37056                     l += fs.f_blocks;
37057                     l += fs.f_bavail;
37058
37059   ;
37060   return 0;
37061 }
37062 _ACEOF
37063 rm -f conftest.$ac_objext
37064 if { (ac_try="$ac_compile"
37065 case "(($ac_try" in
37066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37067   *) ac_try_echo=$ac_try;;
37068 esac
37069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37070   (eval "$ac_compile") 2>conftest.er1
37071   ac_status=$?
37072   grep -v '^ *+' conftest.er1 >conftest.err
37073   rm -f conftest.er1
37074   cat conftest.err >&5
37075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076   (exit $ac_status); } && {
37077          test -z "$ac_cxx_werror_flag" ||
37078          test ! -s conftest.err
37079        } && test -s conftest.$ac_objext; then
37080   wx_cv_type_statvfs_t=statvfs_t
37081 else
37082   echo "$as_me: failed program was:" >&5
37083 sed 's/^/| /' conftest.$ac_ext >&5
37084
37085
37086                     cat >conftest.$ac_ext <<_ACEOF
37087 /* confdefs.h.  */
37088 _ACEOF
37089 cat confdefs.h >>conftest.$ac_ext
37090 cat >>conftest.$ac_ext <<_ACEOF
37091 /* end confdefs.h.  */
37092
37093                             #include <sys/statvfs.h>
37094
37095 int
37096 main ()
37097 {
37098
37099                             long l;
37100                             struct statvfs fs;
37101                             statvfs("/", &fs);
37102                             l = fs.f_bsize;
37103                             l += fs.f_blocks;
37104                             l += fs.f_bavail;
37105
37106   ;
37107   return 0;
37108 }
37109 _ACEOF
37110 rm -f conftest.$ac_objext
37111 if { (ac_try="$ac_compile"
37112 case "(($ac_try" in
37113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37114   *) ac_try_echo=$ac_try;;
37115 esac
37116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37117   (eval "$ac_compile") 2>conftest.er1
37118   ac_status=$?
37119   grep -v '^ *+' conftest.er1 >conftest.err
37120   rm -f conftest.er1
37121   cat conftest.err >&5
37122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123   (exit $ac_status); } && {
37124          test -z "$ac_cxx_werror_flag" ||
37125          test ! -s conftest.err
37126        } && test -s conftest.$ac_objext; then
37127   wx_cv_type_statvfs_t="struct statvfs"
37128 else
37129   echo "$as_me: failed program was:" >&5
37130 sed 's/^/| /' conftest.$ac_ext >&5
37131
37132         wx_cv_type_statvfs_t="unknown"
37133
37134 fi
37135
37136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37137
37138
37139 fi
37140
37141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37142             ac_ext=c
37143 ac_cpp='$CPP $CPPFLAGS'
37144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37147
37148
37149 fi
37150 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37151 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37152
37153         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37154             cat >>confdefs.h <<\_ACEOF
37155 #define HAVE_STATVFS 1
37156 _ACEOF
37157
37158         fi
37159     else
37160                 wx_cv_type_statvfs_t="unknown"
37161     fi
37162 fi
37163
37164 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37165     cat >>confdefs.h <<_ACEOF
37166 #define WX_STATFS_T $wx_cv_type_statvfs_t
37167 _ACEOF
37168
37169 else
37170     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37171 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37172 fi
37173
37174 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37175
37176
37177 for ac_func in fcntl flock
37178 do
37179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37183   echo $ECHO_N "(cached) $ECHO_C" >&6
37184 else
37185   cat >conftest.$ac_ext <<_ACEOF
37186 /* confdefs.h.  */
37187 _ACEOF
37188 cat confdefs.h >>conftest.$ac_ext
37189 cat >>conftest.$ac_ext <<_ACEOF
37190 /* end confdefs.h.  */
37191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37193 #define $ac_func innocuous_$ac_func
37194
37195 /* System header to define __stub macros and hopefully few prototypes,
37196     which can conflict with char $ac_func (); below.
37197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37198     <limits.h> exists even on freestanding compilers.  */
37199
37200 #ifdef __STDC__
37201 # include <limits.h>
37202 #else
37203 # include <assert.h>
37204 #endif
37205
37206 #undef $ac_func
37207
37208 /* Override any GCC internal prototype to avoid an error.
37209    Use char because int might match the return type of a GCC
37210    builtin and then its argument prototype would still apply.  */
37211 #ifdef __cplusplus
37212 extern "C"
37213 #endif
37214 char $ac_func ();
37215 /* The GNU C library defines this for functions which it implements
37216     to always fail with ENOSYS.  Some functions are actually named
37217     something starting with __ and the normal name is an alias.  */
37218 #if defined __stub_$ac_func || defined __stub___$ac_func
37219 choke me
37220 #endif
37221
37222 int
37223 main ()
37224 {
37225 return $ac_func ();
37226   ;
37227   return 0;
37228 }
37229 _ACEOF
37230 rm -f conftest.$ac_objext conftest$ac_exeext
37231 if { (ac_try="$ac_link"
37232 case "(($ac_try" in
37233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37234   *) ac_try_echo=$ac_try;;
37235 esac
37236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37237   (eval "$ac_link") 2>conftest.er1
37238   ac_status=$?
37239   grep -v '^ *+' conftest.er1 >conftest.err
37240   rm -f conftest.er1
37241   cat conftest.err >&5
37242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243   (exit $ac_status); } && {
37244          test -z "$ac_c_werror_flag" ||
37245          test ! -s conftest.err
37246        } && test -s conftest$ac_exeext &&
37247        $as_test_x conftest$ac_exeext; then
37248   eval "$as_ac_var=yes"
37249 else
37250   echo "$as_me: failed program was:" >&5
37251 sed 's/^/| /' conftest.$ac_ext >&5
37252
37253         eval "$as_ac_var=no"
37254 fi
37255
37256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37257       conftest$ac_exeext conftest.$ac_ext
37258 fi
37259 ac_res=`eval echo '${'$as_ac_var'}'`
37260                { echo "$as_me:$LINENO: result: $ac_res" >&5
37261 echo "${ECHO_T}$ac_res" >&6; }
37262 if test `eval echo '${'$as_ac_var'}'` = yes; then
37263   cat >>confdefs.h <<_ACEOF
37264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37265 _ACEOF
37266  break
37267 fi
37268 done
37269
37270
37271     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37272         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37273 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37274         wxUSE_SNGLINST_CHECKER=no
37275     fi
37276 fi
37277
37278
37279
37280 for ac_func in setenv putenv
37281 do
37282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37286   echo $ECHO_N "(cached) $ECHO_C" >&6
37287 else
37288   cat >conftest.$ac_ext <<_ACEOF
37289 /* confdefs.h.  */
37290 _ACEOF
37291 cat confdefs.h >>conftest.$ac_ext
37292 cat >>conftest.$ac_ext <<_ACEOF
37293 /* end confdefs.h.  */
37294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37296 #define $ac_func innocuous_$ac_func
37297
37298 /* System header to define __stub macros and hopefully few prototypes,
37299     which can conflict with char $ac_func (); below.
37300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37301     <limits.h> exists even on freestanding compilers.  */
37302
37303 #ifdef __STDC__
37304 # include <limits.h>
37305 #else
37306 # include <assert.h>
37307 #endif
37308
37309 #undef $ac_func
37310
37311 /* Override any GCC internal prototype to avoid an error.
37312    Use char because int might match the return type of a GCC
37313    builtin and then its argument prototype would still apply.  */
37314 #ifdef __cplusplus
37315 extern "C"
37316 #endif
37317 char $ac_func ();
37318 /* The GNU C library defines this for functions which it implements
37319     to always fail with ENOSYS.  Some functions are actually named
37320     something starting with __ and the normal name is an alias.  */
37321 #if defined __stub_$ac_func || defined __stub___$ac_func
37322 choke me
37323 #endif
37324
37325 int
37326 main ()
37327 {
37328 return $ac_func ();
37329   ;
37330   return 0;
37331 }
37332 _ACEOF
37333 rm -f conftest.$ac_objext conftest$ac_exeext
37334 if { (ac_try="$ac_link"
37335 case "(($ac_try" in
37336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37337   *) ac_try_echo=$ac_try;;
37338 esac
37339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37340   (eval "$ac_link") 2>conftest.er1
37341   ac_status=$?
37342   grep -v '^ *+' conftest.er1 >conftest.err
37343   rm -f conftest.er1
37344   cat conftest.err >&5
37345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346   (exit $ac_status); } && {
37347          test -z "$ac_c_werror_flag" ||
37348          test ! -s conftest.err
37349        } && test -s conftest$ac_exeext &&
37350        $as_test_x conftest$ac_exeext; then
37351   eval "$as_ac_var=yes"
37352 else
37353   echo "$as_me: failed program was:" >&5
37354 sed 's/^/| /' conftest.$ac_ext >&5
37355
37356         eval "$as_ac_var=no"
37357 fi
37358
37359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37360       conftest$ac_exeext conftest.$ac_ext
37361 fi
37362 ac_res=`eval echo '${'$as_ac_var'}'`
37363                { echo "$as_me:$LINENO: result: $ac_res" >&5
37364 echo "${ECHO_T}$ac_res" >&6; }
37365 if test `eval echo '${'$as_ac_var'}'` = yes; then
37366   cat >>confdefs.h <<_ACEOF
37367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37368 _ACEOF
37369  break
37370 fi
37371 done
37372
37373 if test "$ac_cv_func_setenv" = "yes"; then
37374
37375 for ac_func in unsetenv
37376 do
37377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37381   echo $ECHO_N "(cached) $ECHO_C" >&6
37382 else
37383   cat >conftest.$ac_ext <<_ACEOF
37384 /* confdefs.h.  */
37385 _ACEOF
37386 cat confdefs.h >>conftest.$ac_ext
37387 cat >>conftest.$ac_ext <<_ACEOF
37388 /* end confdefs.h.  */
37389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37391 #define $ac_func innocuous_$ac_func
37392
37393 /* System header to define __stub macros and hopefully few prototypes,
37394     which can conflict with char $ac_func (); below.
37395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37396     <limits.h> exists even on freestanding compilers.  */
37397
37398 #ifdef __STDC__
37399 # include <limits.h>
37400 #else
37401 # include <assert.h>
37402 #endif
37403
37404 #undef $ac_func
37405
37406 /* Override any GCC internal prototype to avoid an error.
37407    Use char because int might match the return type of a GCC
37408    builtin and then its argument prototype would still apply.  */
37409 #ifdef __cplusplus
37410 extern "C"
37411 #endif
37412 char $ac_func ();
37413 /* The GNU C library defines this for functions which it implements
37414     to always fail with ENOSYS.  Some functions are actually named
37415     something starting with __ and the normal name is an alias.  */
37416 #if defined __stub_$ac_func || defined __stub___$ac_func
37417 choke me
37418 #endif
37419
37420 int
37421 main ()
37422 {
37423 return $ac_func ();
37424   ;
37425   return 0;
37426 }
37427 _ACEOF
37428 rm -f conftest.$ac_objext conftest$ac_exeext
37429 if { (ac_try="$ac_link"
37430 case "(($ac_try" in
37431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37432   *) ac_try_echo=$ac_try;;
37433 esac
37434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37435   (eval "$ac_link") 2>conftest.er1
37436   ac_status=$?
37437   grep -v '^ *+' conftest.er1 >conftest.err
37438   rm -f conftest.er1
37439   cat conftest.err >&5
37440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441   (exit $ac_status); } && {
37442          test -z "$ac_c_werror_flag" ||
37443          test ! -s conftest.err
37444        } && test -s conftest$ac_exeext &&
37445        $as_test_x conftest$ac_exeext; then
37446   eval "$as_ac_var=yes"
37447 else
37448   echo "$as_me: failed program was:" >&5
37449 sed 's/^/| /' conftest.$ac_ext >&5
37450
37451         eval "$as_ac_var=no"
37452 fi
37453
37454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37455       conftest$ac_exeext conftest.$ac_ext
37456 fi
37457 ac_res=`eval echo '${'$as_ac_var'}'`
37458                { echo "$as_me:$LINENO: result: $ac_res" >&5
37459 echo "${ECHO_T}$ac_res" >&6; }
37460 if test `eval echo '${'$as_ac_var'}'` = yes; then
37461   cat >>confdefs.h <<_ACEOF
37462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37463 _ACEOF
37464
37465 fi
37466 done
37467
37468 fi
37469
37470 HAVE_SOME_SLEEP_FUNC=0
37471 if test "$USE_BEOS" = 1; then
37472             cat >>confdefs.h <<\_ACEOF
37473 #define HAVE_SLEEP 1
37474 _ACEOF
37475
37476     HAVE_SOME_SLEEP_FUNC=1
37477 fi
37478
37479 if test "$USE_DARWIN" = 1; then
37480             cat >>confdefs.h <<\_ACEOF
37481 #define HAVE_USLEEP 1
37482 _ACEOF
37483
37484     HAVE_SOME_SLEEP_FUNC=1
37485 fi
37486
37487 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37488         POSIX4_LINK=
37489
37490 for ac_func in nanosleep
37491 do
37492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37496   echo $ECHO_N "(cached) $ECHO_C" >&6
37497 else
37498   cat >conftest.$ac_ext <<_ACEOF
37499 /* confdefs.h.  */
37500 _ACEOF
37501 cat confdefs.h >>conftest.$ac_ext
37502 cat >>conftest.$ac_ext <<_ACEOF
37503 /* end confdefs.h.  */
37504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37506 #define $ac_func innocuous_$ac_func
37507
37508 /* System header to define __stub macros and hopefully few prototypes,
37509     which can conflict with char $ac_func (); below.
37510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37511     <limits.h> exists even on freestanding compilers.  */
37512
37513 #ifdef __STDC__
37514 # include <limits.h>
37515 #else
37516 # include <assert.h>
37517 #endif
37518
37519 #undef $ac_func
37520
37521 /* Override any GCC internal prototype to avoid an error.
37522    Use char because int might match the return type of a GCC
37523    builtin and then its argument prototype would still apply.  */
37524 #ifdef __cplusplus
37525 extern "C"
37526 #endif
37527 char $ac_func ();
37528 /* The GNU C library defines this for functions which it implements
37529     to always fail with ENOSYS.  Some functions are actually named
37530     something starting with __ and the normal name is an alias.  */
37531 #if defined __stub_$ac_func || defined __stub___$ac_func
37532 choke me
37533 #endif
37534
37535 int
37536 main ()
37537 {
37538 return $ac_func ();
37539   ;
37540   return 0;
37541 }
37542 _ACEOF
37543 rm -f conftest.$ac_objext conftest$ac_exeext
37544 if { (ac_try="$ac_link"
37545 case "(($ac_try" in
37546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547   *) ac_try_echo=$ac_try;;
37548 esac
37549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37550   (eval "$ac_link") 2>conftest.er1
37551   ac_status=$?
37552   grep -v '^ *+' conftest.er1 >conftest.err
37553   rm -f conftest.er1
37554   cat conftest.err >&5
37555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556   (exit $ac_status); } && {
37557          test -z "$ac_c_werror_flag" ||
37558          test ! -s conftest.err
37559        } && test -s conftest$ac_exeext &&
37560        $as_test_x conftest$ac_exeext; then
37561   eval "$as_ac_var=yes"
37562 else
37563   echo "$as_me: failed program was:" >&5
37564 sed 's/^/| /' conftest.$ac_ext >&5
37565
37566         eval "$as_ac_var=no"
37567 fi
37568
37569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37570       conftest$ac_exeext conftest.$ac_ext
37571 fi
37572 ac_res=`eval echo '${'$as_ac_var'}'`
37573                { echo "$as_me:$LINENO: result: $ac_res" >&5
37574 echo "${ECHO_T}$ac_res" >&6; }
37575 if test `eval echo '${'$as_ac_var'}'` = yes; then
37576   cat >>confdefs.h <<_ACEOF
37577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37578 _ACEOF
37579  cat >>confdefs.h <<\_ACEOF
37580 #define HAVE_NANOSLEEP 1
37581 _ACEOF
37582
37583 else
37584
37585             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37586 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37587 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37588   echo $ECHO_N "(cached) $ECHO_C" >&6
37589 else
37590   ac_check_lib_save_LIBS=$LIBS
37591 LIBS="-lposix4  $LIBS"
37592 cat >conftest.$ac_ext <<_ACEOF
37593 /* confdefs.h.  */
37594 _ACEOF
37595 cat confdefs.h >>conftest.$ac_ext
37596 cat >>conftest.$ac_ext <<_ACEOF
37597 /* end confdefs.h.  */
37598
37599 /* Override any GCC internal prototype to avoid an error.
37600    Use char because int might match the return type of a GCC
37601    builtin and then its argument prototype would still apply.  */
37602 #ifdef __cplusplus
37603 extern "C"
37604 #endif
37605 char nanosleep ();
37606 int
37607 main ()
37608 {
37609 return nanosleep ();
37610   ;
37611   return 0;
37612 }
37613 _ACEOF
37614 rm -f conftest.$ac_objext conftest$ac_exeext
37615 if { (ac_try="$ac_link"
37616 case "(($ac_try" in
37617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37618   *) ac_try_echo=$ac_try;;
37619 esac
37620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37621   (eval "$ac_link") 2>conftest.er1
37622   ac_status=$?
37623   grep -v '^ *+' conftest.er1 >conftest.err
37624   rm -f conftest.er1
37625   cat conftest.err >&5
37626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627   (exit $ac_status); } && {
37628          test -z "$ac_c_werror_flag" ||
37629          test ! -s conftest.err
37630        } && test -s conftest$ac_exeext &&
37631        $as_test_x conftest$ac_exeext; then
37632   ac_cv_lib_posix4_nanosleep=yes
37633 else
37634   echo "$as_me: failed program was:" >&5
37635 sed 's/^/| /' conftest.$ac_ext >&5
37636
37637         ac_cv_lib_posix4_nanosleep=no
37638 fi
37639
37640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37641       conftest$ac_exeext conftest.$ac_ext
37642 LIBS=$ac_check_lib_save_LIBS
37643 fi
37644 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37645 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37646 if test $ac_cv_lib_posix4_nanosleep = yes; then
37647
37648                     cat >>confdefs.h <<\_ACEOF
37649 #define HAVE_NANOSLEEP 1
37650 _ACEOF
37651
37652                     POSIX4_LINK=" -lposix4"
37653
37654 else
37655
37656
37657   for wx_func in usleep
37658   do
37659     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37660 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37661 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37662   echo $ECHO_N "(cached) $ECHO_C" >&6
37663 else
37664
37665         cat >conftest.$ac_ext <<_ACEOF
37666
37667             /* confdefs.h.  */
37668 _ACEOF
37669 cat confdefs.h >>conftest.$ac_ext
37670 cat >>conftest.$ac_ext <<_ACEOF
37671 /* end confdefs.h.  */
37672
37673
37674                 $ac_includes_default
37675
37676 int
37677 main ()
37678 {
37679
37680                 #ifndef $wx_func
37681                   &$wx_func;
37682                 #endif
37683
37684
37685   ;
37686   return 0;
37687 }
37688
37689 _ACEOF
37690 rm -f conftest.$ac_objext conftest$ac_exeext
37691 if { (ac_try="$ac_link"
37692 case "(($ac_try" in
37693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37694   *) ac_try_echo=$ac_try;;
37695 esac
37696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37697   (eval "$ac_link") 2>conftest.er1
37698   ac_status=$?
37699   grep -v '^ *+' conftest.er1 >conftest.err
37700   rm -f conftest.er1
37701   cat conftest.err >&5
37702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703   (exit $ac_status); } && {
37704          test -z "$ac_c_werror_flag" ||
37705          test ! -s conftest.err
37706        } && test -s conftest$ac_exeext &&
37707        $as_test_x conftest$ac_exeext; then
37708   eval wx_cv_func_$wx_func=yes
37709 else
37710   echo "$as_me: failed program was:" >&5
37711 sed 's/^/| /' conftest.$ac_ext >&5
37712
37713         eval wx_cv_func_$wx_func=no
37714 fi
37715
37716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37717       conftest$ac_exeext conftest.$ac_ext
37718
37719 fi
37720 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37721                { echo "$as_me:$LINENO: result: $ac_res" >&5
37722 echo "${ECHO_T}$ac_res" >&6; }
37723
37724     if eval test \$wx_cv_func_$wx_func = yes
37725     then
37726       cat >>confdefs.h <<_ACEOF
37727 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37728 _ACEOF
37729
37730
37731     else
37732       :
37733       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37734 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37735
37736     fi
37737   done
37738
37739
37740
37741 fi
37742
37743
37744
37745 fi
37746 done
37747
37748 fi
37749
37750
37751   for wx_func in uname
37752   do
37753     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37754 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37755 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37756   echo $ECHO_N "(cached) $ECHO_C" >&6
37757 else
37758
37759         cat >conftest.$ac_ext <<_ACEOF
37760
37761             /* confdefs.h.  */
37762 _ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h.  */
37766
37767                 #include <sys/utsname.h>
37768                 $ac_includes_default
37769
37770 int
37771 main ()
37772 {
37773
37774                 #ifndef $wx_func
37775                   &$wx_func;
37776                 #endif
37777
37778
37779   ;
37780   return 0;
37781 }
37782
37783 _ACEOF
37784 rm -f conftest.$ac_objext conftest$ac_exeext
37785 if { (ac_try="$ac_link"
37786 case "(($ac_try" in
37787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37788   *) ac_try_echo=$ac_try;;
37789 esac
37790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37791   (eval "$ac_link") 2>conftest.er1
37792   ac_status=$?
37793   grep -v '^ *+' conftest.er1 >conftest.err
37794   rm -f conftest.er1
37795   cat conftest.err >&5
37796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797   (exit $ac_status); } && {
37798          test -z "$ac_c_werror_flag" ||
37799          test ! -s conftest.err
37800        } && test -s conftest$ac_exeext &&
37801        $as_test_x conftest$ac_exeext; then
37802   eval wx_cv_func_$wx_func=yes
37803 else
37804   echo "$as_me: failed program was:" >&5
37805 sed 's/^/| /' conftest.$ac_ext >&5
37806
37807         eval wx_cv_func_$wx_func=no
37808 fi
37809
37810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37811       conftest$ac_exeext conftest.$ac_ext
37812
37813 fi
37814 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37815                { echo "$as_me:$LINENO: result: $ac_res" >&5
37816 echo "${ECHO_T}$ac_res" >&6; }
37817
37818     if eval test \$wx_cv_func_$wx_func = yes
37819     then
37820       cat >>confdefs.h <<_ACEOF
37821 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37822 _ACEOF
37823
37824
37825     else
37826       :
37827
37828     fi
37829   done
37830
37831 if test "$wx_cv_func_uname" != yes; then
37832
37833   for wx_func in gethostname
37834   do
37835     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37836 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37837 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37838   echo $ECHO_N "(cached) $ECHO_C" >&6
37839 else
37840
37841         cat >conftest.$ac_ext <<_ACEOF
37842
37843             /* confdefs.h.  */
37844 _ACEOF
37845 cat confdefs.h >>conftest.$ac_ext
37846 cat >>conftest.$ac_ext <<_ACEOF
37847 /* end confdefs.h.  */
37848
37849
37850                 $ac_includes_default
37851
37852 int
37853 main ()
37854 {
37855
37856                 #ifndef $wx_func
37857                   &$wx_func;
37858                 #endif
37859
37860
37861   ;
37862   return 0;
37863 }
37864
37865 _ACEOF
37866 rm -f conftest.$ac_objext conftest$ac_exeext
37867 if { (ac_try="$ac_link"
37868 case "(($ac_try" in
37869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37870   *) ac_try_echo=$ac_try;;
37871 esac
37872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37873   (eval "$ac_link") 2>conftest.er1
37874   ac_status=$?
37875   grep -v '^ *+' conftest.er1 >conftest.err
37876   rm -f conftest.er1
37877   cat conftest.err >&5
37878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879   (exit $ac_status); } && {
37880          test -z "$ac_c_werror_flag" ||
37881          test ! -s conftest.err
37882        } && test -s conftest$ac_exeext &&
37883        $as_test_x conftest$ac_exeext; then
37884   eval wx_cv_func_$wx_func=yes
37885 else
37886   echo "$as_me: failed program was:" >&5
37887 sed 's/^/| /' conftest.$ac_ext >&5
37888
37889         eval wx_cv_func_$wx_func=no
37890 fi
37891
37892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37893       conftest$ac_exeext conftest.$ac_ext
37894
37895 fi
37896 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37897                { echo "$as_me:$LINENO: result: $ac_res" >&5
37898 echo "${ECHO_T}$ac_res" >&6; }
37899
37900     if eval test \$wx_cv_func_$wx_func = yes
37901     then
37902       cat >>confdefs.h <<_ACEOF
37903 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37904 _ACEOF
37905
37906
37907     else
37908       :
37909
37910     fi
37911   done
37912
37913 fi
37914
37915
37916   for wx_func in strtok_r
37917   do
37918     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37919 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37920 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37921   echo $ECHO_N "(cached) $ECHO_C" >&6
37922 else
37923
37924         cat >conftest.$ac_ext <<_ACEOF
37925
37926             /* confdefs.h.  */
37927 _ACEOF
37928 cat confdefs.h >>conftest.$ac_ext
37929 cat >>conftest.$ac_ext <<_ACEOF
37930 /* end confdefs.h.  */
37931
37932                 #define _REENTRANT
37933                 $ac_includes_default
37934
37935 int
37936 main ()
37937 {
37938
37939                 #ifndef $wx_func
37940                   &$wx_func;
37941                 #endif
37942
37943
37944   ;
37945   return 0;
37946 }
37947
37948 _ACEOF
37949 rm -f conftest.$ac_objext conftest$ac_exeext
37950 if { (ac_try="$ac_link"
37951 case "(($ac_try" in
37952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37953   *) ac_try_echo=$ac_try;;
37954 esac
37955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37956   (eval "$ac_link") 2>conftest.er1
37957   ac_status=$?
37958   grep -v '^ *+' conftest.er1 >conftest.err
37959   rm -f conftest.er1
37960   cat conftest.err >&5
37961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962   (exit $ac_status); } && {
37963          test -z "$ac_c_werror_flag" ||
37964          test ! -s conftest.err
37965        } && test -s conftest$ac_exeext &&
37966        $as_test_x conftest$ac_exeext; then
37967   eval wx_cv_func_$wx_func=yes
37968 else
37969   echo "$as_me: failed program was:" >&5
37970 sed 's/^/| /' conftest.$ac_ext >&5
37971
37972         eval wx_cv_func_$wx_func=no
37973 fi
37974
37975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37976       conftest$ac_exeext conftest.$ac_ext
37977
37978 fi
37979 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37980                { echo "$as_me:$LINENO: result: $ac_res" >&5
37981 echo "${ECHO_T}$ac_res" >&6; }
37982
37983     if eval test \$wx_cv_func_$wx_func = yes
37984     then
37985       cat >>confdefs.h <<_ACEOF
37986 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37987 _ACEOF
37988
37989
37990     else
37991       :
37992
37993     fi
37994   done
37995
37996
37997 INET_LINK=
37998
37999 for ac_func in inet_addr
38000 do
38001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38005   echo $ECHO_N "(cached) $ECHO_C" >&6
38006 else
38007   cat >conftest.$ac_ext <<_ACEOF
38008 /* confdefs.h.  */
38009 _ACEOF
38010 cat confdefs.h >>conftest.$ac_ext
38011 cat >>conftest.$ac_ext <<_ACEOF
38012 /* end confdefs.h.  */
38013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38015 #define $ac_func innocuous_$ac_func
38016
38017 /* System header to define __stub macros and hopefully few prototypes,
38018     which can conflict with char $ac_func (); below.
38019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38020     <limits.h> exists even on freestanding compilers.  */
38021
38022 #ifdef __STDC__
38023 # include <limits.h>
38024 #else
38025 # include <assert.h>
38026 #endif
38027
38028 #undef $ac_func
38029
38030 /* Override any GCC internal prototype to avoid an error.
38031    Use char because int might match the return type of a GCC
38032    builtin and then its argument prototype would still apply.  */
38033 #ifdef __cplusplus
38034 extern "C"
38035 #endif
38036 char $ac_func ();
38037 /* The GNU C library defines this for functions which it implements
38038     to always fail with ENOSYS.  Some functions are actually named
38039     something starting with __ and the normal name is an alias.  */
38040 #if defined __stub_$ac_func || defined __stub___$ac_func
38041 choke me
38042 #endif
38043
38044 int
38045 main ()
38046 {
38047 return $ac_func ();
38048   ;
38049   return 0;
38050 }
38051 _ACEOF
38052 rm -f conftest.$ac_objext conftest$ac_exeext
38053 if { (ac_try="$ac_link"
38054 case "(($ac_try" in
38055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38056   *) ac_try_echo=$ac_try;;
38057 esac
38058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38059   (eval "$ac_link") 2>conftest.er1
38060   ac_status=$?
38061   grep -v '^ *+' conftest.er1 >conftest.err
38062   rm -f conftest.er1
38063   cat conftest.err >&5
38064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065   (exit $ac_status); } && {
38066          test -z "$ac_c_werror_flag" ||
38067          test ! -s conftest.err
38068        } && test -s conftest$ac_exeext &&
38069        $as_test_x conftest$ac_exeext; then
38070   eval "$as_ac_var=yes"
38071 else
38072   echo "$as_me: failed program was:" >&5
38073 sed 's/^/| /' conftest.$ac_ext >&5
38074
38075         eval "$as_ac_var=no"
38076 fi
38077
38078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38079       conftest$ac_exeext conftest.$ac_ext
38080 fi
38081 ac_res=`eval echo '${'$as_ac_var'}'`
38082                { echo "$as_me:$LINENO: result: $ac_res" >&5
38083 echo "${ECHO_T}$ac_res" >&6; }
38084 if test `eval echo '${'$as_ac_var'}'` = yes; then
38085   cat >>confdefs.h <<_ACEOF
38086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38087 _ACEOF
38088  cat >>confdefs.h <<\_ACEOF
38089 #define HAVE_INET_ADDR 1
38090 _ACEOF
38091
38092 else
38093
38094         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38095 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38096 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38097   echo $ECHO_N "(cached) $ECHO_C" >&6
38098 else
38099   ac_check_lib_save_LIBS=$LIBS
38100 LIBS="-lnsl  $LIBS"
38101 cat >conftest.$ac_ext <<_ACEOF
38102 /* confdefs.h.  */
38103 _ACEOF
38104 cat confdefs.h >>conftest.$ac_ext
38105 cat >>conftest.$ac_ext <<_ACEOF
38106 /* end confdefs.h.  */
38107
38108 /* Override any GCC internal prototype to avoid an error.
38109    Use char because int might match the return type of a GCC
38110    builtin and then its argument prototype would still apply.  */
38111 #ifdef __cplusplus
38112 extern "C"
38113 #endif
38114 char inet_addr ();
38115 int
38116 main ()
38117 {
38118 return inet_addr ();
38119   ;
38120   return 0;
38121 }
38122 _ACEOF
38123 rm -f conftest.$ac_objext conftest$ac_exeext
38124 if { (ac_try="$ac_link"
38125 case "(($ac_try" in
38126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38127   *) ac_try_echo=$ac_try;;
38128 esac
38129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38130   (eval "$ac_link") 2>conftest.er1
38131   ac_status=$?
38132   grep -v '^ *+' conftest.er1 >conftest.err
38133   rm -f conftest.er1
38134   cat conftest.err >&5
38135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136   (exit $ac_status); } && {
38137          test -z "$ac_c_werror_flag" ||
38138          test ! -s conftest.err
38139        } && test -s conftest$ac_exeext &&
38140        $as_test_x conftest$ac_exeext; then
38141   ac_cv_lib_nsl_inet_addr=yes
38142 else
38143   echo "$as_me: failed program was:" >&5
38144 sed 's/^/| /' conftest.$ac_ext >&5
38145
38146         ac_cv_lib_nsl_inet_addr=no
38147 fi
38148
38149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38150       conftest$ac_exeext conftest.$ac_ext
38151 LIBS=$ac_check_lib_save_LIBS
38152 fi
38153 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38154 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38155 if test $ac_cv_lib_nsl_inet_addr = yes; then
38156   INET_LINK="nsl"
38157 else
38158
38159                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38160 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38161 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38162   echo $ECHO_N "(cached) $ECHO_C" >&6
38163 else
38164   ac_check_lib_save_LIBS=$LIBS
38165 LIBS="-lresolv  $LIBS"
38166 cat >conftest.$ac_ext <<_ACEOF
38167 /* confdefs.h.  */
38168 _ACEOF
38169 cat confdefs.h >>conftest.$ac_ext
38170 cat >>conftest.$ac_ext <<_ACEOF
38171 /* end confdefs.h.  */
38172
38173 /* Override any GCC internal prototype to avoid an error.
38174    Use char because int might match the return type of a GCC
38175    builtin and then its argument prototype would still apply.  */
38176 #ifdef __cplusplus
38177 extern "C"
38178 #endif
38179 char inet_addr ();
38180 int
38181 main ()
38182 {
38183 return inet_addr ();
38184   ;
38185   return 0;
38186 }
38187 _ACEOF
38188 rm -f conftest.$ac_objext conftest$ac_exeext
38189 if { (ac_try="$ac_link"
38190 case "(($ac_try" in
38191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38192   *) ac_try_echo=$ac_try;;
38193 esac
38194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38195   (eval "$ac_link") 2>conftest.er1
38196   ac_status=$?
38197   grep -v '^ *+' conftest.er1 >conftest.err
38198   rm -f conftest.er1
38199   cat conftest.err >&5
38200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201   (exit $ac_status); } && {
38202          test -z "$ac_c_werror_flag" ||
38203          test ! -s conftest.err
38204        } && test -s conftest$ac_exeext &&
38205        $as_test_x conftest$ac_exeext; then
38206   ac_cv_lib_resolv_inet_addr=yes
38207 else
38208   echo "$as_me: failed program was:" >&5
38209 sed 's/^/| /' conftest.$ac_ext >&5
38210
38211         ac_cv_lib_resolv_inet_addr=no
38212 fi
38213
38214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38215       conftest$ac_exeext conftest.$ac_ext
38216 LIBS=$ac_check_lib_save_LIBS
38217 fi
38218 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38219 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38220 if test $ac_cv_lib_resolv_inet_addr = yes; then
38221   INET_LINK="resolv"
38222 else
38223
38224                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38225 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38226 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38227   echo $ECHO_N "(cached) $ECHO_C" >&6
38228 else
38229   ac_check_lib_save_LIBS=$LIBS
38230 LIBS="-lsocket  $LIBS"
38231 cat >conftest.$ac_ext <<_ACEOF
38232 /* confdefs.h.  */
38233 _ACEOF
38234 cat confdefs.h >>conftest.$ac_ext
38235 cat >>conftest.$ac_ext <<_ACEOF
38236 /* end confdefs.h.  */
38237
38238 /* Override any GCC internal prototype to avoid an error.
38239    Use char because int might match the return type of a GCC
38240    builtin and then its argument prototype would still apply.  */
38241 #ifdef __cplusplus
38242 extern "C"
38243 #endif
38244 char inet_addr ();
38245 int
38246 main ()
38247 {
38248 return inet_addr ();
38249   ;
38250   return 0;
38251 }
38252 _ACEOF
38253 rm -f conftest.$ac_objext conftest$ac_exeext
38254 if { (ac_try="$ac_link"
38255 case "(($ac_try" in
38256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38257   *) ac_try_echo=$ac_try;;
38258 esac
38259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38260   (eval "$ac_link") 2>conftest.er1
38261   ac_status=$?
38262   grep -v '^ *+' conftest.er1 >conftest.err
38263   rm -f conftest.er1
38264   cat conftest.err >&5
38265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38266   (exit $ac_status); } && {
38267          test -z "$ac_c_werror_flag" ||
38268          test ! -s conftest.err
38269        } && test -s conftest$ac_exeext &&
38270        $as_test_x conftest$ac_exeext; then
38271   ac_cv_lib_socket_inet_addr=yes
38272 else
38273   echo "$as_me: failed program was:" >&5
38274 sed 's/^/| /' conftest.$ac_ext >&5
38275
38276         ac_cv_lib_socket_inet_addr=no
38277 fi
38278
38279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38280       conftest$ac_exeext conftest.$ac_ext
38281 LIBS=$ac_check_lib_save_LIBS
38282 fi
38283 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38284 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38285 if test $ac_cv_lib_socket_inet_addr = yes; then
38286   INET_LINK="socket"
38287
38288 fi
38289
38290
38291
38292 fi
38293
38294
38295
38296 fi
38297
38298
38299
38300 fi
38301 done
38302
38303
38304
38305 for ac_func in inet_aton
38306 do
38307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38311   echo $ECHO_N "(cached) $ECHO_C" >&6
38312 else
38313   cat >conftest.$ac_ext <<_ACEOF
38314 /* confdefs.h.  */
38315 _ACEOF
38316 cat confdefs.h >>conftest.$ac_ext
38317 cat >>conftest.$ac_ext <<_ACEOF
38318 /* end confdefs.h.  */
38319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38321 #define $ac_func innocuous_$ac_func
38322
38323 /* System header to define __stub macros and hopefully few prototypes,
38324     which can conflict with char $ac_func (); below.
38325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38326     <limits.h> exists even on freestanding compilers.  */
38327
38328 #ifdef __STDC__
38329 # include <limits.h>
38330 #else
38331 # include <assert.h>
38332 #endif
38333
38334 #undef $ac_func
38335
38336 /* Override any GCC internal prototype to avoid an error.
38337    Use char because int might match the return type of a GCC
38338    builtin and then its argument prototype would still apply.  */
38339 #ifdef __cplusplus
38340 extern "C"
38341 #endif
38342 char $ac_func ();
38343 /* The GNU C library defines this for functions which it implements
38344     to always fail with ENOSYS.  Some functions are actually named
38345     something starting with __ and the normal name is an alias.  */
38346 #if defined __stub_$ac_func || defined __stub___$ac_func
38347 choke me
38348 #endif
38349
38350 int
38351 main ()
38352 {
38353 return $ac_func ();
38354   ;
38355   return 0;
38356 }
38357 _ACEOF
38358 rm -f conftest.$ac_objext conftest$ac_exeext
38359 if { (ac_try="$ac_link"
38360 case "(($ac_try" in
38361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38362   *) ac_try_echo=$ac_try;;
38363 esac
38364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38365   (eval "$ac_link") 2>conftest.er1
38366   ac_status=$?
38367   grep -v '^ *+' conftest.er1 >conftest.err
38368   rm -f conftest.er1
38369   cat conftest.err >&5
38370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38371   (exit $ac_status); } && {
38372          test -z "$ac_c_werror_flag" ||
38373          test ! -s conftest.err
38374        } && test -s conftest$ac_exeext &&
38375        $as_test_x conftest$ac_exeext; then
38376   eval "$as_ac_var=yes"
38377 else
38378   echo "$as_me: failed program was:" >&5
38379 sed 's/^/| /' conftest.$ac_ext >&5
38380
38381         eval "$as_ac_var=no"
38382 fi
38383
38384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38385       conftest$ac_exeext conftest.$ac_ext
38386 fi
38387 ac_res=`eval echo '${'$as_ac_var'}'`
38388                { echo "$as_me:$LINENO: result: $ac_res" >&5
38389 echo "${ECHO_T}$ac_res" >&6; }
38390 if test `eval echo '${'$as_ac_var'}'` = yes; then
38391   cat >>confdefs.h <<_ACEOF
38392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38393 _ACEOF
38394  cat >>confdefs.h <<\_ACEOF
38395 #define HAVE_INET_ATON 1
38396 _ACEOF
38397
38398 else
38399
38400                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38401 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38402 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38403 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38404   echo $ECHO_N "(cached) $ECHO_C" >&6
38405 else
38406   ac_check_lib_save_LIBS=$LIBS
38407 LIBS="-l$INET_LINK  $LIBS"
38408 cat >conftest.$ac_ext <<_ACEOF
38409 /* confdefs.h.  */
38410 _ACEOF
38411 cat confdefs.h >>conftest.$ac_ext
38412 cat >>conftest.$ac_ext <<_ACEOF
38413 /* end confdefs.h.  */
38414
38415 /* Override any GCC internal prototype to avoid an error.
38416    Use char because int might match the return type of a GCC
38417    builtin and then its argument prototype would still apply.  */
38418 #ifdef __cplusplus
38419 extern "C"
38420 #endif
38421 char inet_aton ();
38422 int
38423 main ()
38424 {
38425 return inet_aton ();
38426   ;
38427   return 0;
38428 }
38429 _ACEOF
38430 rm -f conftest.$ac_objext conftest$ac_exeext
38431 if { (ac_try="$ac_link"
38432 case "(($ac_try" in
38433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38434   *) ac_try_echo=$ac_try;;
38435 esac
38436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38437   (eval "$ac_link") 2>conftest.er1
38438   ac_status=$?
38439   grep -v '^ *+' conftest.er1 >conftest.err
38440   rm -f conftest.er1
38441   cat conftest.err >&5
38442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443   (exit $ac_status); } && {
38444          test -z "$ac_c_werror_flag" ||
38445          test ! -s conftest.err
38446        } && test -s conftest$ac_exeext &&
38447        $as_test_x conftest$ac_exeext; then
38448   eval "$as_ac_Lib=yes"
38449 else
38450   echo "$as_me: failed program was:" >&5
38451 sed 's/^/| /' conftest.$ac_ext >&5
38452
38453         eval "$as_ac_Lib=no"
38454 fi
38455
38456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38457       conftest$ac_exeext conftest.$ac_ext
38458 LIBS=$ac_check_lib_save_LIBS
38459 fi
38460 ac_res=`eval echo '${'$as_ac_Lib'}'`
38461                { echo "$as_me:$LINENO: result: $ac_res" >&5
38462 echo "${ECHO_T}$ac_res" >&6; }
38463 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38464   cat >>confdefs.h <<\_ACEOF
38465 #define HAVE_INET_ATON 1
38466 _ACEOF
38467
38468 fi
38469
38470
38471 fi
38472 done
38473
38474
38475 if test "x$INET_LINK" != "x"; then
38476     cat >>confdefs.h <<\_ACEOF
38477 #define HAVE_INET_ADDR 1
38478 _ACEOF
38479
38480     INET_LINK=" -l$INET_LINK"
38481 fi
38482
38483
38484   for wx_func in fdopen
38485   do
38486     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38487 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38488 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38489   echo $ECHO_N "(cached) $ECHO_C" >&6
38490 else
38491
38492         cat >conftest.$ac_ext <<_ACEOF
38493
38494             /* confdefs.h.  */
38495 _ACEOF
38496 cat confdefs.h >>conftest.$ac_ext
38497 cat >>conftest.$ac_ext <<_ACEOF
38498 /* end confdefs.h.  */
38499
38500
38501                 $ac_includes_default
38502
38503 int
38504 main ()
38505 {
38506
38507                 #ifndef $wx_func
38508                   &$wx_func;
38509                 #endif
38510
38511
38512   ;
38513   return 0;
38514 }
38515
38516 _ACEOF
38517 rm -f conftest.$ac_objext conftest$ac_exeext
38518 if { (ac_try="$ac_link"
38519 case "(($ac_try" in
38520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38521   *) ac_try_echo=$ac_try;;
38522 esac
38523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38524   (eval "$ac_link") 2>conftest.er1
38525   ac_status=$?
38526   grep -v '^ *+' conftest.er1 >conftest.err
38527   rm -f conftest.er1
38528   cat conftest.err >&5
38529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530   (exit $ac_status); } && {
38531          test -z "$ac_c_werror_flag" ||
38532          test ! -s conftest.err
38533        } && test -s conftest$ac_exeext &&
38534        $as_test_x conftest$ac_exeext; then
38535   eval wx_cv_func_$wx_func=yes
38536 else
38537   echo "$as_me: failed program was:" >&5
38538 sed 's/^/| /' conftest.$ac_ext >&5
38539
38540         eval wx_cv_func_$wx_func=no
38541 fi
38542
38543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38544       conftest$ac_exeext conftest.$ac_ext
38545
38546 fi
38547 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38548                { echo "$as_me:$LINENO: result: $ac_res" >&5
38549 echo "${ECHO_T}$ac_res" >&6; }
38550
38551     if eval test \$wx_cv_func_$wx_func = yes
38552     then
38553       cat >>confdefs.h <<_ACEOF
38554 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38555 _ACEOF
38556
38557
38558     else
38559       :
38560
38561     fi
38562   done
38563
38564
38565 if test "$wxUSE_TARSTREAM" = "yes"; then
38566
38567   for wx_func in sysconf
38568   do
38569     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38570 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38571 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38572   echo $ECHO_N "(cached) $ECHO_C" >&6
38573 else
38574
38575         cat >conftest.$ac_ext <<_ACEOF
38576
38577             /* confdefs.h.  */
38578 _ACEOF
38579 cat confdefs.h >>conftest.$ac_ext
38580 cat >>conftest.$ac_ext <<_ACEOF
38581 /* end confdefs.h.  */
38582
38583
38584                 $ac_includes_default
38585
38586 int
38587 main ()
38588 {
38589
38590                 #ifndef $wx_func
38591                   &$wx_func;
38592                 #endif
38593
38594
38595   ;
38596   return 0;
38597 }
38598
38599 _ACEOF
38600 rm -f conftest.$ac_objext conftest$ac_exeext
38601 if { (ac_try="$ac_link"
38602 case "(($ac_try" in
38603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38604   *) ac_try_echo=$ac_try;;
38605 esac
38606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38607   (eval "$ac_link") 2>conftest.er1
38608   ac_status=$?
38609   grep -v '^ *+' conftest.er1 >conftest.err
38610   rm -f conftest.er1
38611   cat conftest.err >&5
38612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38613   (exit $ac_status); } && {
38614          test -z "$ac_c_werror_flag" ||
38615          test ! -s conftest.err
38616        } && test -s conftest$ac_exeext &&
38617        $as_test_x conftest$ac_exeext; then
38618   eval wx_cv_func_$wx_func=yes
38619 else
38620   echo "$as_me: failed program was:" >&5
38621 sed 's/^/| /' conftest.$ac_ext >&5
38622
38623         eval wx_cv_func_$wx_func=no
38624 fi
38625
38626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38627       conftest$ac_exeext conftest.$ac_ext
38628
38629 fi
38630 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38631                { echo "$as_me:$LINENO: result: $ac_res" >&5
38632 echo "${ECHO_T}$ac_res" >&6; }
38633
38634     if eval test \$wx_cv_func_$wx_func = yes
38635     then
38636       cat >>confdefs.h <<_ACEOF
38637 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38638 _ACEOF
38639
38640
38641     else
38642       :
38643
38644     fi
38645   done
38646
38647
38648
38649   for wx_func in getpwuid_r
38650   do
38651     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38652 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38653 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38654   echo $ECHO_N "(cached) $ECHO_C" >&6
38655 else
38656
38657         cat >conftest.$ac_ext <<_ACEOF
38658
38659             /* confdefs.h.  */
38660 _ACEOF
38661 cat confdefs.h >>conftest.$ac_ext
38662 cat >>conftest.$ac_ext <<_ACEOF
38663 /* end confdefs.h.  */
38664
38665
38666                     #define _REENTRANT
38667                     #include <pwd.h>
38668
38669                 $ac_includes_default
38670
38671 int
38672 main ()
38673 {
38674
38675                 #ifndef $wx_func
38676                   &$wx_func;
38677                 #endif
38678
38679                     struct passwd pw, *ppw;
38680                     char buf[1024];
38681                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38682
38683
38684   ;
38685   return 0;
38686 }
38687
38688 _ACEOF
38689 rm -f conftest.$ac_objext conftest$ac_exeext
38690 if { (ac_try="$ac_link"
38691 case "(($ac_try" in
38692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38693   *) ac_try_echo=$ac_try;;
38694 esac
38695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38696   (eval "$ac_link") 2>conftest.er1
38697   ac_status=$?
38698   grep -v '^ *+' conftest.er1 >conftest.err
38699   rm -f conftest.er1
38700   cat conftest.err >&5
38701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38702   (exit $ac_status); } && {
38703          test -z "$ac_c_werror_flag" ||
38704          test ! -s conftest.err
38705        } && test -s conftest$ac_exeext &&
38706        $as_test_x conftest$ac_exeext; then
38707   eval wx_cv_func_$wx_func=yes
38708 else
38709   echo "$as_me: failed program was:" >&5
38710 sed 's/^/| /' conftest.$ac_ext >&5
38711
38712         eval wx_cv_func_$wx_func=no
38713 fi
38714
38715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38716       conftest$ac_exeext conftest.$ac_ext
38717
38718 fi
38719 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38720                { echo "$as_me:$LINENO: result: $ac_res" >&5
38721 echo "${ECHO_T}$ac_res" >&6; }
38722
38723     if eval test \$wx_cv_func_$wx_func = yes
38724     then
38725       cat >>confdefs.h <<_ACEOF
38726 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38727 _ACEOF
38728
38729
38730     else
38731       :
38732
38733     fi
38734   done
38735
38736
38737
38738   for wx_func in getgrgid_r
38739   do
38740     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38741 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38742 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38743   echo $ECHO_N "(cached) $ECHO_C" >&6
38744 else
38745
38746         cat >conftest.$ac_ext <<_ACEOF
38747
38748             /* confdefs.h.  */
38749 _ACEOF
38750 cat confdefs.h >>conftest.$ac_ext
38751 cat >>conftest.$ac_ext <<_ACEOF
38752 /* end confdefs.h.  */
38753
38754
38755                     #define _REENTRANT
38756                     #include <grp.h>
38757
38758                 $ac_includes_default
38759
38760 int
38761 main ()
38762 {
38763
38764                 #ifndef $wx_func
38765                   &$wx_func;
38766                 #endif
38767
38768                     struct group grp, *pgrp;
38769                     char buf[1024];
38770                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38771
38772
38773   ;
38774   return 0;
38775 }
38776
38777 _ACEOF
38778 rm -f conftest.$ac_objext conftest$ac_exeext
38779 if { (ac_try="$ac_link"
38780 case "(($ac_try" in
38781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38782   *) ac_try_echo=$ac_try;;
38783 esac
38784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38785   (eval "$ac_link") 2>conftest.er1
38786   ac_status=$?
38787   grep -v '^ *+' conftest.er1 >conftest.err
38788   rm -f conftest.er1
38789   cat conftest.err >&5
38790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791   (exit $ac_status); } && {
38792          test -z "$ac_c_werror_flag" ||
38793          test ! -s conftest.err
38794        } && test -s conftest$ac_exeext &&
38795        $as_test_x conftest$ac_exeext; then
38796   eval wx_cv_func_$wx_func=yes
38797 else
38798   echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38800
38801         eval wx_cv_func_$wx_func=no
38802 fi
38803
38804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38805       conftest$ac_exeext conftest.$ac_ext
38806
38807 fi
38808 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38809                { echo "$as_me:$LINENO: result: $ac_res" >&5
38810 echo "${ECHO_T}$ac_res" >&6; }
38811
38812     if eval test \$wx_cv_func_$wx_func = yes
38813     then
38814       cat >>confdefs.h <<_ACEOF
38815 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38816 _ACEOF
38817
38818
38819     else
38820       :
38821
38822     fi
38823   done
38824
38825 fi
38826
38827 fi
38828
38829
38830
38831 cat >confcache <<\_ACEOF
38832 # This file is a shell script that caches the results of configure
38833 # tests run on this system so they can be shared between configure
38834 # scripts and configure runs, see configure's option --config-cache.
38835 # It is not useful on other systems.  If it contains results you don't
38836 # want to keep, you may remove or edit it.
38837 #
38838 # config.status only pays attention to the cache file if you give it
38839 # the --recheck option to rerun configure.
38840 #
38841 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38842 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38843 # following values.
38844
38845 _ACEOF
38846
38847 # The following way of writing the cache mishandles newlines in values,
38848 # but we know of no workaround that is simple, portable, and efficient.
38849 # So, we kill variables containing newlines.
38850 # Ultrix sh set writes to stderr and can't be redirected directly,
38851 # and sets the high bit in the cache file unless we assign to the vars.
38852 (
38853   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38854     eval ac_val=\$$ac_var
38855     case $ac_val in #(
38856     *${as_nl}*)
38857       case $ac_var in #(
38858       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38859 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38860       esac
38861       case $ac_var in #(
38862       _ | IFS | as_nl) ;; #(
38863       *) $as_unset $ac_var ;;
38864       esac ;;
38865     esac
38866   done
38867
38868   (set) 2>&1 |
38869     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38870     *${as_nl}ac_space=\ *)
38871       # `set' does not quote correctly, so add quotes (double-quote
38872       # substitution turns \\\\ into \\, and sed turns \\ into \).
38873       sed -n \
38874         "s/'/'\\\\''/g;
38875           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38876       ;; #(
38877     *)
38878       # `set' quotes correctly as required by POSIX, so do not add quotes.
38879       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38880       ;;
38881     esac |
38882     sort
38883 ) |
38884   sed '
38885      /^ac_cv_env_/b end
38886      t clear
38887      :clear
38888      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38889      t end
38890      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38891      :end' >>confcache
38892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38893   if test -w "$cache_file"; then
38894     test "x$cache_file" != "x/dev/null" &&
38895       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38896 echo "$as_me: updating cache $cache_file" >&6;}
38897     cat confcache >$cache_file
38898   else
38899     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38900 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38901   fi
38902 fi
38903 rm -f confcache
38904
38905
38906 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38907
38908
38909     THREADS_LINK=
38910     THREADS_CFLAGS=
38911
38912     if test "$wxUSE_THREADS" = "yes" ; then
38913         if test "$USE_BEOS" = 1; then
38914             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38915 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38916             wxUSE_THREADS="no"
38917         fi
38918     fi
38919
38920     if test "$wxUSE_THREADS" = "yes" ; then
38921
38922
38923                                 THREAD_OPTS="-pthread"
38924         if test "x$SUNCXX" = xyes; then
38925             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38926         fi
38927
38928         case "${host}" in
38929           *-*-solaris2* | *-*-sunos4* )
38930                 if test "x$GCC" = "xyes"; then
38931                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38932                 fi
38933                 ;;
38934           *-*-freebsd*)
38935                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38936                 ;;
38937           *-*-darwin* | *-*-cygwin* )
38938                                                 THREAD_OPTS=""
38939                 ;;
38940           *-*-aix*)
38941                                 THREAD_OPTS="pthreads"
38942                 ;;
38943           *-hp-hpux* )
38944                 if test "x$GCC" = "xyes"; then
38945                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38946                         THREAD_OPTS=""
38947                 else
38948                                                             THREAD_OPTS="-mt"
38949                 fi
38950                 ;;
38951
38952           *-*-irix* )
38953                                                                 if test "x$GCC" = "xyes"; then
38954                     THREAD_OPTS=""
38955                 fi
38956                 ;;
38957
38958           *-*-*UnixWare*)
38959                                 if test "x$GCC" != "xyes"; then
38960                     THREAD_OPTS="-Ethread"
38961                 fi
38962                 ;;
38963         esac
38964
38965                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38966
38967                 THREADS_OK=no
38968         for flag in $THREAD_OPTS; do
38969             case $flag in
38970                 none)
38971                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38972 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38973                     ;;
38974
38975                 -*)
38976                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38977 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38978                     THREADS_CFLAGS="$flag"
38979                     ;;
38980
38981                 *)
38982                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38983 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38984                     THREADS_LINK="-l$flag"
38985                     ;;
38986               esac
38987
38988               save_LIBS="$LIBS"
38989               save_CFLAGS="$CFLAGS"
38990               LIBS="$THREADS_LINK $LIBS"
38991               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38992
38993               cat >conftest.$ac_ext <<_ACEOF
38994 /* confdefs.h.  */
38995 _ACEOF
38996 cat confdefs.h >>conftest.$ac_ext
38997 cat >>conftest.$ac_ext <<_ACEOF
38998 /* end confdefs.h.  */
38999 #include <pthread.h>
39000 int
39001 main ()
39002 {
39003 pthread_create(0,0,0,0);
39004   ;
39005   return 0;
39006 }
39007 _ACEOF
39008 rm -f conftest.$ac_objext conftest$ac_exeext
39009 if { (ac_try="$ac_link"
39010 case "(($ac_try" in
39011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39012   *) ac_try_echo=$ac_try;;
39013 esac
39014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39015   (eval "$ac_link") 2>conftest.er1
39016   ac_status=$?
39017   grep -v '^ *+' conftest.er1 >conftest.err
39018   rm -f conftest.er1
39019   cat conftest.err >&5
39020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021   (exit $ac_status); } && {
39022          test -z "$ac_c_werror_flag" ||
39023          test ! -s conftest.err
39024        } && test -s conftest$ac_exeext &&
39025        $as_test_x conftest$ac_exeext; then
39026   THREADS_OK=yes
39027 else
39028   echo "$as_me: failed program was:" >&5
39029 sed 's/^/| /' conftest.$ac_ext >&5
39030
39031
39032 fi
39033
39034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39035       conftest$ac_exeext conftest.$ac_ext
39036
39037               LIBS="$save_LIBS"
39038               CFLAGS="$save_CFLAGS"
39039
39040               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39041 echo "${ECHO_T}$THREADS_OK" >&6; }
39042               if test "x$THREADS_OK" = "xyes"; then
39043                       break;
39044               fi
39045
39046               THREADS_LINK=""
39047               THREADS_CFLAGS=""
39048       done
39049
39050       if test "x$THREADS_OK" != "xyes"; then
39051           wxUSE_THREADS=no
39052           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39053 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39054       else
39055                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39056           LIBS="$THREADS_LINK $LIBS"
39057
39058           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39059 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39060           flag=no
39061           case "${host}" in
39062             *-aix*)
39063                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39064                 flag="-D_THREAD_SAFE"
39065                 ;;
39066             *-freebsd*)
39067                 flag="-D_THREAD_SAFE"
39068                 ;;
39069             *-hp-hpux* )
39070                 flag="-D_REENTRANT"
39071                 if test "x$GCC" != "xyes"; then
39072                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39073                 fi
39074                 ;;
39075             *solaris* | alpha*-osf*)
39076                 flag="-D_REENTRANT"
39077                 ;;
39078           esac
39079           { echo "$as_me:$LINENO: result: ${flag}" >&5
39080 echo "${ECHO_T}${flag}" >&6; }
39081           if test "x$flag" != xno; then
39082               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39083           fi
39084
39085                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39086       fi
39087     fi
39088
39089         if test "$wxUSE_THREADS" = "yes" ; then
39090
39091 for ac_func in thr_setconcurrency
39092 do
39093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39097   echo $ECHO_N "(cached) $ECHO_C" >&6
39098 else
39099   cat >conftest.$ac_ext <<_ACEOF
39100 /* confdefs.h.  */
39101 _ACEOF
39102 cat confdefs.h >>conftest.$ac_ext
39103 cat >>conftest.$ac_ext <<_ACEOF
39104 /* end confdefs.h.  */
39105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39107 #define $ac_func innocuous_$ac_func
39108
39109 /* System header to define __stub macros and hopefully few prototypes,
39110     which can conflict with char $ac_func (); below.
39111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39112     <limits.h> exists even on freestanding compilers.  */
39113
39114 #ifdef __STDC__
39115 # include <limits.h>
39116 #else
39117 # include <assert.h>
39118 #endif
39119
39120 #undef $ac_func
39121
39122 /* Override any GCC internal prototype to avoid an error.
39123    Use char because int might match the return type of a GCC
39124    builtin and then its argument prototype would still apply.  */
39125 #ifdef __cplusplus
39126 extern "C"
39127 #endif
39128 char $ac_func ();
39129 /* The GNU C library defines this for functions which it implements
39130     to always fail with ENOSYS.  Some functions are actually named
39131     something starting with __ and the normal name is an alias.  */
39132 #if defined __stub_$ac_func || defined __stub___$ac_func
39133 choke me
39134 #endif
39135
39136 int
39137 main ()
39138 {
39139 return $ac_func ();
39140   ;
39141   return 0;
39142 }
39143 _ACEOF
39144 rm -f conftest.$ac_objext conftest$ac_exeext
39145 if { (ac_try="$ac_link"
39146 case "(($ac_try" in
39147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39148   *) ac_try_echo=$ac_try;;
39149 esac
39150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39151   (eval "$ac_link") 2>conftest.er1
39152   ac_status=$?
39153   grep -v '^ *+' conftest.er1 >conftest.err
39154   rm -f conftest.er1
39155   cat conftest.err >&5
39156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39157   (exit $ac_status); } && {
39158          test -z "$ac_c_werror_flag" ||
39159          test ! -s conftest.err
39160        } && test -s conftest$ac_exeext &&
39161        $as_test_x conftest$ac_exeext; then
39162   eval "$as_ac_var=yes"
39163 else
39164   echo "$as_me: failed program was:" >&5
39165 sed 's/^/| /' conftest.$ac_ext >&5
39166
39167         eval "$as_ac_var=no"
39168 fi
39169
39170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39171       conftest$ac_exeext conftest.$ac_ext
39172 fi
39173 ac_res=`eval echo '${'$as_ac_var'}'`
39174                { echo "$as_me:$LINENO: result: $ac_res" >&5
39175 echo "${ECHO_T}$ac_res" >&6; }
39176 if test `eval echo '${'$as_ac_var'}'` = yes; then
39177   cat >>confdefs.h <<_ACEOF
39178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39179 _ACEOF
39180
39181 fi
39182 done
39183
39184
39185                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39186 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39187 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39188   echo $ECHO_N "(cached) $ECHO_C" >&6
39189 else
39190
39191                                 ac_ext=cpp
39192 ac_cpp='$CXXCPP $CPPFLAGS'
39193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39196
39197         cat >conftest.$ac_ext <<_ACEOF
39198 /* confdefs.h.  */
39199 _ACEOF
39200 cat confdefs.h >>conftest.$ac_ext
39201 cat >>conftest.$ac_ext <<_ACEOF
39202 /* end confdefs.h.  */
39203 #include <pthread.h>
39204                void ThreadCleanupFunc(void *p);
39205
39206 int
39207 main ()
39208 {
39209
39210                 void *p;
39211                 pthread_cleanup_push(ThreadCleanupFunc, p);
39212                 pthread_cleanup_pop(0);
39213
39214   ;
39215   return 0;
39216 }
39217 _ACEOF
39218 rm -f conftest.$ac_objext
39219 if { (ac_try="$ac_compile"
39220 case "(($ac_try" in
39221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39222   *) ac_try_echo=$ac_try;;
39223 esac
39224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39225   (eval "$ac_compile") 2>conftest.er1
39226   ac_status=$?
39227   grep -v '^ *+' conftest.er1 >conftest.err
39228   rm -f conftest.er1
39229   cat conftest.err >&5
39230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231   (exit $ac_status); } && {
39232          test -z "$ac_cxx_werror_flag" ||
39233          test ! -s conftest.err
39234        } && test -s conftest.$ac_objext; then
39235
39236                wx_cv_func_pthread_cleanup=yes
39237
39238 else
39239   echo "$as_me: failed program was:" >&5
39240 sed 's/^/| /' conftest.$ac_ext >&5
39241
39242
39243                wx_cv_func_pthread_cleanup=no
39244
39245
39246 fi
39247
39248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39249         ac_ext=c
39250 ac_cpp='$CPP $CPPFLAGS'
39251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39254
39255
39256 fi
39257 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39258 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39259       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39260         cat >>confdefs.h <<\_ACEOF
39261 #define wxHAVE_PTHREAD_CLEANUP 1
39262 _ACEOF
39263
39264       fi
39265
39266
39267 for ac_header in sched.h
39268 do
39269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39273   echo $ECHO_N "(cached) $ECHO_C" >&6
39274 else
39275   cat >conftest.$ac_ext <<_ACEOF
39276 /* confdefs.h.  */
39277 _ACEOF
39278 cat confdefs.h >>conftest.$ac_ext
39279 cat >>conftest.$ac_ext <<_ACEOF
39280 /* end confdefs.h.  */
39281 $ac_includes_default
39282
39283 #include <$ac_header>
39284 _ACEOF
39285 rm -f conftest.$ac_objext
39286 if { (ac_try="$ac_compile"
39287 case "(($ac_try" in
39288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39289   *) ac_try_echo=$ac_try;;
39290 esac
39291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39292   (eval "$ac_compile") 2>conftest.er1
39293   ac_status=$?
39294   grep -v '^ *+' conftest.er1 >conftest.err
39295   rm -f conftest.er1
39296   cat conftest.err >&5
39297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298   (exit $ac_status); } && {
39299          test -z "$ac_c_werror_flag" ||
39300          test ! -s conftest.err
39301        } && test -s conftest.$ac_objext; then
39302   eval "$as_ac_Header=yes"
39303 else
39304   echo "$as_me: failed program was:" >&5
39305 sed 's/^/| /' conftest.$ac_ext >&5
39306
39307         eval "$as_ac_Header=no"
39308 fi
39309
39310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39311 fi
39312 ac_res=`eval echo '${'$as_ac_Header'}'`
39313                { echo "$as_me:$LINENO: result: $ac_res" >&5
39314 echo "${ECHO_T}$ac_res" >&6; }
39315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39316   cat >>confdefs.h <<_ACEOF
39317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39318 _ACEOF
39319
39320 fi
39321
39322 done
39323
39324       if test "$ac_cv_header_sched_h" = "yes"; then
39325           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39326 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39327 if test "${ac_cv_func_sched_yield+set}" = set; then
39328   echo $ECHO_N "(cached) $ECHO_C" >&6
39329 else
39330   cat >conftest.$ac_ext <<_ACEOF
39331 /* confdefs.h.  */
39332 _ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h.  */
39336 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39338 #define sched_yield innocuous_sched_yield
39339
39340 /* System header to define __stub macros and hopefully few prototypes,
39341     which can conflict with char sched_yield (); below.
39342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39343     <limits.h> exists even on freestanding compilers.  */
39344
39345 #ifdef __STDC__
39346 # include <limits.h>
39347 #else
39348 # include <assert.h>
39349 #endif
39350
39351 #undef sched_yield
39352
39353 /* Override any GCC internal prototype to avoid an error.
39354    Use char because int might match the return type of a GCC
39355    builtin and then its argument prototype would still apply.  */
39356 #ifdef __cplusplus
39357 extern "C"
39358 #endif
39359 char sched_yield ();
39360 /* The GNU C library defines this for functions which it implements
39361     to always fail with ENOSYS.  Some functions are actually named
39362     something starting with __ and the normal name is an alias.  */
39363 #if defined __stub_sched_yield || defined __stub___sched_yield
39364 choke me
39365 #endif
39366
39367 int
39368 main ()
39369 {
39370 return sched_yield ();
39371   ;
39372   return 0;
39373 }
39374 _ACEOF
39375 rm -f conftest.$ac_objext conftest$ac_exeext
39376 if { (ac_try="$ac_link"
39377 case "(($ac_try" in
39378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39379   *) ac_try_echo=$ac_try;;
39380 esac
39381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39382   (eval "$ac_link") 2>conftest.er1
39383   ac_status=$?
39384   grep -v '^ *+' conftest.er1 >conftest.err
39385   rm -f conftest.er1
39386   cat conftest.err >&5
39387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388   (exit $ac_status); } && {
39389          test -z "$ac_c_werror_flag" ||
39390          test ! -s conftest.err
39391        } && test -s conftest$ac_exeext &&
39392        $as_test_x conftest$ac_exeext; then
39393   ac_cv_func_sched_yield=yes
39394 else
39395   echo "$as_me: failed program was:" >&5
39396 sed 's/^/| /' conftest.$ac_ext >&5
39397
39398         ac_cv_func_sched_yield=no
39399 fi
39400
39401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39402       conftest$ac_exeext conftest.$ac_ext
39403 fi
39404 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39405 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39406 if test $ac_cv_func_sched_yield = yes; then
39407   cat >>confdefs.h <<\_ACEOF
39408 #define HAVE_SCHED_YIELD 1
39409 _ACEOF
39410
39411 else
39412
39413                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39414 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39415 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39416   echo $ECHO_N "(cached) $ECHO_C" >&6
39417 else
39418   ac_check_lib_save_LIBS=$LIBS
39419 LIBS="-lposix4  $LIBS"
39420 cat >conftest.$ac_ext <<_ACEOF
39421 /* confdefs.h.  */
39422 _ACEOF
39423 cat confdefs.h >>conftest.$ac_ext
39424 cat >>conftest.$ac_ext <<_ACEOF
39425 /* end confdefs.h.  */
39426
39427 /* Override any GCC internal prototype to avoid an error.
39428    Use char because int might match the return type of a GCC
39429    builtin and then its argument prototype would still apply.  */
39430 #ifdef __cplusplus
39431 extern "C"
39432 #endif
39433 char sched_yield ();
39434 int
39435 main ()
39436 {
39437 return sched_yield ();
39438   ;
39439   return 0;
39440 }
39441 _ACEOF
39442 rm -f conftest.$ac_objext conftest$ac_exeext
39443 if { (ac_try="$ac_link"
39444 case "(($ac_try" in
39445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39446   *) ac_try_echo=$ac_try;;
39447 esac
39448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39449   (eval "$ac_link") 2>conftest.er1
39450   ac_status=$?
39451   grep -v '^ *+' conftest.er1 >conftest.err
39452   rm -f conftest.er1
39453   cat conftest.err >&5
39454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39455   (exit $ac_status); } && {
39456          test -z "$ac_c_werror_flag" ||
39457          test ! -s conftest.err
39458        } && test -s conftest$ac_exeext &&
39459        $as_test_x conftest$ac_exeext; then
39460   ac_cv_lib_posix4_sched_yield=yes
39461 else
39462   echo "$as_me: failed program was:" >&5
39463 sed 's/^/| /' conftest.$ac_ext >&5
39464
39465         ac_cv_lib_posix4_sched_yield=no
39466 fi
39467
39468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39469       conftest$ac_exeext conftest.$ac_ext
39470 LIBS=$ac_check_lib_save_LIBS
39471 fi
39472 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39473 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39474 if test $ac_cv_lib_posix4_sched_yield = yes; then
39475   cat >>confdefs.h <<\_ACEOF
39476 #define HAVE_SCHED_YIELD 1
39477 _ACEOF
39478  POSIX4_LINK=" -lposix4"
39479 else
39480   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39481 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39482
39483 fi
39484
39485
39486
39487 fi
39488
39489       fi
39490
39491                                           HAVE_PRIOR_FUNCS=0
39492       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39493 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39494 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39495   echo $ECHO_N "(cached) $ECHO_C" >&6
39496 else
39497   cat >conftest.$ac_ext <<_ACEOF
39498 /* confdefs.h.  */
39499 _ACEOF
39500 cat confdefs.h >>conftest.$ac_ext
39501 cat >>conftest.$ac_ext <<_ACEOF
39502 /* end confdefs.h.  */
39503 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39505 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39506
39507 /* System header to define __stub macros and hopefully few prototypes,
39508     which can conflict with char pthread_attr_getschedpolicy (); below.
39509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39510     <limits.h> exists even on freestanding compilers.  */
39511
39512 #ifdef __STDC__
39513 # include <limits.h>
39514 #else
39515 # include <assert.h>
39516 #endif
39517
39518 #undef pthread_attr_getschedpolicy
39519
39520 /* Override any GCC internal prototype to avoid an error.
39521    Use char because int might match the return type of a GCC
39522    builtin and then its argument prototype would still apply.  */
39523 #ifdef __cplusplus
39524 extern "C"
39525 #endif
39526 char pthread_attr_getschedpolicy ();
39527 /* The GNU C library defines this for functions which it implements
39528     to always fail with ENOSYS.  Some functions are actually named
39529     something starting with __ and the normal name is an alias.  */
39530 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39531 choke me
39532 #endif
39533
39534 int
39535 main ()
39536 {
39537 return pthread_attr_getschedpolicy ();
39538   ;
39539   return 0;
39540 }
39541 _ACEOF
39542 rm -f conftest.$ac_objext conftest$ac_exeext
39543 if { (ac_try="$ac_link"
39544 case "(($ac_try" in
39545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39546   *) ac_try_echo=$ac_try;;
39547 esac
39548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39549   (eval "$ac_link") 2>conftest.er1
39550   ac_status=$?
39551   grep -v '^ *+' conftest.er1 >conftest.err
39552   rm -f conftest.er1
39553   cat conftest.err >&5
39554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555   (exit $ac_status); } && {
39556          test -z "$ac_c_werror_flag" ||
39557          test ! -s conftest.err
39558        } && test -s conftest$ac_exeext &&
39559        $as_test_x conftest$ac_exeext; then
39560   ac_cv_func_pthread_attr_getschedpolicy=yes
39561 else
39562   echo "$as_me: failed program was:" >&5
39563 sed 's/^/| /' conftest.$ac_ext >&5
39564
39565         ac_cv_func_pthread_attr_getschedpolicy=no
39566 fi
39567
39568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39569       conftest$ac_exeext conftest.$ac_ext
39570 fi
39571 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39572 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39573 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39574   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39575 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39576 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39577   echo $ECHO_N "(cached) $ECHO_C" >&6
39578 else
39579   cat >conftest.$ac_ext <<_ACEOF
39580 /* confdefs.h.  */
39581 _ACEOF
39582 cat confdefs.h >>conftest.$ac_ext
39583 cat >>conftest.$ac_ext <<_ACEOF
39584 /* end confdefs.h.  */
39585 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39587 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39588
39589 /* System header to define __stub macros and hopefully few prototypes,
39590     which can conflict with char pthread_attr_setschedparam (); below.
39591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39592     <limits.h> exists even on freestanding compilers.  */
39593
39594 #ifdef __STDC__
39595 # include <limits.h>
39596 #else
39597 # include <assert.h>
39598 #endif
39599
39600 #undef pthread_attr_setschedparam
39601
39602 /* Override any GCC internal prototype to avoid an error.
39603    Use char because int might match the return type of a GCC
39604    builtin and then its argument prototype would still apply.  */
39605 #ifdef __cplusplus
39606 extern "C"
39607 #endif
39608 char pthread_attr_setschedparam ();
39609 /* The GNU C library defines this for functions which it implements
39610     to always fail with ENOSYS.  Some functions are actually named
39611     something starting with __ and the normal name is an alias.  */
39612 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39613 choke me
39614 #endif
39615
39616 int
39617 main ()
39618 {
39619 return pthread_attr_setschedparam ();
39620   ;
39621   return 0;
39622 }
39623 _ACEOF
39624 rm -f conftest.$ac_objext conftest$ac_exeext
39625 if { (ac_try="$ac_link"
39626 case "(($ac_try" in
39627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39628   *) ac_try_echo=$ac_try;;
39629 esac
39630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39631   (eval "$ac_link") 2>conftest.er1
39632   ac_status=$?
39633   grep -v '^ *+' conftest.er1 >conftest.err
39634   rm -f conftest.er1
39635   cat conftest.err >&5
39636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39637   (exit $ac_status); } && {
39638          test -z "$ac_c_werror_flag" ||
39639          test ! -s conftest.err
39640        } && test -s conftest$ac_exeext &&
39641        $as_test_x conftest$ac_exeext; then
39642   ac_cv_func_pthread_attr_setschedparam=yes
39643 else
39644   echo "$as_me: failed program was:" >&5
39645 sed 's/^/| /' conftest.$ac_ext >&5
39646
39647         ac_cv_func_pthread_attr_setschedparam=no
39648 fi
39649
39650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39651       conftest$ac_exeext conftest.$ac_ext
39652 fi
39653 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39654 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39655 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39656   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39657 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39658 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39659   echo $ECHO_N "(cached) $ECHO_C" >&6
39660 else
39661   cat >conftest.$ac_ext <<_ACEOF
39662 /* confdefs.h.  */
39663 _ACEOF
39664 cat confdefs.h >>conftest.$ac_ext
39665 cat >>conftest.$ac_ext <<_ACEOF
39666 /* end confdefs.h.  */
39667 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39669 #define sched_get_priority_max innocuous_sched_get_priority_max
39670
39671 /* System header to define __stub macros and hopefully few prototypes,
39672     which can conflict with char sched_get_priority_max (); below.
39673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39674     <limits.h> exists even on freestanding compilers.  */
39675
39676 #ifdef __STDC__
39677 # include <limits.h>
39678 #else
39679 # include <assert.h>
39680 #endif
39681
39682 #undef sched_get_priority_max
39683
39684 /* Override any GCC internal prototype to avoid an error.
39685    Use char because int might match the return type of a GCC
39686    builtin and then its argument prototype would still apply.  */
39687 #ifdef __cplusplus
39688 extern "C"
39689 #endif
39690 char sched_get_priority_max ();
39691 /* The GNU C library defines this for functions which it implements
39692     to always fail with ENOSYS.  Some functions are actually named
39693     something starting with __ and the normal name is an alias.  */
39694 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39695 choke me
39696 #endif
39697
39698 int
39699 main ()
39700 {
39701 return sched_get_priority_max ();
39702   ;
39703   return 0;
39704 }
39705 _ACEOF
39706 rm -f conftest.$ac_objext conftest$ac_exeext
39707 if { (ac_try="$ac_link"
39708 case "(($ac_try" in
39709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39710   *) ac_try_echo=$ac_try;;
39711 esac
39712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39713   (eval "$ac_link") 2>conftest.er1
39714   ac_status=$?
39715   grep -v '^ *+' conftest.er1 >conftest.err
39716   rm -f conftest.er1
39717   cat conftest.err >&5
39718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719   (exit $ac_status); } && {
39720          test -z "$ac_c_werror_flag" ||
39721          test ! -s conftest.err
39722        } && test -s conftest$ac_exeext &&
39723        $as_test_x conftest$ac_exeext; then
39724   ac_cv_func_sched_get_priority_max=yes
39725 else
39726   echo "$as_me: failed program was:" >&5
39727 sed 's/^/| /' conftest.$ac_ext >&5
39728
39729         ac_cv_func_sched_get_priority_max=no
39730 fi
39731
39732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39733       conftest$ac_exeext conftest.$ac_ext
39734 fi
39735 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39736 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39737 if test $ac_cv_func_sched_get_priority_max = yes; then
39738   HAVE_PRIOR_FUNCS=1
39739 else
39740   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39741 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39742 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39743   echo $ECHO_N "(cached) $ECHO_C" >&6
39744 else
39745   ac_check_lib_save_LIBS=$LIBS
39746 LIBS="-lposix4  $LIBS"
39747 cat >conftest.$ac_ext <<_ACEOF
39748 /* confdefs.h.  */
39749 _ACEOF
39750 cat confdefs.h >>conftest.$ac_ext
39751 cat >>conftest.$ac_ext <<_ACEOF
39752 /* end confdefs.h.  */
39753
39754 /* Override any GCC internal prototype to avoid an error.
39755    Use char because int might match the return type of a GCC
39756    builtin and then its argument prototype would still apply.  */
39757 #ifdef __cplusplus
39758 extern "C"
39759 #endif
39760 char sched_get_priority_max ();
39761 int
39762 main ()
39763 {
39764 return sched_get_priority_max ();
39765   ;
39766   return 0;
39767 }
39768 _ACEOF
39769 rm -f conftest.$ac_objext conftest$ac_exeext
39770 if { (ac_try="$ac_link"
39771 case "(($ac_try" in
39772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39773   *) ac_try_echo=$ac_try;;
39774 esac
39775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39776   (eval "$ac_link") 2>conftest.er1
39777   ac_status=$?
39778   grep -v '^ *+' conftest.er1 >conftest.err
39779   rm -f conftest.er1
39780   cat conftest.err >&5
39781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782   (exit $ac_status); } && {
39783          test -z "$ac_c_werror_flag" ||
39784          test ! -s conftest.err
39785        } && test -s conftest$ac_exeext &&
39786        $as_test_x conftest$ac_exeext; then
39787   ac_cv_lib_posix4_sched_get_priority_max=yes
39788 else
39789   echo "$as_me: failed program was:" >&5
39790 sed 's/^/| /' conftest.$ac_ext >&5
39791
39792         ac_cv_lib_posix4_sched_get_priority_max=no
39793 fi
39794
39795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39796       conftest$ac_exeext conftest.$ac_ext
39797 LIBS=$ac_check_lib_save_LIBS
39798 fi
39799 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39800 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39801 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39802
39803                                 HAVE_PRIOR_FUNCS=1
39804                                 POSIX4_LINK=" -lposix4"
39805
39806 fi
39807
39808
39809 fi
39810
39811
39812 fi
39813
39814
39815 fi
39816
39817
39818       if test "$HAVE_PRIOR_FUNCS" = 1; then
39819         cat >>confdefs.h <<\_ACEOF
39820 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39821 _ACEOF
39822
39823       else
39824         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39825 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39826       fi
39827
39828       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39829 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39830 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39831   echo $ECHO_N "(cached) $ECHO_C" >&6
39832 else
39833   cat >conftest.$ac_ext <<_ACEOF
39834 /* confdefs.h.  */
39835 _ACEOF
39836 cat confdefs.h >>conftest.$ac_ext
39837 cat >>conftest.$ac_ext <<_ACEOF
39838 /* end confdefs.h.  */
39839 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39841 #define pthread_cancel innocuous_pthread_cancel
39842
39843 /* System header to define __stub macros and hopefully few prototypes,
39844     which can conflict with char pthread_cancel (); below.
39845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39846     <limits.h> exists even on freestanding compilers.  */
39847
39848 #ifdef __STDC__
39849 # include <limits.h>
39850 #else
39851 # include <assert.h>
39852 #endif
39853
39854 #undef pthread_cancel
39855
39856 /* Override any GCC internal prototype to avoid an error.
39857    Use char because int might match the return type of a GCC
39858    builtin and then its argument prototype would still apply.  */
39859 #ifdef __cplusplus
39860 extern "C"
39861 #endif
39862 char pthread_cancel ();
39863 /* The GNU C library defines this for functions which it implements
39864     to always fail with ENOSYS.  Some functions are actually named
39865     something starting with __ and the normal name is an alias.  */
39866 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39867 choke me
39868 #endif
39869
39870 int
39871 main ()
39872 {
39873 return pthread_cancel ();
39874   ;
39875   return 0;
39876 }
39877 _ACEOF
39878 rm -f conftest.$ac_objext conftest$ac_exeext
39879 if { (ac_try="$ac_link"
39880 case "(($ac_try" in
39881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39882   *) ac_try_echo=$ac_try;;
39883 esac
39884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39885   (eval "$ac_link") 2>conftest.er1
39886   ac_status=$?
39887   grep -v '^ *+' conftest.er1 >conftest.err
39888   rm -f conftest.er1
39889   cat conftest.err >&5
39890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891   (exit $ac_status); } && {
39892          test -z "$ac_c_werror_flag" ||
39893          test ! -s conftest.err
39894        } && test -s conftest$ac_exeext &&
39895        $as_test_x conftest$ac_exeext; then
39896   ac_cv_func_pthread_cancel=yes
39897 else
39898   echo "$as_me: failed program was:" >&5
39899 sed 's/^/| /' conftest.$ac_ext >&5
39900
39901         ac_cv_func_pthread_cancel=no
39902 fi
39903
39904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39905       conftest$ac_exeext conftest.$ac_ext
39906 fi
39907 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39908 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39909 if test $ac_cv_func_pthread_cancel = yes; then
39910   cat >>confdefs.h <<\_ACEOF
39911 #define HAVE_PTHREAD_CANCEL 1
39912 _ACEOF
39913
39914 else
39915   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39916 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39917 fi
39918
39919
39920       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39921 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39922 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39923   echo $ECHO_N "(cached) $ECHO_C" >&6
39924 else
39925   cat >conftest.$ac_ext <<_ACEOF
39926 /* confdefs.h.  */
39927 _ACEOF
39928 cat confdefs.h >>conftest.$ac_ext
39929 cat >>conftest.$ac_ext <<_ACEOF
39930 /* end confdefs.h.  */
39931 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39933 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39934
39935 /* System header to define __stub macros and hopefully few prototypes,
39936     which can conflict with char pthread_mutex_timedlock (); below.
39937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39938     <limits.h> exists even on freestanding compilers.  */
39939
39940 #ifdef __STDC__
39941 # include <limits.h>
39942 #else
39943 # include <assert.h>
39944 #endif
39945
39946 #undef pthread_mutex_timedlock
39947
39948 /* Override any GCC internal prototype to avoid an error.
39949    Use char because int might match the return type of a GCC
39950    builtin and then its argument prototype would still apply.  */
39951 #ifdef __cplusplus
39952 extern "C"
39953 #endif
39954 char pthread_mutex_timedlock ();
39955 /* The GNU C library defines this for functions which it implements
39956     to always fail with ENOSYS.  Some functions are actually named
39957     something starting with __ and the normal name is an alias.  */
39958 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39959 choke me
39960 #endif
39961
39962 int
39963 main ()
39964 {
39965 return pthread_mutex_timedlock ();
39966   ;
39967   return 0;
39968 }
39969 _ACEOF
39970 rm -f conftest.$ac_objext conftest$ac_exeext
39971 if { (ac_try="$ac_link"
39972 case "(($ac_try" in
39973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39974   *) ac_try_echo=$ac_try;;
39975 esac
39976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39977   (eval "$ac_link") 2>conftest.er1
39978   ac_status=$?
39979   grep -v '^ *+' conftest.er1 >conftest.err
39980   rm -f conftest.er1
39981   cat conftest.err >&5
39982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983   (exit $ac_status); } && {
39984          test -z "$ac_c_werror_flag" ||
39985          test ! -s conftest.err
39986        } && test -s conftest$ac_exeext &&
39987        $as_test_x conftest$ac_exeext; then
39988   ac_cv_func_pthread_mutex_timedlock=yes
39989 else
39990   echo "$as_me: failed program was:" >&5
39991 sed 's/^/| /' conftest.$ac_ext >&5
39992
39993         ac_cv_func_pthread_mutex_timedlock=no
39994 fi
39995
39996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39997       conftest$ac_exeext conftest.$ac_ext
39998 fi
39999 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
40000 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
40001 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
40002   cat >>confdefs.h <<\_ACEOF
40003 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
40004 _ACEOF
40005
40006 else
40007   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
40008 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
40009 fi
40010
40011
40012       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40013 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
40014 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40015   echo $ECHO_N "(cached) $ECHO_C" >&6
40016 else
40017   cat >conftest.$ac_ext <<_ACEOF
40018 /* confdefs.h.  */
40019 _ACEOF
40020 cat confdefs.h >>conftest.$ac_ext
40021 cat >>conftest.$ac_ext <<_ACEOF
40022 /* end confdefs.h.  */
40023 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40025 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40026
40027 /* System header to define __stub macros and hopefully few prototypes,
40028     which can conflict with char pthread_attr_setstacksize (); below.
40029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40030     <limits.h> exists even on freestanding compilers.  */
40031
40032 #ifdef __STDC__
40033 # include <limits.h>
40034 #else
40035 # include <assert.h>
40036 #endif
40037
40038 #undef pthread_attr_setstacksize
40039
40040 /* Override any GCC internal prototype to avoid an error.
40041    Use char because int might match the return type of a GCC
40042    builtin and then its argument prototype would still apply.  */
40043 #ifdef __cplusplus
40044 extern "C"
40045 #endif
40046 char pthread_attr_setstacksize ();
40047 /* The GNU C library defines this for functions which it implements
40048     to always fail with ENOSYS.  Some functions are actually named
40049     something starting with __ and the normal name is an alias.  */
40050 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
40051 choke me
40052 #endif
40053
40054 int
40055 main ()
40056 {
40057 return pthread_attr_setstacksize ();
40058   ;
40059   return 0;
40060 }
40061 _ACEOF
40062 rm -f conftest.$ac_objext conftest$ac_exeext
40063 if { (ac_try="$ac_link"
40064 case "(($ac_try" in
40065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40066   *) ac_try_echo=$ac_try;;
40067 esac
40068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40069   (eval "$ac_link") 2>conftest.er1
40070   ac_status=$?
40071   grep -v '^ *+' conftest.er1 >conftest.err
40072   rm -f conftest.er1
40073   cat conftest.err >&5
40074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075   (exit $ac_status); } && {
40076          test -z "$ac_c_werror_flag" ||
40077          test ! -s conftest.err
40078        } && test -s conftest$ac_exeext &&
40079        $as_test_x conftest$ac_exeext; then
40080   ac_cv_func_pthread_attr_setstacksize=yes
40081 else
40082   echo "$as_me: failed program was:" >&5
40083 sed 's/^/| /' conftest.$ac_ext >&5
40084
40085         ac_cv_func_pthread_attr_setstacksize=no
40086 fi
40087
40088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40089       conftest$ac_exeext conftest.$ac_ext
40090 fi
40091 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40092 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40093 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40094   cat >>confdefs.h <<\_ACEOF
40095 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40096 _ACEOF
40097
40098 fi
40099
40100
40101
40102       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40103 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40104 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40105   echo $ECHO_N "(cached) $ECHO_C" >&6
40106 else
40107
40108         cat >conftest.$ac_ext <<_ACEOF
40109 /* confdefs.h.  */
40110 _ACEOF
40111 cat confdefs.h >>conftest.$ac_ext
40112 cat >>conftest.$ac_ext <<_ACEOF
40113 /* end confdefs.h.  */
40114 #include <pthread.h>
40115 int
40116 main ()
40117 {
40118
40119                pthread_mutexattr_t attr;
40120                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40121
40122   ;
40123   return 0;
40124 }
40125 _ACEOF
40126 rm -f conftest.$ac_objext
40127 if { (ac_try="$ac_compile"
40128 case "(($ac_try" in
40129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40130   *) ac_try_echo=$ac_try;;
40131 esac
40132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40133   (eval "$ac_compile") 2>conftest.er1
40134   ac_status=$?
40135   grep -v '^ *+' conftest.er1 >conftest.err
40136   rm -f conftest.er1
40137   cat conftest.err >&5
40138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139   (exit $ac_status); } && {
40140          test -z "$ac_c_werror_flag" ||
40141          test ! -s conftest.err
40142        } && test -s conftest.$ac_objext; then
40143   wx_cv_type_pthread_mutexattr_t=yes
40144 else
40145   echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40147
40148         wx_cv_type_pthread_mutexattr_t=no
40149
40150 fi
40151
40152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40153
40154 fi
40155 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40156 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40157
40158       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40159         cat >>confdefs.h <<\_ACEOF
40160 #define HAVE_PTHREAD_MUTEXATTR_T 1
40161 _ACEOF
40162
40163
40164                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40165 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40166 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40167   echo $ECHO_N "(cached) $ECHO_C" >&6
40168 else
40169
40170                        cat >conftest.$ac_ext <<_ACEOF
40171 /* confdefs.h.  */
40172 _ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h.  */
40176 #include <pthread.h>
40177 int
40178 main ()
40179 {
40180
40181                                pthread_mutexattr_t attr;
40182                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40183
40184   ;
40185   return 0;
40186 }
40187 _ACEOF
40188 rm -f conftest.$ac_objext
40189 if { (ac_try="$ac_compile"
40190 case "(($ac_try" in
40191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40192   *) ac_try_echo=$ac_try;;
40193 esac
40194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40195   (eval "$ac_compile") 2>conftest.er1
40196   ac_status=$?
40197   grep -v '^ *+' conftest.er1 >conftest.err
40198   rm -f conftest.er1
40199   cat conftest.err >&5
40200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40201   (exit $ac_status); } && {
40202          test -z "$ac_c_werror_flag" ||
40203          test ! -s conftest.err
40204        } && test -s conftest.$ac_objext; then
40205   wx_cv_func_pthread_mutexattr_settype_decl=yes
40206 else
40207   echo "$as_me: failed program was:" >&5
40208 sed 's/^/| /' conftest.$ac_ext >&5
40209
40210         wx_cv_func_pthread_mutexattr_settype_decl=no
40211
40212 fi
40213
40214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40215
40216 fi
40217 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40218 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40219         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40220             cat >>confdefs.h <<\_ACEOF
40221 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40222 _ACEOF
40223
40224         fi
40225       else
40226                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40227 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40228 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40229   echo $ECHO_N "(cached) $ECHO_C" >&6
40230 else
40231
40232             cat >conftest.$ac_ext <<_ACEOF
40233 /* confdefs.h.  */
40234 _ACEOF
40235 cat confdefs.h >>conftest.$ac_ext
40236 cat >>conftest.$ac_ext <<_ACEOF
40237 /* end confdefs.h.  */
40238 #include <pthread.h>
40239 int
40240 main ()
40241 {
40242
40243                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40244
40245   ;
40246   return 0;
40247 }
40248 _ACEOF
40249 rm -f conftest.$ac_objext
40250 if { (ac_try="$ac_compile"
40251 case "(($ac_try" in
40252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40253   *) ac_try_echo=$ac_try;;
40254 esac
40255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40256   (eval "$ac_compile") 2>conftest.er1
40257   ac_status=$?
40258   grep -v '^ *+' conftest.er1 >conftest.err
40259   rm -f conftest.er1
40260   cat conftest.err >&5
40261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262   (exit $ac_status); } && {
40263          test -z "$ac_c_werror_flag" ||
40264          test ! -s conftest.err
40265        } && test -s conftest.$ac_objext; then
40266
40267                     wx_cv_type_pthread_rec_mutex_init=yes
40268
40269 else
40270   echo "$as_me: failed program was:" >&5
40271 sed 's/^/| /' conftest.$ac_ext >&5
40272
40273
40274                     wx_cv_type_pthread_rec_mutex_init=no
40275
40276
40277 fi
40278
40279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40280
40281 fi
40282 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40283 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40284         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40285           cat >>confdefs.h <<\_ACEOF
40286 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40287 _ACEOF
40288
40289         else
40290                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40291 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40292         fi
40293       fi
40294
40295       if test "$wxUSE_COMPILER_TLS" = "auto"; then
40296           if test "$USE_NETBSD" = 1; then
40297               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
40298 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
40299               wxUSE_COMPILER_TLS=no
40300           else
40301               wxUSE_COMPILER_TLS=yes
40302           fi
40303       fi
40304
40305       if test "$wxUSE_COMPILER_TLS" = "yes"; then
40306                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40307 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40308 if test "${wx_cv_cc___thread+set}" = set; then
40309   echo $ECHO_N "(cached) $ECHO_C" >&6
40310 else
40311
40312                   cat >conftest.$ac_ext <<_ACEOF
40313 /* confdefs.h.  */
40314 _ACEOF
40315 cat confdefs.h >>conftest.$ac_ext
40316 cat >>conftest.$ac_ext <<_ACEOF
40317 /* end confdefs.h.  */
40318 #include <pthread.h>
40319 int
40320 main ()
40321 {
40322
40323                           static __thread int n = 0;
40324                           static __thread int *p = 0;
40325
40326   ;
40327   return 0;
40328 }
40329 _ACEOF
40330 rm -f conftest.$ac_objext
40331 if { (ac_try="$ac_compile"
40332 case "(($ac_try" in
40333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40334   *) ac_try_echo=$ac_try;;
40335 esac
40336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40337   (eval "$ac_compile") 2>conftest.er1
40338   ac_status=$?
40339   grep -v '^ *+' conftest.er1 >conftest.err
40340   rm -f conftest.er1
40341   cat conftest.err >&5
40342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343   (exit $ac_status); } && {
40344          test -z "$ac_c_werror_flag" ||
40345          test ! -s conftest.err
40346        } && test -s conftest.$ac_objext; then
40347   wx_cv_cc___thread=yes
40348 else
40349   echo "$as_me: failed program was:" >&5
40350 sed 's/^/| /' conftest.$ac_ext >&5
40351
40352         wx_cv_cc___thread=no
40353
40354 fi
40355
40356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40357
40358
40359 fi
40360 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40361 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40362
40363           if test "$wx_cv_cc___thread" = "yes"; then
40364
40365   GXX_VERSION=""
40366
40367
40368
40369   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40370 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40371
40372   if  test "x$GCC" = "xyes" ; then
40373
40374     if  test -z "" ; then
40375
40376       ax_gcc_option_test="int main()
40377 {
40378         return 0;
40379 }"
40380
40381 else
40382
40383       ax_gcc_option_test=""
40384
40385 fi
40386
40387
40388     # Dump the test program to file
40389     cat <<EOF > conftest.c
40390 $ax_gcc_option_test
40391 EOF
40392
40393     # Dump back the file to the log, useful for debugging purposes
40394     { ac_try='cat conftest.c 1>&5'
40395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40396   (eval $ac_try) 2>&5
40397   ac_status=$?
40398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399   (exit $ac_status); }; }
40400
40401     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40403   (eval $ac_try) 2>&5
40404   ac_status=$?
40405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406   (exit $ac_status); }; } ; then
40407
40408                 { echo "$as_me:$LINENO: result: yes" >&5
40409 echo "${ECHO_T}yes" >&6; }
40410
40411     ax_gcc_version_option=yes
40412
40413
40414 else
40415
40416                 { echo "$as_me:$LINENO: result: no" >&5
40417 echo "${ECHO_T}no" >&6; }
40418
40419     ax_gcc_version_option=no
40420
40421
40422 fi
40423
40424
40425 else
40426
40427     { echo "$as_me:$LINENO: result: no gcc available" >&5
40428 echo "${ECHO_T}no gcc available" >&6; }
40429
40430 fi
40431
40432
40433   if test "x$GXX" = "xyes"; then
40434
40435     if test "x$ax_gxx_version_option" != "no"; then
40436
40437       { echo "$as_me:$LINENO: checking gxx version" >&5
40438 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
40439 if test "${ax_cv_gxx_version+set}" = set; then
40440   echo $ECHO_N "(cached) $ECHO_C" >&6
40441 else
40442
40443         ax_cv_gxx_version="`$CXX -dumpversion`"
40444         if test "x$ax_cv_gxx_version" = "x"; then
40445
40446           ax_cv_gxx_version=""
40447
40448 fi
40449
40450
40451 fi
40452 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
40453 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
40454       GXX_VERSION=$ax_cv_gxx_version
40455
40456 fi
40457
40458
40459 fi
40460
40461
40462
40463               if test -n "$ax_cv_gxx_version"; then
40464                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
40465 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
40466                   case "$ax_cv_gxx_version" in
40467                     1.* | 2.* | 3.* )
40468                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
40469 echo "${ECHO_T}no, it's broken" >&6; }
40470                         wx_cv_cc___thread=no
40471                         ;;
40472                     *)
40473                         { echo "$as_me:$LINENO: result: yes, it works" >&5
40474 echo "${ECHO_T}yes, it works" >&6; }
40475                         ;;
40476                   esac
40477               fi
40478           fi
40479
40480           if test "$wx_cv_cc___thread" = "yes"; then
40481             cat >>confdefs.h <<\_ACEOF
40482 #define HAVE___THREAD_KEYWORD 1
40483 _ACEOF
40484
40485           fi
40486         fi
40487     fi
40488
40489 else
40490     if test "$wxUSE_THREADS" = "yes" ; then
40491       case "${host}" in
40492         x86_64-*-mingw32* )
40493         ;;
40494         *-*-mingw32* )
40495                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40496 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40497 if test "${wx_cv_cflags_mthread+set}" = set; then
40498   echo $ECHO_N "(cached) $ECHO_C" >&6
40499 else
40500
40501                     CFLAGS_OLD="$CFLAGS"
40502                     CFLAGS="-mthreads $CFLAGS"
40503                     cat >conftest.$ac_ext <<_ACEOF
40504 /* confdefs.h.  */
40505 _ACEOF
40506 cat confdefs.h >>conftest.$ac_ext
40507 cat >>conftest.$ac_ext <<_ACEOF
40508 /* end confdefs.h.  */
40509
40510 int
40511 main ()
40512 {
40513
40514   ;
40515   return 0;
40516 }
40517 _ACEOF
40518 rm -f conftest.$ac_objext
40519 if { (ac_try="$ac_compile"
40520 case "(($ac_try" in
40521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40522   *) ac_try_echo=$ac_try;;
40523 esac
40524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40525   (eval "$ac_compile") 2>conftest.er1
40526   ac_status=$?
40527   grep -v '^ *+' conftest.er1 >conftest.err
40528   rm -f conftest.er1
40529   cat conftest.err >&5
40530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40531   (exit $ac_status); } && {
40532          test -z "$ac_c_werror_flag" ||
40533          test ! -s conftest.err
40534        } && test -s conftest.$ac_objext; then
40535   wx_cv_cflags_mthread=yes
40536 else
40537   echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40539
40540         wx_cv_cflags_mthread=no
40541
40542 fi
40543
40544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40545
40546
40547 fi
40548 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40549 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40550
40551             if test "$wx_cv_cflags_mthread" = "yes"; then
40552                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40553                 LDFLAGS="$LDFLAGS -mthreads"
40554             else
40555                                 CFLAGS="$CFLAGS_OLD"
40556             fi
40557         ;;
40558         *-pc-os2*emx )
40559             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40560             LDFLAGS="$LDFLAGS -Zmt"
40561         ;;
40562       esac
40563     fi
40564 fi
40565
40566 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40567 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40568 if test "${ac_cv_func_localtime_r+set}" = set; then
40569   echo $ECHO_N "(cached) $ECHO_C" >&6
40570 else
40571   cat >conftest.$ac_ext <<_ACEOF
40572 /* confdefs.h.  */
40573 _ACEOF
40574 cat confdefs.h >>conftest.$ac_ext
40575 cat >>conftest.$ac_ext <<_ACEOF
40576 /* end confdefs.h.  */
40577 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40579 #define localtime_r innocuous_localtime_r
40580
40581 /* System header to define __stub macros and hopefully few prototypes,
40582     which can conflict with char localtime_r (); below.
40583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40584     <limits.h> exists even on freestanding compilers.  */
40585
40586 #ifdef __STDC__
40587 # include <limits.h>
40588 #else
40589 # include <assert.h>
40590 #endif
40591
40592 #undef localtime_r
40593
40594 /* Override any GCC internal prototype to avoid an error.
40595    Use char because int might match the return type of a GCC
40596    builtin and then its argument prototype would still apply.  */
40597 #ifdef __cplusplus
40598 extern "C"
40599 #endif
40600 char localtime_r ();
40601 /* The GNU C library defines this for functions which it implements
40602     to always fail with ENOSYS.  Some functions are actually named
40603     something starting with __ and the normal name is an alias.  */
40604 #if defined __stub_localtime_r || defined __stub___localtime_r
40605 choke me
40606 #endif
40607
40608 int
40609 main ()
40610 {
40611 return localtime_r ();
40612   ;
40613   return 0;
40614 }
40615 _ACEOF
40616 rm -f conftest.$ac_objext conftest$ac_exeext
40617 if { (ac_try="$ac_link"
40618 case "(($ac_try" in
40619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40620   *) ac_try_echo=$ac_try;;
40621 esac
40622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40623   (eval "$ac_link") 2>conftest.er1
40624   ac_status=$?
40625   grep -v '^ *+' conftest.er1 >conftest.err
40626   rm -f conftest.er1
40627   cat conftest.err >&5
40628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40629   (exit $ac_status); } && {
40630          test -z "$ac_c_werror_flag" ||
40631          test ! -s conftest.err
40632        } && test -s conftest$ac_exeext &&
40633        $as_test_x conftest$ac_exeext; then
40634   ac_cv_func_localtime_r=yes
40635 else
40636   echo "$as_me: failed program was:" >&5
40637 sed 's/^/| /' conftest.$ac_ext >&5
40638
40639         ac_cv_func_localtime_r=no
40640 fi
40641
40642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40643       conftest$ac_exeext conftest.$ac_ext
40644 fi
40645 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40646 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40647 if test $ac_cv_func_localtime_r = yes; then
40648    cat >>confdefs.h <<\_ACEOF
40649 #define HAVE_LOCALTIME_R 1
40650 _ACEOF
40651
40652 fi
40653
40654 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40655 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40656 if test "${ac_cv_func_gmtime_r+set}" = set; then
40657   echo $ECHO_N "(cached) $ECHO_C" >&6
40658 else
40659   cat >conftest.$ac_ext <<_ACEOF
40660 /* confdefs.h.  */
40661 _ACEOF
40662 cat confdefs.h >>conftest.$ac_ext
40663 cat >>conftest.$ac_ext <<_ACEOF
40664 /* end confdefs.h.  */
40665 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40667 #define gmtime_r innocuous_gmtime_r
40668
40669 /* System header to define __stub macros and hopefully few prototypes,
40670     which can conflict with char gmtime_r (); below.
40671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40672     <limits.h> exists even on freestanding compilers.  */
40673
40674 #ifdef __STDC__
40675 # include <limits.h>
40676 #else
40677 # include <assert.h>
40678 #endif
40679
40680 #undef gmtime_r
40681
40682 /* Override any GCC internal prototype to avoid an error.
40683    Use char because int might match the return type of a GCC
40684    builtin and then its argument prototype would still apply.  */
40685 #ifdef __cplusplus
40686 extern "C"
40687 #endif
40688 char gmtime_r ();
40689 /* The GNU C library defines this for functions which it implements
40690     to always fail with ENOSYS.  Some functions are actually named
40691     something starting with __ and the normal name is an alias.  */
40692 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40693 choke me
40694 #endif
40695
40696 int
40697 main ()
40698 {
40699 return gmtime_r ();
40700   ;
40701   return 0;
40702 }
40703 _ACEOF
40704 rm -f conftest.$ac_objext conftest$ac_exeext
40705 if { (ac_try="$ac_link"
40706 case "(($ac_try" in
40707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40708   *) ac_try_echo=$ac_try;;
40709 esac
40710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40711   (eval "$ac_link") 2>conftest.er1
40712   ac_status=$?
40713   grep -v '^ *+' conftest.er1 >conftest.err
40714   rm -f conftest.er1
40715   cat conftest.err >&5
40716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717   (exit $ac_status); } && {
40718          test -z "$ac_c_werror_flag" ||
40719          test ! -s conftest.err
40720        } && test -s conftest$ac_exeext &&
40721        $as_test_x conftest$ac_exeext; then
40722   ac_cv_func_gmtime_r=yes
40723 else
40724   echo "$as_me: failed program was:" >&5
40725 sed 's/^/| /' conftest.$ac_ext >&5
40726
40727         ac_cv_func_gmtime_r=no
40728 fi
40729
40730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40731       conftest$ac_exeext conftest.$ac_ext
40732 fi
40733 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40734 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40735 if test $ac_cv_func_gmtime_r = yes; then
40736    cat >>confdefs.h <<\_ACEOF
40737 #define HAVE_GMTIME_R 1
40738 _ACEOF
40739
40740 fi
40741
40742
40743
40744
40745     ac_ext=c
40746 ac_cpp='$CPP $CPPFLAGS'
40747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40750
40751     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40752 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40753
40754     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40755   echo $ECHO_N "(cached) $ECHO_C" >&6
40756 else
40757
40758
40759 ################################################################
40760
40761 ac_cv_func_which_gethostbyname_r=unknown
40762
40763 #
40764 # ONE ARGUMENT (sanity check)
40765 #
40766
40767 # This should fail, as there is no variant of gethostbyname_r() that takes
40768 # a single argument. If it actually compiles, then we can assume that
40769 # netdb.h is not declaring the function, and the compiler is thereby
40770 # assuming an implicit prototype. In which case, we're out of luck.
40771 #
40772 cat >conftest.$ac_ext <<_ACEOF
40773 /* confdefs.h.  */
40774 _ACEOF
40775 cat confdefs.h >>conftest.$ac_ext
40776 cat >>conftest.$ac_ext <<_ACEOF
40777 /* end confdefs.h.  */
40778 #include <netdb.h>
40779 int
40780 main ()
40781 {
40782
40783             char *name = "www.gnu.org";
40784             (void)gethostbyname_r(name) /* ; */
40785
40786   ;
40787   return 0;
40788 }
40789 _ACEOF
40790 rm -f conftest.$ac_objext
40791 if { (ac_try="$ac_compile"
40792 case "(($ac_try" in
40793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40794   *) ac_try_echo=$ac_try;;
40795 esac
40796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40797   (eval "$ac_compile") 2>conftest.er1
40798   ac_status=$?
40799   grep -v '^ *+' conftest.er1 >conftest.err
40800   rm -f conftest.er1
40801   cat conftest.err >&5
40802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803   (exit $ac_status); } && {
40804          test -z "$ac_c_werror_flag" ||
40805          test ! -s conftest.err
40806        } && test -s conftest.$ac_objext; then
40807   ac_cv_func_which_gethostbyname_r=no
40808 else
40809   echo "$as_me: failed program was:" >&5
40810 sed 's/^/| /' conftest.$ac_ext >&5
40811
40812
40813 fi
40814
40815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40816
40817 #
40818 # SIX ARGUMENTS
40819 # (e.g. Linux)
40820 #
40821
40822 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40823
40824 cat >conftest.$ac_ext <<_ACEOF
40825 /* confdefs.h.  */
40826 _ACEOF
40827 cat confdefs.h >>conftest.$ac_ext
40828 cat >>conftest.$ac_ext <<_ACEOF
40829 /* end confdefs.h.  */
40830 #include <netdb.h>
40831 int
40832 main ()
40833 {
40834
40835             char *name = "www.gnu.org";
40836             struct hostent ret, *retp;
40837             char buf[1024];
40838             int buflen = 1024;
40839             int my_h_errno;
40840             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40841
40842   ;
40843   return 0;
40844 }
40845 _ACEOF
40846 rm -f conftest.$ac_objext
40847 if { (ac_try="$ac_compile"
40848 case "(($ac_try" in
40849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40850   *) ac_try_echo=$ac_try;;
40851 esac
40852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40853   (eval "$ac_compile") 2>conftest.er1
40854   ac_status=$?
40855   grep -v '^ *+' conftest.er1 >conftest.err
40856   rm -f conftest.er1
40857   cat conftest.err >&5
40858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40859   (exit $ac_status); } && {
40860          test -z "$ac_c_werror_flag" ||
40861          test ! -s conftest.err
40862        } && test -s conftest.$ac_objext; then
40863   ac_cv_func_which_gethostbyname_r=six
40864 else
40865   echo "$as_me: failed program was:" >&5
40866 sed 's/^/| /' conftest.$ac_ext >&5
40867
40868
40869 fi
40870
40871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40872
40873 fi
40874
40875 #
40876 # FIVE ARGUMENTS
40877 # (e.g. Solaris)
40878 #
40879
40880 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40881
40882 cat >conftest.$ac_ext <<_ACEOF
40883 /* confdefs.h.  */
40884 _ACEOF
40885 cat confdefs.h >>conftest.$ac_ext
40886 cat >>conftest.$ac_ext <<_ACEOF
40887 /* end confdefs.h.  */
40888 #include <netdb.h>
40889 int
40890 main ()
40891 {
40892
40893             char *name = "www.gnu.org";
40894             struct hostent ret;
40895             char buf[1024];
40896             int buflen = 1024;
40897             int my_h_errno;
40898             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40899
40900   ;
40901   return 0;
40902 }
40903 _ACEOF
40904 rm -f conftest.$ac_objext
40905 if { (ac_try="$ac_compile"
40906 case "(($ac_try" in
40907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40908   *) ac_try_echo=$ac_try;;
40909 esac
40910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40911   (eval "$ac_compile") 2>conftest.er1
40912   ac_status=$?
40913   grep -v '^ *+' conftest.er1 >conftest.err
40914   rm -f conftest.er1
40915   cat conftest.err >&5
40916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917   (exit $ac_status); } && {
40918          test -z "$ac_c_werror_flag" ||
40919          test ! -s conftest.err
40920        } && test -s conftest.$ac_objext; then
40921   ac_cv_func_which_gethostbyname_r=five
40922 else
40923   echo "$as_me: failed program was:" >&5
40924 sed 's/^/| /' conftest.$ac_ext >&5
40925
40926
40927 fi
40928
40929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40930
40931 fi
40932
40933 #
40934 # THREE ARGUMENTS
40935 # (e.g. AIX, HP-UX, Tru64)
40936 #
40937
40938 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40939
40940 cat >conftest.$ac_ext <<_ACEOF
40941 /* confdefs.h.  */
40942 _ACEOF
40943 cat confdefs.h >>conftest.$ac_ext
40944 cat >>conftest.$ac_ext <<_ACEOF
40945 /* end confdefs.h.  */
40946 #include <netdb.h>
40947 int
40948 main ()
40949 {
40950
40951             char *name = "www.gnu.org";
40952             struct hostent ret;
40953             struct hostent_data data;
40954             (void)gethostbyname_r(name, &ret, &data) /* ; */
40955
40956   ;
40957   return 0;
40958 }
40959 _ACEOF
40960 rm -f conftest.$ac_objext
40961 if { (ac_try="$ac_compile"
40962 case "(($ac_try" in
40963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40964   *) ac_try_echo=$ac_try;;
40965 esac
40966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40967   (eval "$ac_compile") 2>conftest.er1
40968   ac_status=$?
40969   grep -v '^ *+' conftest.er1 >conftest.err
40970   rm -f conftest.er1
40971   cat conftest.err >&5
40972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40973   (exit $ac_status); } && {
40974          test -z "$ac_c_werror_flag" ||
40975          test ! -s conftest.err
40976        } && test -s conftest.$ac_objext; then
40977   ac_cv_func_which_gethostbyname_r=three
40978 else
40979   echo "$as_me: failed program was:" >&5
40980 sed 's/^/| /' conftest.$ac_ext >&5
40981
40982
40983 fi
40984
40985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40986
40987 fi
40988
40989 ################################################################
40990
40991
40992 fi
40993
40994 case "$ac_cv_func_which_gethostbyname_r" in
40995     three)
40996     { echo "$as_me:$LINENO: result: three" >&5
40997 echo "${ECHO_T}three" >&6; }
40998     cat >>confdefs.h <<\_ACEOF
40999 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41000 _ACEOF
41001
41002     ;;
41003
41004     five)
41005     { echo "$as_me:$LINENO: result: five" >&5
41006 echo "${ECHO_T}five" >&6; }
41007     cat >>confdefs.h <<\_ACEOF
41008 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41009 _ACEOF
41010
41011     ;;
41012
41013     six)
41014     { echo "$as_me:$LINENO: result: six" >&5
41015 echo "${ECHO_T}six" >&6; }
41016     cat >>confdefs.h <<\_ACEOF
41017 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41018 _ACEOF
41019
41020     ;;
41021
41022     no)
41023     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41024 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
41025     ;;
41026
41027     unknown)
41028     { echo "$as_me:$LINENO: result: can't tell" >&5
41029 echo "${ECHO_T}can't tell" >&6; }
41030     ;;
41031
41032     *)
41033     { { echo "$as_me:$LINENO: error: internal error" >&5
41034 echo "$as_me: error: internal error" >&2;}
41035    { (exit 1); exit 1; }; }
41036     ;;
41037 esac
41038
41039 ac_ext=c
41040 ac_cpp='$CPP $CPPFLAGS'
41041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41044
41045
41046
41047       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41048               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41049           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
41050 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
41051 if test "${ac_cv_func_gethostbyname+set}" = set; then
41052   echo $ECHO_N "(cached) $ECHO_C" >&6
41053 else
41054   cat >conftest.$ac_ext <<_ACEOF
41055 /* confdefs.h.  */
41056 _ACEOF
41057 cat confdefs.h >>conftest.$ac_ext
41058 cat >>conftest.$ac_ext <<_ACEOF
41059 /* end confdefs.h.  */
41060 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41062 #define gethostbyname innocuous_gethostbyname
41063
41064 /* System header to define __stub macros and hopefully few prototypes,
41065     which can conflict with char gethostbyname (); below.
41066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41067     <limits.h> exists even on freestanding compilers.  */
41068
41069 #ifdef __STDC__
41070 # include <limits.h>
41071 #else
41072 # include <assert.h>
41073 #endif
41074
41075 #undef gethostbyname
41076
41077 /* Override any GCC internal prototype to avoid an error.
41078    Use char because int might match the return type of a GCC
41079    builtin and then its argument prototype would still apply.  */
41080 #ifdef __cplusplus
41081 extern "C"
41082 #endif
41083 char gethostbyname ();
41084 /* The GNU C library defines this for functions which it implements
41085     to always fail with ENOSYS.  Some functions are actually named
41086     something starting with __ and the normal name is an alias.  */
41087 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41088 choke me
41089 #endif
41090
41091 int
41092 main ()
41093 {
41094 return gethostbyname ();
41095   ;
41096   return 0;
41097 }
41098 _ACEOF
41099 rm -f conftest.$ac_objext conftest$ac_exeext
41100 if { (ac_try="$ac_link"
41101 case "(($ac_try" in
41102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41103   *) ac_try_echo=$ac_try;;
41104 esac
41105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41106   (eval "$ac_link") 2>conftest.er1
41107   ac_status=$?
41108   grep -v '^ *+' conftest.er1 >conftest.err
41109   rm -f conftest.er1
41110   cat conftest.err >&5
41111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41112   (exit $ac_status); } && {
41113          test -z "$ac_c_werror_flag" ||
41114          test ! -s conftest.err
41115        } && test -s conftest$ac_exeext &&
41116        $as_test_x conftest$ac_exeext; then
41117   ac_cv_func_gethostbyname=yes
41118 else
41119   echo "$as_me: failed program was:" >&5
41120 sed 's/^/| /' conftest.$ac_ext >&5
41121
41122         ac_cv_func_gethostbyname=no
41123 fi
41124
41125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41126       conftest$ac_exeext conftest.$ac_ext
41127 fi
41128 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41129 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41130 if test $ac_cv_func_gethostbyname = yes; then
41131    cat >>confdefs.h <<\_ACEOF
41132 #define HAVE_GETHOSTBYNAME 1
41133 _ACEOF
41134
41135 fi
41136
41137       fi
41138
41139 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41140 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41141 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41142   echo $ECHO_N "(cached) $ECHO_C" >&6
41143 else
41144
41145                 ac_ext=cpp
41146 ac_cpp='$CXXCPP $CPPFLAGS'
41147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41150
41151
41152         cat >conftest.$ac_ext <<_ACEOF
41153 /* confdefs.h.  */
41154 _ACEOF
41155 cat confdefs.h >>conftest.$ac_ext
41156 cat >>conftest.$ac_ext <<_ACEOF
41157 /* end confdefs.h.  */
41158 #include <netdb.h>
41159 int
41160 main ()
41161 {
41162
41163                 char *name;
41164                 char *proto;
41165                 struct servent *se, *res;
41166                 char buffer[2048];
41167                 int buflen = 2048;
41168                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41169
41170   ;
41171   return 0;
41172 }
41173 _ACEOF
41174 rm -f conftest.$ac_objext
41175 if { (ac_try="$ac_compile"
41176 case "(($ac_try" in
41177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41178   *) ac_try_echo=$ac_try;;
41179 esac
41180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41181   (eval "$ac_compile") 2>conftest.er1
41182   ac_status=$?
41183   grep -v '^ *+' conftest.er1 >conftest.err
41184   rm -f conftest.er1
41185   cat conftest.err >&5
41186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187   (exit $ac_status); } && {
41188          test -z "$ac_cxx_werror_flag" ||
41189          test ! -s conftest.err
41190        } && test -s conftest.$ac_objext; then
41191   ac_cv_func_which_getservbyname_r=six
41192 else
41193   echo "$as_me: failed program was:" >&5
41194 sed 's/^/| /' conftest.$ac_ext >&5
41195
41196
41197                 cat >conftest.$ac_ext <<_ACEOF
41198 /* confdefs.h.  */
41199 _ACEOF
41200 cat confdefs.h >>conftest.$ac_ext
41201 cat >>conftest.$ac_ext <<_ACEOF
41202 /* end confdefs.h.  */
41203 #include <netdb.h>
41204 int
41205 main ()
41206 {
41207
41208                         char *name;
41209                         char *proto;
41210                         struct servent *se;
41211                         char buffer[2048];
41212                         int buflen = 2048;
41213                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41214
41215   ;
41216   return 0;
41217 }
41218 _ACEOF
41219 rm -f conftest.$ac_objext
41220 if { (ac_try="$ac_compile"
41221 case "(($ac_try" in
41222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41223   *) ac_try_echo=$ac_try;;
41224 esac
41225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41226   (eval "$ac_compile") 2>conftest.er1
41227   ac_status=$?
41228   grep -v '^ *+' conftest.er1 >conftest.err
41229   rm -f conftest.er1
41230   cat conftest.err >&5
41231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232   (exit $ac_status); } && {
41233          test -z "$ac_cxx_werror_flag" ||
41234          test ! -s conftest.err
41235        } && test -s conftest.$ac_objext; then
41236   ac_cv_func_which_getservbyname_r=five
41237 else
41238   echo "$as_me: failed program was:" >&5
41239 sed 's/^/| /' conftest.$ac_ext >&5
41240
41241
41242                         cat >conftest.$ac_ext <<_ACEOF
41243 /* confdefs.h.  */
41244 _ACEOF
41245 cat confdefs.h >>conftest.$ac_ext
41246 cat >>conftest.$ac_ext <<_ACEOF
41247 /* end confdefs.h.  */
41248 #include <netdb.h>
41249 int
41250 main ()
41251 {
41252
41253                                 char *name;
41254                                 char *proto;
41255                                 struct servent *se;
41256                                 struct servent_data data;
41257                                 (void) getservbyname_r(name, proto, se, &data);
41258
41259   ;
41260   return 0;
41261 }
41262 _ACEOF
41263 rm -f conftest.$ac_objext
41264 if { (ac_try="$ac_compile"
41265 case "(($ac_try" in
41266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41267   *) ac_try_echo=$ac_try;;
41268 esac
41269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41270   (eval "$ac_compile") 2>conftest.er1
41271   ac_status=$?
41272   grep -v '^ *+' conftest.er1 >conftest.err
41273   rm -f conftest.er1
41274   cat conftest.err >&5
41275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41276   (exit $ac_status); } && {
41277          test -z "$ac_cxx_werror_flag" ||
41278          test ! -s conftest.err
41279        } && test -s conftest.$ac_objext; then
41280   ac_cv_func_which_getservbyname_r=four
41281 else
41282   echo "$as_me: failed program was:" >&5
41283 sed 's/^/| /' conftest.$ac_ext >&5
41284
41285         ac_cv_func_which_getservbyname_r=no
41286
41287 fi
41288
41289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41290
41291
41292 fi
41293
41294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41295
41296
41297 fi
41298
41299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41300         ac_ext=c
41301 ac_cpp='$CPP $CPPFLAGS'
41302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41305
41306
41307
41308 fi
41309 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41310 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41311
41312 if test $ac_cv_func_which_getservbyname_r = six; then
41313   cat >>confdefs.h <<\_ACEOF
41314 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41315 _ACEOF
41316
41317 elif test $ac_cv_func_which_getservbyname_r = five; then
41318   cat >>confdefs.h <<\_ACEOF
41319 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41320 _ACEOF
41321
41322 elif test $ac_cv_func_which_getservbyname_r = four; then
41323   cat >>confdefs.h <<\_ACEOF
41324 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41325 _ACEOF
41326
41327 fi
41328
41329
41330       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41331               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41332
41333 for ac_func in getservbyname
41334 do
41335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41339   echo $ECHO_N "(cached) $ECHO_C" >&6
41340 else
41341   cat >conftest.$ac_ext <<_ACEOF
41342 /* confdefs.h.  */
41343 _ACEOF
41344 cat confdefs.h >>conftest.$ac_ext
41345 cat >>conftest.$ac_ext <<_ACEOF
41346 /* end confdefs.h.  */
41347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41349 #define $ac_func innocuous_$ac_func
41350
41351 /* System header to define __stub macros and hopefully few prototypes,
41352     which can conflict with char $ac_func (); below.
41353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41354     <limits.h> exists even on freestanding compilers.  */
41355
41356 #ifdef __STDC__
41357 # include <limits.h>
41358 #else
41359 # include <assert.h>
41360 #endif
41361
41362 #undef $ac_func
41363
41364 /* Override any GCC internal prototype to avoid an error.
41365    Use char because int might match the return type of a GCC
41366    builtin and then its argument prototype would still apply.  */
41367 #ifdef __cplusplus
41368 extern "C"
41369 #endif
41370 char $ac_func ();
41371 /* The GNU C library defines this for functions which it implements
41372     to always fail with ENOSYS.  Some functions are actually named
41373     something starting with __ and the normal name is an alias.  */
41374 #if defined __stub_$ac_func || defined __stub___$ac_func
41375 choke me
41376 #endif
41377
41378 int
41379 main ()
41380 {
41381 return $ac_func ();
41382   ;
41383   return 0;
41384 }
41385 _ACEOF
41386 rm -f conftest.$ac_objext conftest$ac_exeext
41387 if { (ac_try="$ac_link"
41388 case "(($ac_try" in
41389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41390   *) ac_try_echo=$ac_try;;
41391 esac
41392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41393   (eval "$ac_link") 2>conftest.er1
41394   ac_status=$?
41395   grep -v '^ *+' conftest.er1 >conftest.err
41396   rm -f conftest.er1
41397   cat conftest.err >&5
41398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41399   (exit $ac_status); } && {
41400          test -z "$ac_c_werror_flag" ||
41401          test ! -s conftest.err
41402        } && test -s conftest$ac_exeext &&
41403        $as_test_x conftest$ac_exeext; then
41404   eval "$as_ac_var=yes"
41405 else
41406   echo "$as_me: failed program was:" >&5
41407 sed 's/^/| /' conftest.$ac_ext >&5
41408
41409         eval "$as_ac_var=no"
41410 fi
41411
41412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41413       conftest$ac_exeext conftest.$ac_ext
41414 fi
41415 ac_res=`eval echo '${'$as_ac_var'}'`
41416                { echo "$as_me:$LINENO: result: $ac_res" >&5
41417 echo "${ECHO_T}$ac_res" >&6; }
41418 if test `eval echo '${'$as_ac_var'}'` = yes; then
41419   cat >>confdefs.h <<_ACEOF
41420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41421 _ACEOF
41422   cat >>confdefs.h <<\_ACEOF
41423 #define HAVE_GETSERVBYNAME 1
41424 _ACEOF
41425
41426 fi
41427 done
41428
41429       fi
41430
41431 if test "$wxUSE_THREADS" = "yes"; then
41432   cat >>confdefs.h <<\_ACEOF
41433 #define wxUSE_THREADS 1
41434 _ACEOF
41435
41436
41437   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41438 else
41439       if test "$wx_cv_func_strtok_r" = "yes"; then
41440     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41441 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41442     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41443         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41444         { echo "$as_me:$LINENO: result: yes" >&5
41445 echo "${ECHO_T}yes" >&6; }
41446     else
41447         { echo "$as_me:$LINENO: result: no" >&5
41448 echo "${ECHO_T}no" >&6; }
41449     fi
41450   fi
41451 fi
41452
41453 if test "$WXGTK2" = 1 ; then
41454   cat >>confdefs.h <<_ACEOF
41455 #define __WXGTK20__ $WXGTK2
41456 _ACEOF
41457
41458   WXGTK12=1
41459 fi
41460
41461 if test "$WXGTK12" = 1 ; then
41462   cat >>confdefs.h <<_ACEOF
41463 #define __WXGTK12__ $WXGTK12
41464 _ACEOF
41465
41466 fi
41467
41468 if test "$WXGTK127" = 1 ; then
41469   cat >>confdefs.h <<_ACEOF
41470 #define __WXGTK127__ $WXGTK127
41471 _ACEOF
41472
41473 fi
41474
41475 if test "$WXGPE" = 1 ; then
41476   cat >>confdefs.h <<_ACEOF
41477 #define __WXGPE__ $WXGPE
41478 _ACEOF
41479
41480 fi
41481
41482 DEBUG_CFLAGS=
41483 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
41484                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
41485 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
41486 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
41487     DEBUG_CFLAGS="-g"
41488 fi
41489
41490 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41491     wxUSE_DEBUG_INFO=yes
41492     if test "$GCC" = yes; then
41493         DEBUG_CFLAGS="-ggdb"
41494     fi
41495 fi
41496
41497 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
41498     if test "$wxUSE_GTK" = 1 ; then
41499         if test "x$wxGTK_VERSION" = "x1" ; then
41500             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41501         fi
41502     fi
41503 fi
41504
41505 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41506     cat >>confdefs.h <<\_ACEOF
41507 #define wxUSE_MEMORY_TRACING 1
41508 _ACEOF
41509
41510     cat >>confdefs.h <<\_ACEOF
41511 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41512 _ACEOF
41513
41514     cat >>confdefs.h <<\_ACEOF
41515 #define wxUSE_DEBUG_NEW_ALWAYS 1
41516 _ACEOF
41517
41518     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41519 fi
41520
41521 if test "$wxUSE_DMALLOC" = "yes" ; then
41522     DMALLOC_LIBS="-ldmallocthcxx"
41523 fi
41524
41525 PROFILE_FLAGS=
41526 if test "$wxUSE_PROFILE" = "yes" ; then
41527     PROFILE_FLAGS=" -pg"
41528 fi
41529
41530 if test "$GCC" = "yes" ; then
41531     if test "$wxUSE_NO_RTTI" = "yes" ; then
41532         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41533     fi
41534     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41535         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41536     fi
41537     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41538         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41539     fi
41540
41541                                                 case "${host}" in
41542       powerpc*-*-aix* )
41543         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41544         ;;
41545       *-hppa* )
41546         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41547         ;;
41548     esac
41549 fi
41550
41551 OPTIMISE_CFLAGS=
41552 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
41553                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
41554 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
41555 else
41556     if test "$wxUSE_OPTIMISE" = "no" ; then
41557         if test "$GCC" = yes ; then
41558                                     OPTIMISE_CFLAGS="-O0"
41559         fi
41560     else
41561         if test "$GCC" = yes ; then
41562             case "${host}" in
41563                 *-pc-os2_emx | *-pc-os2-emx )
41564                                                             OPTIMISE_CFLAGS="-O2"
41565                 ;;
41566                 *)
41567                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41568                 ;;
41569             esac
41570         else
41571             OPTIMISE_CFLAGS="-O"
41572         fi
41573     fi
41574 fi
41575
41576
41577 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41578     cat >>confdefs.h <<\_ACEOF
41579 #define WXWIN_COMPATIBILITY_2_6 1
41580 _ACEOF
41581
41582
41583     WXWIN_COMPATIBILITY_2_8="yes"
41584 fi
41585
41586 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41587     cat >>confdefs.h <<\_ACEOF
41588 #define WXWIN_COMPATIBILITY_2_8 1
41589 _ACEOF
41590
41591 fi
41592
41593
41594 if test "$wxUSE_GUI" = "yes"; then
41595     cat >>confdefs.h <<\_ACEOF
41596 #define wxUSE_GUI 1
41597 _ACEOF
41598
41599
41600                                             fi
41601
41602
41603 if test "$wxUSE_UNIX" = "yes"; then
41604   cat >>confdefs.h <<\_ACEOF
41605 #define wxUSE_UNIX 1
41606 _ACEOF
41607
41608 fi
41609
41610
41611 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41612
41613     HAVE_DL_FUNCS=0
41614     HAVE_SHL_FUNCS=0
41615     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41616         if test "$USE_DOS" = 1; then
41617             HAVE_DL_FUNCS=0
41618         else
41619
41620 for ac_func in dlopen
41621 do
41622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41626   echo $ECHO_N "(cached) $ECHO_C" >&6
41627 else
41628   cat >conftest.$ac_ext <<_ACEOF
41629 /* confdefs.h.  */
41630 _ACEOF
41631 cat confdefs.h >>conftest.$ac_ext
41632 cat >>conftest.$ac_ext <<_ACEOF
41633 /* end confdefs.h.  */
41634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41636 #define $ac_func innocuous_$ac_func
41637
41638 /* System header to define __stub macros and hopefully few prototypes,
41639     which can conflict with char $ac_func (); below.
41640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41641     <limits.h> exists even on freestanding compilers.  */
41642
41643 #ifdef __STDC__
41644 # include <limits.h>
41645 #else
41646 # include <assert.h>
41647 #endif
41648
41649 #undef $ac_func
41650
41651 /* Override any GCC internal prototype to avoid an error.
41652    Use char because int might match the return type of a GCC
41653    builtin and then its argument prototype would still apply.  */
41654 #ifdef __cplusplus
41655 extern "C"
41656 #endif
41657 char $ac_func ();
41658 /* The GNU C library defines this for functions which it implements
41659     to always fail with ENOSYS.  Some functions are actually named
41660     something starting with __ and the normal name is an alias.  */
41661 #if defined __stub_$ac_func || defined __stub___$ac_func
41662 choke me
41663 #endif
41664
41665 int
41666 main ()
41667 {
41668 return $ac_func ();
41669   ;
41670   return 0;
41671 }
41672 _ACEOF
41673 rm -f conftest.$ac_objext conftest$ac_exeext
41674 if { (ac_try="$ac_link"
41675 case "(($ac_try" in
41676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41677   *) ac_try_echo=$ac_try;;
41678 esac
41679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41680   (eval "$ac_link") 2>conftest.er1
41681   ac_status=$?
41682   grep -v '^ *+' conftest.er1 >conftest.err
41683   rm -f conftest.er1
41684   cat conftest.err >&5
41685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686   (exit $ac_status); } && {
41687          test -z "$ac_c_werror_flag" ||
41688          test ! -s conftest.err
41689        } && test -s conftest$ac_exeext &&
41690        $as_test_x conftest$ac_exeext; then
41691   eval "$as_ac_var=yes"
41692 else
41693   echo "$as_me: failed program was:" >&5
41694 sed 's/^/| /' conftest.$ac_ext >&5
41695
41696         eval "$as_ac_var=no"
41697 fi
41698
41699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41700       conftest$ac_exeext conftest.$ac_ext
41701 fi
41702 ac_res=`eval echo '${'$as_ac_var'}'`
41703                { echo "$as_me:$LINENO: result: $ac_res" >&5
41704 echo "${ECHO_T}$ac_res" >&6; }
41705 if test `eval echo '${'$as_ac_var'}'` = yes; then
41706   cat >>confdefs.h <<_ACEOF
41707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41708 _ACEOF
41709
41710                 cat >>confdefs.h <<\_ACEOF
41711 #define HAVE_DLOPEN 1
41712 _ACEOF
41713
41714                 HAVE_DL_FUNCS=1
41715
41716 else
41717
41718                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41721   echo $ECHO_N "(cached) $ECHO_C" >&6
41722 else
41723   ac_check_lib_save_LIBS=$LIBS
41724 LIBS="-ldl  $LIBS"
41725 cat >conftest.$ac_ext <<_ACEOF
41726 /* confdefs.h.  */
41727 _ACEOF
41728 cat confdefs.h >>conftest.$ac_ext
41729 cat >>conftest.$ac_ext <<_ACEOF
41730 /* end confdefs.h.  */
41731
41732 /* Override any GCC internal prototype to avoid an error.
41733    Use char because int might match the return type of a GCC
41734    builtin and then its argument prototype would still apply.  */
41735 #ifdef __cplusplus
41736 extern "C"
41737 #endif
41738 char dlopen ();
41739 int
41740 main ()
41741 {
41742 return dlopen ();
41743   ;
41744   return 0;
41745 }
41746 _ACEOF
41747 rm -f conftest.$ac_objext conftest$ac_exeext
41748 if { (ac_try="$ac_link"
41749 case "(($ac_try" in
41750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41751   *) ac_try_echo=$ac_try;;
41752 esac
41753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41754   (eval "$ac_link") 2>conftest.er1
41755   ac_status=$?
41756   grep -v '^ *+' conftest.er1 >conftest.err
41757   rm -f conftest.er1
41758   cat conftest.err >&5
41759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41760   (exit $ac_status); } && {
41761          test -z "$ac_c_werror_flag" ||
41762          test ! -s conftest.err
41763        } && test -s conftest$ac_exeext &&
41764        $as_test_x conftest$ac_exeext; then
41765   ac_cv_lib_dl_dlopen=yes
41766 else
41767   echo "$as_me: failed program was:" >&5
41768 sed 's/^/| /' conftest.$ac_ext >&5
41769
41770         ac_cv_lib_dl_dlopen=no
41771 fi
41772
41773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41774       conftest$ac_exeext conftest.$ac_ext
41775 LIBS=$ac_check_lib_save_LIBS
41776 fi
41777 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41778 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41779 if test $ac_cv_lib_dl_dlopen = yes; then
41780
41781                                 cat >>confdefs.h <<\_ACEOF
41782 #define HAVE_DLOPEN 1
41783 _ACEOF
41784
41785                                 HAVE_DL_FUNCS=1
41786                                 DL_LINK=" -ldl$DL_LINK"
41787
41788 else
41789
41790
41791 for ac_func in shl_load
41792 do
41793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41797   echo $ECHO_N "(cached) $ECHO_C" >&6
41798 else
41799   cat >conftest.$ac_ext <<_ACEOF
41800 /* confdefs.h.  */
41801 _ACEOF
41802 cat confdefs.h >>conftest.$ac_ext
41803 cat >>conftest.$ac_ext <<_ACEOF
41804 /* end confdefs.h.  */
41805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41807 #define $ac_func innocuous_$ac_func
41808
41809 /* System header to define __stub macros and hopefully few prototypes,
41810     which can conflict with char $ac_func (); below.
41811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41812     <limits.h> exists even on freestanding compilers.  */
41813
41814 #ifdef __STDC__
41815 # include <limits.h>
41816 #else
41817 # include <assert.h>
41818 #endif
41819
41820 #undef $ac_func
41821
41822 /* Override any GCC internal prototype to avoid an error.
41823    Use char because int might match the return type of a GCC
41824    builtin and then its argument prototype would still apply.  */
41825 #ifdef __cplusplus
41826 extern "C"
41827 #endif
41828 char $ac_func ();
41829 /* The GNU C library defines this for functions which it implements
41830     to always fail with ENOSYS.  Some functions are actually named
41831     something starting with __ and the normal name is an alias.  */
41832 #if defined __stub_$ac_func || defined __stub___$ac_func
41833 choke me
41834 #endif
41835
41836 int
41837 main ()
41838 {
41839 return $ac_func ();
41840   ;
41841   return 0;
41842 }
41843 _ACEOF
41844 rm -f conftest.$ac_objext conftest$ac_exeext
41845 if { (ac_try="$ac_link"
41846 case "(($ac_try" in
41847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41848   *) ac_try_echo=$ac_try;;
41849 esac
41850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41851   (eval "$ac_link") 2>conftest.er1
41852   ac_status=$?
41853   grep -v '^ *+' conftest.er1 >conftest.err
41854   rm -f conftest.er1
41855   cat conftest.err >&5
41856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857   (exit $ac_status); } && {
41858          test -z "$ac_c_werror_flag" ||
41859          test ! -s conftest.err
41860        } && test -s conftest$ac_exeext &&
41861        $as_test_x conftest$ac_exeext; then
41862   eval "$as_ac_var=yes"
41863 else
41864   echo "$as_me: failed program was:" >&5
41865 sed 's/^/| /' conftest.$ac_ext >&5
41866
41867         eval "$as_ac_var=no"
41868 fi
41869
41870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41871       conftest$ac_exeext conftest.$ac_ext
41872 fi
41873 ac_res=`eval echo '${'$as_ac_var'}'`
41874                { echo "$as_me:$LINENO: result: $ac_res" >&5
41875 echo "${ECHO_T}$ac_res" >&6; }
41876 if test `eval echo '${'$as_ac_var'}'` = yes; then
41877   cat >>confdefs.h <<_ACEOF
41878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41879 _ACEOF
41880
41881                                                 cat >>confdefs.h <<\_ACEOF
41882 #define HAVE_SHL_LOAD 1
41883 _ACEOF
41884
41885                                                 HAVE_SHL_FUNCS=1
41886
41887 else
41888
41889                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41890 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41891 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41892   echo $ECHO_N "(cached) $ECHO_C" >&6
41893 else
41894   ac_check_lib_save_LIBS=$LIBS
41895 LIBS="-lshl_load  $LIBS"
41896 cat >conftest.$ac_ext <<_ACEOF
41897 /* confdefs.h.  */
41898 _ACEOF
41899 cat confdefs.h >>conftest.$ac_ext
41900 cat >>conftest.$ac_ext <<_ACEOF
41901 /* end confdefs.h.  */
41902
41903 /* Override any GCC internal prototype to avoid an error.
41904    Use char because int might match the return type of a GCC
41905    builtin and then its argument prototype would still apply.  */
41906 #ifdef __cplusplus
41907 extern "C"
41908 #endif
41909 char dld ();
41910 int
41911 main ()
41912 {
41913 return dld ();
41914   ;
41915   return 0;
41916 }
41917 _ACEOF
41918 rm -f conftest.$ac_objext conftest$ac_exeext
41919 if { (ac_try="$ac_link"
41920 case "(($ac_try" in
41921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41922   *) ac_try_echo=$ac_try;;
41923 esac
41924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41925   (eval "$ac_link") 2>conftest.er1
41926   ac_status=$?
41927   grep -v '^ *+' conftest.er1 >conftest.err
41928   rm -f conftest.er1
41929   cat conftest.err >&5
41930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931   (exit $ac_status); } && {
41932          test -z "$ac_c_werror_flag" ||
41933          test ! -s conftest.err
41934        } && test -s conftest$ac_exeext &&
41935        $as_test_x conftest$ac_exeext; then
41936   ac_cv_lib_shl_load_dld=yes
41937 else
41938   echo "$as_me: failed program was:" >&5
41939 sed 's/^/| /' conftest.$ac_ext >&5
41940
41941         ac_cv_lib_shl_load_dld=no
41942 fi
41943
41944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41945       conftest$ac_exeext conftest.$ac_ext
41946 LIBS=$ac_check_lib_save_LIBS
41947 fi
41948 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41949 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41950 if test $ac_cv_lib_shl_load_dld = yes; then
41951
41952                                                                 HAVE_SHL_FUNCS=1
41953                                                                 DL_LINK=" -ldld$DL_LINK"
41954
41955 fi
41956
41957
41958 fi
41959 done
41960
41961
41962 fi
41963
41964
41965 fi
41966 done
41967
41968
41969                         if test "$HAVE_DL_FUNCS" = 1; then
41970
41971 for ac_func in dlerror
41972 do
41973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41977   echo $ECHO_N "(cached) $ECHO_C" >&6
41978 else
41979   cat >conftest.$ac_ext <<_ACEOF
41980 /* confdefs.h.  */
41981 _ACEOF
41982 cat confdefs.h >>conftest.$ac_ext
41983 cat >>conftest.$ac_ext <<_ACEOF
41984 /* end confdefs.h.  */
41985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41987 #define $ac_func innocuous_$ac_func
41988
41989 /* System header to define __stub macros and hopefully few prototypes,
41990     which can conflict with char $ac_func (); below.
41991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41992     <limits.h> exists even on freestanding compilers.  */
41993
41994 #ifdef __STDC__
41995 # include <limits.h>
41996 #else
41997 # include <assert.h>
41998 #endif
41999
42000 #undef $ac_func
42001
42002 /* Override any GCC internal prototype to avoid an error.
42003    Use char because int might match the return type of a GCC
42004    builtin and then its argument prototype would still apply.  */
42005 #ifdef __cplusplus
42006 extern "C"
42007 #endif
42008 char $ac_func ();
42009 /* The GNU C library defines this for functions which it implements
42010     to always fail with ENOSYS.  Some functions are actually named
42011     something starting with __ and the normal name is an alias.  */
42012 #if defined __stub_$ac_func || defined __stub___$ac_func
42013 choke me
42014 #endif
42015
42016 int
42017 main ()
42018 {
42019 return $ac_func ();
42020   ;
42021   return 0;
42022 }
42023 _ACEOF
42024 rm -f conftest.$ac_objext conftest$ac_exeext
42025 if { (ac_try="$ac_link"
42026 case "(($ac_try" in
42027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42028   *) ac_try_echo=$ac_try;;
42029 esac
42030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42031   (eval "$ac_link") 2>conftest.er1
42032   ac_status=$?
42033   grep -v '^ *+' conftest.er1 >conftest.err
42034   rm -f conftest.er1
42035   cat conftest.err >&5
42036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42037   (exit $ac_status); } && {
42038          test -z "$ac_c_werror_flag" ||
42039          test ! -s conftest.err
42040        } && test -s conftest$ac_exeext &&
42041        $as_test_x conftest$ac_exeext; then
42042   eval "$as_ac_var=yes"
42043 else
42044   echo "$as_me: failed program was:" >&5
42045 sed 's/^/| /' conftest.$ac_ext >&5
42046
42047         eval "$as_ac_var=no"
42048 fi
42049
42050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42051       conftest$ac_exeext conftest.$ac_ext
42052 fi
42053 ac_res=`eval echo '${'$as_ac_var'}'`
42054                { echo "$as_me:$LINENO: result: $ac_res" >&5
42055 echo "${ECHO_T}$ac_res" >&6; }
42056 if test `eval echo '${'$as_ac_var'}'` = yes; then
42057   cat >>confdefs.h <<_ACEOF
42058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42059 _ACEOF
42060  cat >>confdefs.h <<\_ACEOF
42061 #define HAVE_DLERROR 1
42062 _ACEOF
42063
42064 else
42065
42066                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42067 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42068 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42069   echo $ECHO_N "(cached) $ECHO_C" >&6
42070 else
42071   ac_check_lib_save_LIBS=$LIBS
42072 LIBS="-ldl  $LIBS"
42073 cat >conftest.$ac_ext <<_ACEOF
42074 /* confdefs.h.  */
42075 _ACEOF
42076 cat confdefs.h >>conftest.$ac_ext
42077 cat >>conftest.$ac_ext <<_ACEOF
42078 /* end confdefs.h.  */
42079
42080 /* Override any GCC internal prototype to avoid an error.
42081    Use char because int might match the return type of a GCC
42082    builtin and then its argument prototype would still apply.  */
42083 #ifdef __cplusplus
42084 extern "C"
42085 #endif
42086 char dlerror ();
42087 int
42088 main ()
42089 {
42090 return dlerror ();
42091   ;
42092   return 0;
42093 }
42094 _ACEOF
42095 rm -f conftest.$ac_objext conftest$ac_exeext
42096 if { (ac_try="$ac_link"
42097 case "(($ac_try" in
42098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42099   *) ac_try_echo=$ac_try;;
42100 esac
42101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42102   (eval "$ac_link") 2>conftest.er1
42103   ac_status=$?
42104   grep -v '^ *+' conftest.er1 >conftest.err
42105   rm -f conftest.er1
42106   cat conftest.err >&5
42107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42108   (exit $ac_status); } && {
42109          test -z "$ac_c_werror_flag" ||
42110          test ! -s conftest.err
42111        } && test -s conftest$ac_exeext &&
42112        $as_test_x conftest$ac_exeext; then
42113   ac_cv_lib_dl_dlerror=yes
42114 else
42115   echo "$as_me: failed program was:" >&5
42116 sed 's/^/| /' conftest.$ac_ext >&5
42117
42118         ac_cv_lib_dl_dlerror=no
42119 fi
42120
42121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42122       conftest$ac_exeext conftest.$ac_ext
42123 LIBS=$ac_check_lib_save_LIBS
42124 fi
42125 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42126 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42127 if test $ac_cv_lib_dl_dlerror = yes; then
42128   cat >>confdefs.h <<\_ACEOF
42129 #define HAVE_DLERROR 1
42130 _ACEOF
42131
42132 fi
42133
42134
42135
42136 fi
42137 done
42138
42139             fi
42140         fi
42141
42142                 if test "$USE_DARWIN" = 1; then
42143                         HAVE_DL_FUNCS=1
42144         fi
42145
42146         if test "$HAVE_DL_FUNCS" = 0; then
42147             if test "$HAVE_SHL_FUNCS" = 0; then
42148               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42149                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42150 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42151                   wxUSE_DYNAMIC_LOADER=no
42152                   wxUSE_DYNLIB_CLASS=no
42153               else
42154                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42155 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42156               fi
42157             fi
42158         fi
42159     fi
42160 fi
42161
42162 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42163     cat >>confdefs.h <<\_ACEOF
42164 #define wxUSE_DYNAMIC_LOADER 1
42165 _ACEOF
42166
42167 fi
42168 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42169     cat >>confdefs.h <<\_ACEOF
42170 #define wxUSE_DYNLIB_CLASS 1
42171 _ACEOF
42172
42173 fi
42174
42175
42176
42177 if test "$wxUSE_PLUGINS" = "yes" ; then
42178     if test "$wxUSE_SHARED" = "no" ; then
42179         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42180 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42181         wxUSE_PLUGINS=no
42182     fi
42183     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42184         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42185 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42186         wxUSE_PLUGINS=no
42187     fi
42188     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42189         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42190 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42191         wxUSE_PLUGINS=no
42192     fi
42193     if test "$wxUSE_PLUGINS" = "yes" ; then
42194         cat >>confdefs.h <<\_ACEOF
42195 #define wxUSE_PLUGINS 1
42196 _ACEOF
42197
42198     fi
42199 fi
42200
42201
42202 if test "$wxUSE_STL" = "yes"; then
42203   cat >>confdefs.h <<\_ACEOF
42204 #define wxUSE_STL 1
42205 _ACEOF
42206
42207 fi
42208
42209 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42210   cat >>confdefs.h <<\_ACEOF
42211 #define wxUSE_EXTENDED_RTTI 1
42212 _ACEOF
42213
42214 fi
42215
42216 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42217   cat >>confdefs.h <<\_ACEOF
42218 #define wxUSE_APPLE_IEEE 1
42219 _ACEOF
42220
42221 fi
42222
42223 if test "$wxUSE_TIMER" = "yes"; then
42224   cat >>confdefs.h <<\_ACEOF
42225 #define wxUSE_TIMER 1
42226 _ACEOF
42227
42228 fi
42229
42230 if test "$USE_UNIX" = 1 ; then
42231         if test "$wxUSE_MGL" != 1; then
42232                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42233 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42234 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42235   echo $ECHO_N "(cached) $ECHO_C" >&6
42236 else
42237
42238             cat >conftest.$ac_ext <<_ACEOF
42239 /* confdefs.h.  */
42240 _ACEOF
42241 cat confdefs.h >>conftest.$ac_ext
42242 cat >>conftest.$ac_ext <<_ACEOF
42243 /* end confdefs.h.  */
42244
42245                     #include <sys/ioctl.h>
42246                     #include <sys/soundcard.h>
42247
42248 int
42249 main ()
42250 {
42251
42252                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42253
42254   ;
42255   return 0;
42256 }
42257 _ACEOF
42258 rm -f conftest.$ac_objext conftest$ac_exeext
42259 if { (ac_try="$ac_link"
42260 case "(($ac_try" in
42261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42262   *) ac_try_echo=$ac_try;;
42263 esac
42264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42265   (eval "$ac_link") 2>conftest.er1
42266   ac_status=$?
42267   grep -v '^ *+' conftest.er1 >conftest.err
42268   rm -f conftest.er1
42269   cat conftest.err >&5
42270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42271   (exit $ac_status); } && {
42272          test -z "$ac_c_werror_flag" ||
42273          test ! -s conftest.err
42274        } && test -s conftest$ac_exeext &&
42275        $as_test_x conftest$ac_exeext; then
42276   ac_cv_header_sys_soundcard=yes
42277 else
42278   echo "$as_me: failed program was:" >&5
42279 sed 's/^/| /' conftest.$ac_ext >&5
42280
42281
42282                     saveLibs="$LIBS"
42283                     LIBS="$saveLibs -lossaudio"
42284                     cat >conftest.$ac_ext <<_ACEOF
42285 /* confdefs.h.  */
42286 _ACEOF
42287 cat confdefs.h >>conftest.$ac_ext
42288 cat >>conftest.$ac_ext <<_ACEOF
42289 /* end confdefs.h.  */
42290
42291                             #include <sys/ioctl.h>
42292                             #include <sys/soundcard.h>
42293
42294 int
42295 main ()
42296 {
42297
42298                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42299
42300   ;
42301   return 0;
42302 }
42303 _ACEOF
42304 rm -f conftest.$ac_objext conftest$ac_exeext
42305 if { (ac_try="$ac_link"
42306 case "(($ac_try" in
42307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42308   *) ac_try_echo=$ac_try;;
42309 esac
42310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42311   (eval "$ac_link") 2>conftest.er1
42312   ac_status=$?
42313   grep -v '^ *+' conftest.er1 >conftest.err
42314   rm -f conftest.er1
42315   cat conftest.err >&5
42316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317   (exit $ac_status); } && {
42318          test -z "$ac_c_werror_flag" ||
42319          test ! -s conftest.err
42320        } && test -s conftest$ac_exeext &&
42321        $as_test_x conftest$ac_exeext; then
42322   ac_cv_header_sys_soundcard=yes
42323 else
42324   echo "$as_me: failed program was:" >&5
42325 sed 's/^/| /' conftest.$ac_ext >&5
42326
42327
42328                             LIBS="$saveLibs"
42329                             ac_cv_header_sys_soundcard=no
42330
42331
42332 fi
42333
42334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42335       conftest$ac_exeext conftest.$ac_ext
42336
42337
42338 fi
42339
42340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42341       conftest$ac_exeext conftest.$ac_ext
42342
42343 fi
42344 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42345 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42346     fi
42347
42348     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42349         cat >>confdefs.h <<\_ACEOF
42350 #define HAVE_SYS_SOUNDCARD_H 1
42351 _ACEOF
42352
42353     fi
42354 fi
42355
42356 WITH_PLUGIN_SDL=0
42357 if test "$wxUSE_SOUND" = "yes"; then
42358   if test "$USE_UNIX" = 1 ; then
42359     if test "$wxUSE_LIBSDL" != "no"; then
42360
42361 # Check whether --with-sdl-prefix was given.
42362 if test "${with_sdl_prefix+set}" = set; then
42363   withval=$with_sdl_prefix; sdl_prefix="$withval"
42364 else
42365   sdl_prefix=""
42366 fi
42367
42368
42369 # Check whether --with-sdl-exec-prefix was given.
42370 if test "${with_sdl_exec_prefix+set}" = set; then
42371   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42372 else
42373   sdl_exec_prefix=""
42374 fi
42375
42376 # Check whether --enable-sdltest was given.
42377 if test "${enable_sdltest+set}" = set; then
42378   enableval=$enable_sdltest;
42379 else
42380   enable_sdltest=yes
42381 fi
42382
42383
42384   if test x$sdl_exec_prefix != x ; then
42385     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42386     if test x${SDL_CONFIG+set} != xset ; then
42387       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42388     fi
42389   fi
42390   if test x$sdl_prefix != x ; then
42391     sdl_args="$sdl_args --prefix=$sdl_prefix"
42392     if test x${SDL_CONFIG+set} != xset ; then
42393       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42394     fi
42395   fi
42396
42397   if test "x$prefix" != xNONE; then
42398     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42399   fi
42400   # Extract the first word of "sdl-config", so it can be a program name with args.
42401 set dummy sdl-config; ac_word=$2
42402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42404 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42405   echo $ECHO_N "(cached) $ECHO_C" >&6
42406 else
42407   case $SDL_CONFIG in
42408   [\\/]* | ?:[\\/]*)
42409   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42410   ;;
42411   *)
42412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42413 for as_dir in $PATH
42414 do
42415   IFS=$as_save_IFS
42416   test -z "$as_dir" && as_dir=.
42417   for ac_exec_ext in '' $ac_executable_extensions; do
42418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42419     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42421     break 2
42422   fi
42423 done
42424 done
42425 IFS=$as_save_IFS
42426
42427   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42428   ;;
42429 esac
42430 fi
42431 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42432 if test -n "$SDL_CONFIG"; then
42433   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42434 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42435 else
42436   { echo "$as_me:$LINENO: result: no" >&5
42437 echo "${ECHO_T}no" >&6; }
42438 fi
42439
42440
42441   min_sdl_version=1.2.0
42442   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42443 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42444   no_sdl=""
42445   if test "$SDL_CONFIG" = "no" ; then
42446     no_sdl=yes
42447   else
42448     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42449     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42450
42451     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42452            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42453     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42454            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42455     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42456            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42457     if test "x$enable_sdltest" = "xyes" ; then
42458       ac_save_CFLAGS="$CFLAGS"
42459       ac_save_CXXFLAGS="$CXXFLAGS"
42460       ac_save_LIBS="$LIBS"
42461       CFLAGS="$CFLAGS $SDL_CFLAGS"
42462       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42463       LIBS="$LIBS $SDL_LIBS"
42464       rm -f conf.sdltest
42465       if test "$cross_compiling" = yes; then
42466   echo $ac_n "cross compiling; assumed OK... $ac_c"
42467 else
42468   cat >conftest.$ac_ext <<_ACEOF
42469 /* confdefs.h.  */
42470 _ACEOF
42471 cat confdefs.h >>conftest.$ac_ext
42472 cat >>conftest.$ac_ext <<_ACEOF
42473 /* end confdefs.h.  */
42474
42475 #include <stdio.h>
42476 #include <stdlib.h>
42477 #include <string.h>
42478 #include "SDL.h"
42479
42480 char*
42481 my_strdup (char *str)
42482 {
42483   char *new_str;
42484
42485   if (str)
42486     {
42487       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42488       strcpy (new_str, str);
42489     }
42490   else
42491     new_str = NULL;
42492
42493   return new_str;
42494 }
42495
42496 int main (int argc, char *argv[])
42497 {
42498   int major, minor, micro;
42499   char *tmp_version;
42500
42501   /* This hangs on some systems (?)
42502   system ("touch conf.sdltest");
42503   */
42504   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42505
42506   /* HP/UX 9 (%@#!) writes to sscanf strings */
42507   tmp_version = my_strdup("$min_sdl_version");
42508   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42509      printf("%s, bad version string\n", "$min_sdl_version");
42510      exit(1);
42511    }
42512
42513    if (($sdl_major_version > major) ||
42514       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42515       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42516     {
42517       return 0;
42518     }
42519   else
42520     {
42521       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42522       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42523       printf("*** best to upgrade to the required version.\n");
42524       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42525       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42526       printf("*** config.cache before re-running configure\n");
42527       return 1;
42528     }
42529 }
42530
42531
42532 _ACEOF
42533 rm -f conftest$ac_exeext
42534 if { (ac_try="$ac_link"
42535 case "(($ac_try" in
42536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42537   *) ac_try_echo=$ac_try;;
42538 esac
42539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42540   (eval "$ac_link") 2>&5
42541   ac_status=$?
42542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42544   { (case "(($ac_try" in
42545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42546   *) ac_try_echo=$ac_try;;
42547 esac
42548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42549   (eval "$ac_try") 2>&5
42550   ac_status=$?
42551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42552   (exit $ac_status); }; }; then
42553   :
42554 else
42555   echo "$as_me: program exited with status $ac_status" >&5
42556 echo "$as_me: failed program was:" >&5
42557 sed 's/^/| /' conftest.$ac_ext >&5
42558
42559 ( exit $ac_status )
42560 no_sdl=yes
42561 fi
42562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42563 fi
42564
42565
42566        CFLAGS="$ac_save_CFLAGS"
42567        CXXFLAGS="$ac_save_CXXFLAGS"
42568        LIBS="$ac_save_LIBS"
42569      fi
42570   fi
42571   if test "x$no_sdl" = x ; then
42572      { echo "$as_me:$LINENO: result: yes" >&5
42573 echo "${ECHO_T}yes" >&6; }
42574
42575                     EXTRALIBS_SDL="$SDL_LIBS"
42576                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42577                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42578                     cat >>confdefs.h <<\_ACEOF
42579 #define wxUSE_LIBSDL 1
42580 _ACEOF
42581
42582
42583   else
42584      { echo "$as_me:$LINENO: result: no" >&5
42585 echo "${ECHO_T}no" >&6; }
42586      if test "$SDL_CONFIG" = "no" ; then
42587        echo "*** The sdl-config script installed by SDL could not be found"
42588        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42589        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42590        echo "*** full path to sdl-config."
42591      else
42592        if test -f conf.sdltest ; then
42593         :
42594        else
42595           echo "*** Could not run SDL test program, checking why..."
42596           CFLAGS="$CFLAGS $SDL_CFLAGS"
42597           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42598           LIBS="$LIBS $SDL_LIBS"
42599           cat >conftest.$ac_ext <<_ACEOF
42600 /* confdefs.h.  */
42601 _ACEOF
42602 cat confdefs.h >>conftest.$ac_ext
42603 cat >>conftest.$ac_ext <<_ACEOF
42604 /* end confdefs.h.  */
42605
42606 #include <stdio.h>
42607 #include "SDL.h"
42608
42609 int main(int argc, char *argv[])
42610 { return 0; }
42611 #undef  main
42612 #define main K_and_R_C_main
42613
42614 int
42615 main ()
42616 {
42617  return 0;
42618   ;
42619   return 0;
42620 }
42621 _ACEOF
42622 rm -f conftest.$ac_objext conftest$ac_exeext
42623 if { (ac_try="$ac_link"
42624 case "(($ac_try" in
42625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42626   *) ac_try_echo=$ac_try;;
42627 esac
42628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42629   (eval "$ac_link") 2>conftest.er1
42630   ac_status=$?
42631   grep -v '^ *+' conftest.er1 >conftest.err
42632   rm -f conftest.er1
42633   cat conftest.err >&5
42634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635   (exit $ac_status); } && {
42636          test -z "$ac_c_werror_flag" ||
42637          test ! -s conftest.err
42638        } && test -s conftest$ac_exeext &&
42639        $as_test_x conftest$ac_exeext; then
42640    echo "*** The test program compiled, but did not run. This usually means"
42641           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42642           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42643           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42644           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42645           echo "*** is required on your system"
42646           echo "***"
42647           echo "*** If you have an old version installed, it is best to remove it, although"
42648           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42649 else
42650   echo "$as_me: failed program was:" >&5
42651 sed 's/^/| /' conftest.$ac_ext >&5
42652
42653          echo "*** The test program failed to compile or link. See the file config.log for the"
42654           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42655           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42656           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42657 fi
42658
42659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42660       conftest$ac_exeext conftest.$ac_ext
42661           CFLAGS="$ac_save_CFLAGS"
42662           CXXFLAGS="$ac_save_CXXFLAGS"
42663           LIBS="$ac_save_LIBS"
42664        fi
42665      fi
42666      SDL_CFLAGS=""
42667      SDL_LIBS=""
42668      wxUSE_LIBSDL="no"
42669   fi
42670
42671
42672   rm -f conf.sdltest
42673
42674       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42675         WITH_PLUGIN_SDL=1
42676       fi
42677     fi
42678   else
42679         if test "$wxUSE_MGL" = 1; then
42680         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42681 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42682         wxUSE_SOUND="no"
42683     fi
42684   fi
42685 fi
42686
42687 if test "$wxUSE_SOUND" = "yes"; then
42688   cat >>confdefs.h <<\_ACEOF
42689 #define wxUSE_SOUND 1
42690 _ACEOF
42691
42692   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42693 fi
42694
42695 if test "$WXGTK2" = 1; then
42696
42697
42698 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42699         if test -n "$ac_tool_prefix"; then
42700   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42701 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42704 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42705   echo $ECHO_N "(cached) $ECHO_C" >&6
42706 else
42707   case $PKG_CONFIG in
42708   [\\/]* | ?:[\\/]*)
42709   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42710   ;;
42711   *)
42712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42713 for as_dir in $PATH
42714 do
42715   IFS=$as_save_IFS
42716   test -z "$as_dir" && as_dir=.
42717   for ac_exec_ext in '' $ac_executable_extensions; do
42718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42719     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42721     break 2
42722   fi
42723 done
42724 done
42725 IFS=$as_save_IFS
42726
42727   ;;
42728 esac
42729 fi
42730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42731 if test -n "$PKG_CONFIG"; then
42732   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42733 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42734 else
42735   { echo "$as_me:$LINENO: result: no" >&5
42736 echo "${ECHO_T}no" >&6; }
42737 fi
42738
42739
42740 fi
42741 if test -z "$ac_cv_path_PKG_CONFIG"; then
42742   ac_pt_PKG_CONFIG=$PKG_CONFIG
42743   # Extract the first word of "pkg-config", so it can be a program name with args.
42744 set dummy pkg-config; ac_word=$2
42745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42747 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42748   echo $ECHO_N "(cached) $ECHO_C" >&6
42749 else
42750   case $ac_pt_PKG_CONFIG in
42751   [\\/]* | ?:[\\/]*)
42752   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42753   ;;
42754   *)
42755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42756 for as_dir in $PATH
42757 do
42758   IFS=$as_save_IFS
42759   test -z "$as_dir" && as_dir=.
42760   for ac_exec_ext in '' $ac_executable_extensions; do
42761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42762     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42764     break 2
42765   fi
42766 done
42767 done
42768 IFS=$as_save_IFS
42769
42770   ;;
42771 esac
42772 fi
42773 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42774 if test -n "$ac_pt_PKG_CONFIG"; then
42775   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42776 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42777 else
42778   { echo "$as_me:$LINENO: result: no" >&5
42779 echo "${ECHO_T}no" >&6; }
42780 fi
42781
42782   if test "x$ac_pt_PKG_CONFIG" = x; then
42783     PKG_CONFIG=""
42784   else
42785     case $cross_compiling:$ac_tool_warned in
42786 yes:)
42787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42788 whose name does not start with the host triplet.  If you think this
42789 configuration is useful to you, please write to autoconf@gnu.org." >&5
42790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42791 whose name does not start with the host triplet.  If you think this
42792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42793 ac_tool_warned=yes ;;
42794 esac
42795     PKG_CONFIG=$ac_pt_PKG_CONFIG
42796   fi
42797 else
42798   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42799 fi
42800
42801 fi
42802 if test -n "$PKG_CONFIG"; then
42803         _pkg_min_version=0.9.0
42804         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42805 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42806         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42807                 { echo "$as_me:$LINENO: result: yes" >&5
42808 echo "${ECHO_T}yes" >&6; }
42809         else
42810                 { echo "$as_me:$LINENO: result: no" >&5
42811 echo "${ECHO_T}no" >&6; }
42812                 PKG_CONFIG=""
42813         fi
42814
42815 fi
42816
42817     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42818
42819         if test "$wxUSE_GTKPRINT" = "yes" ; then
42820
42821
42822 pkg_failed=no
42823 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42824 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42825
42826 if test -n "$PKG_CONFIG"; then
42827     if test -n "$GTKPRINT_CFLAGS"; then
42828         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42829     else
42830         if test -n "$PKG_CONFIG" && \
42831     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42832   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42833   ac_status=$?
42834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42835   (exit $ac_status); }; then
42836   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42837 else
42838   pkg_failed=yes
42839 fi
42840     fi
42841 else
42842         pkg_failed=untried
42843 fi
42844 if test -n "$PKG_CONFIG"; then
42845     if test -n "$GTKPRINT_LIBS"; then
42846         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42847     else
42848         if test -n "$PKG_CONFIG" && \
42849     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42850   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42851   ac_status=$?
42852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42853   (exit $ac_status); }; then
42854   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42855 else
42856   pkg_failed=yes
42857 fi
42858     fi
42859 else
42860         pkg_failed=untried
42861 fi
42862
42863
42864
42865 if test $pkg_failed = yes; then
42866
42867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42868         _pkg_short_errors_supported=yes
42869 else
42870         _pkg_short_errors_supported=no
42871 fi
42872         if test $_pkg_short_errors_supported = yes; then
42873                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42874         else
42875                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42876         fi
42877         # Put the nasty error message in config.log where it belongs
42878         echo "$GTKPRINT_PKG_ERRORS" >&5
42879
42880
42881                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42882 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42883                         wxUSE_GTKPRINT="no"
42884
42885
42886 elif test $pkg_failed = untried; then
42887
42888                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42889 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42890                         wxUSE_GTKPRINT="no"
42891
42892
42893 else
42894         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42895         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42896         { echo "$as_me:$LINENO: result: yes" >&5
42897 echo "${ECHO_T}yes" >&6; }
42898
42899                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42900                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42901                         cat >>confdefs.h <<\_ACEOF
42902 #define wxUSE_GTKPRINT 1
42903 _ACEOF
42904
42905
42906 fi
42907         fi
42908
42909         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42910
42911
42912 pkg_failed=no
42913 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42914 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42915
42916 if test -n "$PKG_CONFIG"; then
42917     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42918         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42919     else
42920         if test -n "$PKG_CONFIG" && \
42921     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42922   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42923   ac_status=$?
42924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925   (exit $ac_status); }; then
42926   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42927 else
42928   pkg_failed=yes
42929 fi
42930     fi
42931 else
42932         pkg_failed=untried
42933 fi
42934 if test -n "$PKG_CONFIG"; then
42935     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42936         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42937     else
42938         if test -n "$PKG_CONFIG" && \
42939     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42940   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42941   ac_status=$?
42942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42943   (exit $ac_status); }; then
42944   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42945 else
42946   pkg_failed=yes
42947 fi
42948     fi
42949 else
42950         pkg_failed=untried
42951 fi
42952
42953
42954
42955 if test $pkg_failed = yes; then
42956
42957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42958         _pkg_short_errors_supported=yes
42959 else
42960         _pkg_short_errors_supported=no
42961 fi
42962         if test $_pkg_short_errors_supported = yes; then
42963                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42964         else
42965                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42966         fi
42967         # Put the nasty error message in config.log where it belongs
42968         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42969
42970
42971                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42972 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42973                         wxUSE_LIBGNOMEPRINT="no"
42974
42975
42976 elif test $pkg_failed = untried; then
42977
42978                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42979 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42980                         wxUSE_LIBGNOMEPRINT="no"
42981
42982
42983 else
42984         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42985         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42986         { echo "$as_me:$LINENO: result: yes" >&5
42987 echo "${ECHO_T}yes" >&6; }
42988
42989                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42990                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42991                         cat >>confdefs.h <<\_ACEOF
42992 #define wxUSE_LIBGNOMEPRINT 1
42993 _ACEOF
42994
42995
42996 fi
42997         fi
42998     fi
42999
43000     if test "$wxUSE_MIMETYPE" = "yes" ; then
43001         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43002
43003
43004 pkg_failed=no
43005 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43006 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
43007
43008 if test -n "$PKG_CONFIG"; then
43009     if test -n "$GNOMEVFS_CFLAGS"; then
43010         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43011     else
43012         if test -n "$PKG_CONFIG" && \
43013     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43014   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43015   ac_status=$?
43016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017   (exit $ac_status); }; then
43018   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43019 else
43020   pkg_failed=yes
43021 fi
43022     fi
43023 else
43024         pkg_failed=untried
43025 fi
43026 if test -n "$PKG_CONFIG"; then
43027     if test -n "$GNOMEVFS_LIBS"; then
43028         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43029     else
43030         if test -n "$PKG_CONFIG" && \
43031     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43032   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43033   ac_status=$?
43034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43035   (exit $ac_status); }; then
43036   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43037 else
43038   pkg_failed=yes
43039 fi
43040     fi
43041 else
43042         pkg_failed=untried
43043 fi
43044
43045
43046
43047 if test $pkg_failed = yes; then
43048
43049 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43050         _pkg_short_errors_supported=yes
43051 else
43052         _pkg_short_errors_supported=no
43053 fi
43054         if test $_pkg_short_errors_supported = yes; then
43055                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43056         else
43057                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43058         fi
43059         # Put the nasty error message in config.log where it belongs
43060         echo "$GNOMEVFS_PKG_ERRORS" >&5
43061
43062
43063                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43064 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43065                         wxUSE_LIBGNOMEVFS="no"
43066
43067
43068 elif test $pkg_failed = untried; then
43069
43070                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43071 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43072                         wxUSE_LIBGNOMEVFS="no"
43073
43074
43075 else
43076         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43077         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43078         { echo "$as_me:$LINENO: result: yes" >&5
43079 echo "${ECHO_T}yes" >&6; }
43080
43081                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43082                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43083                         cat >>confdefs.h <<\_ACEOF
43084 #define wxUSE_LIBGNOMEVFS 1
43085 _ACEOF
43086
43087
43088 fi
43089         fi
43090     fi
43091
43092     if test "$wxUSE_LIBHILDON" = "yes" ; then
43093
43094 pkg_failed=no
43095 { echo "$as_me:$LINENO: checking for HILDON" >&5
43096 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43097
43098 if test -n "$PKG_CONFIG"; then
43099     if test -n "$HILDON_CFLAGS"; then
43100         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43101     else
43102         if test -n "$PKG_CONFIG" && \
43103     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43104   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43105   ac_status=$?
43106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43107   (exit $ac_status); }; then
43108   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43109 else
43110   pkg_failed=yes
43111 fi
43112     fi
43113 else
43114         pkg_failed=untried
43115 fi
43116 if test -n "$PKG_CONFIG"; then
43117     if test -n "$HILDON_LIBS"; then
43118         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43119     else
43120         if test -n "$PKG_CONFIG" && \
43121     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43122   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43123   ac_status=$?
43124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125   (exit $ac_status); }; then
43126   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43127 else
43128   pkg_failed=yes
43129 fi
43130     fi
43131 else
43132         pkg_failed=untried
43133 fi
43134
43135
43136
43137 if test $pkg_failed = yes; then
43138
43139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43140         _pkg_short_errors_supported=yes
43141 else
43142         _pkg_short_errors_supported=no
43143 fi
43144         if test $_pkg_short_errors_supported = yes; then
43145                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43146         else
43147                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43148         fi
43149         # Put the nasty error message in config.log where it belongs
43150         echo "$HILDON_PKG_ERRORS" >&5
43151
43152
43153                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43154 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43155                         wxUSE_LIBHILDON="no"
43156
43157
43158 elif test $pkg_failed = untried; then
43159
43160                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43161 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43162                         wxUSE_LIBHILDON="no"
43163
43164
43165 else
43166         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43167         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43168         { echo "$as_me:$LINENO: result: yes" >&5
43169 echo "${ECHO_T}yes" >&6; }
43170
43171                 EXTRALIBS_HILDON="$HILDON_LIBS"
43172                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43173                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43174                 cat >>confdefs.h <<\_ACEOF
43175 #define wxUSE_LIBHILDON 1
43176 _ACEOF
43177
43178
43179 fi
43180     fi
43181 fi
43182
43183 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43184   cat >>confdefs.h <<\_ACEOF
43185 #define wxUSE_CMDLINE_PARSER 1
43186 _ACEOF
43187
43188 fi
43189
43190 if test "$wxUSE_STOPWATCH" = "yes"; then
43191   cat >>confdefs.h <<\_ACEOF
43192 #define wxUSE_STOPWATCH 1
43193 _ACEOF
43194
43195 fi
43196
43197 if test "$wxUSE_DATETIME" = "yes"; then
43198   cat >>confdefs.h <<\_ACEOF
43199 #define wxUSE_DATETIME 1
43200 _ACEOF
43201
43202 fi
43203
43204 if test "$wxUSE_FILE" = "yes"; then
43205   cat >>confdefs.h <<\_ACEOF
43206 #define wxUSE_FILE 1
43207 _ACEOF
43208
43209 fi
43210
43211 if test "$wxUSE_FFILE" = "yes"; then
43212   cat >>confdefs.h <<\_ACEOF
43213 #define wxUSE_FFILE 1
43214 _ACEOF
43215
43216 fi
43217
43218 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43219   if test "$wxUSE_STREAMS" != yes; then
43220     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43221 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43222     wxUSE_ARCHIVE_STREAMS=no
43223   else
43224     cat >>confdefs.h <<\_ACEOF
43225 #define wxUSE_ARCHIVE_STREAMS 1
43226 _ACEOF
43227
43228   fi
43229 fi
43230
43231 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43232   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43233     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43234 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43235   elif test "$wxUSE_ZLIB" = "no"; then
43236     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43237 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43238   else
43239     cat >>confdefs.h <<\_ACEOF
43240 #define wxUSE_ZIPSTREAM 1
43241 _ACEOF
43242
43243   fi
43244 fi
43245
43246 if test "$wxUSE_TARSTREAM" = "yes"; then
43247   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43248     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43249 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43250   else
43251     cat >>confdefs.h <<\_ACEOF
43252 #define wxUSE_TARSTREAM 1
43253 _ACEOF
43254
43255   fi
43256 fi
43257
43258 if test "$wxUSE_FILESYSTEM" = "yes"; then
43259   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43260     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43261 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43262     wxUSE_FILESYSTEM=no
43263   else
43264     cat >>confdefs.h <<\_ACEOF
43265 #define wxUSE_FILESYSTEM 1
43266 _ACEOF
43267
43268   fi
43269 fi
43270
43271 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43272   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43273     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43274 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43275   else
43276     cat >>confdefs.h <<\_ACEOF
43277 #define wxUSE_FS_ARCHIVE 1
43278 _ACEOF
43279
43280   fi
43281 fi
43282
43283 if test "$wxUSE_FS_ZIP" = "yes"; then
43284   if test "$wxUSE_FS_ARCHIVE" != yes; then
43285     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43286 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43287   else
43288     cat >>confdefs.h <<\_ACEOF
43289 #define wxUSE_FS_ZIP 1
43290 _ACEOF
43291
43292   fi
43293 fi
43294
43295 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43296   if test "$USE_UNIX" != 1; then
43297     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43298 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43299     wxUSE_ON_FATAL_EXCEPTION=no
43300   else
43301     cat >>confdefs.h <<\_ACEOF
43302 #define wxUSE_ON_FATAL_EXCEPTION 1
43303 _ACEOF
43304
43305   fi
43306 fi
43307
43308 if test "$wxUSE_STACKWALKER" = "yes"; then
43309     cat >>confdefs.h <<\_ACEOF
43310 #define wxUSE_STACKWALKER 1
43311 _ACEOF
43312
43313 fi
43314
43315 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43316     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43317         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43318 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43319         wxUSE_DEBUGREPORT=no
43320     else
43321         cat >>confdefs.h <<\_ACEOF
43322 #define wxUSE_DEBUGREPORT 1
43323 _ACEOF
43324
43325         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43326             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43327         fi
43328     fi
43329 fi
43330
43331 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43332   cat >>confdefs.h <<\_ACEOF
43333 #define wxUSE_SNGLINST_CHECKER 1
43334 _ACEOF
43335
43336 fi
43337
43338 if test "$wxUSE_BUSYINFO" = "yes"; then
43339   cat >>confdefs.h <<\_ACEOF
43340 #define wxUSE_BUSYINFO 1
43341 _ACEOF
43342
43343 fi
43344
43345 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43346   cat >>confdefs.h <<\_ACEOF
43347 #define wxUSE_STD_IOSTREAM 1
43348 _ACEOF
43349
43350 fi
43351
43352 if test "$wxUSE_STD_STRING" = "yes"; then
43353   cat >>confdefs.h <<\_ACEOF
43354 #define wxUSE_STD_STRING 1
43355 _ACEOF
43356
43357 fi
43358
43359 if test "$wxUSE_STDPATHS" = "yes"; then
43360   cat >>confdefs.h <<\_ACEOF
43361 #define wxUSE_STDPATHS 1
43362 _ACEOF
43363
43364 fi
43365
43366 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43367     cat >>confdefs.h <<\_ACEOF
43368 #define wxUSE_TEXTBUFFER 1
43369 _ACEOF
43370
43371 fi
43372
43373 if test "$wxUSE_TEXTFILE" = "yes"; then
43374   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43375     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43376 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43377   else
43378     cat >>confdefs.h <<\_ACEOF
43379 #define wxUSE_TEXTFILE 1
43380 _ACEOF
43381
43382   fi
43383 fi
43384
43385 if test "$wxUSE_CONFIG" = "yes" ; then
43386   if test "$wxUSE_TEXTFILE" != "yes"; then
43387     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43388 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43389   else
43390     cat >>confdefs.h <<\_ACEOF
43391 #define wxUSE_CONFIG 1
43392 _ACEOF
43393
43394     cat >>confdefs.h <<\_ACEOF
43395 #define wxUSE_CONFIG_NATIVE 1
43396 _ACEOF
43397
43398     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43399   fi
43400 fi
43401
43402 if test "$wxUSE_INTL" = "yes" ; then
43403   if test "$wxUSE_FILE" != "yes"; then
43404     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43405 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43406   else
43407     cat >>confdefs.h <<\_ACEOF
43408 #define wxUSE_INTL 1
43409 _ACEOF
43410
43411     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43412     GUIDIST="$GUIDIST INTL_DIST"
43413   fi
43414 fi
43415
43416 if test "$wxUSE_XLOCALE" = "yes" ; then
43417     cat >>confdefs.h <<\_ACEOF
43418 #define wxUSE_XLOCALE 1
43419 _ACEOF
43420
43421     { echo "$as_me:$LINENO: checking for locale_t" >&5
43422 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43423 if test "${ac_cv_type_locale_t+set}" = set; then
43424   echo $ECHO_N "(cached) $ECHO_C" >&6
43425 else
43426   cat >conftest.$ac_ext <<_ACEOF
43427 /* confdefs.h.  */
43428 _ACEOF
43429 cat confdefs.h >>conftest.$ac_ext
43430 cat >>conftest.$ac_ext <<_ACEOF
43431 /* end confdefs.h.  */
43432 #include <xlocale.h>
43433                     #include <locale.h>
43434
43435 typedef locale_t ac__type_new_;
43436 int
43437 main ()
43438 {
43439 if ((ac__type_new_ *) 0)
43440   return 0;
43441 if (sizeof (ac__type_new_))
43442   return 0;
43443   ;
43444   return 0;
43445 }
43446 _ACEOF
43447 rm -f conftest.$ac_objext
43448 if { (ac_try="$ac_compile"
43449 case "(($ac_try" in
43450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43451   *) ac_try_echo=$ac_try;;
43452 esac
43453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43454   (eval "$ac_compile") 2>conftest.er1
43455   ac_status=$?
43456   grep -v '^ *+' conftest.er1 >conftest.err
43457   rm -f conftest.er1
43458   cat conftest.err >&5
43459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43460   (exit $ac_status); } && {
43461          test -z "$ac_c_werror_flag" ||
43462          test ! -s conftest.err
43463        } && test -s conftest.$ac_objext; then
43464   ac_cv_type_locale_t=yes
43465 else
43466   echo "$as_me: failed program was:" >&5
43467 sed 's/^/| /' conftest.$ac_ext >&5
43468
43469         ac_cv_type_locale_t=no
43470 fi
43471
43472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43473 fi
43474 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43475 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43476 if test $ac_cv_type_locale_t = yes; then
43477
43478 cat >>confdefs.h <<_ACEOF
43479 #define HAVE_LOCALE_T 1
43480 _ACEOF
43481
43482
43483 fi
43484
43485 fi
43486
43487 if test "$wxUSE_LOG" = "yes"; then
43488   cat >>confdefs.h <<\_ACEOF
43489 #define wxUSE_LOG 1
43490 _ACEOF
43491
43492
43493     if test "$wxUSE_LOGGUI" = "yes"; then
43494       cat >>confdefs.h <<\_ACEOF
43495 #define wxUSE_LOGGUI 1
43496 _ACEOF
43497
43498     fi
43499
43500     if test "$wxUSE_LOGWINDOW" = "yes"; then
43501       cat >>confdefs.h <<\_ACEOF
43502 #define wxUSE_LOGWINDOW 1
43503 _ACEOF
43504
43505     fi
43506
43507     if test "$wxUSE_LOGDIALOG" = "yes"; then
43508       cat >>confdefs.h <<\_ACEOF
43509 #define wxUSE_LOG_DIALOG 1
43510 _ACEOF
43511
43512     fi
43513
43514         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43515 fi
43516
43517 if test "$wxUSE_LONGLONG" = "yes"; then
43518   cat >>confdefs.h <<\_ACEOF
43519 #define wxUSE_LONGLONG 1
43520 _ACEOF
43521
43522 fi
43523
43524 if test "$wxUSE_GEOMETRY" = "yes"; then
43525   cat >>confdefs.h <<\_ACEOF
43526 #define wxUSE_GEOMETRY 1
43527 _ACEOF
43528
43529 fi
43530
43531 if test "$wxUSE_BASE64" = "yes"; then
43532   cat >>confdefs.h <<\_ACEOF
43533 #define wxUSE_BASE64 1
43534 _ACEOF
43535
43536 fi
43537
43538 if test "$wxUSE_STREAMS" = "yes" ; then
43539   cat >>confdefs.h <<\_ACEOF
43540 #define wxUSE_STREAMS 1
43541 _ACEOF
43542
43543 fi
43544
43545 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43546   cat >>confdefs.h <<\_ACEOF
43547 #define wxUSE_PRINTF_POS_PARAMS 1
43548 _ACEOF
43549
43550 fi
43551
43552 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43553   cat >>confdefs.h <<\_ACEOF
43554 #define wxUSE_OBJC_UNIQUIFYING 1
43555 _ACEOF
43556
43557 fi
43558
43559
43560 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43561     cat >>confdefs.h <<\_ACEOF
43562 #define wxUSE_CONSOLE_EVENTLOOP 1
43563 _ACEOF
43564
43565
43566     if test "$wxUSE_UNIX" = "yes"; then
43567         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43568             cat >>confdefs.h <<\_ACEOF
43569 #define wxUSE_SELECT_DISPATCHER 1
43570 _ACEOF
43571
43572         fi
43573
43574         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43575
43576 for ac_header in sys/epoll.h
43577 do
43578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43582   echo $ECHO_N "(cached) $ECHO_C" >&6
43583 else
43584   cat >conftest.$ac_ext <<_ACEOF
43585 /* confdefs.h.  */
43586 _ACEOF
43587 cat confdefs.h >>conftest.$ac_ext
43588 cat >>conftest.$ac_ext <<_ACEOF
43589 /* end confdefs.h.  */
43590 $ac_includes_default
43591
43592 #include <$ac_header>
43593 _ACEOF
43594 rm -f conftest.$ac_objext
43595 if { (ac_try="$ac_compile"
43596 case "(($ac_try" in
43597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43598   *) ac_try_echo=$ac_try;;
43599 esac
43600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43601   (eval "$ac_compile") 2>conftest.er1
43602   ac_status=$?
43603   grep -v '^ *+' conftest.er1 >conftest.err
43604   rm -f conftest.er1
43605   cat conftest.err >&5
43606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607   (exit $ac_status); } && {
43608          test -z "$ac_c_werror_flag" ||
43609          test ! -s conftest.err
43610        } && test -s conftest.$ac_objext; then
43611   eval "$as_ac_Header=yes"
43612 else
43613   echo "$as_me: failed program was:" >&5
43614 sed 's/^/| /' conftest.$ac_ext >&5
43615
43616         eval "$as_ac_Header=no"
43617 fi
43618
43619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43620 fi
43621 ac_res=`eval echo '${'$as_ac_Header'}'`
43622                { echo "$as_me:$LINENO: result: $ac_res" >&5
43623 echo "${ECHO_T}$ac_res" >&6; }
43624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43625   cat >>confdefs.h <<_ACEOF
43626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43627 _ACEOF
43628
43629 fi
43630
43631 done
43632
43633             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43634                 cat >>confdefs.h <<\_ACEOF
43635 #define wxUSE_EPOLL_DISPATCHER 1
43636 _ACEOF
43637
43638             else
43639                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43640 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43641             fi
43642         fi
43643     fi
43644 fi
43645
43646
43647
43648
43649 for ac_func in gettimeofday ftime
43650 do
43651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43655   echo $ECHO_N "(cached) $ECHO_C" >&6
43656 else
43657   cat >conftest.$ac_ext <<_ACEOF
43658 /* confdefs.h.  */
43659 _ACEOF
43660 cat confdefs.h >>conftest.$ac_ext
43661 cat >>conftest.$ac_ext <<_ACEOF
43662 /* end confdefs.h.  */
43663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43665 #define $ac_func innocuous_$ac_func
43666
43667 /* System header to define __stub macros and hopefully few prototypes,
43668     which can conflict with char $ac_func (); below.
43669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43670     <limits.h> exists even on freestanding compilers.  */
43671
43672 #ifdef __STDC__
43673 # include <limits.h>
43674 #else
43675 # include <assert.h>
43676 #endif
43677
43678 #undef $ac_func
43679
43680 /* Override any GCC internal prototype to avoid an error.
43681    Use char because int might match the return type of a GCC
43682    builtin and then its argument prototype would still apply.  */
43683 #ifdef __cplusplus
43684 extern "C"
43685 #endif
43686 char $ac_func ();
43687 /* The GNU C library defines this for functions which it implements
43688     to always fail with ENOSYS.  Some functions are actually named
43689     something starting with __ and the normal name is an alias.  */
43690 #if defined __stub_$ac_func || defined __stub___$ac_func
43691 choke me
43692 #endif
43693
43694 int
43695 main ()
43696 {
43697 return $ac_func ();
43698   ;
43699   return 0;
43700 }
43701 _ACEOF
43702 rm -f conftest.$ac_objext conftest$ac_exeext
43703 if { (ac_try="$ac_link"
43704 case "(($ac_try" in
43705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43706   *) ac_try_echo=$ac_try;;
43707 esac
43708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43709   (eval "$ac_link") 2>conftest.er1
43710   ac_status=$?
43711   grep -v '^ *+' conftest.er1 >conftest.err
43712   rm -f conftest.er1
43713   cat conftest.err >&5
43714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43715   (exit $ac_status); } && {
43716          test -z "$ac_c_werror_flag" ||
43717          test ! -s conftest.err
43718        } && test -s conftest$ac_exeext &&
43719        $as_test_x conftest$ac_exeext; then
43720   eval "$as_ac_var=yes"
43721 else
43722   echo "$as_me: failed program was:" >&5
43723 sed 's/^/| /' conftest.$ac_ext >&5
43724
43725         eval "$as_ac_var=no"
43726 fi
43727
43728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43729       conftest$ac_exeext conftest.$ac_ext
43730 fi
43731 ac_res=`eval echo '${'$as_ac_var'}'`
43732                { echo "$as_me:$LINENO: result: $ac_res" >&5
43733 echo "${ECHO_T}$ac_res" >&6; }
43734 if test `eval echo '${'$as_ac_var'}'` = yes; then
43735   cat >>confdefs.h <<_ACEOF
43736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43737 _ACEOF
43738  break
43739 fi
43740 done
43741
43742
43743 if test "$ac_cv_func_gettimeofday" = "yes"; then
43744     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43745 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43746 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43747   echo $ECHO_N "(cached) $ECHO_C" >&6
43748 else
43749
43750                 cat >conftest.$ac_ext <<_ACEOF
43751 /* confdefs.h.  */
43752 _ACEOF
43753 cat confdefs.h >>conftest.$ac_ext
43754 cat >>conftest.$ac_ext <<_ACEOF
43755 /* end confdefs.h.  */
43756
43757                 #include <sys/time.h>
43758                 #include <unistd.h>
43759
43760 int
43761 main ()
43762 {
43763
43764                 struct timeval tv;
43765                 gettimeofday(&tv, NULL);
43766
43767   ;
43768   return 0;
43769 }
43770 _ACEOF
43771 rm -f conftest.$ac_objext
43772 if { (ac_try="$ac_compile"
43773 case "(($ac_try" in
43774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43775   *) ac_try_echo=$ac_try;;
43776 esac
43777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43778   (eval "$ac_compile") 2>conftest.er1
43779   ac_status=$?
43780   grep -v '^ *+' conftest.er1 >conftest.err
43781   rm -f conftest.er1
43782   cat conftest.err >&5
43783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43784   (exit $ac_status); } && {
43785          test -z "$ac_c_werror_flag" ||
43786          test ! -s conftest.err
43787        } && test -s conftest.$ac_objext; then
43788   wx_cv_func_gettimeofday_has_2_args=yes
43789 else
43790   echo "$as_me: failed program was:" >&5
43791 sed 's/^/| /' conftest.$ac_ext >&5
43792
43793         cat >conftest.$ac_ext <<_ACEOF
43794 /* confdefs.h.  */
43795 _ACEOF
43796 cat confdefs.h >>conftest.$ac_ext
43797 cat >>conftest.$ac_ext <<_ACEOF
43798 /* end confdefs.h.  */
43799
43800                     #include <sys/time.h>
43801                     #include <unistd.h>
43802
43803 int
43804 main ()
43805 {
43806
43807                     struct timeval tv;
43808                     gettimeofday(&tv);
43809
43810   ;
43811   return 0;
43812 }
43813 _ACEOF
43814 rm -f conftest.$ac_objext
43815 if { (ac_try="$ac_compile"
43816 case "(($ac_try" in
43817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43818   *) ac_try_echo=$ac_try;;
43819 esac
43820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43821   (eval "$ac_compile") 2>conftest.er1
43822   ac_status=$?
43823   grep -v '^ *+' conftest.er1 >conftest.err
43824   rm -f conftest.er1
43825   cat conftest.err >&5
43826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43827   (exit $ac_status); } && {
43828          test -z "$ac_c_werror_flag" ||
43829          test ! -s conftest.err
43830        } && test -s conftest.$ac_objext; then
43831   wx_cv_func_gettimeofday_has_2_args=no
43832 else
43833   echo "$as_me: failed program was:" >&5
43834 sed 's/^/| /' conftest.$ac_ext >&5
43835
43836
43837                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43838 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43839                     wx_cv_func_gettimeofday_has_2_args=unknown
43840
43841
43842 fi
43843
43844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43845
43846 fi
43847
43848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43849
43850 fi
43851 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43852 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43853
43854     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43855         cat >>confdefs.h <<\_ACEOF
43856 #define WX_GETTIMEOFDAY_NO_TZ 1
43857 _ACEOF
43858
43859     fi
43860 fi
43861
43862 if test "$wxUSE_DATETIME" = "yes"; then
43863             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43864 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43865 if test "${wx_cv_var_timezone+set}" = set; then
43866   echo $ECHO_N "(cached) $ECHO_C" >&6
43867 else
43868
43869                         ac_ext=cpp
43870 ac_cpp='$CXXCPP $CPPFLAGS'
43871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43874
43875                         cat >conftest.$ac_ext <<_ACEOF
43876 /* confdefs.h.  */
43877 _ACEOF
43878 cat confdefs.h >>conftest.$ac_ext
43879 cat >>conftest.$ac_ext <<_ACEOF
43880 /* end confdefs.h.  */
43881
43882                                 #include <time.h>
43883
43884 int
43885 main ()
43886 {
43887
43888                                 int tz;
43889                                 tz = timezone;
43890
43891   ;
43892   return 0;
43893 }
43894 _ACEOF
43895 rm -f conftest.$ac_objext
43896 if { (ac_try="$ac_compile"
43897 case "(($ac_try" in
43898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43899   *) ac_try_echo=$ac_try;;
43900 esac
43901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43902   (eval "$ac_compile") 2>conftest.er1
43903   ac_status=$?
43904   grep -v '^ *+' conftest.er1 >conftest.err
43905   rm -f conftest.er1
43906   cat conftest.err >&5
43907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43908   (exit $ac_status); } && {
43909          test -z "$ac_cxx_werror_flag" ||
43910          test ! -s conftest.err
43911        } && test -s conftest.$ac_objext; then
43912
43913                                 wx_cv_var_timezone=timezone
43914
43915 else
43916   echo "$as_me: failed program was:" >&5
43917 sed 's/^/| /' conftest.$ac_ext >&5
43918
43919
43920                                 cat >conftest.$ac_ext <<_ACEOF
43921 /* confdefs.h.  */
43922 _ACEOF
43923 cat confdefs.h >>conftest.$ac_ext
43924 cat >>conftest.$ac_ext <<_ACEOF
43925 /* end confdefs.h.  */
43926
43927                                         #include <time.h>
43928
43929 int
43930 main ()
43931 {
43932
43933                                         int tz;
43934                                         tz = _timezone;
43935
43936   ;
43937   return 0;
43938 }
43939 _ACEOF
43940 rm -f conftest.$ac_objext
43941 if { (ac_try="$ac_compile"
43942 case "(($ac_try" in
43943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43944   *) ac_try_echo=$ac_try;;
43945 esac
43946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43947   (eval "$ac_compile") 2>conftest.er1
43948   ac_status=$?
43949   grep -v '^ *+' conftest.er1 >conftest.err
43950   rm -f conftest.er1
43951   cat conftest.err >&5
43952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43953   (exit $ac_status); } && {
43954          test -z "$ac_cxx_werror_flag" ||
43955          test ! -s conftest.err
43956        } && test -s conftest.$ac_objext; then
43957
43958                                         wx_cv_var_timezone=_timezone
43959
43960 else
43961   echo "$as_me: failed program was:" >&5
43962 sed 's/^/| /' conftest.$ac_ext >&5
43963
43964
43965                                         cat >conftest.$ac_ext <<_ACEOF
43966 /* confdefs.h.  */
43967 _ACEOF
43968 cat confdefs.h >>conftest.$ac_ext
43969 cat >>conftest.$ac_ext <<_ACEOF
43970 /* end confdefs.h.  */
43971
43972                                                 #include <time.h>
43973
43974 int
43975 main ()
43976 {
43977
43978                                                 int tz;
43979                                                 tz = __timezone;
43980
43981   ;
43982   return 0;
43983 }
43984 _ACEOF
43985 rm -f conftest.$ac_objext
43986 if { (ac_try="$ac_compile"
43987 case "(($ac_try" in
43988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43989   *) ac_try_echo=$ac_try;;
43990 esac
43991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43992   (eval "$ac_compile") 2>conftest.er1
43993   ac_status=$?
43994   grep -v '^ *+' conftest.er1 >conftest.err
43995   rm -f conftest.er1
43996   cat conftest.err >&5
43997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); } && {
43999          test -z "$ac_cxx_werror_flag" ||
44000          test ! -s conftest.err
44001        } && test -s conftest.$ac_objext; then
44002
44003                                                 wx_cv_var_timezone=__timezone
44004
44005 else
44006   echo "$as_me: failed program was:" >&5
44007 sed 's/^/| /' conftest.$ac_ext >&5
44008
44009
44010                                                 if test "$USE_DOS" = 0 ; then
44011                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44012 echo "$as_me: WARNING: no timezone variable" >&2;}
44013                                                 fi
44014
44015
44016 fi
44017
44018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44019
44020
44021 fi
44022
44023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44024
44025
44026 fi
44027
44028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44029                         ac_ext=c
44030 ac_cpp='$CPP $CPPFLAGS'
44031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44034
44035
44036
44037 fi
44038 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44039 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44040
44041         if test "x$wx_cv_var_timezone" != x ; then
44042         cat >>confdefs.h <<_ACEOF
44043 #define WX_TIMEZONE $wx_cv_var_timezone
44044 _ACEOF
44045
44046     fi
44047
44048
44049 for ac_func in localtime
44050 do
44051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44055   echo $ECHO_N "(cached) $ECHO_C" >&6
44056 else
44057   cat >conftest.$ac_ext <<_ACEOF
44058 /* confdefs.h.  */
44059 _ACEOF
44060 cat confdefs.h >>conftest.$ac_ext
44061 cat >>conftest.$ac_ext <<_ACEOF
44062 /* end confdefs.h.  */
44063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44065 #define $ac_func innocuous_$ac_func
44066
44067 /* System header to define __stub macros and hopefully few prototypes,
44068     which can conflict with char $ac_func (); below.
44069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44070     <limits.h> exists even on freestanding compilers.  */
44071
44072 #ifdef __STDC__
44073 # include <limits.h>
44074 #else
44075 # include <assert.h>
44076 #endif
44077
44078 #undef $ac_func
44079
44080 /* Override any GCC internal prototype to avoid an error.
44081    Use char because int might match the return type of a GCC
44082    builtin and then its argument prototype would still apply.  */
44083 #ifdef __cplusplus
44084 extern "C"
44085 #endif
44086 char $ac_func ();
44087 /* The GNU C library defines this for functions which it implements
44088     to always fail with ENOSYS.  Some functions are actually named
44089     something starting with __ and the normal name is an alias.  */
44090 #if defined __stub_$ac_func || defined __stub___$ac_func
44091 choke me
44092 #endif
44093
44094 int
44095 main ()
44096 {
44097 return $ac_func ();
44098   ;
44099   return 0;
44100 }
44101 _ACEOF
44102 rm -f conftest.$ac_objext conftest$ac_exeext
44103 if { (ac_try="$ac_link"
44104 case "(($ac_try" in
44105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44106   *) ac_try_echo=$ac_try;;
44107 esac
44108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44109   (eval "$ac_link") 2>conftest.er1
44110   ac_status=$?
44111   grep -v '^ *+' conftest.er1 >conftest.err
44112   rm -f conftest.er1
44113   cat conftest.err >&5
44114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115   (exit $ac_status); } && {
44116          test -z "$ac_c_werror_flag" ||
44117          test ! -s conftest.err
44118        } && test -s conftest$ac_exeext &&
44119        $as_test_x conftest$ac_exeext; then
44120   eval "$as_ac_var=yes"
44121 else
44122   echo "$as_me: failed program was:" >&5
44123 sed 's/^/| /' conftest.$ac_ext >&5
44124
44125         eval "$as_ac_var=no"
44126 fi
44127
44128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44129       conftest$ac_exeext conftest.$ac_ext
44130 fi
44131 ac_res=`eval echo '${'$as_ac_var'}'`
44132                { echo "$as_me:$LINENO: result: $ac_res" >&5
44133 echo "${ECHO_T}$ac_res" >&6; }
44134 if test `eval echo '${'$as_ac_var'}'` = yes; then
44135   cat >>confdefs.h <<_ACEOF
44136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44137 _ACEOF
44138
44139 fi
44140 done
44141
44142
44143     if test "$ac_cv_func_localtime" = "yes"; then
44144         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44145 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44146 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44147   echo $ECHO_N "(cached) $ECHO_C" >&6
44148 else
44149
44150             cat >conftest.$ac_ext <<_ACEOF
44151 /* confdefs.h.  */
44152 _ACEOF
44153 cat confdefs.h >>conftest.$ac_ext
44154 cat >>conftest.$ac_ext <<_ACEOF
44155 /* end confdefs.h.  */
44156
44157                     #include <time.h>
44158
44159 int
44160 main ()
44161 {
44162
44163                     struct tm tm;
44164                     tm.tm_gmtoff++;
44165
44166   ;
44167   return 0;
44168 }
44169 _ACEOF
44170 rm -f conftest.$ac_objext
44171 if { (ac_try="$ac_compile"
44172 case "(($ac_try" in
44173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44174   *) ac_try_echo=$ac_try;;
44175 esac
44176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44177   (eval "$ac_compile") 2>conftest.er1
44178   ac_status=$?
44179   grep -v '^ *+' conftest.er1 >conftest.err
44180   rm -f conftest.er1
44181   cat conftest.err >&5
44182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44183   (exit $ac_status); } && {
44184          test -z "$ac_c_werror_flag" ||
44185          test ! -s conftest.err
44186        } && test -s conftest.$ac_objext; then
44187
44188                     wx_cv_struct_tm_has_gmtoff=yes
44189
44190 else
44191   echo "$as_me: failed program was:" >&5
44192 sed 's/^/| /' conftest.$ac_ext >&5
44193
44194         wx_cv_struct_tm_has_gmtoff=no
44195
44196 fi
44197
44198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44199
44200 fi
44201 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44202 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44203     fi
44204
44205     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44206         cat >>confdefs.h <<\_ACEOF
44207 #define WX_GMTOFF_IN_TM 1
44208 _ACEOF
44209
44210     fi
44211
44212     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44213 fi
44214
44215
44216 if test "$wxUSE_SOCKETS" = "yes"; then
44217     if test "$wxUSE_MGL" = 1; then
44218         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44219 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44220         wxUSE_SOCKETS="no"
44221     fi
44222 fi
44223
44224 if test "$wxUSE_SOCKETS" = "yes"; then
44225         if test "$TOOLKIT" != "MSW"; then
44226                 { echo "$as_me:$LINENO: checking for socket" >&5
44227 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44228 if test "${ac_cv_func_socket+set}" = set; then
44229   echo $ECHO_N "(cached) $ECHO_C" >&6
44230 else
44231   cat >conftest.$ac_ext <<_ACEOF
44232 /* confdefs.h.  */
44233 _ACEOF
44234 cat confdefs.h >>conftest.$ac_ext
44235 cat >>conftest.$ac_ext <<_ACEOF
44236 /* end confdefs.h.  */
44237 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44239 #define socket innocuous_socket
44240
44241 /* System header to define __stub macros and hopefully few prototypes,
44242     which can conflict with char socket (); below.
44243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44244     <limits.h> exists even on freestanding compilers.  */
44245
44246 #ifdef __STDC__
44247 # include <limits.h>
44248 #else
44249 # include <assert.h>
44250 #endif
44251
44252 #undef socket
44253
44254 /* Override any GCC internal prototype to avoid an error.
44255    Use char because int might match the return type of a GCC
44256    builtin and then its argument prototype would still apply.  */
44257 #ifdef __cplusplus
44258 extern "C"
44259 #endif
44260 char socket ();
44261 /* The GNU C library defines this for functions which it implements
44262     to always fail with ENOSYS.  Some functions are actually named
44263     something starting with __ and the normal name is an alias.  */
44264 #if defined __stub_socket || defined __stub___socket
44265 choke me
44266 #endif
44267
44268 int
44269 main ()
44270 {
44271 return socket ();
44272   ;
44273   return 0;
44274 }
44275 _ACEOF
44276 rm -f conftest.$ac_objext conftest$ac_exeext
44277 if { (ac_try="$ac_link"
44278 case "(($ac_try" in
44279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44280   *) ac_try_echo=$ac_try;;
44281 esac
44282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44283   (eval "$ac_link") 2>conftest.er1
44284   ac_status=$?
44285   grep -v '^ *+' conftest.er1 >conftest.err
44286   rm -f conftest.er1
44287   cat conftest.err >&5
44288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44289   (exit $ac_status); } && {
44290          test -z "$ac_c_werror_flag" ||
44291          test ! -s conftest.err
44292        } && test -s conftest$ac_exeext &&
44293        $as_test_x conftest$ac_exeext; then
44294   ac_cv_func_socket=yes
44295 else
44296   echo "$as_me: failed program was:" >&5
44297 sed 's/^/| /' conftest.$ac_ext >&5
44298
44299         ac_cv_func_socket=no
44300 fi
44301
44302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44303       conftest$ac_exeext conftest.$ac_ext
44304 fi
44305 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44306 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44307 if test $ac_cv_func_socket = yes; then
44308   :
44309 else
44310
44311                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44312 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44313 if test "${ac_cv_lib_socket_socket+set}" = set; then
44314   echo $ECHO_N "(cached) $ECHO_C" >&6
44315 else
44316   ac_check_lib_save_LIBS=$LIBS
44317 LIBS="-lsocket  $LIBS"
44318 cat >conftest.$ac_ext <<_ACEOF
44319 /* confdefs.h.  */
44320 _ACEOF
44321 cat confdefs.h >>conftest.$ac_ext
44322 cat >>conftest.$ac_ext <<_ACEOF
44323 /* end confdefs.h.  */
44324
44325 /* Override any GCC internal prototype to avoid an error.
44326    Use char because int might match the return type of a GCC
44327    builtin and then its argument prototype would still apply.  */
44328 #ifdef __cplusplus
44329 extern "C"
44330 #endif
44331 char socket ();
44332 int
44333 main ()
44334 {
44335 return socket ();
44336   ;
44337   return 0;
44338 }
44339 _ACEOF
44340 rm -f conftest.$ac_objext conftest$ac_exeext
44341 if { (ac_try="$ac_link"
44342 case "(($ac_try" in
44343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44344   *) ac_try_echo=$ac_try;;
44345 esac
44346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44347   (eval "$ac_link") 2>conftest.er1
44348   ac_status=$?
44349   grep -v '^ *+' conftest.er1 >conftest.err
44350   rm -f conftest.er1
44351   cat conftest.err >&5
44352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44353   (exit $ac_status); } && {
44354          test -z "$ac_c_werror_flag" ||
44355          test ! -s conftest.err
44356        } && test -s conftest$ac_exeext &&
44357        $as_test_x conftest$ac_exeext; then
44358   ac_cv_lib_socket_socket=yes
44359 else
44360   echo "$as_me: failed program was:" >&5
44361 sed 's/^/| /' conftest.$ac_ext >&5
44362
44363         ac_cv_lib_socket_socket=no
44364 fi
44365
44366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44367       conftest$ac_exeext conftest.$ac_ext
44368 LIBS=$ac_check_lib_save_LIBS
44369 fi
44370 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44371 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44372 if test $ac_cv_lib_socket_socket = yes; then
44373   if test "$INET_LINK" != " -lsocket"; then
44374                         INET_LINK="$INET_LINK -lsocket"
44375                     fi
44376 else
44377
44378                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44379 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44380                         wxUSE_SOCKETS=no
44381
44382
44383 fi
44384
44385
44386
44387 fi
44388
44389     fi
44390 fi
44391
44392 if test "$wxUSE_SOCKETS" = "yes" ; then
44393                 if test "$TOOLKIT" != "MSW"; then
44394                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44395 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44396 if test "${wx_cv_type_getsockname3+set}" = set; then
44397   echo $ECHO_N "(cached) $ECHO_C" >&6
44398 else
44399
44400                 ac_ext=cpp
44401 ac_cpp='$CXXCPP $CPPFLAGS'
44402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44405
44406                 cat >conftest.$ac_ext <<_ACEOF
44407 /* confdefs.h.  */
44408 _ACEOF
44409 cat confdefs.h >>conftest.$ac_ext
44410 cat >>conftest.$ac_ext <<_ACEOF
44411 /* end confdefs.h.  */
44412
44413                         #include <sys/types.h>
44414                         #include <sys/socket.h>
44415
44416 int
44417 main ()
44418 {
44419
44420                         socklen_t len;
44421                         getsockname(0, 0, &len);
44422
44423   ;
44424   return 0;
44425 }
44426 _ACEOF
44427 rm -f conftest.$ac_objext
44428 if { (ac_try="$ac_compile"
44429 case "(($ac_try" in
44430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44431   *) ac_try_echo=$ac_try;;
44432 esac
44433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44434   (eval "$ac_compile") 2>conftest.er1
44435   ac_status=$?
44436   grep -v '^ *+' conftest.er1 >conftest.err
44437   rm -f conftest.er1
44438   cat conftest.err >&5
44439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44440   (exit $ac_status); } && {
44441          test -z "$ac_cxx_werror_flag" ||
44442          test ! -s conftest.err
44443        } && test -s conftest.$ac_objext; then
44444   wx_cv_type_getsockname3=socklen_t
44445 else
44446   echo "$as_me: failed program was:" >&5
44447 sed 's/^/| /' conftest.$ac_ext >&5
44448
44449
44450                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44451                         if test "$GCC" = yes ; then
44452                             CFLAGS="-Werror $CFLAGS"
44453                         fi
44454
44455                         cat >conftest.$ac_ext <<_ACEOF
44456 /* confdefs.h.  */
44457 _ACEOF
44458 cat confdefs.h >>conftest.$ac_ext
44459 cat >>conftest.$ac_ext <<_ACEOF
44460 /* end confdefs.h.  */
44461
44462                                 #include <sys/types.h>
44463                                 #include <sys/socket.h>
44464
44465 int
44466 main ()
44467 {
44468
44469                                 size_t len;
44470                                 getsockname(0, 0, &len);
44471
44472   ;
44473   return 0;
44474 }
44475 _ACEOF
44476 rm -f conftest.$ac_objext
44477 if { (ac_try="$ac_compile"
44478 case "(($ac_try" in
44479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44480   *) ac_try_echo=$ac_try;;
44481 esac
44482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44483   (eval "$ac_compile") 2>conftest.er1
44484   ac_status=$?
44485   grep -v '^ *+' conftest.er1 >conftest.err
44486   rm -f conftest.er1
44487   cat conftest.err >&5
44488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489   (exit $ac_status); } && {
44490          test -z "$ac_cxx_werror_flag" ||
44491          test ! -s conftest.err
44492        } && test -s conftest.$ac_objext; then
44493   wx_cv_type_getsockname3=size_t
44494 else
44495   echo "$as_me: failed program was:" >&5
44496 sed 's/^/| /' conftest.$ac_ext >&5
44497
44498         cat >conftest.$ac_ext <<_ACEOF
44499 /* confdefs.h.  */
44500 _ACEOF
44501 cat confdefs.h >>conftest.$ac_ext
44502 cat >>conftest.$ac_ext <<_ACEOF
44503 /* end confdefs.h.  */
44504
44505                                     #include <sys/types.h>
44506                                     #include <sys/socket.h>
44507
44508 int
44509 main ()
44510 {
44511
44512                                     int len;
44513                                     getsockname(0, 0, &len);
44514
44515   ;
44516   return 0;
44517 }
44518 _ACEOF
44519 rm -f conftest.$ac_objext
44520 if { (ac_try="$ac_compile"
44521 case "(($ac_try" in
44522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44523   *) ac_try_echo=$ac_try;;
44524 esac
44525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44526   (eval "$ac_compile") 2>conftest.er1
44527   ac_status=$?
44528   grep -v '^ *+' conftest.er1 >conftest.err
44529   rm -f conftest.er1
44530   cat conftest.err >&5
44531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44532   (exit $ac_status); } && {
44533          test -z "$ac_cxx_werror_flag" ||
44534          test ! -s conftest.err
44535        } && test -s conftest.$ac_objext; then
44536   wx_cv_type_getsockname3=int
44537 else
44538   echo "$as_me: failed program was:" >&5
44539 sed 's/^/| /' conftest.$ac_ext >&5
44540
44541         wx_cv_type_getsockname3=unknown
44542
44543 fi
44544
44545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44546
44547 fi
44548
44549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44550
44551                         CFLAGS="$CFLAGS_OLD"
44552
44553
44554 fi
44555
44556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44557                 ac_ext=c
44558 ac_cpp='$CPP $CPPFLAGS'
44559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44562
44563
44564 fi
44565 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44566 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44567
44568         if test "$wx_cv_type_getsockname3" = "unknown"; then
44569             wxUSE_SOCKETS=no
44570             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44571 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44572         else
44573             cat >>confdefs.h <<_ACEOF
44574 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44575 _ACEOF
44576
44577         fi
44578                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44579 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44580 if test "${wx_cv_type_getsockopt5+set}" = set; then
44581   echo $ECHO_N "(cached) $ECHO_C" >&6
44582 else
44583
44584                                                                                                 ac_ext=cpp
44585 ac_cpp='$CXXCPP $CPPFLAGS'
44586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44589
44590                 cat >conftest.$ac_ext <<_ACEOF
44591 /* confdefs.h.  */
44592 _ACEOF
44593 cat confdefs.h >>conftest.$ac_ext
44594 cat >>conftest.$ac_ext <<_ACEOF
44595 /* end confdefs.h.  */
44596
44597                         #include <sys/types.h>
44598                         #include <sys/socket.h>
44599
44600 int
44601 main ()
44602 {
44603
44604                         socklen_t len;
44605                         getsockopt(0, 0, 0, 0, &len);
44606
44607   ;
44608   return 0;
44609 }
44610 _ACEOF
44611 rm -f conftest.$ac_objext
44612 if { (ac_try="$ac_compile"
44613 case "(($ac_try" in
44614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44615   *) ac_try_echo=$ac_try;;
44616 esac
44617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44618   (eval "$ac_compile") 2>conftest.er1
44619   ac_status=$?
44620   grep -v '^ *+' conftest.er1 >conftest.err
44621   rm -f conftest.er1
44622   cat conftest.err >&5
44623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44624   (exit $ac_status); } && {
44625          test -z "$ac_cxx_werror_flag" ||
44626          test ! -s conftest.err
44627        } && test -s conftest.$ac_objext; then
44628   wx_cv_type_getsockopt5=socklen_t
44629 else
44630   echo "$as_me: failed program was:" >&5
44631 sed 's/^/| /' conftest.$ac_ext >&5
44632
44633
44634                         cat >conftest.$ac_ext <<_ACEOF
44635 /* confdefs.h.  */
44636 _ACEOF
44637 cat confdefs.h >>conftest.$ac_ext
44638 cat >>conftest.$ac_ext <<_ACEOF
44639 /* end confdefs.h.  */
44640
44641                                 #include <sys/types.h>
44642                                 #include <sys/socket.h>
44643
44644 int
44645 main ()
44646 {
44647
44648                                 size_t len;
44649                                 getsockopt(0, 0, 0, 0, &len);
44650
44651   ;
44652   return 0;
44653 }
44654 _ACEOF
44655 rm -f conftest.$ac_objext
44656 if { (ac_try="$ac_compile"
44657 case "(($ac_try" in
44658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44659   *) ac_try_echo=$ac_try;;
44660 esac
44661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44662   (eval "$ac_compile") 2>conftest.er1
44663   ac_status=$?
44664   grep -v '^ *+' conftest.er1 >conftest.err
44665   rm -f conftest.er1
44666   cat conftest.err >&5
44667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44668   (exit $ac_status); } && {
44669          test -z "$ac_cxx_werror_flag" ||
44670          test ! -s conftest.err
44671        } && test -s conftest.$ac_objext; then
44672   wx_cv_type_getsockopt5=size_t
44673 else
44674   echo "$as_me: failed program was:" >&5
44675 sed 's/^/| /' conftest.$ac_ext >&5
44676
44677         cat >conftest.$ac_ext <<_ACEOF
44678 /* confdefs.h.  */
44679 _ACEOF
44680 cat confdefs.h >>conftest.$ac_ext
44681 cat >>conftest.$ac_ext <<_ACEOF
44682 /* end confdefs.h.  */
44683
44684                                     #include <sys/types.h>
44685                                     #include <sys/socket.h>
44686
44687 int
44688 main ()
44689 {
44690
44691                                     int len;
44692                                     getsockopt(0, 0, 0, 0, &len);
44693
44694   ;
44695   return 0;
44696 }
44697 _ACEOF
44698 rm -f conftest.$ac_objext
44699 if { (ac_try="$ac_compile"
44700 case "(($ac_try" in
44701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44702   *) ac_try_echo=$ac_try;;
44703 esac
44704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44705   (eval "$ac_compile") 2>conftest.er1
44706   ac_status=$?
44707   grep -v '^ *+' conftest.er1 >conftest.err
44708   rm -f conftest.er1
44709   cat conftest.err >&5
44710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44711   (exit $ac_status); } && {
44712          test -z "$ac_cxx_werror_flag" ||
44713          test ! -s conftest.err
44714        } && test -s conftest.$ac_objext; then
44715   wx_cv_type_getsockopt5=int
44716 else
44717   echo "$as_me: failed program was:" >&5
44718 sed 's/^/| /' conftest.$ac_ext >&5
44719
44720         wx_cv_type_getsockopt5=unknown
44721
44722 fi
44723
44724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44725
44726 fi
44727
44728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44729
44730
44731 fi
44732
44733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44734                 ac_ext=c
44735 ac_cpp='$CPP $CPPFLAGS'
44736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44739
44740
44741 fi
44742 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44743 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44744
44745         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44746             wxUSE_SOCKETS=no
44747             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44748 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44749         else
44750             cat >>confdefs.h <<_ACEOF
44751 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44752 _ACEOF
44753
44754         fi
44755     fi
44756 fi
44757
44758 if test "$wxUSE_SOCKETS" = "yes" ; then
44759     if test "$wxUSE_IPV6" = "yes"; then
44760         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44761 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44762 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44763   echo $ECHO_N "(cached) $ECHO_C" >&6
44764 else
44765
44766                 cat >conftest.$ac_ext <<_ACEOF
44767 /* confdefs.h.  */
44768 _ACEOF
44769 cat confdefs.h >>conftest.$ac_ext
44770 cat >>conftest.$ac_ext <<_ACEOF
44771 /* end confdefs.h.  */
44772
44773                         #include <sys/types.h>
44774                         #include <sys/socket.h>
44775                         #include <netinet/in.h>
44776
44777 int
44778 main ()
44779 {
44780
44781                         struct sockaddr_in6 sa6;
44782
44783   ;
44784   return 0;
44785 }
44786 _ACEOF
44787 rm -f conftest.$ac_objext
44788 if { (ac_try="$ac_compile"
44789 case "(($ac_try" in
44790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44791   *) ac_try_echo=$ac_try;;
44792 esac
44793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44794   (eval "$ac_compile") 2>conftest.er1
44795   ac_status=$?
44796   grep -v '^ *+' conftest.er1 >conftest.err
44797   rm -f conftest.er1
44798   cat conftest.err >&5
44799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44800   (exit $ac_status); } && {
44801          test -z "$ac_c_werror_flag" ||
44802          test ! -s conftest.err
44803        } && test -s conftest.$ac_objext; then
44804   wx_cv_type_sockaddr_in6=yes
44805 else
44806   echo "$as_me: failed program was:" >&5
44807 sed 's/^/| /' conftest.$ac_ext >&5
44808
44809         wx_cv_type_sockaddr_in6=no
44810
44811 fi
44812
44813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44814
44815
44816 fi
44817 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44818 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44819
44820         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44821             cat >>confdefs.h <<\_ACEOF
44822 #define wxUSE_IPV6 1
44823 _ACEOF
44824
44825         else
44826             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44827 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44828         fi
44829     fi
44830
44831     cat >>confdefs.h <<\_ACEOF
44832 #define wxUSE_SOCKETS 1
44833 _ACEOF
44834
44835     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44836 fi
44837
44838 if test "$wxUSE_PROTOCOL" = "yes"; then
44839     if test "$wxUSE_SOCKETS" != "yes"; then
44840         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44841 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44842         wxUSE_PROTOCOL=no
44843     fi
44844 fi
44845
44846 if test "$wxUSE_PROTOCOL" = "yes"; then
44847     cat >>confdefs.h <<\_ACEOF
44848 #define wxUSE_PROTOCOL 1
44849 _ACEOF
44850
44851
44852     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44853         cat >>confdefs.h <<\_ACEOF
44854 #define wxUSE_PROTOCOL_HTTP 1
44855 _ACEOF
44856
44857     fi
44858     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44859         cat >>confdefs.h <<\_ACEOF
44860 #define wxUSE_PROTOCOL_FTP 1
44861 _ACEOF
44862
44863     fi
44864     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44865         cat >>confdefs.h <<\_ACEOF
44866 #define wxUSE_PROTOCOL_FILE 1
44867 _ACEOF
44868
44869     fi
44870 else
44871     if test "$wxUSE_FS_INET" = "yes"; then
44872         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44873 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44874         wxUSE_FS_INET="no"
44875     fi
44876 fi
44877
44878 if test "$wxUSE_URL" = "yes"; then
44879     if test "$wxUSE_PROTOCOL" != "yes"; then
44880         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44881 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44882         wxUSE_URL=no
44883     fi
44884     if test "$wxUSE_URL" = "yes"; then
44885         cat >>confdefs.h <<\_ACEOF
44886 #define wxUSE_URL 1
44887 _ACEOF
44888
44889     fi
44890 fi
44891
44892 if test "$wxUSE_VARIANT" = "yes"; then
44893     cat >>confdefs.h <<\_ACEOF
44894 #define wxUSE_VARIANT 1
44895 _ACEOF
44896
44897 fi
44898
44899 if test "$wxUSE_FS_INET" = "yes"; then
44900   cat >>confdefs.h <<\_ACEOF
44901 #define wxUSE_FS_INET 1
44902 _ACEOF
44903
44904 fi
44905
44906
44907 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44908     wxUSE_JOYSTICK=no
44909
44910         if test "$TOOLKIT" = "MSW"; then
44911         wxUSE_JOYSTICK=yes
44912
44913         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
44914         if test "$USE_DARWIN" = 1; then
44915                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44916 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44917             ac_ext=cpp
44918 ac_cpp='$CXXCPP $CPPFLAGS'
44919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44922
44923             cat >conftest.$ac_ext <<_ACEOF
44924 /* confdefs.h.  */
44925 _ACEOF
44926 cat confdefs.h >>conftest.$ac_ext
44927 cat >>conftest.$ac_ext <<_ACEOF
44928 /* end confdefs.h.  */
44929  #include <IOKit/hid/IOHIDLib.h>
44930 int
44931 main ()
44932 {
44933  IOHIDQueueInterface *qi = NULL;
44934                               IOHIDCallbackFunction cb = NULL;
44935                               qi->setEventCallout(NULL, cb, NULL, NULL);
44936   ;
44937   return 0;
44938 }
44939 _ACEOF
44940 rm -f conftest.$ac_objext
44941 if { (ac_try="$ac_compile"
44942 case "(($ac_try" in
44943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44944   *) ac_try_echo=$ac_try;;
44945 esac
44946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44947   (eval "$ac_compile") 2>conftest.er1
44948   ac_status=$?
44949   grep -v '^ *+' conftest.er1 >conftest.err
44950   rm -f conftest.er1
44951   cat conftest.err >&5
44952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44953   (exit $ac_status); } && {
44954          test -z "$ac_cxx_werror_flag" ||
44955          test ! -s conftest.err
44956        } && test -s conftest.$ac_objext; then
44957    wxUSE_JOYSTICK=yes
44958
44959 else
44960   echo "$as_me: failed program was:" >&5
44961 sed 's/^/| /' conftest.$ac_ext >&5
44962
44963
44964 fi
44965
44966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44967             ac_ext=c
44968 ac_cpp='$CPP $CPPFLAGS'
44969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44972
44973             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44974 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44975         fi
44976
44977         else
44978                 if test "$wxUSE_MGL" != 1; then
44979
44980 for ac_header in linux/joystick.h
44981 do
44982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44986   echo $ECHO_N "(cached) $ECHO_C" >&6
44987 else
44988   cat >conftest.$ac_ext <<_ACEOF
44989 /* confdefs.h.  */
44990 _ACEOF
44991 cat confdefs.h >>conftest.$ac_ext
44992 cat >>conftest.$ac_ext <<_ACEOF
44993 /* end confdefs.h.  */
44994 $ac_includes_default
44995
44996 #include <$ac_header>
44997 _ACEOF
44998 rm -f conftest.$ac_objext
44999 if { (ac_try="$ac_compile"
45000 case "(($ac_try" in
45001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45002   *) ac_try_echo=$ac_try;;
45003 esac
45004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45005   (eval "$ac_compile") 2>conftest.er1
45006   ac_status=$?
45007   grep -v '^ *+' conftest.er1 >conftest.err
45008   rm -f conftest.er1
45009   cat conftest.err >&5
45010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45011   (exit $ac_status); } && {
45012          test -z "$ac_c_werror_flag" ||
45013          test ! -s conftest.err
45014        } && test -s conftest.$ac_objext; then
45015   eval "$as_ac_Header=yes"
45016 else
45017   echo "$as_me: failed program was:" >&5
45018 sed 's/^/| /' conftest.$ac_ext >&5
45019
45020         eval "$as_ac_Header=no"
45021 fi
45022
45023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45024 fi
45025 ac_res=`eval echo '${'$as_ac_Header'}'`
45026                { echo "$as_me:$LINENO: result: $ac_res" >&5
45027 echo "${ECHO_T}$ac_res" >&6; }
45028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45029   cat >>confdefs.h <<_ACEOF
45030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45031 _ACEOF
45032  wxUSE_JOYSTICK=yes
45033 fi
45034
45035 done
45036
45037         fi
45038     fi
45039
45040     if test "$wxUSE_JOYSTICK" = "yes"; then
45041         cat >>confdefs.h <<\_ACEOF
45042 #define wxUSE_JOYSTICK 1
45043 _ACEOF
45044
45045         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45046     else
45047         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45048 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45049     fi
45050 fi
45051
45052
45053
45054 if test "$wxUSE_FONTENUM" = "yes" ; then
45055   cat >>confdefs.h <<\_ACEOF
45056 #define wxUSE_FONTENUM 1
45057 _ACEOF
45058
45059 fi
45060
45061 if test "$wxUSE_FONTMAP" = "yes" ; then
45062   cat >>confdefs.h <<\_ACEOF
45063 #define wxUSE_FONTMAP 1
45064 _ACEOF
45065
45066 fi
45067
45068 if test "$wxUSE_UNICODE" = "yes" ; then
45069   cat >>confdefs.h <<\_ACEOF
45070 #define wxUSE_UNICODE 1
45071 _ACEOF
45072
45073
45074   if test "$USE_WIN32" != 1; then
45075       wxUSE_UNICODE_MSLU=no
45076   fi
45077
45078   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45079         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45080 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45081 if test "${ac_cv_lib_unicows_main+set}" = set; then
45082   echo $ECHO_N "(cached) $ECHO_C" >&6
45083 else
45084   ac_check_lib_save_LIBS=$LIBS
45085 LIBS="-lunicows  $LIBS"
45086 cat >conftest.$ac_ext <<_ACEOF
45087 /* confdefs.h.  */
45088 _ACEOF
45089 cat confdefs.h >>conftest.$ac_ext
45090 cat >>conftest.$ac_ext <<_ACEOF
45091 /* end confdefs.h.  */
45092
45093
45094 int
45095 main ()
45096 {
45097 return main ();
45098   ;
45099   return 0;
45100 }
45101 _ACEOF
45102 rm -f conftest.$ac_objext conftest$ac_exeext
45103 if { (ac_try="$ac_link"
45104 case "(($ac_try" in
45105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45106   *) ac_try_echo=$ac_try;;
45107 esac
45108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45109   (eval "$ac_link") 2>conftest.er1
45110   ac_status=$?
45111   grep -v '^ *+' conftest.er1 >conftest.err
45112   rm -f conftest.er1
45113   cat conftest.err >&5
45114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45115   (exit $ac_status); } && {
45116          test -z "$ac_c_werror_flag" ||
45117          test ! -s conftest.err
45118        } && test -s conftest$ac_exeext &&
45119        $as_test_x conftest$ac_exeext; then
45120   ac_cv_lib_unicows_main=yes
45121 else
45122   echo "$as_me: failed program was:" >&5
45123 sed 's/^/| /' conftest.$ac_ext >&5
45124
45125         ac_cv_lib_unicows_main=no
45126 fi
45127
45128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45129       conftest$ac_exeext conftest.$ac_ext
45130 LIBS=$ac_check_lib_save_LIBS
45131 fi
45132 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45133 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45134 if test $ac_cv_lib_unicows_main = yes; then
45135
45136                 cat >>confdefs.h <<\_ACEOF
45137 #define wxUSE_UNICODE_MSLU 1
45138 _ACEOF
45139
45140
45141 else
45142
45143                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45144                              Applications will only run on Windows NT/2000/XP!" >&5
45145 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45146                              Applications will only run on Windows NT/2000/XP!" >&2;}
45147                 wxUSE_UNICODE_MSLU=no
45148
45149 fi
45150
45151     fi
45152 fi
45153
45154 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45155     cat >>confdefs.h <<\_ACEOF
45156 #define wxUSE_UNICODE_UTF8 1
45157 _ACEOF
45158
45159
45160     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45161         cat >>confdefs.h <<\_ACEOF
45162 #define wxUSE_UTF8_LOCALE_ONLY 1
45163 _ACEOF
45164
45165     fi
45166 fi
45167
45168
45169 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45170     cat >>confdefs.h <<\_ACEOF
45171 #define wxUSE_CONSTRAINTS 1
45172 _ACEOF
45173
45174     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45175 fi
45176
45177 if test "$wxUSE_MDI" = "yes"; then
45178     cat >>confdefs.h <<\_ACEOF
45179 #define wxUSE_MDI 1
45180 _ACEOF
45181
45182
45183     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45184         cat >>confdefs.h <<\_ACEOF
45185 #define wxUSE_MDI_ARCHITECTURE 1
45186 _ACEOF
45187
45188         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45189     fi
45190 fi
45191
45192 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45193     cat >>confdefs.h <<\_ACEOF
45194 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45195 _ACEOF
45196
45197     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45198 fi
45199
45200 if test "$wxUSE_HELP" = "yes"; then
45201     cat >>confdefs.h <<\_ACEOF
45202 #define wxUSE_HELP 1
45203 _ACEOF
45204
45205     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45206
45207     if test "$wxUSE_MSW" = 1; then
45208       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45209         cat >>confdefs.h <<\_ACEOF
45210 #define wxUSE_MS_HTML_HELP 1
45211 _ACEOF
45212
45213       fi
45214     fi
45215
45216     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45217       if test "$wxUSE_HTML" = "yes"; then
45218         cat >>confdefs.h <<\_ACEOF
45219 #define wxUSE_WXHTML_HELP 1
45220 _ACEOF
45221
45222       else
45223         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45224 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45225         wxUSE_WXHTML_HELP=no
45226       fi
45227     fi
45228 fi
45229
45230 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45231     cat >>confdefs.h <<\_ACEOF
45232 #define wxUSE_PRINTING_ARCHITECTURE 1
45233 _ACEOF
45234
45235     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45236 fi
45237
45238 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45239   cat >>confdefs.h <<\_ACEOF
45240 #define wxUSE_POSTSCRIPT 1
45241 _ACEOF
45242
45243 fi
45244
45245 cat >>confdefs.h <<\_ACEOF
45246 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45247 _ACEOF
45248
45249
45250 if test "$wxUSE_SVG" = "yes"; then
45251     cat >>confdefs.h <<\_ACEOF
45252 #define wxUSE_SVG 1
45253 _ACEOF
45254
45255 fi
45256
45257
45258 if test "$wxUSE_METAFILE" = "yes"; then
45259     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45260         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45261 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45262         wxUSE_METAFILE=no
45263     fi
45264 fi
45265
45266
45267 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45268                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45269                           -o "$wxUSE_OLE"     = "yes" \
45270                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45271     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45272 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45273 if test "${ac_cv_header_ole2_h+set}" = set; then
45274   echo $ECHO_N "(cached) $ECHO_C" >&6
45275 else
45276   cat >conftest.$ac_ext <<_ACEOF
45277 /* confdefs.h.  */
45278 _ACEOF
45279 cat confdefs.h >>conftest.$ac_ext
45280 cat >>conftest.$ac_ext <<_ACEOF
45281 /* end confdefs.h.  */
45282
45283
45284 #include <ole2.h>
45285 _ACEOF
45286 rm -f conftest.$ac_objext
45287 if { (ac_try="$ac_compile"
45288 case "(($ac_try" in
45289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45290   *) ac_try_echo=$ac_try;;
45291 esac
45292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45293   (eval "$ac_compile") 2>conftest.er1
45294   ac_status=$?
45295   grep -v '^ *+' conftest.er1 >conftest.err
45296   rm -f conftest.er1
45297   cat conftest.err >&5
45298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45299   (exit $ac_status); } && {
45300          test -z "$ac_c_werror_flag" ||
45301          test ! -s conftest.err
45302        } && test -s conftest.$ac_objext; then
45303   ac_cv_header_ole2_h=yes
45304 else
45305   echo "$as_me: failed program was:" >&5
45306 sed 's/^/| /' conftest.$ac_ext >&5
45307
45308         ac_cv_header_ole2_h=no
45309 fi
45310
45311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45312 fi
45313 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45314 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45315
45316
45317
45318     if test "$ac_cv_header_ole2_h" = "yes" ; then
45319         if test "$GCC" = yes ; then
45320             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45321 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45322             cat >conftest.$ac_ext <<_ACEOF
45323 /* confdefs.h.  */
45324 _ACEOF
45325 cat confdefs.h >>conftest.$ac_ext
45326 cat >>conftest.$ac_ext <<_ACEOF
45327 /* end confdefs.h.  */
45328 #include <windows.h>
45329                             #include <ole2.h>
45330 int
45331 main ()
45332 {
45333
45334   ;
45335   return 0;
45336 }
45337 _ACEOF
45338 rm -f conftest.$ac_objext
45339 if { (ac_try="$ac_compile"
45340 case "(($ac_try" in
45341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45342   *) ac_try_echo=$ac_try;;
45343 esac
45344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45345   (eval "$ac_compile") 2>conftest.er1
45346   ac_status=$?
45347   grep -v '^ *+' conftest.er1 >conftest.err
45348   rm -f conftest.er1
45349   cat conftest.err >&5
45350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45351   (exit $ac_status); } && {
45352          test -z "$ac_c_werror_flag" ||
45353          test ! -s conftest.err
45354        } && test -s conftest.$ac_objext; then
45355   { echo "$as_me:$LINENO: result: no" >&5
45356 echo "${ECHO_T}no" >&6; }
45357 else
45358   echo "$as_me: failed program was:" >&5
45359 sed 's/^/| /' conftest.$ac_ext >&5
45360
45361         { echo "$as_me:$LINENO: result: yes" >&5
45362 echo "${ECHO_T}yes" >&6; }
45363                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45364 fi
45365
45366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45367             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45368             if test "$wxUSE_OLE" = "yes" ; then
45369                 cat >>confdefs.h <<\_ACEOF
45370 #define wxUSE_OLE 1
45371 _ACEOF
45372
45373                 cat >>confdefs.h <<\_ACEOF
45374 #define wxUSE_OLE_AUTOMATION 1
45375 _ACEOF
45376
45377                 cat >>confdefs.h <<\_ACEOF
45378 #define wxUSE_ACTIVEX 1
45379 _ACEOF
45380
45381                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45382             fi
45383         fi
45384
45385                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45386             cat >>confdefs.h <<\_ACEOF
45387 #define wxUSE_DATAOBJ 1
45388 _ACEOF
45389
45390         fi
45391     else
45392         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45393 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45394
45395         wxUSE_CLIPBOARD=no
45396         wxUSE_DRAG_AND_DROP=no
45397         wxUSE_DATAOBJ=no
45398         wxUSE_OLE=no
45399     fi
45400
45401     if test "$wxUSE_METAFILE" = "yes"; then
45402         cat >>confdefs.h <<\_ACEOF
45403 #define wxUSE_METAFILE 1
45404 _ACEOF
45405
45406
45407                 cat >>confdefs.h <<\_ACEOF
45408 #define wxUSE_ENH_METAFILE 1
45409 _ACEOF
45410
45411     fi
45412 fi
45413
45414 if test "$wxUSE_IPC" = "yes"; then
45415     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45416         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45417 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45418         wxUSE_IPC=no
45419     fi
45420
45421     if test "$wxUSE_IPC" = "yes"; then
45422         cat >>confdefs.h <<\_ACEOF
45423 #define wxUSE_IPC 1
45424 _ACEOF
45425
45426         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45427     fi
45428 fi
45429
45430 if test "$wxUSE_DATAOBJ" = "yes"; then
45431     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45432         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45433 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45434         wxUSE_DATAOBJ=no
45435     else
45436         cat >>confdefs.h <<\_ACEOF
45437 #define wxUSE_DATAOBJ 1
45438 _ACEOF
45439
45440     fi
45441 else
45442     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45443 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45444     wxUSE_CLIPBOARD=no
45445     wxUSE_DRAG_AND_DROP=no
45446 fi
45447
45448 if test "$wxUSE_CLIPBOARD" = "yes"; then
45449     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45450         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45451 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45452         wxUSE_CLIPBOARD=no
45453     fi
45454
45455     if test "$wxUSE_CLIPBOARD" = "yes"; then
45456         cat >>confdefs.h <<\_ACEOF
45457 #define wxUSE_CLIPBOARD 1
45458 _ACEOF
45459
45460     fi
45461 fi
45462
45463 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45464     if test "$wxUSE_GTK" = 1; then
45465         if test "$WXGTK12" != 1; then
45466             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45467 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45468             wxUSE_DRAG_AND_DROP=no
45469         fi
45470     fi
45471
45472     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45473             "$wxUSE_DFB" = 1; then
45474         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45475 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45476         wxUSE_DRAG_AND_DROP=no
45477     fi
45478
45479     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45480         cat >>confdefs.h <<\_ACEOF
45481 #define wxUSE_DRAG_AND_DROP 1
45482 _ACEOF
45483
45484     fi
45485
45486 fi
45487
45488 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45489     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45490 fi
45491
45492 if test "$wxUSE_CLIPBOARD" = "yes"; then
45493     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
45494 fi
45495
45496 if test "$wxUSE_SPLINES" = "yes" ; then
45497   cat >>confdefs.h <<\_ACEOF
45498 #define wxUSE_SPLINES 1
45499 _ACEOF
45500
45501 fi
45502
45503 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45504   cat >>confdefs.h <<\_ACEOF
45505 #define wxUSE_MOUSEWHEEL 1
45506 _ACEOF
45507
45508 fi
45509
45510
45511 USES_CONTROLS=0
45512 if test "$wxUSE_CONTROLS" = "yes"; then
45513   USES_CONTROLS=1
45514 fi
45515
45516 if test "$wxUSE_ACCEL" = "yes"; then
45517   cat >>confdefs.h <<\_ACEOF
45518 #define wxUSE_ACCEL 1
45519 _ACEOF
45520
45521   USES_CONTROLS=1
45522 fi
45523
45524 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45525   cat >>confdefs.h <<\_ACEOF
45526 #define wxUSE_ANIMATIONCTRL 1
45527 _ACEOF
45528
45529   USES_CONTROLS=1
45530   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45531 fi
45532
45533 if test "$wxUSE_BUTTON" = "yes"; then
45534   cat >>confdefs.h <<\_ACEOF
45535 #define wxUSE_BUTTON 1
45536 _ACEOF
45537
45538   USES_CONTROLS=1
45539 fi
45540
45541 if test "$wxUSE_BMPBUTTON" = "yes"; then
45542   cat >>confdefs.h <<\_ACEOF
45543 #define wxUSE_BMPBUTTON 1
45544 _ACEOF
45545
45546   USES_CONTROLS=1
45547 fi
45548
45549 if test "$wxUSE_CALCTRL" = "yes"; then
45550   cat >>confdefs.h <<\_ACEOF
45551 #define wxUSE_CALENDARCTRL 1
45552 _ACEOF
45553
45554   USES_CONTROLS=1
45555   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45556 fi
45557
45558 if test "$wxUSE_CARET" = "yes"; then
45559   cat >>confdefs.h <<\_ACEOF
45560 #define wxUSE_CARET 1
45561 _ACEOF
45562
45563   USES_CONTROLS=1
45564   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45565 fi
45566
45567 if test "$wxUSE_COLLPANE" = "yes"; then
45568     cat >>confdefs.h <<\_ACEOF
45569 #define wxUSE_COLLPANE 1
45570 _ACEOF
45571
45572     USES_CONTROLS=1
45573     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45574 fi
45575
45576 if test "$wxUSE_COMBOBOX" = "yes"; then
45577   cat >>confdefs.h <<\_ACEOF
45578 #define wxUSE_COMBOBOX 1
45579 _ACEOF
45580
45581   USES_CONTROLS=1
45582 fi
45583
45584 if test "$wxUSE_COMBOCTRL" = "yes"; then
45585   cat >>confdefs.h <<\_ACEOF
45586 #define wxUSE_COMBOCTRL 1
45587 _ACEOF
45588
45589   USES_CONTROLS=1
45590 fi
45591
45592 if test "$wxUSE_CHOICE" = "yes"; then
45593   cat >>confdefs.h <<\_ACEOF
45594 #define wxUSE_CHOICE 1
45595 _ACEOF
45596
45597   USES_CONTROLS=1
45598 fi
45599
45600 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45601     cat >>confdefs.h <<\_ACEOF
45602 #define wxUSE_CHOICEBOOK 1
45603 _ACEOF
45604
45605     USES_CONTROLS=1
45606 fi
45607
45608 if test "$wxUSE_CHECKBOX" = "yes"; then
45609   cat >>confdefs.h <<\_ACEOF
45610 #define wxUSE_CHECKBOX 1
45611 _ACEOF
45612
45613   USES_CONTROLS=1
45614 fi
45615
45616 if test "$wxUSE_CHECKLST" = "yes"; then
45617   cat >>confdefs.h <<\_ACEOF
45618 #define wxUSE_CHECKLISTBOX 1
45619 _ACEOF
45620
45621   USES_CONTROLS=1
45622 fi
45623
45624 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45625   cat >>confdefs.h <<\_ACEOF
45626 #define wxUSE_COLOURPICKERCTRL 1
45627 _ACEOF
45628
45629   USES_CONTROLS=1
45630 fi
45631
45632 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45633   cat >>confdefs.h <<\_ACEOF
45634 #define wxUSE_DATEPICKCTRL 1
45635 _ACEOF
45636
45637   USES_CONTROLS=1
45638 fi
45639
45640 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45641   cat >>confdefs.h <<\_ACEOF
45642 #define wxUSE_DIRPICKERCTRL 1
45643 _ACEOF
45644
45645   USES_CONTROLS=1
45646 fi
45647
45648 if test "$wxUSE_FILECTRL" = "yes"; then
45649   cat >>confdefs.h <<\_ACEOF
45650 #define wxUSE_FILECTRL 1
45651 _ACEOF
45652
45653   USES_CONTROLS=1
45654 fi
45655
45656 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45657   cat >>confdefs.h <<\_ACEOF
45658 #define wxUSE_FILEPICKERCTRL 1
45659 _ACEOF
45660
45661   USES_CONTROLS=1
45662 fi
45663
45664 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45665   cat >>confdefs.h <<\_ACEOF
45666 #define wxUSE_FONTPICKERCTRL 1
45667 _ACEOF
45668
45669   USES_CONTROLS=1
45670 fi
45671
45672 if test "$wxUSE_DISPLAY" = "yes"; then
45673     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45674         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45675 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45676         wxUSE_DISPLAY=no
45677     else
45678         cat >>confdefs.h <<\_ACEOF
45679 #define wxUSE_DISPLAY 1
45680 _ACEOF
45681
45682         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45683     fi
45684 fi
45685
45686 if test "$wxUSE_DETECT_SM" = "yes"; then
45687     cat >>confdefs.h <<\_ACEOF
45688 #define wxUSE_DETECT_SM 1
45689 _ACEOF
45690
45691 fi
45692
45693 if test "$wxUSE_GAUGE" = "yes"; then
45694   cat >>confdefs.h <<\_ACEOF
45695 #define wxUSE_GAUGE 1
45696 _ACEOF
45697
45698   USES_CONTROLS=1
45699 fi
45700
45701 if test "$wxUSE_GRID" = "yes"; then
45702   cat >>confdefs.h <<\_ACEOF
45703 #define wxUSE_GRID 1
45704 _ACEOF
45705
45706   USES_CONTROLS=1
45707   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45708 fi
45709
45710 if test "$wxUSE_HEADERCTRL" = "yes"; then
45711   cat >>confdefs.h <<\_ACEOF
45712 #define wxUSE_HEADERCTRL 1
45713 _ACEOF
45714
45715   USES_CONTROLS=1
45716 fi
45717
45718 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45719   cat >>confdefs.h <<\_ACEOF
45720 #define wxUSE_HYPERLINKCTRL 1
45721 _ACEOF
45722
45723   USES_CONTROLS=1
45724 fi
45725
45726 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45727   cat >>confdefs.h <<\_ACEOF
45728 #define wxUSE_BITMAPCOMBOBOX 1
45729 _ACEOF
45730
45731   USES_CONTROLS=1
45732 fi
45733
45734 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45735   cat >>confdefs.h <<\_ACEOF
45736 #define wxUSE_DATAVIEWCTRL 1
45737 _ACEOF
45738
45739   USES_CONTROLS=1
45740   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45741 fi
45742
45743 if test "$wxUSE_IMAGLIST" = "yes"; then
45744     cat >>confdefs.h <<\_ACEOF
45745 #define wxUSE_IMAGLIST 1
45746 _ACEOF
45747
45748 fi
45749
45750 if test "$wxUSE_LISTBOOK" = "yes"; then
45751     cat >>confdefs.h <<\_ACEOF
45752 #define wxUSE_LISTBOOK 1
45753 _ACEOF
45754
45755     USES_CONTROLS=1
45756 fi
45757
45758 if test "$wxUSE_LISTBOX" = "yes"; then
45759     cat >>confdefs.h <<\_ACEOF
45760 #define wxUSE_LISTBOX 1
45761 _ACEOF
45762
45763     USES_CONTROLS=1
45764 fi
45765
45766 if test "$wxUSE_LISTCTRL" = "yes"; then
45767     if test "$wxUSE_IMAGLIST" = "yes"; then
45768         cat >>confdefs.h <<\_ACEOF
45769 #define wxUSE_LISTCTRL 1
45770 _ACEOF
45771
45772         USES_CONTROLS=1
45773         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45774     else
45775         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45776 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45777     fi
45778 fi
45779
45780 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45781     cat >>confdefs.h <<\_ACEOF
45782 #define wxUSE_EDITABLELISTBOX 1
45783 _ACEOF
45784
45785     USES_CONTROLS=1
45786 fi
45787
45788 if test "$wxUSE_NOTEBOOK" = "yes"; then
45789     cat >>confdefs.h <<\_ACEOF
45790 #define wxUSE_NOTEBOOK 1
45791 _ACEOF
45792
45793     USES_CONTROLS=1
45794     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45795 fi
45796
45797 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45798     cat >>confdefs.h <<\_ACEOF
45799 #define wxUSE_NOTIFICATION_MESSAGE 1
45800 _ACEOF
45801
45802 fi
45803
45804 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45805   cat >>confdefs.h <<\_ACEOF
45806 #define wxUSE_ODCOMBOBOX 1
45807 _ACEOF
45808
45809   USES_CONTROLS=1
45810   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45811 fi
45812
45813 if test "$wxUSE_RADIOBOX" = "yes"; then
45814     cat >>confdefs.h <<\_ACEOF
45815 #define wxUSE_RADIOBOX 1
45816 _ACEOF
45817
45818     USES_CONTROLS=1
45819 fi
45820
45821 if test "$wxUSE_RADIOBTN" = "yes"; then
45822     cat >>confdefs.h <<\_ACEOF
45823 #define wxUSE_RADIOBTN 1
45824 _ACEOF
45825
45826     USES_CONTROLS=1
45827 fi
45828
45829 if test "$wxUSE_REARRANGECTRL" = "yes"; then
45830     cat >>confdefs.h <<\_ACEOF
45831 #define wxUSE_REARRANGECTRL 1
45832 _ACEOF
45833
45834 fi
45835
45836 if test "$wxUSE_SASH" = "yes"; then
45837     cat >>confdefs.h <<\_ACEOF
45838 #define wxUSE_SASH 1
45839 _ACEOF
45840
45841     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45842 fi
45843
45844 if test "$wxUSE_SCROLLBAR" = "yes"; then
45845     cat >>confdefs.h <<\_ACEOF
45846 #define wxUSE_SCROLLBAR 1
45847 _ACEOF
45848
45849     USES_CONTROLS=1
45850     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
45851 fi
45852
45853 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45854     cat >>confdefs.h <<\_ACEOF
45855 #define wxUSE_SEARCHCTRL 1
45856 _ACEOF
45857
45858     USES_CONTROLS=1
45859 fi
45860
45861 if test "$wxUSE_SLIDER" = "yes"; then
45862     cat >>confdefs.h <<\_ACEOF
45863 #define wxUSE_SLIDER 1
45864 _ACEOF
45865
45866     USES_CONTROLS=1
45867 fi
45868
45869 if test "$wxUSE_SPINBTN" = "yes"; then
45870     cat >>confdefs.h <<\_ACEOF
45871 #define wxUSE_SPINBTN 1
45872 _ACEOF
45873
45874     USES_CONTROLS=1
45875 fi
45876
45877 if test "$wxUSE_SPINCTRL" = "yes"; then
45878     cat >>confdefs.h <<\_ACEOF
45879 #define wxUSE_SPINCTRL 1
45880 _ACEOF
45881
45882     USES_CONTROLS=1
45883 fi
45884
45885 if test "$wxUSE_SPLITTER" = "yes"; then
45886     cat >>confdefs.h <<\_ACEOF
45887 #define wxUSE_SPLITTER 1
45888 _ACEOF
45889
45890     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45891 fi
45892
45893 if test "$wxUSE_STATBMP" = "yes"; then
45894     cat >>confdefs.h <<\_ACEOF
45895 #define wxUSE_STATBMP 1
45896 _ACEOF
45897
45898     USES_CONTROLS=1
45899 fi
45900
45901 if test "$wxUSE_STATBOX" = "yes"; then
45902     cat >>confdefs.h <<\_ACEOF
45903 #define wxUSE_STATBOX 1
45904 _ACEOF
45905
45906     USES_CONTROLS=1
45907 fi
45908
45909 if test "$wxUSE_STATTEXT" = "yes"; then
45910     cat >>confdefs.h <<\_ACEOF
45911 #define wxUSE_STATTEXT 1
45912 _ACEOF
45913
45914     USES_CONTROLS=1
45915 fi
45916
45917 if test "$wxUSE_STATLINE" = "yes"; then
45918     cat >>confdefs.h <<\_ACEOF
45919 #define wxUSE_STATLINE 1
45920 _ACEOF
45921
45922     USES_CONTROLS=1
45923 fi
45924
45925 if test "$wxUSE_STATUSBAR" = "yes"; then
45926         cat >>confdefs.h <<\_ACEOF
45927 #define wxUSE_NATIVE_STATUSBAR 1
45928 _ACEOF
45929
45930     cat >>confdefs.h <<\_ACEOF
45931 #define wxUSE_STATUSBAR 1
45932 _ACEOF
45933
45934     USES_CONTROLS=1
45935
45936     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45937 fi
45938
45939 if test "$wxUSE_TEXTCTRL" = "yes"; then
45940     cat >>confdefs.h <<\_ACEOF
45941 #define wxUSE_TEXTCTRL 1
45942 _ACEOF
45943
45944     USES_CONTROLS=1
45945     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45946
45947             cat >>confdefs.h <<\_ACEOF
45948 #define wxUSE_RICHEDIT 1
45949 _ACEOF
45950
45951     cat >>confdefs.h <<\_ACEOF
45952 #define wxUSE_RICHEDIT2 1
45953 _ACEOF
45954
45955 fi
45956
45957 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45958     if test "$wxUSE_COCOA" = 1 ; then
45959         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45960 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45961         wxUSE_TOGGLEBTN=no
45962     fi
45963
45964     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45965         cat >>confdefs.h <<\_ACEOF
45966 #define wxUSE_TOGGLEBTN 1
45967 _ACEOF
45968
45969         USES_CONTROLS=1
45970     fi
45971 fi
45972
45973 if test "$wxUSE_TOOLBAR" = "yes"; then
45974     cat >>confdefs.h <<\_ACEOF
45975 #define wxUSE_TOOLBAR 1
45976 _ACEOF
45977
45978     USES_CONTROLS=1
45979
45980     if test "$wxUSE_UNIVERSAL" = "yes"; then
45981         wxUSE_TOOLBAR_NATIVE="no"
45982     else
45983         wxUSE_TOOLBAR_NATIVE="yes"
45984         cat >>confdefs.h <<\_ACEOF
45985 #define wxUSE_TOOLBAR_NATIVE 1
45986 _ACEOF
45987
45988     fi
45989
45990     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45991 fi
45992
45993 if test "$wxUSE_TOOLTIPS" = "yes"; then
45994     if test "$wxUSE_MOTIF" = 1; then
45995         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45996 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45997     else
45998         if test "$wxUSE_UNIVERSAL" = "yes"; then
45999             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46000 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46001         else
46002             cat >>confdefs.h <<\_ACEOF
46003 #define wxUSE_TOOLTIPS 1
46004 _ACEOF
46005
46006         fi
46007     fi
46008 fi
46009
46010 if test "$wxUSE_TREEBOOK" = "yes"; then
46011     cat >>confdefs.h <<\_ACEOF
46012 #define wxUSE_TREEBOOK 1
46013 _ACEOF
46014
46015     USES_CONTROLS=1
46016 fi
46017
46018 if test "$wxUSE_TOOLBOOK" = "yes"; then
46019     cat >>confdefs.h <<\_ACEOF
46020 #define wxUSE_TOOLBOOK 1
46021 _ACEOF
46022
46023     USES_CONTROLS=1
46024 fi
46025
46026 if test "$wxUSE_TREECTRL" = "yes"; then
46027     if test "$wxUSE_IMAGLIST" = "yes"; then
46028         cat >>confdefs.h <<\_ACEOF
46029 #define wxUSE_TREECTRL 1
46030 _ACEOF
46031
46032         USES_CONTROLS=1
46033         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46034     else
46035         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46036 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46037     fi
46038 fi
46039
46040 if test "$wxUSE_POPUPWIN" = "yes"; then
46041     if test "$wxUSE_COCOA" = 1 ; then
46042         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46043 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46044     else
46045         if test "$wxUSE_PM" = 1; then
46046             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46047 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46048         else
46049             cat >>confdefs.h <<\_ACEOF
46050 #define wxUSE_POPUPWIN 1
46051 _ACEOF
46052
46053             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46054
46055             USES_CONTROLS=1
46056         fi
46057     fi
46058 fi
46059
46060 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46061     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46062         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46063 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46064     else
46065         cat >>confdefs.h <<\_ACEOF
46066 #define wxUSE_DIALUP_MANAGER 1
46067 _ACEOF
46068
46069         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46070     fi
46071 fi
46072
46073 if test "$wxUSE_TIPWINDOW" = "yes"; then
46074     if test "$wxUSE_PM" = 1; then
46075         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46076 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46077     else
46078         cat >>confdefs.h <<\_ACEOF
46079 #define wxUSE_TIPWINDOW 1
46080 _ACEOF
46081
46082     fi
46083 fi
46084
46085 if test "$USES_CONTROLS" = 1; then
46086     cat >>confdefs.h <<\_ACEOF
46087 #define wxUSE_CONTROLS 1
46088 _ACEOF
46089
46090 fi
46091
46092
46093 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46094     cat >>confdefs.h <<\_ACEOF
46095 #define wxUSE_ACCESSIBILITY 1
46096 _ACEOF
46097
46098     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46099 fi
46100
46101 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46102     cat >>confdefs.h <<\_ACEOF
46103 #define wxUSE_DRAGIMAGE 1
46104 _ACEOF
46105
46106     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46107 fi
46108
46109 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46110     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46111         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46112 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46113     else
46114         cat >>confdefs.h <<\_ACEOF
46115 #define wxUSE_EXCEPTIONS 1
46116 _ACEOF
46117
46118         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46119     fi
46120 fi
46121
46122 USE_HTML=0
46123 if test "$wxUSE_HTML" = "yes"; then
46124     cat >>confdefs.h <<\_ACEOF
46125 #define wxUSE_HTML 1
46126 _ACEOF
46127
46128     USE_HTML=1
46129     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46130 fi
46131 if test "$wxUSE_WEBKIT" = "yes"; then
46132     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46133         old_CPPFLAGS="$CPPFLAGS"
46134         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46135         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46136 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46137 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46138   echo $ECHO_N "(cached) $ECHO_C" >&6
46139 else
46140   cat >conftest.$ac_ext <<_ACEOF
46141 /* confdefs.h.  */
46142 _ACEOF
46143 cat confdefs.h >>conftest.$ac_ext
46144 cat >>conftest.$ac_ext <<_ACEOF
46145 /* end confdefs.h.  */
46146
46147                            #include <Carbon/Carbon.h>
46148                            #include <WebKit/WebKit.h>
46149
46150
46151 #include <WebKit/HIWebView.h>
46152 _ACEOF
46153 rm -f conftest.$ac_objext
46154 if { (ac_try="$ac_compile"
46155 case "(($ac_try" in
46156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46157   *) ac_try_echo=$ac_try;;
46158 esac
46159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46160   (eval "$ac_compile") 2>conftest.er1
46161   ac_status=$?
46162   grep -v '^ *+' conftest.er1 >conftest.err
46163   rm -f conftest.er1
46164   cat conftest.err >&5
46165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46166   (exit $ac_status); } && {
46167          test -z "$ac_c_werror_flag" ||
46168          test ! -s conftest.err
46169        } && test -s conftest.$ac_objext; then
46170   ac_cv_header_WebKit_HIWebView_h=yes
46171 else
46172   echo "$as_me: failed program was:" >&5
46173 sed 's/^/| /' conftest.$ac_ext >&5
46174
46175         ac_cv_header_WebKit_HIWebView_h=no
46176 fi
46177
46178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46179 fi
46180 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46181 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46182 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46183
46184                            cat >>confdefs.h <<\_ACEOF
46185 #define wxUSE_WEBKIT 1
46186 _ACEOF
46187
46188                            WEBKIT_LINK="-framework WebKit"
46189
46190 else
46191
46192                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46193 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46194                            wxUSE_WEBKIT=no
46195
46196 fi
46197
46198
46199         CPPFLAGS="$old_CPPFLAGS"
46200     elif test "$wxUSE_COCOA" = 1; then
46201         cat >>confdefs.h <<\_ACEOF
46202 #define wxUSE_WEBKIT 1
46203 _ACEOF
46204
46205     else
46206         wxUSE_WEBKIT=no
46207     fi
46208     if test "$wxUSE_WEBKIT" = "yes"; then
46209         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46210     fi
46211 fi
46212
46213 USE_XRC=0
46214 if test "$wxUSE_XRC" = "yes"; then
46215     if test "$wxUSE_XML" != "yes"; then
46216         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46217 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46218         wxUSE_XRC=no
46219     else
46220         cat >>confdefs.h <<\_ACEOF
46221 #define wxUSE_XRC 1
46222 _ACEOF
46223
46224         USE_XRC=1
46225         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46226     fi
46227 fi
46228
46229 USE_AUI=0
46230 if test "$wxUSE_AUI" = "yes"; then
46231    cat >>confdefs.h <<\_ACEOF
46232 #define wxUSE_AUI 1
46233 _ACEOF
46234
46235    USE_AUI=1
46236    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46237 fi
46238
46239 USE_PROPGRID=0
46240 if test "$wxUSE_PROPGRID" = "yes"; then
46241    cat >>confdefs.h <<\_ACEOF
46242 #define wxUSE_PROPGRID 1
46243 _ACEOF
46244
46245    USE_PROPGRID=1
46246    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46247 fi
46248
46249 USE_STC=0
46250 if test "$wxUSE_STC" = "yes"; then
46251    cat >>confdefs.h <<\_ACEOF
46252 #define wxUSE_STC 1
46253 _ACEOF
46254
46255    USE_STC=1
46256    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46257
46258       # Extract the first word of "python", so it can be a program name with args.
46259 set dummy python; ac_word=$2
46260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46262 if test "${ac_cv_path_PYTHON+set}" = set; then
46263   echo $ECHO_N "(cached) $ECHO_C" >&6
46264 else
46265   case $PYTHON in
46266   [\\/]* | ?:[\\/]*)
46267   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
46268   ;;
46269   *)
46270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46271 for as_dir in $PATH
46272 do
46273   IFS=$as_save_IFS
46274   test -z "$as_dir" && as_dir=.
46275   for ac_exec_ext in '' $ac_executable_extensions; do
46276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46277     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
46278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46279     break 2
46280   fi
46281 done
46282 done
46283 IFS=$as_save_IFS
46284
46285   ;;
46286 esac
46287 fi
46288 PYTHON=$ac_cv_path_PYTHON
46289 if test -n "$PYTHON"; then
46290   { echo "$as_me:$LINENO: result: $PYTHON" >&5
46291 echo "${ECHO_T}$PYTHON" >&6; }
46292 else
46293   { echo "$as_me:$LINENO: result: no" >&5
46294 echo "${ECHO_T}no" >&6; }
46295 fi
46296
46297
46298    if test "x$PYTHON" = "x"; then
46299      COND_PYTHON="#"
46300    fi
46301
46302 fi
46303
46304 if test "$wxUSE_MENUS" = "yes"; then
46305     cat >>confdefs.h <<\_ACEOF
46306 #define wxUSE_MENUS 1
46307 _ACEOF
46308
46309     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46310 fi
46311
46312 if test "$wxUSE_METAFILE" = "yes"; then
46313     cat >>confdefs.h <<\_ACEOF
46314 #define wxUSE_METAFILE 1
46315 _ACEOF
46316
46317 fi
46318
46319 if test "$wxUSE_MIMETYPE" = "yes"; then
46320     cat >>confdefs.h <<\_ACEOF
46321 #define wxUSE_MIMETYPE 1
46322 _ACEOF
46323
46324 fi
46325
46326 if test "$wxUSE_MINIFRAME" = "yes"; then
46327     cat >>confdefs.h <<\_ACEOF
46328 #define wxUSE_MINIFRAME 1
46329 _ACEOF
46330
46331 fi
46332
46333 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46334     cat >>confdefs.h <<\_ACEOF
46335 #define wxUSE_SYSTEM_OPTIONS 1
46336 _ACEOF
46337
46338 fi
46339
46340 if test "$wxUSE_TASKBARICON" = "yes"; then
46341     cat >>confdefs.h <<\_ACEOF
46342 #define wxUSE_TASKBARICON 1
46343 _ACEOF
46344
46345     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46346 fi
46347
46348
46349 if test "$wxUSE_VALIDATORS" = "yes"; then
46350     cat >>confdefs.h <<\_ACEOF
46351 #define wxUSE_VALIDATORS 1
46352 _ACEOF
46353
46354     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46355 fi
46356
46357 if test "$wxUSE_PALETTE" = "yes" ; then
46358     if test "$wxUSE_DFB" = 1; then
46359         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46360 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46361         wxUSE_PALETTE=no
46362     else
46363         cat >>confdefs.h <<\_ACEOF
46364 #define wxUSE_PALETTE 1
46365 _ACEOF
46366
46367     fi
46368 fi
46369
46370 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46371     LIBS=" -lunicows $LIBS"
46372 fi
46373
46374 USE_RICHTEXT=0
46375 if test "$wxUSE_RICHTEXT" = "yes"; then
46376     cat >>confdefs.h <<\_ACEOF
46377 #define wxUSE_RICHTEXT 1
46378 _ACEOF
46379
46380     USE_RICHTEXT=1
46381     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46382 fi
46383
46384
46385 if test "$wxUSE_IMAGE" = "yes" ; then
46386     cat >>confdefs.h <<\_ACEOF
46387 #define wxUSE_IMAGE 1
46388 _ACEOF
46389
46390
46391     if test "$wxUSE_GIF" = "yes" ; then
46392       cat >>confdefs.h <<\_ACEOF
46393 #define wxUSE_GIF 1
46394 _ACEOF
46395
46396     fi
46397
46398     if test "$wxUSE_PCX" = "yes" ; then
46399       cat >>confdefs.h <<\_ACEOF
46400 #define wxUSE_PCX 1
46401 _ACEOF
46402
46403     fi
46404
46405     if test "$wxUSE_TGA" = "yes" ; then
46406       cat >>confdefs.h <<\_ACEOF
46407 #define wxUSE_TGA 1
46408 _ACEOF
46409
46410     fi
46411
46412     if test "$wxUSE_IFF" = "yes" ; then
46413       cat >>confdefs.h <<\_ACEOF
46414 #define wxUSE_IFF 1
46415 _ACEOF
46416
46417     fi
46418
46419     if test "$wxUSE_PNM" = "yes" ; then
46420       cat >>confdefs.h <<\_ACEOF
46421 #define wxUSE_PNM 1
46422 _ACEOF
46423
46424     fi
46425
46426     if test "$wxUSE_XPM" = "yes" ; then
46427       cat >>confdefs.h <<\_ACEOF
46428 #define wxUSE_XPM 1
46429 _ACEOF
46430
46431     fi
46432
46433     if test "$wxUSE_ICO_CUR" = "yes" ; then
46434       cat >>confdefs.h <<\_ACEOF
46435 #define wxUSE_ICO_CUR 1
46436 _ACEOF
46437
46438     fi
46439 fi
46440
46441
46442 if test "$wxUSE_ABOUTDLG" = "yes"; then
46443     cat >>confdefs.h <<\_ACEOF
46444 #define wxUSE_ABOUTDLG 1
46445 _ACEOF
46446
46447 fi
46448
46449 if test "$wxUSE_CHOICEDLG" = "yes"; then
46450     cat >>confdefs.h <<\_ACEOF
46451 #define wxUSE_CHOICEDLG 1
46452 _ACEOF
46453
46454 fi
46455
46456 if test "$wxUSE_COLOURDLG" = "yes"; then
46457     cat >>confdefs.h <<\_ACEOF
46458 #define wxUSE_COLOURDLG 1
46459 _ACEOF
46460
46461 fi
46462
46463 if test "$wxUSE_FILEDLG" = "yes"; then
46464     cat >>confdefs.h <<\_ACEOF
46465 #define wxUSE_FILEDLG 1
46466 _ACEOF
46467
46468 fi
46469
46470 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46471     cat >>confdefs.h <<\_ACEOF
46472 #define wxUSE_FINDREPLDLG 1
46473 _ACEOF
46474
46475 fi
46476
46477 if test "$wxUSE_FONTDLG" = "yes"; then
46478     cat >>confdefs.h <<\_ACEOF
46479 #define wxUSE_FONTDLG 1
46480 _ACEOF
46481
46482 fi
46483
46484 if test "$wxUSE_DIRDLG" = "yes"; then
46485     if test "$wxUSE_TREECTRL" != "yes"; then
46486         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46487 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46488     else
46489         cat >>confdefs.h <<\_ACEOF
46490 #define wxUSE_DIRDLG 1
46491 _ACEOF
46492
46493     fi
46494 fi
46495
46496 if test "$wxUSE_MSGDLG" = "yes"; then
46497     cat >>confdefs.h <<\_ACEOF
46498 #define wxUSE_MSGDLG 1
46499 _ACEOF
46500
46501 fi
46502
46503 if test "$wxUSE_NUMBERDLG" = "yes"; then
46504     cat >>confdefs.h <<\_ACEOF
46505 #define wxUSE_NUMBERDLG 1
46506 _ACEOF
46507
46508 fi
46509
46510 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46511     cat >>confdefs.h <<\_ACEOF
46512 #define wxUSE_PROGRESSDLG 1
46513 _ACEOF
46514
46515 fi
46516
46517 if test "$wxUSE_SPLASH" = "yes"; then
46518     cat >>confdefs.h <<\_ACEOF
46519 #define wxUSE_SPLASH 1
46520 _ACEOF
46521
46522     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46523 fi
46524
46525 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46526     cat >>confdefs.h <<\_ACEOF
46527 #define wxUSE_STARTUP_TIPS 1
46528 _ACEOF
46529
46530 fi
46531
46532 if test "$wxUSE_TEXTDLG" = "yes"; then
46533     cat >>confdefs.h <<\_ACEOF
46534 #define wxUSE_TEXTDLG 1
46535 _ACEOF
46536
46537 fi
46538
46539 if test "$wxUSE_WIZARDDLG" = "yes"; then
46540     cat >>confdefs.h <<\_ACEOF
46541 #define wxUSE_WIZARDDLG 1
46542 _ACEOF
46543
46544     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46545 fi
46546
46547
46548 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46549     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46550         cat >>confdefs.h <<\_ACEOF
46551 #define wxUSE_OWNER_DRAWN 1
46552 _ACEOF
46553
46554     fi
46555 fi
46556
46557
46558 if test "$wxUSE_MSW" = 1 ; then
46559
46560     if test "$wxUSE_DC_CACHEING" = "yes"; then
46561         cat >>confdefs.h <<\_ACEOF
46562 #define wxUSE_DC_CACHEING 1
46563 _ACEOF
46564
46565     fi
46566
46567     if test "$wxUSE_DIB" = "yes"; then
46568         cat >>confdefs.h <<\_ACEOF
46569 #define wxUSE_WXDIB 1
46570 _ACEOF
46571
46572     fi
46573
46574     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46575         cat >>confdefs.h <<\_ACEOF
46576 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46577 _ACEOF
46578
46579     fi
46580
46581     if test "$wxUSE_UXTHEME" = "yes"; then
46582         cat >>confdefs.h <<\_ACEOF
46583 #define wxUSE_UXTHEME 1
46584 _ACEOF
46585
46586     fi
46587
46588 fi
46589
46590 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46591     cat >>confdefs.h <<\_ACEOF
46592 #define wxUSE_AUTOID_MANAGEMENT 1
46593 _ACEOF
46594
46595 fi
46596
46597 if test "$USE_WIN32" = 1 ; then
46598     if test "$wxUSE_INICONF" = "yes"; then
46599         cat >>confdefs.h <<\_ACEOF
46600 #define wxUSE_INICONF 1
46601 _ACEOF
46602
46603     fi
46604
46605     if test "$wxUSE_REGKEY" = "yes"; then
46606         cat >>confdefs.h <<\_ACEOF
46607 #define wxUSE_REGKEY 1
46608 _ACEOF
46609
46610     fi
46611 fi
46612
46613
46614 if test "$wxUSE_MAC" = 1; then
46615         wxUSE_GRAPHICS_CONTEXT="yes"
46616 fi
46617
46618 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46619    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46620       cat >>confdefs.h <<\_ACEOF
46621 #define wxUSE_GRAPHICS_CONTEXT 1
46622 _ACEOF
46623
46624    elif test "$wxUSE_GTK" != 1; then
46625             cat >>confdefs.h <<\_ACEOF
46626 #define wxUSE_GRAPHICS_CONTEXT 1
46627 _ACEOF
46628
46629    else
46630
46631 pkg_failed=no
46632 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46633 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46634
46635 if test -n "$PKG_CONFIG"; then
46636     if test -n "$CAIRO_CFLAGS"; then
46637         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46638     else
46639         if test -n "$PKG_CONFIG" && \
46640     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46641   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46642   ac_status=$?
46643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46644   (exit $ac_status); }; then
46645   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46646 else
46647   pkg_failed=yes
46648 fi
46649     fi
46650 else
46651         pkg_failed=untried
46652 fi
46653 if test -n "$PKG_CONFIG"; then
46654     if test -n "$CAIRO_LIBS"; then
46655         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46656     else
46657         if test -n "$PKG_CONFIG" && \
46658     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46659   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46660   ac_status=$?
46661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46662   (exit $ac_status); }; then
46663   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46664 else
46665   pkg_failed=yes
46666 fi
46667     fi
46668 else
46669         pkg_failed=untried
46670 fi
46671
46672
46673
46674 if test $pkg_failed = yes; then
46675
46676 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46677         _pkg_short_errors_supported=yes
46678 else
46679         _pkg_short_errors_supported=no
46680 fi
46681         if test $_pkg_short_errors_supported = yes; then
46682                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46683         else
46684                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46685         fi
46686         # Put the nasty error message in config.log where it belongs
46687         echo "$CAIRO_PKG_ERRORS" >&5
46688
46689         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46690 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46691
46692 elif test $pkg_failed = untried; then
46693         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46694 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46695
46696 else
46697         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46698         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46699         { echo "$as_me:$LINENO: result: yes" >&5
46700 echo "${ECHO_T}yes" >&6; }
46701         cat >>confdefs.h <<\_ACEOF
46702 #define wxUSE_GRAPHICS_CONTEXT 1
46703 _ACEOF
46704
46705 fi
46706    fi
46707 fi
46708
46709
46710 USE_MEDIA=0
46711
46712 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
46713     USE_MEDIA=1
46714
46715                 if test "$wxUSE_GTK" = 1; then
46716         wxUSE_GSTREAMER="no"
46717
46718                                                                 GST_VERSION_MAJOR=0
46719         GST_VERSION_MINOR=10
46720         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46721
46722         if test "$wxUSE_GSTREAMER8" = "no"; then
46723
46724 pkg_failed=no
46725 { echo "$as_me:$LINENO: checking for GST" >&5
46726 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46727
46728 if test -n "$PKG_CONFIG"; then
46729     if test -n "$GST_CFLAGS"; then
46730         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46731     else
46732         if test -n "$PKG_CONFIG" && \
46733     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46734   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46735   ac_status=$?
46736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46737   (exit $ac_status); }; then
46738   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46739 else
46740   pkg_failed=yes
46741 fi
46742     fi
46743 else
46744         pkg_failed=untried
46745 fi
46746 if test -n "$PKG_CONFIG"; then
46747     if test -n "$GST_LIBS"; then
46748         pkg_cv_GST_LIBS="$GST_LIBS"
46749     else
46750         if test -n "$PKG_CONFIG" && \
46751     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46752   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46753   ac_status=$?
46754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46755   (exit $ac_status); }; then
46756   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46757 else
46758   pkg_failed=yes
46759 fi
46760     fi
46761 else
46762         pkg_failed=untried
46763 fi
46764
46765
46766
46767 if test $pkg_failed = yes; then
46768
46769 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46770         _pkg_short_errors_supported=yes
46771 else
46772         _pkg_short_errors_supported=no
46773 fi
46774         if test $_pkg_short_errors_supported = yes; then
46775                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46776         else
46777                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46778         fi
46779         # Put the nasty error message in config.log where it belongs
46780         echo "$GST_PKG_ERRORS" >&5
46781
46782
46783                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46784 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46785                     GST_VERSION_MINOR=8
46786
46787
46788 elif test $pkg_failed = untried; then
46789
46790                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46791 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46792                     GST_VERSION_MINOR=8
46793
46794
46795 else
46796         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46797         GST_LIBS=$pkg_cv_GST_LIBS
46798         { echo "$as_me:$LINENO: result: yes" >&5
46799 echo "${ECHO_T}yes" >&6; }
46800
46801                     wxUSE_GSTREAMER="yes"
46802                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46803
46804 fi
46805         else
46806                         GST_VERSION_MINOR=8
46807         fi
46808
46809         if test $GST_VERSION_MINOR = "8"; then
46810             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46811
46812 pkg_failed=no
46813 { echo "$as_me:$LINENO: checking for GST" >&5
46814 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46815
46816 if test -n "$PKG_CONFIG"; then
46817     if test -n "$GST_CFLAGS"; then
46818         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46819     else
46820         if test -n "$PKG_CONFIG" && \
46821     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46822   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46823   ac_status=$?
46824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46825   (exit $ac_status); }; then
46826   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46827 else
46828   pkg_failed=yes
46829 fi
46830     fi
46831 else
46832         pkg_failed=untried
46833 fi
46834 if test -n "$PKG_CONFIG"; then
46835     if test -n "$GST_LIBS"; then
46836         pkg_cv_GST_LIBS="$GST_LIBS"
46837     else
46838         if test -n "$PKG_CONFIG" && \
46839     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46840   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46841   ac_status=$?
46842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46843   (exit $ac_status); }; then
46844   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46845 else
46846   pkg_failed=yes
46847 fi
46848     fi
46849 else
46850         pkg_failed=untried
46851 fi
46852
46853
46854
46855 if test $pkg_failed = yes; then
46856
46857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46858         _pkg_short_errors_supported=yes
46859 else
46860         _pkg_short_errors_supported=no
46861 fi
46862         if test $_pkg_short_errors_supported = yes; then
46863                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46864         else
46865                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46866         fi
46867         # Put the nasty error message in config.log where it belongs
46868         echo "$GST_PKG_ERRORS" >&5
46869
46870
46871                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46872 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46873
46874 elif test $pkg_failed = untried; then
46875
46876                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46877 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46878
46879 else
46880         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46881         GST_LIBS=$pkg_cv_GST_LIBS
46882         { echo "$as_me:$LINENO: result: yes" >&5
46883 echo "${ECHO_T}yes" >&6; }
46884         wxUSE_GSTREAMER="yes"
46885 fi
46886         fi
46887
46888
46889         if test "$wxUSE_GSTREAMER" = "yes"; then
46890             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46891             EXTRALIBS_MEDIA="$GST_LIBS"
46892
46893             cat >>confdefs.h <<\_ACEOF
46894 #define wxUSE_GSTREAMER 1
46895 _ACEOF
46896
46897         else
46898             USE_MEDIA=0
46899         fi
46900     fi
46901
46902     if test $USE_MEDIA = 1; then
46903         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46904         cat >>confdefs.h <<\_ACEOF
46905 #define wxUSE_MEDIACTRL 1
46906 _ACEOF
46907
46908     else
46909         if test "$wxUSE_MEDIACTRL" = "yes"; then
46910             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
46911 echo "$as_me: error: GStreamer not available" >&2;}
46912    { (exit 1); exit 1; }; }
46913         else
46914                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
46915 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
46916         fi
46917     fi
46918 fi
46919
46920
46921 if test "$cross_compiling" != "no"; then
46922         OSINFO="\"$host\""
46923 else
46924         OSINFO=`uname -s -r -m`
46925     OSINFO="\"$OSINFO\""
46926 fi
46927
46928 cat >>confdefs.h <<_ACEOF
46929 #define WXWIN_OS_DESCRIPTION $OSINFO
46930 _ACEOF
46931
46932
46933
46934 if test "x$prefix" != "xNONE"; then
46935     wxPREFIX=$prefix
46936 else
46937     wxPREFIX=$ac_default_prefix
46938 fi
46939
46940 cat >>confdefs.h <<_ACEOF
46941 #define wxINSTALL_PREFIX "$wxPREFIX"
46942 _ACEOF
46943
46944
46945
46946
46947 STD_BASE_LIBS="base"
46948 STD_GUI_LIBS=""
46949 BUILT_WX_LIBS="base"
46950 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46951
46952 if test "$wxUSE_SOCKETS" = "yes" ; then
46953     STD_BASE_LIBS="net $STD_BASE_LIBS"
46954     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46955 fi
46956 if test "$wxUSE_XML" = "yes" ; then
46957     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46958     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46959 fi
46960
46961 if test "$wxUSE_GUI" = "yes"; then
46962     STD_GUI_LIBS="adv core"
46963     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46964
46965     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46966         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46967         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46968     fi
46969     if test "$wxUSE_HTML" = "yes" ; then
46970         STD_GUI_LIBS="html $STD_GUI_LIBS"
46971         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46972     fi
46973     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46974         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46975     fi
46976     if test "$wxUSE_OPENGL" = "yes" ; then
46977         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46978     fi
46979     if test "$wxUSE_AUI" = "yes" ; then
46980         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46981     fi
46982     if test "$wxUSE_PROPGRID" = "yes" ; then
46983         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
46984     fi
46985     if test "$wxUSE_RICHTEXT" = "yes" ; then
46986         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
46987     fi
46988     if test "$wxUSE_STC" = "yes" ; then
46989         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46990     fi
46991     if test "$wxUSE_XRC" = "yes" ; then
46992         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46993         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46994     fi
46995 fi
46996
46997
46998
46999
47000
47001
47002
47003
47004 if test "$wxUSE_MAC" = 1 ; then
47005     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
47006         if test "$USE_DARWIN" = 1; then
47007             LDFLAGS="$LDFLAGS -framework QuickTime"
47008         fi
47009     fi
47010     if test "$USE_DARWIN" = 1; then
47011         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
47012     fi
47013 fi
47014 if test "$wxUSE_COCOA" = 1 ; then
47015     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47016     if test "$wxUSE_MEDIACTRL" = "yes"; then
47017         LDFLAGS="$LDFLAGS -framework QuickTime"
47018     fi
47019 fi
47020 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47021     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47022 fi
47023
47024 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47025
47026 if test "$wxUSE_GUI" = "yes"; then
47027
47028
47029         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47030                      erase event exec font image minimal render \
47031                      shaped svg taborder vscroll widgets wrapsizer"
47032
47033     if test "$wxUSE_MONOLITHIC" != "yes"; then
47034         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47035     fi
47036     if test "$TOOLKIT" = "MSW"; then
47037         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47038         if test "$wxUSE_UNIVERSAL" != "yes"; then
47039             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47040         fi
47041     fi
47042     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47043         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47044     fi
47045 else
47046     SAMPLES_SUBDIRS="console"
47047     if test "$wxUSE_SOCKETS" = "yes" ; then
47048         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47049     fi
47050     if test "$wxUSE_IPC" = "yes" ; then
47051         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47052     fi
47053 fi
47054
47055
47056 if test "x$INTELCC" = "xyes" ; then
47057                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
47058 elif test "$GCC" = yes ; then
47059     CWARNINGS="-Wall -Wundef"
47060 fi
47061
47062 if test "x$INTELCXX" = "xyes" ; then
47063                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
47064 elif test "$GXX" = yes ; then
47065     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47066     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
47067 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
47068 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
47069   echo $ECHO_N "(cached) $ECHO_C" >&6
47070 else
47071   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
47072
47073  ac_ext=cpp
47074 ac_cpp='$CXXCPP $CPPFLAGS'
47075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47078
47079  ac_save_CXXFLAGS="$CXXFLAGS"
47080 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
47081 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
47082    cat >conftest.$ac_ext <<_ACEOF
47083 /* confdefs.h.  */
47084 _ACEOF
47085 cat confdefs.h >>conftest.$ac_ext
47086 cat >>conftest.$ac_ext <<_ACEOF
47087 /* end confdefs.h.  */
47088
47089 int
47090 main ()
47091 {
47092 return 0;
47093   ;
47094   return 0;
47095 }
47096 _ACEOF
47097 rm -f conftest.$ac_objext
47098 if { (ac_try="$ac_compile"
47099 case "(($ac_try" in
47100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47101   *) ac_try_echo=$ac_try;;
47102 esac
47103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47104   (eval "$ac_compile") 2>conftest.er1
47105   ac_status=$?
47106   grep -v '^ *+' conftest.er1 >conftest.err
47107   rm -f conftest.er1
47108   cat conftest.err >&5
47109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47110   (exit $ac_status); } && {
47111          test -z "$ac_cxx_werror_flag" ||
47112          test ! -s conftest.err
47113        } && test -s conftest.$ac_objext; then
47114   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
47115 else
47116   echo "$as_me: failed program was:" >&5
47117 sed 's/^/| /' conftest.$ac_ext >&5
47118
47119
47120 fi
47121
47122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47123 done
47124  CXXFLAGS="$ac_save_CXXFLAGS"
47125  ac_ext=c
47126 ac_cpp='$CPP $CPPFLAGS'
47127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47130
47131
47132 fi
47133 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
47134 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
47135 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
47136      .ok|.ok,*)  ;;
47137    .|.no|.no,*)  ;;
47138    *)
47139    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
47140    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
47141   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
47142   ac_status=$?
47143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47144   (exit $ac_status); }
47145    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
47146   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
47147   ac_status=$?
47148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47149   (exit $ac_status); }
47150                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
47151    fi
47152  ;;
47153 esac
47154
47155
47156                     if test "$wxUSE_MAC" = 1 ; then
47157         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
47158     fi
47159 fi
47160
47161
47162 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47163 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47164
47165
47166 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47167  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47168  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47169  $CPPFLAGS `
47170
47171 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47172 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47173 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47174 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47175 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47176
47177 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47178
47179
47180 if test "x$MWCC" = "xyes"; then
47181
47182             CC="$CC -cwd source -I-"
47183     CXX="$CXX -cwd source -I-"
47184 fi
47185
47186
47187 LIBS=`echo $LIBS`
47188 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47189 EXTRALIBS_XML="$EXPAT_LINK"
47190 EXTRALIBS_HTML="$MSPACK_LINK"
47191 EXTRALIBS_MEDIA="$GST_LIBS"
47192 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47193 if test "$wxUSE_GUI" = "yes"; then
47194     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47195 fi
47196 if test "$wxUSE_OPENGL" = "yes"; then
47197     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47198 fi
47199
47200 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47201
47202 WXCONFIG_LIBS="$LIBS"
47203
47204 if test "$wxUSE_REGEX" = "builtin" ; then
47205     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47206 fi
47207 if test "$wxUSE_EXPAT" = "builtin" ; then
47208     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47209 fi
47210 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47211     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47212 fi
47213 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47214     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47215 fi
47216 if test "$wxUSE_LIBPNG" = "builtin" ; then
47217     wxconfig_3rdparty="png $wxconfig_3rdparty"
47218 fi
47219 if test "$wxUSE_ZLIB" = "builtin" ; then
47220     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47221 fi
47222
47223 for i in $wxconfig_3rdparty ; do
47224     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47225 done
47226
47227
47228 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47229     WXUNIV=1
47230
47231     case "$wxUNIV_THEMES" in
47232         ''|all)
47233             cat >>confdefs.h <<\_ACEOF
47234 #define wxUSE_ALL_THEMES 1
47235 _ACEOF
47236
47237             ;;
47238
47239         *)
47240             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47241                 cat >>confdefs.h <<_ACEOF
47242 #define wxUSE_THEME_$t 1
47243 _ACEOF
47244
47245             done
47246     esac
47247 else
47248     WXUNIV=0
47249 fi
47250
47251
47252
47253
47254
47255
47256
47257
47258 if test $wxUSE_MONOLITHIC = "yes" ; then
47259     MONOLITHIC=1
47260 else
47261     MONOLITHIC=0
47262 fi
47263
47264 if test $wxUSE_PLUGINS = "yes" ; then
47265     USE_PLUGINS=1
47266 else
47267     USE_PLUGINS=0
47268 fi
47269
47270 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47271     USE_QA=1
47272 else
47273     USE_QA=0
47274 fi
47275
47276 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47277     OFFICIAL_BUILD=1
47278 else
47279     OFFICIAL_BUILD=0
47280 fi
47281
47282
47283
47284
47285
47286
47287
47288
47289
47290
47291
47292
47293
47294
47295
47296
47297
47298
47299
47300
47301
47302
47303
47304
47305
47306
47307
47308 TOOLKIT_LOWERCASE=xxx
47309 if test "$TOOLKIT" = "MAC"; then
47310     TOOLKIT_LOWERCASE=osx_carbon
47311 fi
47312 if test "$TOOLKIT" = "OSX_CARBON"; then
47313     TOOLKIT_LOWERCASE=osx_carbon
47314 fi
47315 if test "$TOOLKIT" = "OSX_COCOA"; then
47316     TOOLKIT_LOWERCASE=osx_cocoa
47317 fi
47318 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47319     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47320 fi
47321
47322
47323
47324
47325
47326
47327
47328
47329
47330
47331 case "$TOOLKIT" in
47332     GTK)
47333         TOOLKIT_DESC="GTK+"
47334         if test "$WXGTK2" = 1; then
47335             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47336             if test "$wxUSE_GTKPRINT" = "yes" ; then
47337                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47338             fi
47339             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47340                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47341             fi
47342             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47343                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47344             fi
47345             if test "$wxUSE_LIBHILDON" = "yes"; then
47346                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47347             fi
47348
47349             if test "$TOOLKIT_EXTRA" != ""; then
47350                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47351             fi
47352         fi
47353         ;;
47354
47355     ?*)
47356         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47357         ;;
47358
47359     *)
47360         TOOLKIT_DESC="base only"
47361         ;;
47362 esac
47363
47364 if test "$wxUSE_WINE" = "yes"; then
47365     BAKEFILE_FORCE_PLATFORM=win32
47366 fi
47367
47368 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47369 then
47370     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47371 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47372 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47373   echo $ECHO_N "(cached) $ECHO_C" >&6
47374 else
47375
47376             echo '#include <stdio.h>
47377                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47378
47379             echo '#include "conftest.h"
47380                   int main()
47381                   {
47382                      printf("%ls", test_var);
47383                      return 0;
47384                   }' > conftest.cpp
47385
47386             wx_cv_gcc_pch_bug="pch not supported"
47387
47388             if $CXX conftest.h >/dev/null 2>&1
47389             then
47390                 wx_cv_gcc_pch_bug=
47391
47392                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47393                 then
47394                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47395                         grep awidetest >/dev/null
47396                     then
47397                         wx_cv_gcc_pch_bug=no
47398                     else
47399                         wx_cv_gcc_pch_bug=yes
47400                     fi
47401                 fi
47402             fi
47403
47404             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47405
47406 fi
47407 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47408 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47409
47410     if test "$wx_cv_gcc_pch_bug" = yes; then
47411                         bk_use_pch=no
47412     fi
47413 fi
47414
47415
47416
47417
47418
47419
47420
47421     if test "x$BAKEFILE_HOST" = "x"; then
47422                if test "x${host}" = "x" ; then
47423                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47424 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47425    { (exit 1); exit 1; }; }
47426                fi
47427
47428         BAKEFILE_HOST="${host}"
47429     fi
47430
47431     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47432
47433     if test -n "$ac_tool_prefix"; then
47434   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47438 if test "${ac_cv_prog_RANLIB+set}" = set; then
47439   echo $ECHO_N "(cached) $ECHO_C" >&6
47440 else
47441   if test -n "$RANLIB"; then
47442   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47443 else
47444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47445 for as_dir in $PATH
47446 do
47447   IFS=$as_save_IFS
47448   test -z "$as_dir" && as_dir=.
47449   for ac_exec_ext in '' $ac_executable_extensions; do
47450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47451     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47453     break 2
47454   fi
47455 done
47456 done
47457 IFS=$as_save_IFS
47458
47459 fi
47460 fi
47461 RANLIB=$ac_cv_prog_RANLIB
47462 if test -n "$RANLIB"; then
47463   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47464 echo "${ECHO_T}$RANLIB" >&6; }
47465 else
47466   { echo "$as_me:$LINENO: result: no" >&5
47467 echo "${ECHO_T}no" >&6; }
47468 fi
47469
47470
47471 fi
47472 if test -z "$ac_cv_prog_RANLIB"; then
47473   ac_ct_RANLIB=$RANLIB
47474   # Extract the first word of "ranlib", so it can be a program name with args.
47475 set dummy ranlib; ac_word=$2
47476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47478 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47479   echo $ECHO_N "(cached) $ECHO_C" >&6
47480 else
47481   if test -n "$ac_ct_RANLIB"; then
47482   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47483 else
47484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47485 for as_dir in $PATH
47486 do
47487   IFS=$as_save_IFS
47488   test -z "$as_dir" && as_dir=.
47489   for ac_exec_ext in '' $ac_executable_extensions; do
47490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47491     ac_cv_prog_ac_ct_RANLIB="ranlib"
47492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47493     break 2
47494   fi
47495 done
47496 done
47497 IFS=$as_save_IFS
47498
47499 fi
47500 fi
47501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47502 if test -n "$ac_ct_RANLIB"; then
47503   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47504 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47505 else
47506   { echo "$as_me:$LINENO: result: no" >&5
47507 echo "${ECHO_T}no" >&6; }
47508 fi
47509
47510   if test "x$ac_ct_RANLIB" = x; then
47511     RANLIB=":"
47512   else
47513     case $cross_compiling:$ac_tool_warned in
47514 yes:)
47515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47516 whose name does not start with the host triplet.  If you think this
47517 configuration is useful to you, please write to autoconf@gnu.org." >&5
47518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47519 whose name does not start with the host triplet.  If you think this
47520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47521 ac_tool_warned=yes ;;
47522 esac
47523     RANLIB=$ac_ct_RANLIB
47524   fi
47525 else
47526   RANLIB="$ac_cv_prog_RANLIB"
47527 fi
47528
47529     # Find a good install program.  We prefer a C program (faster),
47530 # so one script is as good as another.  But avoid the broken or
47531 # incompatible versions:
47532 # SysV /etc/install, /usr/sbin/install
47533 # SunOS /usr/etc/install
47534 # IRIX /sbin/install
47535 # AIX /bin/install
47536 # AmigaOS /C/install, which installs bootblocks on floppy discs
47537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47540 # OS/2's system install, which has a completely different semantic
47541 # ./install, which can be erroneously created by make from ./install.sh.
47542 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47543 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47544 if test -z "$INSTALL"; then
47545 if test "${ac_cv_path_install+set}" = set; then
47546   echo $ECHO_N "(cached) $ECHO_C" >&6
47547 else
47548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47549 for as_dir in $PATH
47550 do
47551   IFS=$as_save_IFS
47552   test -z "$as_dir" && as_dir=.
47553   # Account for people who put trailing slashes in PATH elements.
47554 case $as_dir/ in
47555   ./ | .// | /cC/* | \
47556   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47557   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47558   /usr/ucb/* ) ;;
47559   *)
47560     # OSF1 and SCO ODT 3.0 have their own names for install.
47561     # Don't use installbsd from OSF since it installs stuff as root
47562     # by default.
47563     for ac_prog in ginstall scoinst install; do
47564       for ac_exec_ext in '' $ac_executable_extensions; do
47565         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47566           if test $ac_prog = install &&
47567             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47568             # AIX install.  It has an incompatible calling convention.
47569             :
47570           elif test $ac_prog = install &&
47571             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47572             # program-specific install script used by HP pwplus--don't use.
47573             :
47574           else
47575             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47576             break 3
47577           fi
47578         fi
47579       done
47580     done
47581     ;;
47582 esac
47583 done
47584 IFS=$as_save_IFS
47585
47586
47587 fi
47588   if test "${ac_cv_path_install+set}" = set; then
47589     INSTALL=$ac_cv_path_install
47590   else
47591     # As a last resort, use the slow shell script.  Don't cache a
47592     # value for INSTALL within a source directory, because that will
47593     # break other packages using the cache if that directory is
47594     # removed, or if the value is a relative name.
47595     INSTALL=$ac_install_sh
47596   fi
47597 fi
47598 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47599 echo "${ECHO_T}$INSTALL" >&6; }
47600
47601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47602 # It thinks the first close brace ends the variable substitution.
47603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47604
47605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47606
47607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47608
47609     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47610 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47611 LN_S=$as_ln_s
47612 if test "$LN_S" = "ln -s"; then
47613   { echo "$as_me:$LINENO: result: yes" >&5
47614 echo "${ECHO_T}yes" >&6; }
47615 else
47616   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47617 echo "${ECHO_T}no, using $LN_S" >&6; }
47618 fi
47619
47620
47621     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47622 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47623 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47624 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47625   echo $ECHO_N "(cached) $ECHO_C" >&6
47626 else
47627   cat >conftest.make <<\_ACEOF
47628 SHELL = /bin/sh
47629 all:
47630         @echo '@@@%%%=$(MAKE)=@@@%%%'
47631 _ACEOF
47632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47634   *@@@%%%=?*=@@@%%%*)
47635     eval ac_cv_prog_make_${ac_make}_set=yes;;
47636   *)
47637     eval ac_cv_prog_make_${ac_make}_set=no;;
47638 esac
47639 rm -f conftest.make
47640 fi
47641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47642   { echo "$as_me:$LINENO: result: yes" >&5
47643 echo "${ECHO_T}yes" >&6; }
47644   SET_MAKE=
47645 else
47646   { echo "$as_me:$LINENO: result: no" >&5
47647 echo "${ECHO_T}no" >&6; }
47648   SET_MAKE="MAKE=${MAKE-make}"
47649 fi
47650
47651
47652
47653     if test "x$SUNCXX" = "xyes"; then
47654                                 AR=$CXX
47655         AROPTIONS="-xar -o"
47656
47657     elif test "x$SGICC" = "xyes"; then
47658                 AR=$CXX
47659         AROPTIONS="-ar -o"
47660
47661     else
47662         if test -n "$ac_tool_prefix"; then
47663   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47664 set dummy ${ac_tool_prefix}ar; ac_word=$2
47665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47667 if test "${ac_cv_prog_AR+set}" = set; then
47668   echo $ECHO_N "(cached) $ECHO_C" >&6
47669 else
47670   if test -n "$AR"; then
47671   ac_cv_prog_AR="$AR" # Let the user override the test.
47672 else
47673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47674 for as_dir in $PATH
47675 do
47676   IFS=$as_save_IFS
47677   test -z "$as_dir" && as_dir=.
47678   for ac_exec_ext in '' $ac_executable_extensions; do
47679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47680     ac_cv_prog_AR="${ac_tool_prefix}ar"
47681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47682     break 2
47683   fi
47684 done
47685 done
47686 IFS=$as_save_IFS
47687
47688 fi
47689 fi
47690 AR=$ac_cv_prog_AR
47691 if test -n "$AR"; then
47692   { echo "$as_me:$LINENO: result: $AR" >&5
47693 echo "${ECHO_T}$AR" >&6; }
47694 else
47695   { echo "$as_me:$LINENO: result: no" >&5
47696 echo "${ECHO_T}no" >&6; }
47697 fi
47698
47699
47700 fi
47701 if test -z "$ac_cv_prog_AR"; then
47702   ac_ct_AR=$AR
47703   # Extract the first word of "ar", so it can be a program name with args.
47704 set dummy ar; ac_word=$2
47705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47707 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47708   echo $ECHO_N "(cached) $ECHO_C" >&6
47709 else
47710   if test -n "$ac_ct_AR"; then
47711   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47712 else
47713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47714 for as_dir in $PATH
47715 do
47716   IFS=$as_save_IFS
47717   test -z "$as_dir" && as_dir=.
47718   for ac_exec_ext in '' $ac_executable_extensions; do
47719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47720     ac_cv_prog_ac_ct_AR="ar"
47721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47722     break 2
47723   fi
47724 done
47725 done
47726 IFS=$as_save_IFS
47727
47728 fi
47729 fi
47730 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47731 if test -n "$ac_ct_AR"; then
47732   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47733 echo "${ECHO_T}$ac_ct_AR" >&6; }
47734 else
47735   { echo "$as_me:$LINENO: result: no" >&5
47736 echo "${ECHO_T}no" >&6; }
47737 fi
47738
47739   if test "x$ac_ct_AR" = x; then
47740     AR="ar"
47741   else
47742     case $cross_compiling:$ac_tool_warned in
47743 yes:)
47744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47745 whose name does not start with the host triplet.  If you think this
47746 configuration is useful to you, please write to autoconf@gnu.org." >&5
47747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47748 whose name does not start with the host triplet.  If you think this
47749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47750 ac_tool_warned=yes ;;
47751 esac
47752     AR=$ac_ct_AR
47753   fi
47754 else
47755   AR="$ac_cv_prog_AR"
47756 fi
47757
47758         AROPTIONS=rcu
47759     fi
47760
47761
47762     if test -n "$ac_tool_prefix"; then
47763   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47764 set dummy ${ac_tool_prefix}strip; ac_word=$2
47765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47767 if test "${ac_cv_prog_STRIP+set}" = set; then
47768   echo $ECHO_N "(cached) $ECHO_C" >&6
47769 else
47770   if test -n "$STRIP"; then
47771   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47772 else
47773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47774 for as_dir in $PATH
47775 do
47776   IFS=$as_save_IFS
47777   test -z "$as_dir" && as_dir=.
47778   for ac_exec_ext in '' $ac_executable_extensions; do
47779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47780     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47782     break 2
47783   fi
47784 done
47785 done
47786 IFS=$as_save_IFS
47787
47788 fi
47789 fi
47790 STRIP=$ac_cv_prog_STRIP
47791 if test -n "$STRIP"; then
47792   { echo "$as_me:$LINENO: result: $STRIP" >&5
47793 echo "${ECHO_T}$STRIP" >&6; }
47794 else
47795   { echo "$as_me:$LINENO: result: no" >&5
47796 echo "${ECHO_T}no" >&6; }
47797 fi
47798
47799
47800 fi
47801 if test -z "$ac_cv_prog_STRIP"; then
47802   ac_ct_STRIP=$STRIP
47803   # Extract the first word of "strip", so it can be a program name with args.
47804 set dummy strip; ac_word=$2
47805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47807 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47808   echo $ECHO_N "(cached) $ECHO_C" >&6
47809 else
47810   if test -n "$ac_ct_STRIP"; then
47811   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47812 else
47813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47814 for as_dir in $PATH
47815 do
47816   IFS=$as_save_IFS
47817   test -z "$as_dir" && as_dir=.
47818   for ac_exec_ext in '' $ac_executable_extensions; do
47819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47820     ac_cv_prog_ac_ct_STRIP="strip"
47821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47822     break 2
47823   fi
47824 done
47825 done
47826 IFS=$as_save_IFS
47827
47828 fi
47829 fi
47830 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47831 if test -n "$ac_ct_STRIP"; then
47832   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47833 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47834 else
47835   { echo "$as_me:$LINENO: result: no" >&5
47836 echo "${ECHO_T}no" >&6; }
47837 fi
47838
47839   if test "x$ac_ct_STRIP" = x; then
47840     STRIP=":"
47841   else
47842     case $cross_compiling:$ac_tool_warned in
47843 yes:)
47844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47845 whose name does not start with the host triplet.  If you think this
47846 configuration is useful to you, please write to autoconf@gnu.org." >&5
47847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47848 whose name does not start with the host triplet.  If you think this
47849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47850 ac_tool_warned=yes ;;
47851 esac
47852     STRIP=$ac_ct_STRIP
47853   fi
47854 else
47855   STRIP="$ac_cv_prog_STRIP"
47856 fi
47857
47858     if test -n "$ac_tool_prefix"; then
47859   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47860 set dummy ${ac_tool_prefix}nm; ac_word=$2
47861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47863 if test "${ac_cv_prog_NM+set}" = set; then
47864   echo $ECHO_N "(cached) $ECHO_C" >&6
47865 else
47866   if test -n "$NM"; then
47867   ac_cv_prog_NM="$NM" # Let the user override the test.
47868 else
47869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47870 for as_dir in $PATH
47871 do
47872   IFS=$as_save_IFS
47873   test -z "$as_dir" && as_dir=.
47874   for ac_exec_ext in '' $ac_executable_extensions; do
47875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47876     ac_cv_prog_NM="${ac_tool_prefix}nm"
47877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47878     break 2
47879   fi
47880 done
47881 done
47882 IFS=$as_save_IFS
47883
47884 fi
47885 fi
47886 NM=$ac_cv_prog_NM
47887 if test -n "$NM"; then
47888   { echo "$as_me:$LINENO: result: $NM" >&5
47889 echo "${ECHO_T}$NM" >&6; }
47890 else
47891   { echo "$as_me:$LINENO: result: no" >&5
47892 echo "${ECHO_T}no" >&6; }
47893 fi
47894
47895
47896 fi
47897 if test -z "$ac_cv_prog_NM"; then
47898   ac_ct_NM=$NM
47899   # Extract the first word of "nm", so it can be a program name with args.
47900 set dummy nm; ac_word=$2
47901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47903 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47904   echo $ECHO_N "(cached) $ECHO_C" >&6
47905 else
47906   if test -n "$ac_ct_NM"; then
47907   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47908 else
47909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47910 for as_dir in $PATH
47911 do
47912   IFS=$as_save_IFS
47913   test -z "$as_dir" && as_dir=.
47914   for ac_exec_ext in '' $ac_executable_extensions; do
47915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47916     ac_cv_prog_ac_ct_NM="nm"
47917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47918     break 2
47919   fi
47920 done
47921 done
47922 IFS=$as_save_IFS
47923
47924 fi
47925 fi
47926 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47927 if test -n "$ac_ct_NM"; then
47928   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47929 echo "${ECHO_T}$ac_ct_NM" >&6; }
47930 else
47931   { echo "$as_me:$LINENO: result: no" >&5
47932 echo "${ECHO_T}no" >&6; }
47933 fi
47934
47935   if test "x$ac_ct_NM" = x; then
47936     NM=":"
47937   else
47938     case $cross_compiling:$ac_tool_warned in
47939 yes:)
47940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47941 whose name does not start with the host triplet.  If you think this
47942 configuration is useful to you, please write to autoconf@gnu.org." >&5
47943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47944 whose name does not start with the host triplet.  If you think this
47945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47946 ac_tool_warned=yes ;;
47947 esac
47948     NM=$ac_ct_NM
47949   fi
47950 else
47951   NM="$ac_cv_prog_NM"
47952 fi
47953
47954
47955             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47956 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47957     INSTALL_TEST_DIR=acbftest$$
47958     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47959     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47960         rmdir $INSTALL_TEST_DIR
47961                         INSTALL_DIR='$(INSTALL) -d'
47962         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47963 echo "${ECHO_T}$INSTALL -d" >&6; }
47964     else
47965         INSTALL_DIR="mkdir -p"
47966         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47967 echo "${ECHO_T}mkdir -p" >&6; }
47968     fi
47969
47970
47971     LDFLAGS_GUI=
47972     case ${BAKEFILE_HOST} in
47973         *-*-cygwin* | *-*-mingw32* )
47974         LDFLAGS_GUI="-mwindows"
47975     esac
47976
47977
47978     fi
47979
47980         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47981 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47982 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47983   echo $ECHO_N "(cached) $ECHO_C" >&6
47984 else
47985
47986         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47987                 egrep -s GNU > /dev/null); then
47988             bakefile_cv_prog_makeisgnu="yes"
47989         else
47990             bakefile_cv_prog_makeisgnu="no"
47991         fi
47992
47993 fi
47994 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47995 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47996
47997     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47998         IF_GNU_MAKE=""
47999     else
48000         IF_GNU_MAKE="#"
48001     fi
48002
48003
48004
48005     PLATFORM_UNIX=0
48006     PLATFORM_WIN32=0
48007     PLATFORM_MSDOS=0
48008     PLATFORM_MAC=0
48009     PLATFORM_MACOS=0
48010     PLATFORM_MACOSX=0
48011     PLATFORM_OS2=0
48012     PLATFORM_BEOS=0
48013
48014     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48015         case "${BAKEFILE_HOST}" in
48016             *-*-mingw32* )
48017                 PLATFORM_WIN32=1
48018             ;;
48019             *-pc-msdosdjgpp )
48020                 PLATFORM_MSDOS=1
48021             ;;
48022             *-pc-os2_emx | *-pc-os2-emx )
48023                 PLATFORM_OS2=1
48024             ;;
48025             *-*-darwin* )
48026                 PLATFORM_MAC=1
48027                 PLATFORM_MACOSX=1
48028             ;;
48029             *-*-beos* )
48030                 PLATFORM_BEOS=1
48031             ;;
48032             powerpc-apple-macos* )
48033                 PLATFORM_MAC=1
48034                 PLATFORM_MACOS=1
48035             ;;
48036             * )
48037                 PLATFORM_UNIX=1
48038             ;;
48039         esac
48040     else
48041         case "$BAKEFILE_FORCE_PLATFORM" in
48042             win32 )
48043                 PLATFORM_WIN32=1
48044             ;;
48045             msdos )
48046                 PLATFORM_MSDOS=1
48047             ;;
48048             os2 )
48049                 PLATFORM_OS2=1
48050             ;;
48051             darwin )
48052                 PLATFORM_MAC=1
48053                 PLATFORM_MACOSX=1
48054             ;;
48055             unix )
48056                 PLATFORM_UNIX=1
48057             ;;
48058             beos )
48059                 PLATFORM_BEOS=1
48060             ;;
48061             * )
48062                                             ;;
48063         esac
48064     fi
48065
48066
48067
48068
48069
48070
48071
48072
48073
48074
48075
48076     # Check whether --enable-omf was given.
48077 if test "${enable_omf+set}" = set; then
48078   enableval=$enable_omf; bk_os2_use_omf="$enableval"
48079 fi
48080
48081
48082     case "${BAKEFILE_HOST}" in
48083       *-*-darwin* )
48084                         if test "x$GCC" = "xyes"; then
48085             CFLAGS="$CFLAGS -fno-common"
48086             CXXFLAGS="$CXXFLAGS -fno-common"
48087         fi
48088         if test "x$XLCC" = "xyes"; then
48089             CFLAGS="$CFLAGS -qnocommon"
48090             CXXFLAGS="$CXXFLAGS -qnocommon"
48091         fi
48092         ;;
48093
48094       *-pc-os2_emx | *-pc-os2-emx )
48095         if test "x$bk_os2_use_omf" = "xyes" ; then
48096             AR=emxomfar
48097             RANLIB=:
48098             LDFLAGS="-Zomf $LDFLAGS"
48099             CFLAGS="-Zomf $CFLAGS"
48100             CXXFLAGS="-Zomf $CXXFLAGS"
48101             OS2_LIBEXT="lib"
48102         else
48103             OS2_LIBEXT="a"
48104         fi
48105         ;;
48106
48107       i*86-*-beos* )
48108         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48109         ;;
48110     esac
48111
48112
48113     SO_SUFFIX="so"
48114     SO_SUFFIX_MODULE="so"
48115     EXEEXT=""
48116     LIBPREFIX="lib"
48117     LIBEXT=".a"
48118     DLLPREFIX="lib"
48119     DLLPREFIX_MODULE=""
48120     DLLIMP_SUFFIX=""
48121     dlldir="$libdir"
48122
48123     case "${BAKEFILE_HOST}" in
48124                         ia64-hp-hpux* )
48125         ;;
48126         *-hp-hpux* )
48127             SO_SUFFIX="sl"
48128             SO_SUFFIX_MODULE="sl"
48129         ;;
48130         *-*-aix* )
48131                                                                         SO_SUFFIX="a"
48132             SO_SUFFIX_MODULE="a"
48133         ;;
48134         *-*-cygwin* )
48135             SO_SUFFIX="dll"
48136             SO_SUFFIX_MODULE="dll"
48137             DLLIMP_SUFFIX="dll.a"
48138             EXEEXT=".exe"
48139             DLLPREFIX="cyg"
48140             dlldir="$bindir"
48141         ;;
48142         *-*-mingw32* )
48143             SO_SUFFIX="dll"
48144             SO_SUFFIX_MODULE="dll"
48145             DLLIMP_SUFFIX="dll.a"
48146             EXEEXT=".exe"
48147             DLLPREFIX=""
48148             dlldir="$bindir"
48149         ;;
48150         *-pc-msdosdjgpp )
48151             EXEEXT=".exe"
48152             DLLPREFIX=""
48153             dlldir="$bindir"
48154         ;;
48155         *-pc-os2_emx | *-pc-os2-emx )
48156             SO_SUFFIX="dll"
48157             SO_SUFFIX_MODULE="dll"
48158             DLLIMP_SUFFIX=$OS2_LIBEXT
48159             EXEEXT=".exe"
48160             DLLPREFIX=""
48161             LIBPREFIX=""
48162             LIBEXT=".$OS2_LIBEXT"
48163             dlldir="$bindir"
48164         ;;
48165         *-*-darwin* )
48166             SO_SUFFIX="dylib"
48167             SO_SUFFIX_MODULE="bundle"
48168         ;;
48169     esac
48170
48171     if test "x$DLLIMP_SUFFIX" = "x" ; then
48172         DLLIMP_SUFFIX="$SO_SUFFIX"
48173     fi
48174
48175
48176
48177
48178
48179
48180
48181
48182
48183
48184
48185
48186         PIC_FLAG=""
48187     if test "x$GCC" = "xyes"; then
48188                 PIC_FLAG="-fPIC"
48189     fi
48190
48191         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48192     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48193     WINDOWS_IMPLIB=0
48194
48195     case "${BAKEFILE_HOST}" in
48196       *-hp-hpux* )
48197                 if test "x$GCC" != "xyes"; then
48198                         LDFLAGS="$LDFLAGS -L/usr/lib"
48199
48200             SHARED_LD_CC="${CC} -b -o"
48201             SHARED_LD_CXX="${CXX} -b -o"
48202             PIC_FLAG="+Z"
48203         fi
48204       ;;
48205
48206       *-*-linux* )
48207                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48208             PIC_FLAG="-KPIC"
48209         elif test "x$SUNCXX" = "xyes"; then
48210             SHARED_LD_CC="${CC} -G -o"
48211             SHARED_LD_CXX="${CXX} -G -o"
48212             PIC_FLAG="-KPIC"
48213         fi
48214       ;;
48215
48216       *-*-solaris2* )
48217         if test "x$SUNCXX" = xyes ; then
48218             SHARED_LD_CC="${CC} -G -o"
48219             SHARED_LD_CXX="${CXX} -G -o"
48220             PIC_FLAG="-KPIC"
48221         fi
48222       ;;
48223
48224       *-*-darwin* )
48225
48226 D='$'
48227 cat <<EOF >shared-ld-sh
48228 #!/bin/sh
48229 #-----------------------------------------------------------------------------
48230 #-- Name:        distrib/mac/shared-ld-sh
48231 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48232 #-- Author:      Gilles Depeyrot
48233 #-- Copyright:   (c) 2002 Gilles Depeyrot
48234 #-- Licence:     any use permitted
48235 #-----------------------------------------------------------------------------
48236
48237 verbose=0
48238 args=""
48239 objects=""
48240 linking_flag="-dynamiclib"
48241 ldargs="-r -keep_private_externs -nostdlib"
48242
48243 if test "x${D}CXX" = "x"; then
48244     CXX="c++"
48245 fi
48246
48247 while test ${D}# -gt 0; do
48248     case ${D}1 in
48249
48250        -v)
48251         verbose=1
48252         ;;
48253
48254        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48255         # collect these options and values
48256         args="${D}{args} ${D}1 ${D}2"
48257         shift
48258         ;;
48259
48260        -arch|-isysroot)
48261         # collect these options and values
48262         ldargs="${D}{ldargs} ${D}1 ${D}2"
48263         shift
48264         ;;
48265
48266        -s|-Wl,*)
48267         # collect these load args
48268         ldargs="${D}{ldargs} ${D}1"
48269         ;;
48270
48271        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48272         # collect these options
48273         args="${D}{args} ${D}1"
48274         ;;
48275
48276        -dynamiclib|-bundle)
48277         linking_flag="${D}1"
48278         ;;
48279
48280        -*)
48281         echo "shared-ld: unhandled option '${D}1'"
48282         exit 1
48283         ;;
48284
48285         *.o | *.a | *.dylib)
48286         # collect object files
48287         objects="${D}{objects} ${D}1"
48288         ;;
48289
48290         *)
48291         echo "shared-ld: unhandled argument '${D}1'"
48292         exit 1
48293         ;;
48294
48295     esac
48296     shift
48297 done
48298
48299 status=0
48300
48301 #
48302 # Link one module containing all the others
48303 #
48304 if test ${D}{verbose} = 1; then
48305     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48306 fi
48307 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48308 status=${D}?
48309
48310 #
48311 # Link the shared library from the single module created, but only if the
48312 # previous command didn't fail:
48313 #
48314 if test ${D}{status} = 0; then
48315     if test ${D}{verbose} = 1; then
48316         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48317     fi
48318     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48319     status=${D}?
48320 fi
48321
48322 #
48323 # Remove intermediate module
48324 #
48325 rm -f master.${D}${D}.o
48326
48327 exit ${D}status
48328 EOF
48329
48330         chmod +x shared-ld-sh
48331
48332         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48333         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48334
48335
48336                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48337 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48338 if test "${bakefile_cv_gcc31+set}" = set; then
48339   echo $ECHO_N "(cached) $ECHO_C" >&6
48340 else
48341
48342            cat >conftest.$ac_ext <<_ACEOF
48343 /* confdefs.h.  */
48344 _ACEOF
48345 cat confdefs.h >>conftest.$ac_ext
48346 cat >>conftest.$ac_ext <<_ACEOF
48347 /* end confdefs.h.  */
48348
48349 int
48350 main ()
48351 {
48352
48353                    #if (__GNUC__ < 3) || \
48354                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48355                        This is old gcc
48356                    #endif
48357
48358   ;
48359   return 0;
48360 }
48361 _ACEOF
48362 rm -f conftest.$ac_objext
48363 if { (ac_try="$ac_compile"
48364 case "(($ac_try" in
48365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48366   *) ac_try_echo=$ac_try;;
48367 esac
48368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48369   (eval "$ac_compile") 2>conftest.er1
48370   ac_status=$?
48371   grep -v '^ *+' conftest.er1 >conftest.err
48372   rm -f conftest.er1
48373   cat conftest.err >&5
48374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48375   (exit $ac_status); } && {
48376          test -z "$ac_c_werror_flag" ||
48377          test ! -s conftest.err
48378        } && test -s conftest.$ac_objext; then
48379
48380                    bakefile_cv_gcc31=yes
48381
48382 else
48383   echo "$as_me: failed program was:" >&5
48384 sed 's/^/| /' conftest.$ac_ext >&5
48385
48386
48387                    bakefile_cv_gcc31=no
48388
48389
48390 fi
48391
48392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48393
48394 fi
48395 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48396 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48397         if test "$bakefile_cv_gcc31" = "no"; then
48398                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48399             SHARED_LD_CXX="$SHARED_LD_CC"
48400         else
48401                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48402             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48403         fi
48404
48405         if test "x$GCC" == "xyes"; then
48406             PIC_FLAG="-dynamic -fPIC"
48407         fi
48408         if test "x$XLCC" = "xyes"; then
48409             PIC_FLAG="-dynamic -DPIC"
48410         fi
48411       ;;
48412
48413       *-*-aix* )
48414         if test "x$GCC" = "xyes"; then
48415                                                             PIC_FLAG=""
48416
48417                                                                                     case "${BAKEFILE_HOST}" in
48418                 *-*-aix5* )
48419                     LD_EXPFULL="-Wl,-bexpfull"
48420                     ;;
48421             esac
48422
48423             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48424             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48425         else
48426                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48427 set dummy makeC++SharedLib; ac_word=$2
48428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48430 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48431   echo $ECHO_N "(cached) $ECHO_C" >&6
48432 else
48433   if test -n "$AIX_CXX_LD"; then
48434   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48435 else
48436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48437 for as_dir in $PATH
48438 do
48439   IFS=$as_save_IFS
48440   test -z "$as_dir" && as_dir=.
48441   for ac_exec_ext in '' $ac_executable_extensions; do
48442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48443     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48445     break 2
48446   fi
48447 done
48448 done
48449 IFS=$as_save_IFS
48450
48451   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48452 fi
48453 fi
48454 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48455 if test -n "$AIX_CXX_LD"; then
48456   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48457 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48458 else
48459   { echo "$as_me:$LINENO: result: no" >&5
48460 echo "${ECHO_T}no" >&6; }
48461 fi
48462
48463
48464             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48465             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48466         fi
48467       ;;
48468
48469       *-*-beos* )
48470                         SHARED_LD_CC="${LD} -nostart -o"
48471         SHARED_LD_CXX="${LD} -nostart -o"
48472       ;;
48473
48474       *-*-irix* )
48475                 if test "x$GCC" != "xyes"; then
48476             PIC_FLAG="-KPIC"
48477         fi
48478       ;;
48479
48480       *-*-cygwin* | *-*-mingw32* )
48481         PIC_FLAG=""
48482         SHARED_LD_CC="\$(CC) -shared -o"
48483         SHARED_LD_CXX="\$(CXX) -shared -o"
48484         WINDOWS_IMPLIB=1
48485       ;;
48486
48487       *-pc-os2_emx | *-pc-os2-emx )
48488         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48489         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48490         PIC_FLAG=""
48491
48492 D='$'
48493 cat <<EOF >dllar.sh
48494 #!/bin/sh
48495 #
48496 # dllar - a tool to build both a .dll and an .a file
48497 # from a set of object (.o) files for EMX/OS2.
48498 #
48499 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48500 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48501 #
48502 #  This script will accept a set of files on the command line.
48503 #  All the public symbols from the .o files will be exported into
48504 #  a .DEF file, then linker will be run (through gcc) against them to
48505 #  build a shared library consisting of all given .o files. All libraries
48506 #  (.a) will be first decompressed into component .o files then act as
48507 #  described above. You can optionally give a description (-d "description")
48508 #  which will be put into .DLL. To see the list of accepted options (as well
48509 #  as command-line format) simply run this program without options. The .DLL
48510 #  is built to be imported by name (there is no guarantee that new versions
48511 #  of the library you build will have same ordinals for same symbols).
48512 #
48513 #  dllar is free software; you can redistribute it and/or modify
48514 #  it under the terms of the GNU General Public License as published by
48515 #  the Free Software Foundation; either version 2, or (at your option)
48516 #  any later version.
48517 #
48518 #  dllar is distributed in the hope that it will be useful,
48519 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48520 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48521 #  GNU General Public License for more details.
48522 #
48523 #  You should have received a copy of the GNU General Public License
48524 #  along with dllar; see the file COPYING.  If not, write to the Free
48525 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48526 #  02111-1307, USA.
48527
48528 # To successfuly run this program you will need:
48529 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48530 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48531 #  - gcc
48532 #    (used to build the .dll)
48533 #  - emxexp
48534 #    (used to create .def file from .o files)
48535 #  - emximp
48536 #    (used to create .a file from .def file)
48537 #  - GNU text utilites (cat, sort, uniq)
48538 #    used to process emxexp output
48539 #  - GNU file utilities (mv, rm)
48540 #  - GNU sed
48541 #  - lxlite (optional, see flag below)
48542 #    (used for general .dll cleanup)
48543 #
48544
48545 flag_USE_LXLITE=1;
48546
48547 #
48548 # helper functions
48549 # basnam, variant of basename, which does _not_ remove the path, _iff_
48550 #                              second argument (suffix to remove) is given
48551 basnam(){
48552     case ${D}# in
48553     1)
48554         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48555         ;;
48556     2)
48557         echo ${D}1 | sed 's/'${D}2'${D}//'
48558         ;;
48559     *)
48560         echo "error in basnam ${D}*"
48561         exit 8
48562         ;;
48563     esac
48564 }
48565
48566 # Cleanup temporary files and output
48567 CleanUp() {
48568     cd ${D}curDir
48569     for i in ${D}inputFiles ; do
48570         case ${D}i in
48571         *!)
48572             rm -rf \`basnam ${D}i !\`
48573             ;;
48574         *)
48575             ;;
48576         esac
48577     done
48578
48579     # Kill result in case of failure as there is just to many stupid make/nmake
48580     # things out there which doesn't do this.
48581     if [ ${D}# -eq 0 ]; then
48582         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48583     fi
48584 }
48585
48586 # Print usage and exit script with rc=1.
48587 PrintHelp() {
48588  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48589  echo '       [-name-mangler-script script.sh]'
48590  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48591  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48592  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48593  echo '       [*.o] [*.a]'
48594  echo '*> "output_file" should have no extension.'
48595  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48596  echo '   The import library name is derived from this and is set to "name".a,'
48597  echo '   unless overridden by -import'
48598  echo '*> "importlib_name" should have no extension.'
48599  echo '   If it has the .o, or .a extension, it is automatically removed.'
48600  echo '   This name is used as the import library name and may be longer and'
48601  echo '   more descriptive than the DLL name which has to follow the old '
48602  echo '   8.3 convention of FAT.'
48603  echo '*> "script.sh may be given to override the output_file name by a'
48604  echo '   different name. It is mainly useful if the regular make process'
48605  echo '   of some package does not take into account OS/2 restriction of'
48606  echo '   DLL name lengths. It takes the importlib name as input and is'
48607  echo '   supposed to procude a shorter name as output. The script should'
48608  echo '   expect to get importlib_name without extension and should produce'
48609  echo '   a (max.) 8 letter name without extension.'
48610  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48611  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48612  echo '   These flags will be put at the start of GCC command line.'
48613  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48614  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48615  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48616  echo '   If the last character of a symbol is "*", all symbols beginning'
48617  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48618  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48619  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48620  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48621  echo '   C runtime DLLs.'
48622  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48623  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48624  echo '   unchanged to GCC at the end of command line.'
48625  echo '*> If you create a DLL from a library and you do not specify -o,'
48626  echo '   the basename for DLL and import library will be set to library name,'
48627  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48628  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48629  echo '   library will be renamed into gcc_s.a.'
48630  echo '--------'
48631  echo 'Example:'
48632  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48633  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48634  CleanUp
48635  exit 1
48636 }
48637
48638 # Execute a command.
48639 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48640 # @Uses    Whatever CleanUp() uses.
48641 doCommand() {
48642     echo "${D}*"
48643     eval ${D}*
48644     rcCmd=${D}?
48645
48646     if [ ${D}rcCmd -ne 0 ]; then
48647         echo "command failed, exit code="${D}rcCmd
48648         CleanUp
48649         exit ${D}rcCmd
48650     fi
48651 }
48652
48653 # main routine
48654 # setup globals
48655 cmdLine=${D}*
48656 outFile=""
48657 outimpFile=""
48658 inputFiles=""
48659 renameScript=""
48660 description=""
48661 CC=gcc.exe
48662 CFLAGS="-s -Zcrtdll"
48663 EXTRA_CFLAGS=""
48664 EXPORT_BY_ORDINALS=0
48665 exclude_symbols=""
48666 library_flags=""
48667 curDir=\`pwd\`
48668 curDirS=curDir
48669 case ${D}curDirS in
48670 */)
48671   ;;
48672 *)
48673   curDirS=${D}{curDirS}"/"
48674   ;;
48675 esac
48676 # Parse commandline
48677 libsToLink=0
48678 omfLinking=0
48679 while [ ${D}1 ]; do
48680     case ${D}1 in
48681     -ord*)
48682         EXPORT_BY_ORDINALS=1;
48683         ;;
48684     -o*)
48685         shift
48686         outFile=${D}1
48687         ;;
48688     -i*)
48689         shift
48690         outimpFile=${D}1
48691         ;;
48692     -name-mangler-script)
48693         shift
48694         renameScript=${D}1
48695         ;;
48696     -d*)
48697         shift
48698         description=${D}1
48699         ;;
48700     -f*)
48701         shift
48702         CFLAGS=${D}1
48703         ;;
48704     -c*)
48705         shift
48706         CC=${D}1
48707         ;;
48708     -h*)
48709         PrintHelp
48710         ;;
48711     -ex*)
48712         shift
48713         exclude_symbols=${D}{exclude_symbols}${D}1" "
48714         ;;
48715     -libf*)
48716         shift
48717         library_flags=${D}{library_flags}${D}1" "
48718         ;;
48719     -nocrt*)
48720         CFLAGS="-s"
48721         ;;
48722     -nolxl*)
48723         flag_USE_LXLITE=0
48724         ;;
48725     -* | /*)
48726         case ${D}1 in
48727         -L* | -l*)
48728             libsToLink=1
48729             ;;
48730         -Zomf)
48731             omfLinking=1
48732             ;;
48733         *)
48734             ;;
48735         esac
48736         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48737         ;;
48738     *.dll)
48739         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48740         if [ ${D}omfLinking -eq 1 ]; then
48741             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48742         else
48743             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48744         fi
48745         ;;
48746     *)
48747         found=0;
48748         if [ ${D}libsToLink -ne 0 ]; then
48749             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48750         else
48751             for file in ${D}1 ; do
48752                 if [ -f ${D}file ]; then
48753                     inputFiles="${D}{inputFiles} ${D}file"
48754                     found=1
48755                 fi
48756             done
48757             if [ ${D}found -eq 0 ]; then
48758                 echo "ERROR: No file(s) found: "${D}1
48759                 exit 8
48760             fi
48761         fi
48762       ;;
48763     esac
48764     shift
48765 done # iterate cmdline words
48766
48767 #
48768 if [ -z "${D}inputFiles" ]; then
48769     echo "dllar: no input files"
48770     PrintHelp
48771 fi
48772
48773 # Now extract all .o files from .a files
48774 newInputFiles=""
48775 for file in ${D}inputFiles ; do
48776     case ${D}file in
48777     *.a | *.lib)
48778         case ${D}file in
48779         *.a)
48780             suffix=".a"
48781             AR="ar"
48782             ;;
48783         *.lib)
48784             suffix=".lib"
48785             AR="emxomfar"
48786             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48787             ;;
48788         *)
48789             ;;
48790         esac
48791         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48792         mkdir ${D}dirname
48793         if [ ${D}? -ne 0 ]; then
48794             echo "Failed to create subdirectory ./${D}dirname"
48795             CleanUp
48796             exit 8;
48797         fi
48798         # Append '!' to indicate archive
48799         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48800         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48801         cd ${D}curDir
48802         found=0;
48803         for subfile in ${D}dirname/*.o* ; do
48804             if [ -f ${D}subfile ]; then
48805                 found=1
48806                 if [ -s ${D}subfile ]; then
48807                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48808                     newInputFiles="${D}newInputFiles ${D}subfile"
48809                 fi
48810             fi
48811         done
48812         if [ ${D}found -eq 0 ]; then
48813             echo "WARNING: there are no files in archive \\'${D}file\\'"
48814         fi
48815         ;;
48816     *)
48817         newInputFiles="${D}{newInputFiles} ${D}file"
48818         ;;
48819     esac
48820 done
48821 inputFiles="${D}newInputFiles"
48822
48823 # Output filename(s).
48824 do_backup=0;
48825 if [ -z ${D}outFile ]; then
48826     do_backup=1;
48827     set outFile ${D}inputFiles; outFile=${D}2
48828 fi
48829
48830 # If it is an archive, remove the '!' and the '_%' suffixes
48831 case ${D}outFile in
48832 *_%!)
48833     outFile=\`basnam ${D}outFile _%!\`
48834     ;;
48835 *)
48836     ;;
48837 esac
48838 case ${D}outFile in
48839 *.dll)
48840     outFile=\`basnam ${D}outFile .dll\`
48841     ;;
48842 *.DLL)
48843     outFile=\`basnam ${D}outFile .DLL\`
48844     ;;
48845 *.o)
48846     outFile=\`basnam ${D}outFile .o\`
48847     ;;
48848 *.obj)
48849     outFile=\`basnam ${D}outFile .obj\`
48850     ;;
48851 *.a)
48852     outFile=\`basnam ${D}outFile .a\`
48853     ;;
48854 *.lib)
48855     outFile=\`basnam ${D}outFile .lib\`
48856     ;;
48857 *)
48858     ;;
48859 esac
48860 case ${D}outimpFile in
48861 *.a)
48862     outimpFile=\`basnam ${D}outimpFile .a\`
48863     ;;
48864 *.lib)
48865     outimpFile=\`basnam ${D}outimpFile .lib\`
48866     ;;
48867 *)
48868     ;;
48869 esac
48870 if [ -z ${D}outimpFile ]; then
48871     outimpFile=${D}outFile
48872 fi
48873 defFile="${D}{outFile}.def"
48874 arcFile="${D}{outimpFile}.a"
48875 arcFile2="${D}{outimpFile}.lib"
48876
48877 #create ${D}dllFile as something matching 8.3 restrictions,
48878 if [ -z ${D}renameScript ] ; then
48879     dllFile="${D}outFile"
48880 else
48881     dllFile=\`${D}renameScript ${D}outimpFile\`
48882 fi
48883
48884 if [ ${D}do_backup -ne 0 ] ; then
48885     if [ -f ${D}arcFile ] ; then
48886         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48887     fi
48888     if [ -f ${D}arcFile2 ] ; then
48889         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48890     fi
48891 fi
48892
48893 # Extract public symbols from all the object files.
48894 tmpdefFile=${D}{defFile}_%
48895 rm -f ${D}tmpdefFile
48896 for file in ${D}inputFiles ; do
48897     case ${D}file in
48898     *!)
48899         ;;
48900     *)
48901         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48902         ;;
48903     esac
48904 done
48905
48906 # Create the def file.
48907 rm -f ${D}defFile
48908 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48909 dllFile="${D}{dllFile}.dll"
48910 if [ ! -z ${D}description ]; then
48911     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48912 fi
48913 echo "EXPORTS" >> ${D}defFile
48914
48915 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48916 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48917
48918 # Checks if the export is ok or not.
48919 for word in ${D}exclude_symbols; do
48920     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48921     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48922 done
48923
48924
48925 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48926     sed "=" < ${D}tmpdefFile | \\
48927     sed '
48928       N
48929       : loop
48930       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48931       t loop
48932     ' > ${D}{tmpdefFile}%
48933     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48934 else
48935     rm -f ${D}{tmpdefFile}%
48936 fi
48937 cat ${D}tmpdefFile >> ${D}defFile
48938 rm -f ${D}tmpdefFile
48939
48940 # Do linking, create implib, and apply lxlite.
48941 gccCmdl="";
48942 for file in ${D}inputFiles ; do
48943     case ${D}file in
48944     *!)
48945         ;;
48946     *)
48947         gccCmdl="${D}gccCmdl ${D}file"
48948         ;;
48949     esac
48950 done
48951 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48952 touch "${D}{outFile}.dll"
48953
48954 doCommand "emximp -o ${D}arcFile ${D}defFile"
48955 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48956     add_flags="";
48957     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48958         add_flags="-ynd"
48959     fi
48960     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48961 fi
48962 doCommand "emxomf -s -l ${D}arcFile"
48963
48964 # Successful exit.
48965 CleanUp 1
48966 exit 0
48967 EOF
48968
48969         chmod +x dllar.sh
48970       ;;
48971
48972       powerpc-apple-macos* | \
48973       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48974       *-*-mirbsd* | \
48975       *-*-sunos4* | \
48976       *-*-osf* | \
48977       *-*-dgux5* | \
48978       *-*-sysv5* | \
48979       *-pc-msdosdjgpp )
48980               ;;
48981
48982       *)
48983         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48984 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48985    { (exit 1); exit 1; }; }
48986     esac
48987
48988     if test "x$PIC_FLAG" != "x" ; then
48989         PIC_FLAG="$PIC_FLAG -DPIC"
48990     fi
48991
48992     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48993         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48994     fi
48995     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48996         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48997     fi
48998
48999
49000
49001
49002
49003
49004
49005
49006
49007     USE_SOVERSION=0
49008     USE_SOVERLINUX=0
49009     USE_SOVERSOLARIS=0
49010     USE_SOVERCYGWIN=0
49011     USE_SOSYMLINKS=0
49012     USE_MACVERSION=0
49013     SONAME_FLAG=
49014
49015     case "${BAKEFILE_HOST}" in
49016       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49017       *-*-k*bsd*-gnu | *-*-mirbsd* )
49018         if test "x$SUNCXX" = "xyes"; then
49019             SONAME_FLAG="-h "
49020         else
49021             SONAME_FLAG="-Wl,-soname,"
49022         fi
49023         USE_SOVERSION=1
49024         USE_SOVERLINUX=1
49025         USE_SOSYMLINKS=1
49026       ;;
49027
49028       *-*-solaris2* )
49029         SONAME_FLAG="-h "
49030         USE_SOVERSION=1
49031         USE_SOVERSOLARIS=1
49032         USE_SOSYMLINKS=1
49033       ;;
49034
49035       *-*-darwin* )
49036         USE_MACVERSION=1
49037         USE_SOVERSION=1
49038         USE_SOSYMLINKS=1
49039       ;;
49040
49041       *-*-cygwin* )
49042         USE_SOVERSION=1
49043         USE_SOVERCYGWIN=1
49044       ;;
49045     esac
49046
49047
49048
49049
49050
49051
49052
49053
49054
49055
49056     # Check whether --enable-dependency-tracking was given.
49057 if test "${enable_dependency_tracking+set}" = set; then
49058   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
49059 fi
49060
49061
49062     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49063 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
49064
49065     BK_DEPS=""
49066     if test "x$bk_use_trackdeps" = "xno" ; then
49067         DEPS_TRACKING=0
49068         { echo "$as_me:$LINENO: result: disabled" >&5
49069 echo "${ECHO_T}disabled" >&6; }
49070     else
49071         DEPS_TRACKING=1
49072
49073         if test "x$GCC" = "xyes"; then
49074             DEPSMODE=gcc
49075             case "${BAKEFILE_HOST}" in
49076                 *-*-darwin* )
49077                                                             DEPSFLAG="-no-cpp-precomp -MMD"
49078                 ;;
49079                 * )
49080                     DEPSFLAG="-MMD"
49081                 ;;
49082             esac
49083             { echo "$as_me:$LINENO: result: gcc" >&5
49084 echo "${ECHO_T}gcc" >&6; }
49085         elif test "x$MWCC" = "xyes"; then
49086             DEPSMODE=mwcc
49087             DEPSFLAG="-MM"
49088             { echo "$as_me:$LINENO: result: mwcc" >&5
49089 echo "${ECHO_T}mwcc" >&6; }
49090         elif test "x$SUNCC" = "xyes"; then
49091             DEPSMODE=unixcc
49092             DEPSFLAG="-xM1"
49093             { echo "$as_me:$LINENO: result: Sun cc" >&5
49094 echo "${ECHO_T}Sun cc" >&6; }
49095         elif test "x$SGICC" = "xyes"; then
49096             DEPSMODE=unixcc
49097             DEPSFLAG="-M"
49098             { echo "$as_me:$LINENO: result: SGI cc" >&5
49099 echo "${ECHO_T}SGI cc" >&6; }
49100         elif test "x$HPCC" = "xyes"; then
49101             DEPSMODE=unixcc
49102             DEPSFLAG="+make"
49103             { echo "$as_me:$LINENO: result: HP cc" >&5
49104 echo "${ECHO_T}HP cc" >&6; }
49105         elif test "x$COMPAQCC" = "xyes"; then
49106             DEPSMODE=gcc
49107             DEPSFLAG="-MD"
49108             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49109 echo "${ECHO_T}Compaq cc" >&6; }
49110         else
49111             DEPS_TRACKING=0
49112             { echo "$as_me:$LINENO: result: none" >&5
49113 echo "${ECHO_T}none" >&6; }
49114         fi
49115
49116         if test $DEPS_TRACKING = 1 ; then
49117
49118 D='$'
49119 cat <<EOF >bk-deps
49120 #!/bin/sh
49121
49122 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49123 # script. It is used to track C/C++ files dependencies in portable way.
49124 #
49125 # Permission is given to use this file in any way.
49126
49127 DEPSMODE=${DEPSMODE}
49128 DEPSFLAG="${DEPSFLAG}"
49129 DEPSDIRBASE=.deps
49130
49131 if test ${D}DEPSMODE = gcc ; then
49132     ${D}* ${D}{DEPSFLAG}
49133     status=${D}?
49134
49135     # determine location of created files:
49136     while test ${D}# -gt 0; do
49137         case "${D}1" in
49138             -o )
49139                 shift
49140                 objfile=${D}1
49141             ;;
49142             -* )
49143             ;;
49144             * )
49145                 srcfile=${D}1
49146             ;;
49147         esac
49148         shift
49149     done
49150     objfilebase=\`basename ${D}objfile\`
49151     builddir=\`dirname ${D}objfile\`
49152     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49153     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49154     depsdir=${D}builddir/${D}DEPSDIRBASE
49155     mkdir -p ${D}depsdir
49156
49157     # if the compiler failed, we're done:
49158     if test ${D}{status} != 0 ; then
49159         rm -f ${D}depfile
49160         exit ${D}{status}
49161     fi
49162
49163     # move created file to the location we want it in:
49164     if test -f ${D}depfile ; then
49165         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49166         rm -f ${D}depfile
49167     else
49168         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49169         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49170         if test ! -f ${D}depfile ; then
49171             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49172             depfile="${D}objfile.d"
49173         fi
49174         if test -f ${D}depfile ; then
49175             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49176             rm -f ${D}depfile
49177         fi
49178     fi
49179     exit 0
49180
49181 elif test ${D}DEPSMODE = mwcc ; then
49182     ${D}* || exit ${D}?
49183     # Run mwcc again with -MM and redirect into the dep file we want
49184     # NOTE: We can't use shift here because we need ${D}* to be valid
49185     prevarg=
49186     for arg in ${D}* ; do
49187         if test "${D}prevarg" = "-o"; then
49188             objfile=${D}arg
49189         else
49190             case "${D}arg" in
49191                 -* )
49192                 ;;
49193                 * )
49194                     srcfile=${D}arg
49195                 ;;
49196             esac
49197         fi
49198         prevarg="${D}arg"
49199     done
49200
49201     objfilebase=\`basename ${D}objfile\`
49202     builddir=\`dirname ${D}objfile\`
49203     depsdir=${D}builddir/${D}DEPSDIRBASE
49204     mkdir -p ${D}depsdir
49205
49206     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49207     exit 0
49208
49209 elif test ${D}DEPSMODE = unixcc; then
49210     ${D}* || exit ${D}?
49211     # Run compiler again with deps flag and redirect into the dep file.
49212     # It doesn't work if the '-o FILE' option is used, but without it the
49213     # dependency file will contain the wrong name for the object. So it is
49214     # removed from the command line, and the dep file is fixed with sed.
49215     cmd=""
49216     while test ${D}# -gt 0; do
49217         case "${D}1" in
49218             -o )
49219                 shift
49220                 objfile=${D}1
49221             ;;
49222             * )
49223                 eval arg${D}#=\\${D}1
49224                 cmd="${D}cmd \\${D}arg${D}#"
49225             ;;
49226         esac
49227         shift
49228     done
49229
49230     objfilebase=\`basename ${D}objfile\`
49231     builddir=\`dirname ${D}objfile\`
49232     depsdir=${D}builddir/${D}DEPSDIRBASE
49233     mkdir -p ${D}depsdir
49234
49235     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49236     exit 0
49237
49238 else
49239     ${D}*
49240     exit ${D}?
49241 fi
49242 EOF
49243
49244             chmod +x bk-deps
49245                                     BK_DEPS="`pwd`/bk-deps"
49246         fi
49247     fi
49248
49249
49250
49251
49252
49253     case ${BAKEFILE_HOST} in
49254         *-*-cygwin* | *-*-mingw32* )
49255                         if test -n "$ac_tool_prefix"; then
49256   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49257 set dummy ${ac_tool_prefix}windres; ac_word=$2
49258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49260 if test "${ac_cv_prog_WINDRES+set}" = set; then
49261   echo $ECHO_N "(cached) $ECHO_C" >&6
49262 else
49263   if test -n "$WINDRES"; then
49264   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49265 else
49266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49267 for as_dir in $PATH
49268 do
49269   IFS=$as_save_IFS
49270   test -z "$as_dir" && as_dir=.
49271   for ac_exec_ext in '' $ac_executable_extensions; do
49272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49273     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49275     break 2
49276   fi
49277 done
49278 done
49279 IFS=$as_save_IFS
49280
49281 fi
49282 fi
49283 WINDRES=$ac_cv_prog_WINDRES
49284 if test -n "$WINDRES"; then
49285   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49286 echo "${ECHO_T}$WINDRES" >&6; }
49287 else
49288   { echo "$as_me:$LINENO: result: no" >&5
49289 echo "${ECHO_T}no" >&6; }
49290 fi
49291
49292
49293 fi
49294 if test -z "$ac_cv_prog_WINDRES"; then
49295   ac_ct_WINDRES=$WINDRES
49296   # Extract the first word of "windres", so it can be a program name with args.
49297 set dummy windres; ac_word=$2
49298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49300 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49301   echo $ECHO_N "(cached) $ECHO_C" >&6
49302 else
49303   if test -n "$ac_ct_WINDRES"; then
49304   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49305 else
49306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49307 for as_dir in $PATH
49308 do
49309   IFS=$as_save_IFS
49310   test -z "$as_dir" && as_dir=.
49311   for ac_exec_ext in '' $ac_executable_extensions; do
49312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49313     ac_cv_prog_ac_ct_WINDRES="windres"
49314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49315     break 2
49316   fi
49317 done
49318 done
49319 IFS=$as_save_IFS
49320
49321 fi
49322 fi
49323 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49324 if test -n "$ac_ct_WINDRES"; then
49325   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49326 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49327 else
49328   { echo "$as_me:$LINENO: result: no" >&5
49329 echo "${ECHO_T}no" >&6; }
49330 fi
49331
49332   if test "x$ac_ct_WINDRES" = x; then
49333     WINDRES=""
49334   else
49335     case $cross_compiling:$ac_tool_warned in
49336 yes:)
49337 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49338 whose name does not start with the host triplet.  If you think this
49339 configuration is useful to you, please write to autoconf@gnu.org." >&5
49340 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49341 whose name does not start with the host triplet.  If you think this
49342 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49343 ac_tool_warned=yes ;;
49344 esac
49345     WINDRES=$ac_ct_WINDRES
49346   fi
49347 else
49348   WINDRES="$ac_cv_prog_WINDRES"
49349 fi
49350
49351          ;;
49352
49353       *-*-darwin* | powerpc-apple-macos* )
49354             # Extract the first word of "Rez", so it can be a program name with args.
49355 set dummy Rez; ac_word=$2
49356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49358 if test "${ac_cv_prog_REZ+set}" = set; then
49359   echo $ECHO_N "(cached) $ECHO_C" >&6
49360 else
49361   if test -n "$REZ"; then
49362   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49363 else
49364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49365 for as_dir in $PATH
49366 do
49367   IFS=$as_save_IFS
49368   test -z "$as_dir" && as_dir=.
49369   for ac_exec_ext in '' $ac_executable_extensions; do
49370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49371     ac_cv_prog_REZ="Rez"
49372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49373     break 2
49374   fi
49375 done
49376 done
49377 IFS=$as_save_IFS
49378
49379   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49380 fi
49381 fi
49382 REZ=$ac_cv_prog_REZ
49383 if test -n "$REZ"; then
49384   { echo "$as_me:$LINENO: result: $REZ" >&5
49385 echo "${ECHO_T}$REZ" >&6; }
49386 else
49387   { echo "$as_me:$LINENO: result: no" >&5
49388 echo "${ECHO_T}no" >&6; }
49389 fi
49390
49391
49392             # Extract the first word of "SetFile", so it can be a program name with args.
49393 set dummy SetFile; ac_word=$2
49394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49396 if test "${ac_cv_prog_SETFILE+set}" = set; then
49397   echo $ECHO_N "(cached) $ECHO_C" >&6
49398 else
49399   if test -n "$SETFILE"; then
49400   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49401 else
49402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49403 for as_dir in $PATH
49404 do
49405   IFS=$as_save_IFS
49406   test -z "$as_dir" && as_dir=.
49407   for ac_exec_ext in '' $ac_executable_extensions; do
49408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49409     ac_cv_prog_SETFILE="SetFile"
49410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49411     break 2
49412   fi
49413 done
49414 done
49415 IFS=$as_save_IFS
49416
49417   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49418 fi
49419 fi
49420 SETFILE=$ac_cv_prog_SETFILE
49421 if test -n "$SETFILE"; then
49422   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49423 echo "${ECHO_T}$SETFILE" >&6; }
49424 else
49425   { echo "$as_me:$LINENO: result: no" >&5
49426 echo "${ECHO_T}no" >&6; }
49427 fi
49428
49429
49430         ;;
49431     esac
49432
49433
49434
49435
49436
49437
49438
49439
49440
49441     BAKEFILE_BAKEFILE_M4_VERSION="0.2.6"
49442
49443
49444 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.6"
49445
49446
49447
49448     # Check whether --enable-precomp-headers was given.
49449 if test "${enable_precomp_headers+set}" = set; then
49450   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49451 fi
49452
49453
49454     GCC_PCH=0
49455     ICC_PCH=0
49456     USE_PCH=0
49457     BK_MAKE_PCH=""
49458
49459     case ${BAKEFILE_HOST} in
49460         *-*-cygwin* )
49461                                                 bk_use_pch="no"
49462             ;;
49463     esac
49464
49465     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49466         if test "x$GCC" = "xyes"; then
49467                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49468 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49469             cat >conftest.$ac_ext <<_ACEOF
49470 /* confdefs.h.  */
49471 _ACEOF
49472 cat confdefs.h >>conftest.$ac_ext
49473 cat >>conftest.$ac_ext <<_ACEOF
49474 /* end confdefs.h.  */
49475
49476 int
49477 main ()
49478 {
49479
49480                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49481                         There is no PCH support
49482                     #endif
49483                     #if (__GNUC__ < 3)
49484                         There is no PCH support
49485                     #endif
49486                     #if (__GNUC__ == 3) && \
49487                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49488                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49489                        ( defined(__INTEL_COMPILER) )
49490                         There is no PCH support
49491                     #endif
49492
49493   ;
49494   return 0;
49495 }
49496 _ACEOF
49497 rm -f conftest.$ac_objext
49498 if { (ac_try="$ac_compile"
49499 case "(($ac_try" in
49500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49501   *) ac_try_echo=$ac_try;;
49502 esac
49503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49504   (eval "$ac_compile") 2>conftest.er1
49505   ac_status=$?
49506   grep -v '^ *+' conftest.er1 >conftest.err
49507   rm -f conftest.er1
49508   cat conftest.err >&5
49509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49510   (exit $ac_status); } && {
49511          test -z "$ac_c_werror_flag" ||
49512          test ! -s conftest.err
49513        } && test -s conftest.$ac_objext; then
49514
49515                     { echo "$as_me:$LINENO: result: yes" >&5
49516 echo "${ECHO_T}yes" >&6; }
49517                     GCC_PCH=1
49518
49519 else
49520   echo "$as_me: failed program was:" >&5
49521 sed 's/^/| /' conftest.$ac_ext >&5
49522
49523
49524                     if test "$INTELCXX8" = "yes"; then
49525                         { echo "$as_me:$LINENO: result: yes" >&5
49526 echo "${ECHO_T}yes" >&6; }
49527                         ICC_PCH=1
49528                         if test "$INTELCXX10" = "yes"; then
49529                             ICC_PCH_CREATE_SWITCH="-pch-create"
49530                             ICC_PCH_USE_SWITCH="-pch-use"
49531                         else
49532                             ICC_PCH_CREATE_SWITCH="-create-pch"
49533                             ICC_PCH_USE_SWITCH="-use-pch"
49534                         fi
49535                     else
49536                         { echo "$as_me:$LINENO: result: no" >&5
49537 echo "${ECHO_T}no" >&6; }
49538                     fi
49539
49540 fi
49541
49542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49543             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49544                 USE_PCH=1
49545
49546 D='$'
49547 cat <<EOF >bk-make-pch
49548 #!/bin/sh
49549
49550 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49551 # script. It is used to generated precompiled headers.
49552 #
49553 # Permission is given to use this file in any way.
49554
49555 outfile="${D}{1}"
49556 header="${D}{2}"
49557 shift
49558 shift
49559
49560 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49561
49562 compiler=""
49563 headerfile=""
49564
49565 while test ${D}{#} -gt 0; do
49566     add_to_cmdline=1
49567     case "${D}{1}" in
49568         -I* )
49569             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49570             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49571                 headerfile="${D}{incdir}/${D}{header}"
49572             fi
49573         ;;
49574         -use-pch|-use_pch|-pch-use )
49575             shift
49576             add_to_cmdline=0
49577         ;;
49578     esac
49579     if test ${D}add_to_cmdline = 1 ; then
49580         compiler="${D}{compiler} ${D}{1}"
49581     fi
49582     shift
49583 done
49584
49585 if test "x${D}{headerfile}" = "x" ; then
49586     echo "error: can't find header ${D}{header} in include paths" >&2
49587 else
49588     if test -f ${D}{outfile} ; then
49589         rm -f ${D}{outfile}
49590     else
49591         mkdir -p \`dirname ${D}{outfile}\`
49592     fi
49593     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49594     mkdir -p ${D}{builddir}/.deps
49595     if test "x${GCC_PCH}" = "x1" ; then
49596         # can do this because gcc is >= 3.4:
49597         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49598     elif test "x${ICC_PCH}" = "x1" ; then
49599         filename=pch_gen-${D}${D}
49600         file=${D}{filename}.c
49601         dfile=${D}{filename}.d
49602         cat > ${D}file <<EOT
49603 #include "${D}header"
49604 EOT
49605         # using -MF icc complains about differing command lines in creation/use
49606         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49607           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49608           rm -f ${D}file ${D}dfile ${D}{filename}.o
49609     fi
49610     exit ${D}{?}
49611 fi
49612 EOF
49613
49614                 chmod +x bk-make-pch
49615                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49616             fi
49617         fi
49618     fi
49619
49620
49621
49622
49623
49624
49625
49626     COND_BUILD_DEBUG="#"
49627     if test "x$BUILD" = "xdebug" ; then
49628         COND_BUILD_DEBUG=""
49629     fi
49630
49631     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49632     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49633         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49634     fi
49635
49636     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49637     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49638         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49639     fi
49640
49641     COND_BUILD_DEBUG_UNICODE_0="#"
49642     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49643         COND_BUILD_DEBUG_UNICODE_0=""
49644     fi
49645
49646     COND_BUILD_DEBUG_UNICODE_1="#"
49647     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49648         COND_BUILD_DEBUG_UNICODE_1=""
49649     fi
49650
49651     COND_BUILD_RELEASE="#"
49652     if test "x$BUILD" = "xrelease" ; then
49653         COND_BUILD_RELEASE=""
49654     fi
49655
49656     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49657     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49658         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49659     fi
49660
49661     COND_BUILD_RELEASE_UNICODE_0="#"
49662     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49663         COND_BUILD_RELEASE_UNICODE_0=""
49664     fi
49665
49666     COND_BUILD_RELEASE_UNICODE_1="#"
49667     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49668         COND_BUILD_RELEASE_UNICODE_1=""
49669     fi
49670
49671     COND_BUILD_debug="#"
49672     if test "x$BUILD" = "xdebug" ; then
49673         COND_BUILD_debug=""
49674     fi
49675
49676     COND_BUILD_debug_DEBUG_FLAG_default="#"
49677     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49678         COND_BUILD_debug_DEBUG_FLAG_default=""
49679     fi
49680
49681     COND_BUILD_debug_DEBUG_INFO_default="#"
49682     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49683         COND_BUILD_debug_DEBUG_INFO_default=""
49684     fi
49685
49686     COND_BUILD_debug_UNICODE_0="#"
49687     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49688         COND_BUILD_debug_UNICODE_0=""
49689     fi
49690
49691     COND_BUILD_debug_UNICODE_1="#"
49692     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49693         COND_BUILD_debug_UNICODE_1=""
49694     fi
49695
49696     COND_BUILD_release="#"
49697     if test "x$BUILD" = "xrelease" ; then
49698         COND_BUILD_release=""
49699     fi
49700
49701     COND_BUILD_release_DEBUG_INFO_default="#"
49702     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49703         COND_BUILD_release_DEBUG_INFO_default=""
49704     fi
49705
49706     COND_BUILD_release_UNICODE_0="#"
49707     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49708         COND_BUILD_release_UNICODE_0=""
49709     fi
49710
49711     COND_BUILD_release_UNICODE_1="#"
49712     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49713         COND_BUILD_release_UNICODE_1=""
49714     fi
49715
49716     COND_DEBUG_FLAG_0="#"
49717     if test "x$DEBUG_FLAG" = "x0" ; then
49718         COND_DEBUG_FLAG_0=""
49719     fi
49720
49721     COND_DEBUG_FLAG_1="#"
49722     if test "x$DEBUG_FLAG" = "x1" ; then
49723         COND_DEBUG_FLAG_1=""
49724     fi
49725
49726     COND_DEBUG_INFO_0="#"
49727     if test "x$DEBUG_INFO" = "x0" ; then
49728         COND_DEBUG_INFO_0=""
49729     fi
49730
49731     COND_DEBUG_INFO_1="#"
49732     if test "x$DEBUG_INFO" = "x1" ; then
49733         COND_DEBUG_INFO_1=""
49734     fi
49735
49736     COND_DEPS_TRACKING_0="#"
49737     if test "x$DEPS_TRACKING" = "x0" ; then
49738         COND_DEPS_TRACKING_0=""
49739     fi
49740
49741     COND_DEPS_TRACKING_1="#"
49742     if test "x$DEPS_TRACKING" = "x1" ; then
49743         COND_DEPS_TRACKING_1=""
49744     fi
49745
49746     COND_GCC_PCH_1="#"
49747     if test "x$GCC_PCH" = "x1" ; then
49748         COND_GCC_PCH_1=""
49749     fi
49750
49751     COND_ICC_PCH_1="#"
49752     if test "x$ICC_PCH" = "x1" ; then
49753         COND_ICC_PCH_1=""
49754     fi
49755
49756     COND_MONOLITHIC_0="#"
49757     if test "x$MONOLITHIC" = "x0" ; then
49758         COND_MONOLITHIC_0=""
49759     fi
49760
49761     COND_MONOLITHIC_0_SHARED_0="#"
49762     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49763         COND_MONOLITHIC_0_SHARED_0=""
49764     fi
49765
49766     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49767     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49768         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49769     fi
49770
49771     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49772     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49773         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49774     fi
49775
49776     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49777     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49778         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49779     fi
49780
49781     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49782     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49783         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49784     fi
49785
49786     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49787     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49788         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49789     fi
49790
49791     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49792     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49793         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49794     fi
49795
49796     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49797     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49798         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49799     fi
49800
49801     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49802     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49803         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49804     fi
49805
49806     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49807     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49808         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49809     fi
49810
49811     COND_MONOLITHIC_0_SHARED_1="#"
49812     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49813         COND_MONOLITHIC_0_SHARED_1=""
49814     fi
49815
49816     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49817     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49818         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49819     fi
49820
49821     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49822     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49823         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49824     fi
49825
49826     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49827     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49828         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49829     fi
49830
49831     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49832     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49833         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49834     fi
49835
49836     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49837     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49838         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49839     fi
49840
49841     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49842     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49843         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49844     fi
49845
49846     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49847     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49848         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49849     fi
49850
49851     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49852     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49853         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49854     fi
49855
49856     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49857     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49858         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49859     fi
49860
49861     COND_MONOLITHIC_0_USE_AUI_1="#"
49862     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49863         COND_MONOLITHIC_0_USE_AUI_1=""
49864     fi
49865
49866     COND_MONOLITHIC_0_USE_GUI_1="#"
49867     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49868         COND_MONOLITHIC_0_USE_GUI_1=""
49869     fi
49870
49871     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49872     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49873         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49874     fi
49875
49876     COND_MONOLITHIC_0_USE_HTML_1="#"
49877     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49878         COND_MONOLITHIC_0_USE_HTML_1=""
49879     fi
49880
49881     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49882     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49883         COND_MONOLITHIC_0_USE_MEDIA_1=""
49884     fi
49885
49886     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
49887     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49888         COND_MONOLITHIC_0_USE_PROPGRID_1=""
49889     fi
49890
49891     COND_MONOLITHIC_0_USE_QA_1="#"
49892     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49893         COND_MONOLITHIC_0_USE_QA_1=""
49894     fi
49895
49896     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49897     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49898         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49899     fi
49900
49901     COND_MONOLITHIC_0_USE_STC_1="#"
49902     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49903         COND_MONOLITHIC_0_USE_STC_1=""
49904     fi
49905
49906     COND_MONOLITHIC_0_USE_XRC_1="#"
49907     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49908         COND_MONOLITHIC_0_USE_XRC_1=""
49909     fi
49910
49911     COND_MONOLITHIC_1="#"
49912     if test "x$MONOLITHIC" = "x1" ; then
49913         COND_MONOLITHIC_1=""
49914     fi
49915
49916     COND_MONOLITHIC_1_SHARED_0="#"
49917     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49918         COND_MONOLITHIC_1_SHARED_0=""
49919     fi
49920
49921     COND_MONOLITHIC_1_SHARED_1="#"
49922     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49923         COND_MONOLITHIC_1_SHARED_1=""
49924     fi
49925
49926     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49927     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49928         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49929     fi
49930
49931     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49932     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49933         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49934     fi
49935
49936     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49937     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49938         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49939     fi
49940
49941     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49942     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49943         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49944     fi
49945
49946     COND_PLATFORM_MACOSX_1="#"
49947     if test "x$PLATFORM_MACOSX" = "x1" ; then
49948         COND_PLATFORM_MACOSX_1=""
49949     fi
49950
49951     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
49952     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
49953         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
49954     fi
49955
49956     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
49957     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
49958         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
49959     fi
49960
49961     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
49962     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49963         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
49964     fi
49965
49966     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
49967     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
49968         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
49969     fi
49970
49971     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
49972     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49973         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
49974     fi
49975
49976     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49977     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49978         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49979     fi
49980
49981     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
49982     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49983         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
49984     fi
49985
49986     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49987     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49988         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49989     fi
49990
49991     COND_PLATFORM_MACOS_1="#"
49992     if test "x$PLATFORM_MACOS" = "x1" ; then
49993         COND_PLATFORM_MACOS_1=""
49994     fi
49995
49996     COND_PLATFORM_MAC_0="#"
49997     if test "x$PLATFORM_MAC" = "x0" ; then
49998         COND_PLATFORM_MAC_0=""
49999     fi
50000
50001     COND_PLATFORM_MAC_1="#"
50002     if test "x$PLATFORM_MAC" = "x1" ; then
50003         COND_PLATFORM_MAC_1=""
50004     fi
50005
50006     COND_PLATFORM_MSDOS_0="#"
50007     if test "x$PLATFORM_MSDOS" = "x0" ; then
50008         COND_PLATFORM_MSDOS_0=""
50009     fi
50010
50011     COND_PLATFORM_MSDOS_1="#"
50012     if test "x$PLATFORM_MSDOS" = "x1" ; then
50013         COND_PLATFORM_MSDOS_1=""
50014     fi
50015
50016     COND_PLATFORM_OS2_1="#"
50017     if test "x$PLATFORM_OS2" = "x1" ; then
50018         COND_PLATFORM_OS2_1=""
50019     fi
50020
50021     COND_PLATFORM_UNIX_0="#"
50022     if test "x$PLATFORM_UNIX" = "x0" ; then
50023         COND_PLATFORM_UNIX_0=""
50024     fi
50025
50026     COND_PLATFORM_UNIX_1="#"
50027     if test "x$PLATFORM_UNIX" = "x1" ; then
50028         COND_PLATFORM_UNIX_1=""
50029     fi
50030
50031     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50032     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50033         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50034     fi
50035
50036     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50037     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50038         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50039     fi
50040
50041     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50042     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50043         COND_PLATFORM_UNIX_1_USE_GUI_1=""
50044     fi
50045
50046     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50047     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50048         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50049     fi
50050
50051     COND_PLATFORM_WIN32_0="#"
50052     if test "x$PLATFORM_WIN32" = "x0" ; then
50053         COND_PLATFORM_WIN32_0=""
50054     fi
50055
50056     COND_PLATFORM_WIN32_1="#"
50057     if test "x$PLATFORM_WIN32" = "x1" ; then
50058         COND_PLATFORM_WIN32_1=""
50059     fi
50060
50061     COND_SHARED_0="#"
50062     if test "x$SHARED" = "x0" ; then
50063         COND_SHARED_0=""
50064     fi
50065
50066     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50067     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50068         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50069     fi
50070
50071     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50072     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50073         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50074     fi
50075
50076     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50077     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50078         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50079     fi
50080
50081     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50082     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50083         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50084     fi
50085
50086     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50087     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50088         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50089     fi
50090
50091     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50092     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50093         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50094     fi
50095
50096     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50097     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50098         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50099     fi
50100
50101     COND_SHARED_0_USE_STC_1="#"
50102     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50103         COND_SHARED_0_USE_STC_1=""
50104     fi
50105
50106     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50107     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50108         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50109     fi
50110
50111     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50112     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50113         COND_SHARED_0_wxUSE_REGEX_builtin=""
50114     fi
50115
50116     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50117     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50118         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50119     fi
50120
50121     COND_SHARED_1="#"
50122     if test "x$SHARED" = "x1" ; then
50123         COND_SHARED_1=""
50124     fi
50125
50126     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50127     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50128         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50129     fi
50130
50131     COND_TOOLKIT_="#"
50132     if test "x$TOOLKIT" = "x" ; then
50133         COND_TOOLKIT_=""
50134     fi
50135
50136     COND_TOOLKIT_COCOA="#"
50137     if test "x$TOOLKIT" = "xCOCOA" ; then
50138         COND_TOOLKIT_COCOA=""
50139     fi
50140
50141     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50142     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50143         COND_TOOLKIT_COCOA_USE_GUI_1=""
50144     fi
50145
50146     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50147     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50148         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50149     fi
50150
50151     COND_TOOLKIT_DFB="#"
50152     if test "x$TOOLKIT" = "xDFB" ; then
50153         COND_TOOLKIT_DFB=""
50154     fi
50155
50156     COND_TOOLKIT_DFB_USE_GUI_1="#"
50157     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50158         COND_TOOLKIT_DFB_USE_GUI_1=""
50159     fi
50160
50161     COND_TOOLKIT_GTK="#"
50162     if test "x$TOOLKIT" = "xGTK" ; then
50163         COND_TOOLKIT_GTK=""
50164     fi
50165
50166     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50167     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50168         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50169     fi
50170
50171     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50172     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50173         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50174     fi
50175
50176     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50177     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50178         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50179     fi
50180
50181     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50182     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50183         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50184     fi
50185
50186     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50187     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50188         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50189     fi
50190
50191     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50192     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50193         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50194     fi
50195
50196     COND_TOOLKIT_GTK_USE_GUI_1="#"
50197     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50198         COND_TOOLKIT_GTK_USE_GUI_1=""
50199     fi
50200
50201     COND_TOOLKIT_MAC="#"
50202     if test "x$TOOLKIT" = "xMAC" ; then
50203         COND_TOOLKIT_MAC=""
50204     fi
50205
50206     COND_TOOLKIT_MGL="#"
50207     if test "x$TOOLKIT" = "xMGL" ; then
50208         COND_TOOLKIT_MGL=""
50209     fi
50210
50211     COND_TOOLKIT_MGL_USE_GUI_1="#"
50212     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50213         COND_TOOLKIT_MGL_USE_GUI_1=""
50214     fi
50215
50216     COND_TOOLKIT_MOTIF="#"
50217     if test "x$TOOLKIT" = "xMOTIF" ; then
50218         COND_TOOLKIT_MOTIF=""
50219     fi
50220
50221     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50222     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50223         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50224     fi
50225
50226     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50227     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50228         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50229     fi
50230
50231     COND_TOOLKIT_MSW="#"
50232     if test "x$TOOLKIT" = "xMSW" ; then
50233         COND_TOOLKIT_MSW=""
50234     fi
50235
50236     COND_TOOLKIT_MSW_USE_GUI_1="#"
50237     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50238         COND_TOOLKIT_MSW_USE_GUI_1=""
50239     fi
50240
50241     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50242     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50243         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50244     fi
50245
50246     COND_TOOLKIT_MSW_WXUNIV_0="#"
50247     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50248         COND_TOOLKIT_MSW_WXUNIV_0=""
50249     fi
50250
50251     COND_TOOLKIT_OSX_CARBON="#"
50252     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50253         COND_TOOLKIT_OSX_CARBON=""
50254     fi
50255
50256     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50257     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50258         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50259     fi
50260
50261     COND_TOOLKIT_OSX_COCOA="#"
50262     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50263         COND_TOOLKIT_OSX_COCOA=""
50264     fi
50265
50266     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50267     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50268         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50269     fi
50270
50271     COND_TOOLKIT_OSX_IPHONE="#"
50272     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50273         COND_TOOLKIT_OSX_IPHONE=""
50274     fi
50275
50276     COND_TOOLKIT_PM="#"
50277     if test "x$TOOLKIT" = "xPM" ; then
50278         COND_TOOLKIT_PM=""
50279     fi
50280
50281     COND_TOOLKIT_PM_USE_GUI_1="#"
50282     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50283         COND_TOOLKIT_PM_USE_GUI_1=""
50284     fi
50285
50286     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50287     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50288         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50289     fi
50290
50291     COND_TOOLKIT_WINCE="#"
50292     if test "x$TOOLKIT" = "xWINCE" ; then
50293         COND_TOOLKIT_WINCE=""
50294     fi
50295
50296     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50297     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50298         COND_TOOLKIT_WINCE_USE_GUI_1=""
50299     fi
50300
50301     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50302     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50303         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50304     fi
50305
50306     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50307     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50308         COND_TOOLKIT_WINCE_WXUNIV_0=""
50309     fi
50310
50311     COND_TOOLKIT_X11="#"
50312     if test "x$TOOLKIT" = "xX11" ; then
50313         COND_TOOLKIT_X11=""
50314     fi
50315
50316     COND_TOOLKIT_X11_USE_GUI_1="#"
50317     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50318         COND_TOOLKIT_X11_USE_GUI_1=""
50319     fi
50320
50321     COND_UNICODE_1="#"
50322     if test "x$UNICODE" = "x1" ; then
50323         COND_UNICODE_1=""
50324     fi
50325
50326     COND_USE_EXCEPTIONS_0="#"
50327     if test "x$USE_EXCEPTIONS" = "x0" ; then
50328         COND_USE_EXCEPTIONS_0=""
50329     fi
50330
50331     COND_USE_EXCEPTIONS_1="#"
50332     if test "x$USE_EXCEPTIONS" = "x1" ; then
50333         COND_USE_EXCEPTIONS_1=""
50334     fi
50335
50336     COND_USE_GUI_0="#"
50337     if test "x$USE_GUI" = "x0" ; then
50338         COND_USE_GUI_0=""
50339     fi
50340
50341     COND_USE_GUI_1="#"
50342     if test "x$USE_GUI" = "x1" ; then
50343         COND_USE_GUI_1=""
50344     fi
50345
50346     COND_USE_GUI_1_USE_OPENGL_1="#"
50347     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50348         COND_USE_GUI_1_USE_OPENGL_1=""
50349     fi
50350
50351     COND_USE_GUI_1_WXUNIV_0="#"
50352     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50353         COND_USE_GUI_1_WXUNIV_0=""
50354     fi
50355
50356     COND_USE_GUI_1_WXUNIV_1="#"
50357     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50358         COND_USE_GUI_1_WXUNIV_1=""
50359     fi
50360
50361     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50362     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50363         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50364     fi
50365
50366     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50367     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50368         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50369     fi
50370
50371     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50372     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50373         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50374     fi
50375
50376     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50377     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50378         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50379     fi
50380
50381     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50382     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50383         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50384     fi
50385
50386     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50387     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50388         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50389     fi
50390
50391     COND_USE_OPENGL_1="#"
50392     if test "x$USE_OPENGL" = "x1" ; then
50393         COND_USE_OPENGL_1=""
50394     fi
50395
50396     COND_USE_PCH_1="#"
50397     if test "x$USE_PCH" = "x1" ; then
50398         COND_USE_PCH_1=""
50399     fi
50400
50401     COND_USE_PLUGINS_0="#"
50402     if test "x$USE_PLUGINS" = "x0" ; then
50403         COND_USE_PLUGINS_0=""
50404     fi
50405
50406     COND_USE_RTTI_0="#"
50407     if test "x$USE_RTTI" = "x0" ; then
50408         COND_USE_RTTI_0=""
50409     fi
50410
50411     COND_USE_RTTI_1="#"
50412     if test "x$USE_RTTI" = "x1" ; then
50413         COND_USE_RTTI_1=""
50414     fi
50415
50416     COND_USE_SOSYMLINKS_1="#"
50417     if test "x$USE_SOSYMLINKS" = "x1" ; then
50418         COND_USE_SOSYMLINKS_1=""
50419     fi
50420
50421     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50422     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50423         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50424     fi
50425
50426     COND_USE_SOVERLINUX_1="#"
50427     if test "x$USE_SOVERLINUX" = "x1" ; then
50428         COND_USE_SOVERLINUX_1=""
50429     fi
50430
50431     COND_USE_SOVERSION_0="#"
50432     if test "x$USE_SOVERSION" = "x0" ; then
50433         COND_USE_SOVERSION_0=""
50434     fi
50435
50436     COND_USE_SOVERSOLARIS_1="#"
50437     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50438         COND_USE_SOVERSOLARIS_1=""
50439     fi
50440
50441     COND_USE_STC_1="#"
50442     if test "x$USE_STC" = "x1" ; then
50443         COND_USE_STC_1=""
50444     fi
50445
50446     COND_USE_THREADS_0="#"
50447     if test "x$USE_THREADS" = "x0" ; then
50448         COND_USE_THREADS_0=""
50449     fi
50450
50451     COND_USE_THREADS_1="#"
50452     if test "x$USE_THREADS" = "x1" ; then
50453         COND_USE_THREADS_1=""
50454     fi
50455
50456     COND_USE_XRC_1="#"
50457     if test "x$USE_XRC" = "x1" ; then
50458         COND_USE_XRC_1=""
50459     fi
50460
50461     COND_WINDOWS_IMPLIB_1="#"
50462     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50463         COND_WINDOWS_IMPLIB_1=""
50464     fi
50465
50466     COND_WITH_PLUGIN_SDL_1="#"
50467     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50468         COND_WITH_PLUGIN_SDL_1=""
50469     fi
50470
50471     COND_WXUNIV_0="#"
50472     if test "x$WXUNIV" = "x0" ; then
50473         COND_WXUNIV_0=""
50474     fi
50475
50476     COND_WXUNIV_1="#"
50477     if test "x$WXUNIV" = "x1" ; then
50478         COND_WXUNIV_1=""
50479     fi
50480
50481     COND_WXUSE_EXPAT_BUILTIN="#"
50482     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50483         COND_WXUSE_EXPAT_BUILTIN=""
50484     fi
50485
50486     COND_WXUSE_LIBJPEG_BUILTIN="#"
50487     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50488         COND_WXUSE_LIBJPEG_BUILTIN=""
50489     fi
50490
50491     COND_WXUSE_LIBPNG_BUILTIN="#"
50492     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50493         COND_WXUSE_LIBPNG_BUILTIN=""
50494     fi
50495
50496     COND_WXUSE_LIBTIFF_BUILTIN="#"
50497     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50498         COND_WXUSE_LIBTIFF_BUILTIN=""
50499     fi
50500
50501     COND_WXUSE_REGEX_BUILTIN="#"
50502     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50503         COND_WXUSE_REGEX_BUILTIN=""
50504     fi
50505
50506     COND_WXUSE_ZLIB_BUILTIN="#"
50507     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50508         COND_WXUSE_ZLIB_BUILTIN=""
50509     fi
50510
50511     COND_wxUSE_EXPAT_builtin="#"
50512     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50513         COND_wxUSE_EXPAT_builtin=""
50514     fi
50515
50516     COND_wxUSE_LIBJPEG_builtin="#"
50517     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50518         COND_wxUSE_LIBJPEG_builtin=""
50519     fi
50520
50521     COND_wxUSE_LIBPNG_builtin="#"
50522     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50523         COND_wxUSE_LIBPNG_builtin=""
50524     fi
50525
50526     COND_wxUSE_LIBTIFF_builtin="#"
50527     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50528         COND_wxUSE_LIBTIFF_builtin=""
50529     fi
50530
50531     COND_wxUSE_REGEX_builtin="#"
50532     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50533         COND_wxUSE_REGEX_builtin=""
50534     fi
50535
50536     COND_wxUSE_ZLIB_builtin="#"
50537     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50538         COND_wxUSE_ZLIB_builtin=""
50539     fi
50540
50541
50542
50543     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50544         { { 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
50545 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;}
50546    { (exit 1); exit 1; }; }
50547     fi
50548
50549     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50550         { { 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
50551 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;}
50552    { (exit 1); exit 1; }; }
50553     fi
50554
50555
50556 case ${INSTALL} in
50557   /* ) # Absolute
50558      ;;
50559   ?:* ) # Drive letter, considered as absolute.
50560      ;;
50561   *)
50562      INSTALL=`pwd`/${INSTALL} ;;
50563 esac
50564
50565 if test "$wxUSE_GUI" = "yes"; then
50566
50567 if test "$wxUSE_MSW" = 1 ; then
50568     if test "x$WINDRES" = "x"; then
50569         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50570 echo "$as_me: error: Required windres program not found" >&2;}
50571    { (exit 1); exit 1; }; }
50572     fi
50573
50574     RESCOMP="$WINDRES"
50575 fi
50576
50577 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50578             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50579     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50580
50581         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50582
50583     # Extract the first word of "DeRez", so it can be a program name with args.
50584 set dummy DeRez; ac_word=$2
50585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50587 if test "${ac_cv_prog_DEREZ+set}" = set; then
50588   echo $ECHO_N "(cached) $ECHO_C" >&6
50589 else
50590   if test -n "$DEREZ"; then
50591   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50592 else
50593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50594 for as_dir in $PATH
50595 do
50596   IFS=$as_save_IFS
50597   test -z "$as_dir" && as_dir=.
50598   for ac_exec_ext in '' $ac_executable_extensions; do
50599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50600     ac_cv_prog_DEREZ="DeRez"
50601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50602     break 2
50603   fi
50604 done
50605 done
50606 IFS=$as_save_IFS
50607
50608   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50609 fi
50610 fi
50611 DEREZ=$ac_cv_prog_DEREZ
50612 if test -n "$DEREZ"; then
50613   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50614 echo "${ECHO_T}$DEREZ" >&6; }
50615 else
50616   { echo "$as_me:$LINENO: result: no" >&5
50617 echo "${ECHO_T}no" >&6; }
50618 fi
50619
50620
50621
50622     MACSETFILE="\$(SETFILE)"
50623
50624             if test "$wxUSE_OSX_CARBON" = 1; then
50625         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50626         RESCOMP="$REZ"
50627         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50628     else
50629         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50630         RESCOMP="cat /dev/null \| $REZ"
50631         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50632     fi
50633
50634 else
50635         MACSETFILE="@true"
50636
50637     if test "$wxUSE_PM" = 1; then
50638         RESCOMP="emxbind"
50639         WXCONFIG_RESFLAGS="-ep"
50640
50641                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50642     else
50643         POSTLINK_COMMAND="@true"
50644     fi
50645 fi
50646
50647 fi
50648
50649
50650 if test $GCC_PCH = 1
50651 then
50652     if test "$wx_cv_gcc_pch_bug" = yes; then
50653         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50654 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50655         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50656 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50657         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50658 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50659     fi
50660
50661     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50662     # the headers that benefit from precompilation are mostly C++ headers.
50663     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50664     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50665     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50666 fi
50667
50668
50669 if test "$wxUSE_MAC" = 1 ; then
50670     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50671         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50672         mv temp bk-deps
50673         chmod +x bk-deps
50674     fi
50675 fi
50676
50677 if test "$wxUSE_SHARED" = "yes"; then
50678                 case "${host}" in
50679       *-pc-os2_emx | *-pc-os2-emx )
50680         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50681         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50682         cp -p ${srcdir}/src/os2/dllnames.sh .
50683         cp -p ${srcdir}/src/os2/dllar.sh .
50684       ;;
50685     esac
50686 fi
50687 if test "$wxUSE_OMF" = "yes"; then
50688     case "${host}" in
50689       *-pc-os2_emx | *-pc-os2-emx )
50690         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50691         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50692         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50693       ;;
50694     esac
50695 fi
50696
50697 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50698
50699
50700 case "${host}" in
50701     *-*-solaris2* )
50702                         if test "$GCC" = yes; then
50703             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50704             LIBS=`echo $LIBS | sed 's/-mt//'`
50705             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50706         fi
50707         ;;
50708
50709     *-*-linux* )
50710                         if test "x$SUNCXX" = xyes; then
50711             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50712             LIBS=`echo $LIBS | sed 's/-pthread//'`
50713             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50714         fi
50715         ;;
50716 esac
50717
50718 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50719 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50720 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50721 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50722
50723 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50724
50725
50726
50727
50728
50729
50730
50731
50732
50733
50734
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760
50761
50762
50763
50764
50765
50766
50767
50768
50769
50770
50771
50772
50773
50774
50775
50776
50777
50778
50779
50780
50781
50782
50783 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50784 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50785 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50786 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50787   echo $ECHO_N "(cached) $ECHO_C" >&6
50788 else
50789   cat >conftest.make <<\_ACEOF
50790 SHELL = /bin/sh
50791 all:
50792         @echo '@@@%%%=$(MAKE)=@@@%%%'
50793 _ACEOF
50794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50795 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50796   *@@@%%%=?*=@@@%%%*)
50797     eval ac_cv_prog_make_${ac_make}_set=yes;;
50798   *)
50799     eval ac_cv_prog_make_${ac_make}_set=no;;
50800 esac
50801 rm -f conftest.make
50802 fi
50803 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50804   { echo "$as_me:$LINENO: result: yes" >&5
50805 echo "${ECHO_T}yes" >&6; }
50806   SET_MAKE=
50807 else
50808   { echo "$as_me:$LINENO: result: no" >&5
50809 echo "${ECHO_T}no" >&6; }
50810   SET_MAKE="MAKE=${MAKE-make}"
50811 fi
50812
50813
50814
50815 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50816
50817
50818 if test "$USE_WIN32" = 1; then
50819     ac_config_commands="$ac_config_commands rcdefs.h"
50820
50821 fi
50822
50823 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50824
50825
50826 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50827
50828
50829 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50830
50831
50832 if test "$wx_cv_version_script" = "yes"; then
50833     ac_config_files="$ac_config_files version-script"
50834
50835 fi
50836 ac_config_files="$ac_config_files Makefile"
50837
50838
50839 ac_config_commands="$ac_config_commands wx-config"
50840
50841
50842
50843 if test "$wxWITH_SUBDIRS" != "no"; then
50844 if test "$wxUSE_GUI" = "yes"; then
50845     SUBDIRS="samples demos utils"
50846 else
50847             SUBDIRS="samples utils"
50848 fi
50849
50850
50851
50852 # Check whether --with-cppunit-prefix was given.
50853 if test "${with_cppunit_prefix+set}" = set; then
50854   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50855 else
50856   cppunit_config_prefix=""
50857 fi
50858
50859
50860 # Check whether --with-cppunit-exec-prefix was given.
50861 if test "${with_cppunit_exec_prefix+set}" = set; then
50862   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50863 else
50864   cppunit_config_exec_prefix=""
50865 fi
50866
50867
50868   if test x$cppunit_config_exec_prefix != x ; then
50869      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50870      if test x${CPPUNIT_CONFIG+set} != xset ; then
50871         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50872      fi
50873   fi
50874   if test x$cppunit_config_prefix != x ; then
50875      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50876      if test x${CPPUNIT_CONFIG+set} != xset ; then
50877         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50878      fi
50879   fi
50880
50881   # Extract the first word of "cppunit-config", so it can be a program name with args.
50882 set dummy cppunit-config; ac_word=$2
50883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50885 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50886   echo $ECHO_N "(cached) $ECHO_C" >&6
50887 else
50888   case $CPPUNIT_CONFIG in
50889   [\\/]* | ?:[\\/]*)
50890   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50891   ;;
50892   *)
50893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50894 for as_dir in $PATH
50895 do
50896   IFS=$as_save_IFS
50897   test -z "$as_dir" && as_dir=.
50898   for ac_exec_ext in '' $ac_executable_extensions; do
50899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50900     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50902     break 2
50903   fi
50904 done
50905 done
50906 IFS=$as_save_IFS
50907
50908   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50909   ;;
50910 esac
50911 fi
50912 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50913 if test -n "$CPPUNIT_CONFIG"; then
50914   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50915 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50916 else
50917   { echo "$as_me:$LINENO: result: no" >&5
50918 echo "${ECHO_T}no" >&6; }
50919 fi
50920
50921
50922   cppunit_version_min=1.8.0
50923
50924   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50925 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50926   no_cppunit=""
50927   if test "$CPPUNIT_CONFIG" = "no" ; then
50928     { echo "$as_me:$LINENO: result: no" >&5
50929 echo "${ECHO_T}no" >&6; }
50930     no_cppunit=yes
50931   else
50932     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50933     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50934     cppunit_version=`$CPPUNIT_CONFIG --version`
50935
50936     cppunit_major_version=`echo $cppunit_version | \
50937            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50938     cppunit_minor_version=`echo $cppunit_version | \
50939            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50940     cppunit_micro_version=`echo $cppunit_version | \
50941            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50942
50943     cppunit_major_min=`echo $cppunit_version_min | \
50944            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50945     cppunit_minor_min=`echo $cppunit_version_min | \
50946            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50947     cppunit_micro_min=`echo $cppunit_version_min | \
50948            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50949
50950     cppunit_version_proper=`expr \
50951         $cppunit_major_version \> $cppunit_major_min \| \
50952         $cppunit_major_version \= $cppunit_major_min \& \
50953         $cppunit_minor_version \> $cppunit_minor_min \| \
50954         $cppunit_major_version \= $cppunit_major_min \& \
50955         $cppunit_minor_version \= $cppunit_minor_min \& \
50956         $cppunit_micro_version \>= $cppunit_micro_min `
50957
50958     if test "$cppunit_version_proper" = "1" ; then
50959       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50960 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50961     else
50962       { echo "$as_me:$LINENO: result: no" >&5
50963 echo "${ECHO_T}no" >&6; }
50964       no_cppunit=yes
50965     fi
50966   fi
50967
50968   if test "x$no_cppunit" = x ; then
50969      SUBDIRS="$SUBDIRS tests"
50970   else
50971      CPPUNIT_CFLAGS=""
50972      CPPUNIT_LIBS=""
50973      :
50974   fi
50975
50976
50977
50978
50979
50980 for subdir in $SUBDIRS; do
50981     if test -d ${srcdir}/${subdir} ; then
50982         if test "$wxUSE_GUI" = "yes"; then
50983             if test ${subdir} = "samples"; then
50984                                                 makefiles="samples/Makefile.in $makefiles"
50985                 for sample in $SAMPLES_SUBDIRS; do
50986                     if test -d $srcdir/samples/$sample; then
50987                         makefiles="samples/$sample/Makefile.in $makefiles"
50988                     fi
50989                 done
50990             else
50991                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50992                 eval "disabled=\$$disabled_var"
50993                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50994                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50995             fi
50996         else
50997                                     if test ${subdir} = "samples"; then
50998                                                 makefiles="samples/Makefile.in $makefiles"
50999                 for sample in `echo $SAMPLES_SUBDIRS`; do
51000                     if test -d $srcdir/samples/$sample; then
51001                         makefiles="samples/$sample/Makefile.in $makefiles"
51002                     fi
51003                 done
51004             elif test ${subdir} = "utils"; then
51005                 makefiles=""
51006                 for util in ifacecheck ; do
51007                     if test -d $srcdir/utils/$util ; then
51008                         makefiles="utils/$util/src/Makefile.in \
51009                                    $makefiles"
51010                     fi
51011                 done
51012             else
51013                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51014             fi
51015         fi
51016
51017         for mkin in $makefiles ; do
51018             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51019             ac_config_files="$ac_config_files $mk"
51020
51021         done
51022     fi
51023 done
51024 fi
51025 cat >confcache <<\_ACEOF
51026 # This file is a shell script that caches the results of configure
51027 # tests run on this system so they can be shared between configure
51028 # scripts and configure runs, see configure's option --config-cache.
51029 # It is not useful on other systems.  If it contains results you don't
51030 # want to keep, you may remove or edit it.
51031 #
51032 # config.status only pays attention to the cache file if you give it
51033 # the --recheck option to rerun configure.
51034 #
51035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51037 # following values.
51038
51039 _ACEOF
51040
51041 # The following way of writing the cache mishandles newlines in values,
51042 # but we know of no workaround that is simple, portable, and efficient.
51043 # So, we kill variables containing newlines.
51044 # Ultrix sh set writes to stderr and can't be redirected directly,
51045 # and sets the high bit in the cache file unless we assign to the vars.
51046 (
51047   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51048     eval ac_val=\$$ac_var
51049     case $ac_val in #(
51050     *${as_nl}*)
51051       case $ac_var in #(
51052       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
51053 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
51054       esac
51055       case $ac_var in #(
51056       _ | IFS | as_nl) ;; #(
51057       *) $as_unset $ac_var ;;
51058       esac ;;
51059     esac
51060   done
51061
51062   (set) 2>&1 |
51063     case $as_nl`(ac_space=' '; set) 2>&1` in #(
51064     *${as_nl}ac_space=\ *)
51065       # `set' does not quote correctly, so add quotes (double-quote
51066       # substitution turns \\\\ into \\, and sed turns \\ into \).
51067       sed -n \
51068         "s/'/'\\\\''/g;
51069           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51070       ;; #(
51071     *)
51072       # `set' quotes correctly as required by POSIX, so do not add quotes.
51073       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51074       ;;
51075     esac |
51076     sort
51077 ) |
51078   sed '
51079      /^ac_cv_env_/b end
51080      t clear
51081      :clear
51082      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51083      t end
51084      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51085      :end' >>confcache
51086 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51087   if test -w "$cache_file"; then
51088     test "x$cache_file" != "x/dev/null" &&
51089       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51090 echo "$as_me: updating cache $cache_file" >&6;}
51091     cat confcache >$cache_file
51092   else
51093     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51094 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51095   fi
51096 fi
51097 rm -f confcache
51098
51099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51100 # Let make expand exec_prefix.
51101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51102
51103 DEFS=-DHAVE_CONFIG_H
51104
51105 ac_libobjs=
51106 ac_ltlibobjs=
51107 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51108   # 1. Remove the extension, and $U if already installed.
51109   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51110   ac_i=`echo "$ac_i" | sed "$ac_script"`
51111   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51112   #    will be set to the directory where LIBOBJS objects are built.
51113   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51114   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51115 done
51116 LIBOBJS=$ac_libobjs
51117
51118 LTLIBOBJS=$ac_ltlibobjs
51119
51120
51121
51122 : ${CONFIG_STATUS=./config.status}
51123 ac_clean_files_save=$ac_clean_files
51124 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51125 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51126 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51127 cat >$CONFIG_STATUS <<_ACEOF
51128 #! $SHELL
51129 # Generated by $as_me.
51130 # Run this file to recreate the current configuration.
51131 # Compiler output produced by configure, useful for debugging
51132 # configure, is in config.log if it exists.
51133
51134 debug=false
51135 ac_cs_recheck=false
51136 ac_cs_silent=false
51137 SHELL=\${CONFIG_SHELL-$SHELL}
51138 _ACEOF
51139
51140 cat >>$CONFIG_STATUS <<\_ACEOF
51141 ## --------------------- ##
51142 ## M4sh Initialization.  ##
51143 ## --------------------- ##
51144
51145 # Be more Bourne compatible
51146 DUALCASE=1; export DUALCASE # for MKS sh
51147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51148   emulate sh
51149   NULLCMD=:
51150   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51151   # is contrary to our usage.  Disable this feature.
51152   alias -g '${1+"$@"}'='"$@"'
51153   setopt NO_GLOB_SUBST
51154 else
51155   case `(set -o) 2>/dev/null` in
51156   *posix*) set -o posix ;;
51157 esac
51158
51159 fi
51160
51161
51162
51163
51164 # PATH needs CR
51165 # Avoid depending upon Character Ranges.
51166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51169 as_cr_digits='0123456789'
51170 as_cr_alnum=$as_cr_Letters$as_cr_digits
51171
51172 # The user is always right.
51173 if test "${PATH_SEPARATOR+set}" != set; then
51174   echo "#! /bin/sh" >conf$$.sh
51175   echo  "exit 0"   >>conf$$.sh
51176   chmod +x conf$$.sh
51177   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51178     PATH_SEPARATOR=';'
51179   else
51180     PATH_SEPARATOR=:
51181   fi
51182   rm -f conf$$.sh
51183 fi
51184
51185 # Support unset when possible.
51186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51187   as_unset=unset
51188 else
51189   as_unset=false
51190 fi
51191
51192
51193 # IFS
51194 # We need space, tab and new line, in precisely that order.  Quoting is
51195 # there to prevent editors from complaining about space-tab.
51196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51197 # splitting by setting IFS to empty value.)
51198 as_nl='
51199 '
51200 IFS=" ""        $as_nl"
51201
51202 # Find who we are.  Look in the path if we contain no directory separator.
51203 case $0 in
51204   *[\\/]* ) as_myself=$0 ;;
51205   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51206 for as_dir in $PATH
51207 do
51208   IFS=$as_save_IFS
51209   test -z "$as_dir" && as_dir=.
51210   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51211 done
51212 IFS=$as_save_IFS
51213
51214      ;;
51215 esac
51216 # We did not find ourselves, most probably we were run as `sh COMMAND'
51217 # in which case we are not to be found in the path.
51218 if test "x$as_myself" = x; then
51219   as_myself=$0
51220 fi
51221 if test ! -f "$as_myself"; then
51222   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51223   { (exit 1); exit 1; }
51224 fi
51225
51226 # Work around bugs in pre-3.0 UWIN ksh.
51227 for as_var in ENV MAIL MAILPATH
51228 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51229 done
51230 PS1='$ '
51231 PS2='> '
51232 PS4='+ '
51233
51234 # NLS nuisances.
51235 for as_var in \
51236   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51237   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51238   LC_TELEPHONE LC_TIME
51239 do
51240   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51241     eval $as_var=C; export $as_var
51242   else
51243     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51244   fi
51245 done
51246
51247 # Required to use basename.
51248 if expr a : '\(a\)' >/dev/null 2>&1 &&
51249    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51250   as_expr=expr
51251 else
51252   as_expr=false
51253 fi
51254
51255 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51256   as_basename=basename
51257 else
51258   as_basename=false
51259 fi
51260
51261
51262 # Name of the executable.
51263 as_me=`$as_basename -- "$0" ||
51264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51265          X"$0" : 'X\(//\)$' \| \
51266          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51267 echo X/"$0" |
51268     sed '/^.*\/\([^/][^/]*\)\/*$/{
51269             s//\1/
51270             q
51271           }
51272           /^X\/\(\/\/\)$/{
51273             s//\1/
51274             q
51275           }
51276           /^X\/\(\/\).*/{
51277             s//\1/
51278             q
51279           }
51280           s/.*/./; q'`
51281
51282 # CDPATH.
51283 $as_unset CDPATH
51284
51285
51286
51287   as_lineno_1=$LINENO
51288   as_lineno_2=$LINENO
51289   test "x$as_lineno_1" != "x$as_lineno_2" &&
51290   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51291
51292   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51293   # uniformly replaced by the line number.  The first 'sed' inserts a
51294   # line-number line after each line using $LINENO; the second 'sed'
51295   # does the real work.  The second script uses 'N' to pair each
51296   # line-number line with the line containing $LINENO, and appends
51297   # trailing '-' during substitution so that $LINENO is not a special
51298   # case at line end.
51299   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51300   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51301   # E. McMahon (1931-1989) for sed's syntax.  :-)
51302   sed -n '
51303     p
51304     /[$]LINENO/=
51305   ' <$as_myself |
51306     sed '
51307       s/[$]LINENO.*/&-/
51308       t lineno
51309       b
51310       :lineno
51311       N
51312       :loop
51313       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51314       t loop
51315       s/-\n.*//
51316     ' >$as_me.lineno &&
51317   chmod +x "$as_me.lineno" ||
51318     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51319    { (exit 1); exit 1; }; }
51320
51321   # Don't try to exec as it changes $[0], causing all sort of problems
51322   # (the dirname of $[0] is not the place where we might find the
51323   # original and so on.  Autoconf is especially sensitive to this).
51324   . "./$as_me.lineno"
51325   # Exit status is that of the last command.
51326   exit
51327 }
51328
51329
51330 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51331   as_dirname=dirname
51332 else
51333   as_dirname=false
51334 fi
51335
51336 ECHO_C= ECHO_N= ECHO_T=
51337 case `echo -n x` in
51338 -n*)
51339   case `echo 'x\c'` in
51340   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51341   *)   ECHO_C='\c';;
51342   esac;;
51343 *)
51344   ECHO_N='-n';;
51345 esac
51346
51347 if expr a : '\(a\)' >/dev/null 2>&1 &&
51348    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51349   as_expr=expr
51350 else
51351   as_expr=false
51352 fi
51353
51354 rm -f conf$$ conf$$.exe conf$$.file
51355 if test -d conf$$.dir; then
51356   rm -f conf$$.dir/conf$$.file
51357 else
51358   rm -f conf$$.dir
51359   mkdir conf$$.dir
51360 fi
51361 echo >conf$$.file
51362 if ln -s conf$$.file conf$$ 2>/dev/null; then
51363   as_ln_s='ln -s'
51364   # ... but there are two gotchas:
51365   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51366   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51367   # In both cases, we have to default to `cp -p'.
51368   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51369     as_ln_s='cp -p'
51370 elif ln conf$$.file conf$$ 2>/dev/null; then
51371   as_ln_s=ln
51372 else
51373   as_ln_s='cp -p'
51374 fi
51375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51376 rmdir conf$$.dir 2>/dev/null
51377
51378 if mkdir -p . 2>/dev/null; then
51379   as_mkdir_p=:
51380 else
51381   test -d ./-p && rmdir ./-p
51382   as_mkdir_p=false
51383 fi
51384
51385 if test -x / >/dev/null 2>&1; then
51386   as_test_x='test -x'
51387 else
51388   if ls -dL / >/dev/null 2>&1; then
51389     as_ls_L_option=L
51390   else
51391     as_ls_L_option=
51392   fi
51393   as_test_x='
51394     eval sh -c '\''
51395       if test -d "$1"; then
51396         test -d "$1/.";
51397       else
51398         case $1 in
51399         -*)set "./$1";;
51400         esac;
51401         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51402         ???[sx]*):;;*)false;;esac;fi
51403     '\'' sh
51404   '
51405 fi
51406 as_executable_p=$as_test_x
51407
51408 # Sed expression to map a string onto a valid CPP name.
51409 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51410
51411 # Sed expression to map a string onto a valid variable name.
51412 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51413
51414
51415 exec 6>&1
51416
51417 # Save the log message, to keep $[0] and so on meaningful, and to
51418 # report actual input values of CONFIG_FILES etc. instead of their
51419 # values after options handling.
51420 ac_log="
51421 This file was extended by wxWidgets $as_me 2.9.1, which was
51422 generated by GNU Autoconf 2.61.  Invocation command line was
51423
51424   CONFIG_FILES    = $CONFIG_FILES
51425   CONFIG_HEADERS  = $CONFIG_HEADERS
51426   CONFIG_LINKS    = $CONFIG_LINKS
51427   CONFIG_COMMANDS = $CONFIG_COMMANDS
51428   $ $0 $@
51429
51430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51431 "
51432
51433 _ACEOF
51434
51435 cat >>$CONFIG_STATUS <<_ACEOF
51436 # Files that config.status was made for.
51437 config_files="$ac_config_files"
51438 config_headers="$ac_config_headers"
51439 config_commands="$ac_config_commands"
51440
51441 _ACEOF
51442
51443 cat >>$CONFIG_STATUS <<\_ACEOF
51444 ac_cs_usage="\
51445 \`$as_me' instantiates files from templates according to the
51446 current configuration.
51447
51448 Usage: $0 [OPTIONS] [FILE]...
51449
51450   -h, --help       print this help, then exit
51451   -V, --version    print version number and configuration settings, then exit
51452   -q, --quiet      do not print progress messages
51453   -d, --debug      don't remove temporary files
51454       --recheck    update $as_me by reconfiguring in the same conditions
51455   --file=FILE[:TEMPLATE]
51456                    instantiate the configuration file FILE
51457   --header=FILE[:TEMPLATE]
51458                    instantiate the configuration header FILE
51459
51460 Configuration files:
51461 $config_files
51462
51463 Configuration headers:
51464 $config_headers
51465
51466 Configuration commands:
51467 $config_commands
51468
51469 Report bugs to <bug-autoconf@gnu.org>."
51470
51471 _ACEOF
51472 cat >>$CONFIG_STATUS <<_ACEOF
51473 ac_cs_version="\\
51474 wxWidgets config.status 2.9.1
51475 configured by $0, generated by GNU Autoconf 2.61,
51476   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51477
51478 Copyright (C) 2006 Free Software Foundation, Inc.
51479 This config.status script is free software; the Free Software Foundation
51480 gives unlimited permission to copy, distribute and modify it."
51481
51482 ac_pwd='$ac_pwd'
51483 srcdir='$srcdir'
51484 INSTALL='$INSTALL'
51485 _ACEOF
51486
51487 cat >>$CONFIG_STATUS <<\_ACEOF
51488 # If no file are specified by the user, then we need to provide default
51489 # value.  By we need to know if files were specified by the user.
51490 ac_need_defaults=:
51491 while test $# != 0
51492 do
51493   case $1 in
51494   --*=*)
51495     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51496     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51497     ac_shift=:
51498     ;;
51499   *)
51500     ac_option=$1
51501     ac_optarg=$2
51502     ac_shift=shift
51503     ;;
51504   esac
51505
51506   case $ac_option in
51507   # Handling of the options.
51508   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51509     ac_cs_recheck=: ;;
51510   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51511     echo "$ac_cs_version"; exit ;;
51512   --debug | --debu | --deb | --de | --d | -d )
51513     debug=: ;;
51514   --file | --fil | --fi | --f )
51515     $ac_shift
51516     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51517     ac_need_defaults=false;;
51518   --header | --heade | --head | --hea )
51519     $ac_shift
51520     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51521     ac_need_defaults=false;;
51522   --he | --h)
51523     # Conflict between --help and --header
51524     { echo "$as_me: error: ambiguous option: $1
51525 Try \`$0 --help' for more information." >&2
51526    { (exit 1); exit 1; }; };;
51527   --help | --hel | -h )
51528     echo "$ac_cs_usage"; exit ;;
51529   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51530   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51531     ac_cs_silent=: ;;
51532
51533   # This is an error.
51534   -*) { echo "$as_me: error: unrecognized option: $1
51535 Try \`$0 --help' for more information." >&2
51536    { (exit 1); exit 1; }; } ;;
51537
51538   *) ac_config_targets="$ac_config_targets $1"
51539      ac_need_defaults=false ;;
51540
51541   esac
51542   shift
51543 done
51544
51545 ac_configure_extra_args=
51546
51547 if $ac_cs_silent; then
51548   exec 6>/dev/null
51549   ac_configure_extra_args="$ac_configure_extra_args --silent"
51550 fi
51551
51552 _ACEOF
51553 cat >>$CONFIG_STATUS <<_ACEOF
51554 if \$ac_cs_recheck; then
51555   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51556   CONFIG_SHELL=$SHELL
51557   export CONFIG_SHELL
51558   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51559 fi
51560
51561 _ACEOF
51562 cat >>$CONFIG_STATUS <<\_ACEOF
51563 exec 5>>config.log
51564 {
51565   echo
51566   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51567 ## Running $as_me. ##
51568 _ASBOX
51569   echo "$ac_log"
51570 } >&5
51571
51572 _ACEOF
51573 cat >>$CONFIG_STATUS <<_ACEOF
51574 #
51575 # INIT-COMMANDS
51576 #
51577
51578             CPP="$CPP"
51579             infile="$srcdir/include/wx/msw/genrcdefs.h"
51580             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51581
51582
51583  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51584  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51585  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51586                      LN_S="${LN_S}"
51587
51588
51589 _ACEOF
51590
51591 cat >>$CONFIG_STATUS <<\_ACEOF
51592
51593 # Handling of arguments.
51594 for ac_config_target in $ac_config_targets
51595 do
51596   case $ac_config_target in
51597     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51598     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51599     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51600     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51601     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51602     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51603     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51604     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51605     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51606
51607   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51608 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51609    { (exit 1); exit 1; }; };;
51610   esac
51611 done
51612
51613
51614 # If the user did not use the arguments to specify the items to instantiate,
51615 # then the envvar interface is used.  Set only those that are not.
51616 # We use the long form for the default assignment because of an extremely
51617 # bizarre bug on SunOS 4.1.3.
51618 if $ac_need_defaults; then
51619   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51620   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51621   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51622 fi
51623
51624 # Have a temporary directory for convenience.  Make it in the build tree
51625 # simply because there is no reason against having it here, and in addition,
51626 # creating and moving files from /tmp can sometimes cause problems.
51627 # Hook for its removal unless debugging.
51628 # Note that there is a small window in which the directory will not be cleaned:
51629 # after its creation but before its name has been assigned to `$tmp'.
51630 $debug ||
51631 {
51632   tmp=
51633   trap 'exit_status=$?
51634   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51635 ' 0
51636   trap '{ (exit 1); exit 1; }' 1 2 13 15
51637 }
51638 # Create a (secure) tmp directory for tmp files.
51639
51640 {
51641   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51642   test -n "$tmp" && test -d "$tmp"
51643 }  ||
51644 {
51645   tmp=./conf$$-$RANDOM
51646   (umask 077 && mkdir "$tmp")
51647 } ||
51648 {
51649    echo "$me: cannot create a temporary directory in ." >&2
51650    { (exit 1); exit 1; }
51651 }
51652
51653 #
51654 # Set up the sed scripts for CONFIG_FILES section.
51655 #
51656
51657 # No need to generate the scripts if there are no CONFIG_FILES.
51658 # This happens for instance when ./config.status config.h
51659 if test -n "$CONFIG_FILES"; then
51660
51661 _ACEOF
51662
51663
51664
51665 ac_delim='%!_!# '
51666 for ac_last_try in false false false false false :; do
51667   cat >conf$$subs.sed <<_ACEOF
51668 SHELL!$SHELL$ac_delim
51669 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51670 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51671 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51672 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51673 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51674 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51675 exec_prefix!$exec_prefix$ac_delim
51676 prefix!$prefix$ac_delim
51677 program_transform_name!$program_transform_name$ac_delim
51678 bindir!$bindir$ac_delim
51679 sbindir!$sbindir$ac_delim
51680 libexecdir!$libexecdir$ac_delim
51681 datarootdir!$datarootdir$ac_delim
51682 datadir!$datadir$ac_delim
51683 sysconfdir!$sysconfdir$ac_delim
51684 sharedstatedir!$sharedstatedir$ac_delim
51685 localstatedir!$localstatedir$ac_delim
51686 includedir!$includedir$ac_delim
51687 oldincludedir!$oldincludedir$ac_delim
51688 docdir!$docdir$ac_delim
51689 infodir!$infodir$ac_delim
51690 htmldir!$htmldir$ac_delim
51691 dvidir!$dvidir$ac_delim
51692 pdfdir!$pdfdir$ac_delim
51693 psdir!$psdir$ac_delim
51694 libdir!$libdir$ac_delim
51695 localedir!$localedir$ac_delim
51696 mandir!$mandir$ac_delim
51697 DEFS!$DEFS$ac_delim
51698 ECHO_C!$ECHO_C$ac_delim
51699 ECHO_N!$ECHO_N$ac_delim
51700 ECHO_T!$ECHO_T$ac_delim
51701 LIBS!$LIBS$ac_delim
51702 build_alias!$build_alias$ac_delim
51703 host_alias!$host_alias$ac_delim
51704 target_alias!$target_alias$ac_delim
51705 build!$build$ac_delim
51706 build_cpu!$build_cpu$ac_delim
51707 build_vendor!$build_vendor$ac_delim
51708 build_os!$build_os$ac_delim
51709 host!$host$ac_delim
51710 host_cpu!$host_cpu$ac_delim
51711 host_vendor!$host_vendor$ac_delim
51712 host_os!$host_os$ac_delim
51713 wx_top_builddir!$wx_top_builddir$ac_delim
51714 CC!$CC$ac_delim
51715 CFLAGS!$CFLAGS$ac_delim
51716 LDFLAGS!$LDFLAGS$ac_delim
51717 CPPFLAGS!$CPPFLAGS$ac_delim
51718 ac_ct_CC!$ac_ct_CC$ac_delim
51719 EXEEXT!$EXEEXT$ac_delim
51720 OBJEXT!$OBJEXT$ac_delim
51721 CPP!$CPP$ac_delim
51722 GREP!$GREP$ac_delim
51723 EGREP!$EGREP$ac_delim
51724 CXX!$CXX$ac_delim
51725 CXXFLAGS!$CXXFLAGS$ac_delim
51726 ac_ct_CXX!$ac_ct_CXX$ac_delim
51727 AR!$AR$ac_delim
51728 subdirs!$subdirs$ac_delim
51729 PKG_CONFIG!$PKG_CONFIG$ac_delim
51730 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51731 GTK_LIBS!$GTK_LIBS$ac_delim
51732 GTK_CONFIG!$GTK_CONFIG$ac_delim
51733 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51734 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51735 XMKMF!$XMKMF$ac_delim
51736 X_CFLAGS!$X_CFLAGS$ac_delim
51737 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51738 X_LIBS!$X_LIBS$ac_delim
51739 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51740 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51741 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51742 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51743 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51744 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51745 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51746 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51747 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51748 LIBICONV!$LIBICONV$ac_delim
51749 GXX_VERSION!$GXX_VERSION$ac_delim
51750 SDL_CONFIG!$SDL_CONFIG$ac_delim
51751 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51752 SDL_LIBS!$SDL_LIBS$ac_delim
51753 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51754 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51755 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51756 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51757 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51758 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51759 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51760 HILDON_LIBS!$HILDON_LIBS$ac_delim
51761 PYTHON!$PYTHON$ac_delim
51762 COND_PYTHON!$COND_PYTHON$ac_delim
51763 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51764 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51765 _ACEOF
51766
51767   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51768     break
51769   elif $ac_last_try; then
51770     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51771 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51772    { (exit 1); exit 1; }; }
51773   else
51774     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51775   fi
51776 done
51777
51778 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51779 if test -n "$ac_eof"; then
51780   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51781   ac_eof=`expr $ac_eof + 1`
51782 fi
51783
51784 cat >>$CONFIG_STATUS <<_ACEOF
51785 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51787 _ACEOF
51788 sed '
51789 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51790 s/^/s,@/; s/!/@,|#_!!_#|/
51791 :n
51792 t n
51793 s/'"$ac_delim"'$/,g/; t
51794 s/$/\\/; p
51795 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51796 ' >>$CONFIG_STATUS <conf$$subs.sed
51797 rm -f conf$$subs.sed
51798 cat >>$CONFIG_STATUS <<_ACEOF
51799 CEOF$ac_eof
51800 _ACEOF
51801
51802
51803 ac_delim='%!_!# '
51804 for ac_last_try in false false false false false :; do
51805   cat >conf$$subs.sed <<_ACEOF
51806 GST_CFLAGS!$GST_CFLAGS$ac_delim
51807 GST_LIBS!$GST_LIBS$ac_delim
51808 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51809 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51810 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51811 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51812 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51813 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51814 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51815 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51816 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51817 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51818 VENDOR!$VENDOR$ac_delim
51819 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51820 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51821 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51822 WXUNIV!$WXUNIV$ac_delim
51823 MONOLITHIC!$MONOLITHIC$ac_delim
51824 USE_PLUGINS!$USE_PLUGINS$ac_delim
51825 CXXWARNINGS!$CXXWARNINGS$ac_delim
51826 EXTRALIBS!$EXTRALIBS$ac_delim
51827 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51828 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51829 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51830 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51831 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51832 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51833 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51834 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51835 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51836 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51837 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51838 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51839 UNICODE!$UNICODE$ac_delim
51840 DEBUG_INFO!$DEBUG_INFO$ac_delim
51841 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51842 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51843 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51844 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
51845 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
51846 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51847 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
51848 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51849 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51850 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51851 RANLIB!$RANLIB$ac_delim
51852 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51853 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51854 INSTALL_DATA!$INSTALL_DATA$ac_delim
51855 LN_S!$LN_S$ac_delim
51856 SET_MAKE!$SET_MAKE$ac_delim
51857 MAKE_SET!$MAKE_SET$ac_delim
51858 AROPTIONS!$AROPTIONS$ac_delim
51859 STRIP!$STRIP$ac_delim
51860 NM!$NM$ac_delim
51861 INSTALL_DIR!$INSTALL_DIR$ac_delim
51862 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51863 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51864 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51865 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51866 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51867 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51868 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51869 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51870 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51871 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51872 SO_SUFFIX!$SO_SUFFIX$ac_delim
51873 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51874 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51875 LIBPREFIX!$LIBPREFIX$ac_delim
51876 LIBEXT!$LIBEXT$ac_delim
51877 DLLPREFIX!$DLLPREFIX$ac_delim
51878 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51879 dlldir!$dlldir$ac_delim
51880 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51881 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51882 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51883 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51884 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51885 PIC_FLAG!$PIC_FLAG$ac_delim
51886 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51887 USE_SOVERSION!$USE_SOVERSION$ac_delim
51888 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51889 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51890 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51891 USE_MACVERSION!$USE_MACVERSION$ac_delim
51892 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51893 SONAME_FLAG!$SONAME_FLAG$ac_delim
51894 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51895 BK_DEPS!$BK_DEPS$ac_delim
51896 WINDRES!$WINDRES$ac_delim
51897 REZ!$REZ$ac_delim
51898 SETFILE!$SETFILE$ac_delim
51899 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
51900 GCC_PCH!$GCC_PCH$ac_delim
51901 ICC_PCH!$ICC_PCH$ac_delim
51902 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
51903 _ACEOF
51904
51905   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51906     break
51907   elif $ac_last_try; then
51908     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51909 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51910    { (exit 1); exit 1; }; }
51911   else
51912     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51913   fi
51914 done
51915
51916 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51917 if test -n "$ac_eof"; then
51918   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51919   ac_eof=`expr $ac_eof + 1`
51920 fi
51921
51922 cat >>$CONFIG_STATUS <<_ACEOF
51923 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51925 _ACEOF
51926 sed '
51927 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51928 s/^/s,@/; s/!/@,|#_!!_#|/
51929 :n
51930 t n
51931 s/'"$ac_delim"'$/,g/; t
51932 s/$/\\/; p
51933 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51934 ' >>$CONFIG_STATUS <conf$$subs.sed
51935 rm -f conf$$subs.sed
51936 cat >>$CONFIG_STATUS <<_ACEOF
51937 CEOF$ac_eof
51938 _ACEOF
51939
51940
51941 ac_delim='%!_!# '
51942 for ac_last_try in false false false false false :; do
51943   cat >conf$$subs.sed <<_ACEOF
51944 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
51945 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51946 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51947 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51948 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51949 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51950 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51951 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51952 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51953 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51954 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51955 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
51956 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
51957 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
51958 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
51959 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
51960 COND_BUILD_release!$COND_BUILD_release$ac_delim
51961 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
51962 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
51963 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
51964 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
51965 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51966 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51967 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51968 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51969 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51970 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51971 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51972 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51973 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51974 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51975 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51976 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51977 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51978 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51979 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
51980 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51981 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51982 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51983 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51984 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51985 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51986 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51987 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51988 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51989 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
51990 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51991 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51992 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51993 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51994 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51995 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51996 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51997 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51998 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
51999 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
52000 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
52001 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
52002 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
52003 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
52004 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
52005 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
52006 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
52007 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
52008 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
52009 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
52010 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
52011 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
52012 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52013 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
52014 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52015 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
52016 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
52017 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
52018 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
52019 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
52020 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
52021 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
52022 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
52023 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
52024 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
52025 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
52026 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
52027 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
52028 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
52029 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
52030 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
52031 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
52032 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
52033 COND_SHARED_0!$COND_SHARED_0$ac_delim
52034 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
52035 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
52036 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
52037 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
52038 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52039 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52040 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52041 _ACEOF
52042
52043   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52044     break
52045   elif $ac_last_try; then
52046     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52047 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52048    { (exit 1); exit 1; }; }
52049   else
52050     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52051   fi
52052 done
52053
52054 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52055 if test -n "$ac_eof"; then
52056   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52057   ac_eof=`expr $ac_eof + 1`
52058 fi
52059
52060 cat >>$CONFIG_STATUS <<_ACEOF
52061 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
52062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52063 _ACEOF
52064 sed '
52065 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52066 s/^/s,@/; s/!/@,|#_!!_#|/
52067 :n
52068 t n
52069 s/'"$ac_delim"'$/,g/; t
52070 s/$/\\/; p
52071 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52072 ' >>$CONFIG_STATUS <conf$$subs.sed
52073 rm -f conf$$subs.sed
52074 cat >>$CONFIG_STATUS <<_ACEOF
52075 CEOF$ac_eof
52076 _ACEOF
52077
52078
52079 ac_delim='%!_!# '
52080 for ac_last_try in false false false false false :; do
52081   cat >conf$$subs.sed <<_ACEOF
52082 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
52083 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
52084 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
52085 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
52086 COND_SHARED_1!$COND_SHARED_1$ac_delim
52087 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
52088 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
52089 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
52090 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
52091 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52092 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
52093 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
52094 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
52095 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52096 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52097 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52098 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52099 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52100 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52101 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52102 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52103 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52104 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52105 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52106 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52107 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52108 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52109 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52110 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52111 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52112 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52113 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52114 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52115 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52116 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52117 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52118 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52119 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52120 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52121 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52122 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52123 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52124 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52125 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52126 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52127 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52128 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52129 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52130 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52131 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52132 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52133 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52134 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52135 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52136 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52137 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52138 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52139 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52140 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52141 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52142 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52143 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52144 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52145 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52146 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52147 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52148 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52149 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52150 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52151 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52152 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52153 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52154 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52155 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52156 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52157 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52158 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52159 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52160 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52161 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52162 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52163 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52164 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52165 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52166 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52167 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52168 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52169 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52170 DEREZ!$DEREZ$ac_delim
52171 SHARED!$SHARED$ac_delim
52172 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52173 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52174 USE_GUI!$USE_GUI$ac_delim
52175 AFMINSTALL!$AFMINSTALL$ac_delim
52176 WIN32INSTALL!$WIN32INSTALL$ac_delim
52177 TOOLKIT!$TOOLKIT$ac_delim
52178 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52179 _ACEOF
52180
52181   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52182     break
52183   elif $ac_last_try; then
52184     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52186    { (exit 1); exit 1; }; }
52187   else
52188     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52189   fi
52190 done
52191
52192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52193 if test -n "$ac_eof"; then
52194   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52195   ac_eof=`expr $ac_eof + 1`
52196 fi
52197
52198 cat >>$CONFIG_STATUS <<_ACEOF
52199 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52201 _ACEOF
52202 sed '
52203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52204 s/^/s,@/; s/!/@,|#_!!_#|/
52205 :n
52206 t n
52207 s/'"$ac_delim"'$/,g/; t
52208 s/$/\\/; p
52209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52210 ' >>$CONFIG_STATUS <conf$$subs.sed
52211 rm -f conf$$subs.sed
52212 cat >>$CONFIG_STATUS <<_ACEOF
52213 CEOF$ac_eof
52214 _ACEOF
52215
52216
52217 ac_delim='%!_!# '
52218 for ac_last_try in false false false false false :; do
52219   cat >conf$$subs.sed <<_ACEOF
52220 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52221 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52222 cross_compiling!$cross_compiling$ac_delim
52223 WIDGET_SET!$WIDGET_SET$ac_delim
52224 WX_RELEASE!$WX_RELEASE$ac_delim
52225 WX_VERSION!$WX_VERSION$ac_delim
52226 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52227 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52228 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52229 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52230 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52231 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52232 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52233 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52234 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52235 GUIDIST!$GUIDIST$ac_delim
52236 DISTDIR!$DISTDIR$ac_delim
52237 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52238 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52239 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52240 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52241 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52242 RESCOMP!$RESCOMP$ac_delim
52243 RESFLAGS!$RESFLAGS$ac_delim
52244 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52245 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52246 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52247 LIBWXMACRES!$LIBWXMACRES$ac_delim
52248 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52249 MACSETFILE!$MACSETFILE$ac_delim
52250 GCC!$GCC$ac_delim
52251 DLLTOOL!$DLLTOOL$ac_delim
52252 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52253 LIBOBJS!$LIBOBJS$ac_delim
52254 LTLIBOBJS!$LTLIBOBJS$ac_delim
52255 _ACEOF
52256
52257   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
52258     break
52259   elif $ac_last_try; then
52260     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52261 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52262    { (exit 1); exit 1; }; }
52263   else
52264     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52265   fi
52266 done
52267
52268 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52269 if test -n "$ac_eof"; then
52270   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52271   ac_eof=`expr $ac_eof + 1`
52272 fi
52273
52274 cat >>$CONFIG_STATUS <<_ACEOF
52275 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52277 _ACEOF
52278 sed '
52279 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52280 s/^/s,@/; s/!/@,|#_!!_#|/
52281 :n
52282 t n
52283 s/'"$ac_delim"'$/,g/; t
52284 s/$/\\/; p
52285 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52286 ' >>$CONFIG_STATUS <conf$$subs.sed
52287 rm -f conf$$subs.sed
52288 cat >>$CONFIG_STATUS <<_ACEOF
52289 :end
52290 s/|#_!!_#|//g
52291 CEOF$ac_eof
52292 _ACEOF
52293
52294
52295 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52296 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52297 # trailing colons and then remove the whole line if VPATH becomes empty
52298 # (actually we leave an empty line to preserve line numbers).
52299 if test "x$srcdir" = x.; then
52300   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52301 s/:*\$(srcdir):*/:/
52302 s/:*\${srcdir}:*/:/
52303 s/:*@srcdir@:*/:/
52304 s/^\([^=]*=[     ]*\):*/\1/
52305 s/:*$//
52306 s/^[^=]*=[       ]*$//
52307 }'
52308 fi
52309
52310 cat >>$CONFIG_STATUS <<\_ACEOF
52311 fi # test -n "$CONFIG_FILES"
52312
52313
52314 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52315 do
52316   case $ac_tag in
52317   :[FHLC]) ac_mode=$ac_tag; continue;;
52318   esac
52319   case $ac_mode$ac_tag in
52320   :[FHL]*:*);;
52321   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52322 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52323    { (exit 1); exit 1; }; };;
52324   :[FH]-) ac_tag=-:-;;
52325   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52326   esac
52327   ac_save_IFS=$IFS
52328   IFS=:
52329   set x $ac_tag
52330   IFS=$ac_save_IFS
52331   shift
52332   ac_file=$1
52333   shift
52334
52335   case $ac_mode in
52336   :L) ac_source=$1;;
52337   :[FH])
52338     ac_file_inputs=
52339     for ac_f
52340     do
52341       case $ac_f in
52342       -) ac_f="$tmp/stdin";;
52343       *) # Look for the file first in the build tree, then in the source tree
52344          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52345          # because $ac_f cannot contain `:'.
52346          test -f "$ac_f" ||
52347            case $ac_f in
52348            [\\/$]*) false;;
52349            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52350            esac ||
52351            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52352 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52353    { (exit 1); exit 1; }; };;
52354       esac
52355       ac_file_inputs="$ac_file_inputs $ac_f"
52356     done
52357
52358     # Let's still pretend it is `configure' which instantiates (i.e., don't
52359     # use $as_me), people would be surprised to read:
52360     #    /* config.h.  Generated by config.status.  */
52361     configure_input="Generated from "`IFS=:
52362           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52363     if test x"$ac_file" != x-; then
52364       configure_input="$ac_file.  $configure_input"
52365       { echo "$as_me:$LINENO: creating $ac_file" >&5
52366 echo "$as_me: creating $ac_file" >&6;}
52367     fi
52368
52369     case $ac_tag in
52370     *:-:* | *:-) cat >"$tmp/stdin";;
52371     esac
52372     ;;
52373   esac
52374
52375   ac_dir=`$as_dirname -- "$ac_file" ||
52376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52377          X"$ac_file" : 'X\(//\)[^/]' \| \
52378          X"$ac_file" : 'X\(//\)$' \| \
52379          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52380 echo X"$ac_file" |
52381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52382             s//\1/
52383             q
52384           }
52385           /^X\(\/\/\)[^/].*/{
52386             s//\1/
52387             q
52388           }
52389           /^X\(\/\/\)$/{
52390             s//\1/
52391             q
52392           }
52393           /^X\(\/\).*/{
52394             s//\1/
52395             q
52396           }
52397           s/.*/./; q'`
52398   { as_dir="$ac_dir"
52399   case $as_dir in #(
52400   -*) as_dir=./$as_dir;;
52401   esac
52402   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52403     as_dirs=
52404     while :; do
52405       case $as_dir in #(
52406       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52407       *) as_qdir=$as_dir;;
52408       esac
52409       as_dirs="'$as_qdir' $as_dirs"
52410       as_dir=`$as_dirname -- "$as_dir" ||
52411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52412          X"$as_dir" : 'X\(//\)[^/]' \| \
52413          X"$as_dir" : 'X\(//\)$' \| \
52414          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52415 echo X"$as_dir" |
52416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52417             s//\1/
52418             q
52419           }
52420           /^X\(\/\/\)[^/].*/{
52421             s//\1/
52422             q
52423           }
52424           /^X\(\/\/\)$/{
52425             s//\1/
52426             q
52427           }
52428           /^X\(\/\).*/{
52429             s//\1/
52430             q
52431           }
52432           s/.*/./; q'`
52433       test -d "$as_dir" && break
52434     done
52435     test -z "$as_dirs" || eval "mkdir $as_dirs"
52436   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52437 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52438    { (exit 1); exit 1; }; }; }
52439   ac_builddir=.
52440
52441 case "$ac_dir" in
52442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52443 *)
52444   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52445   # A ".." for each directory in $ac_dir_suffix.
52446   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52447   case $ac_top_builddir_sub in
52448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52450   esac ;;
52451 esac
52452 ac_abs_top_builddir=$ac_pwd
52453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52454 # for backward compatibility:
52455 ac_top_builddir=$ac_top_build_prefix
52456
52457 case $srcdir in
52458   .)  # We are building in place.
52459     ac_srcdir=.
52460     ac_top_srcdir=$ac_top_builddir_sub
52461     ac_abs_top_srcdir=$ac_pwd ;;
52462   [\\/]* | ?:[\\/]* )  # Absolute name.
52463     ac_srcdir=$srcdir$ac_dir_suffix;
52464     ac_top_srcdir=$srcdir
52465     ac_abs_top_srcdir=$srcdir ;;
52466   *) # Relative name.
52467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52468     ac_top_srcdir=$ac_top_build_prefix$srcdir
52469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52470 esac
52471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52472
52473
52474   case $ac_mode in
52475   :F)
52476   #
52477   # CONFIG_FILE
52478   #
52479
52480   case $INSTALL in
52481   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52482   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52483   esac
52484 _ACEOF
52485
52486 cat >>$CONFIG_STATUS <<\_ACEOF
52487 # If the template does not know about datarootdir, expand it.
52488 # FIXME: This hack should be removed a few years after 2.60.
52489 ac_datarootdir_hack=; ac_datarootdir_seen=
52490
52491 case `sed -n '/datarootdir/ {
52492   p
52493   q
52494 }
52495 /@datadir@/p
52496 /@docdir@/p
52497 /@infodir@/p
52498 /@localedir@/p
52499 /@mandir@/p
52500 ' $ac_file_inputs` in
52501 *datarootdir*) ac_datarootdir_seen=yes;;
52502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52503   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52504 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52505 _ACEOF
52506 cat >>$CONFIG_STATUS <<_ACEOF
52507   ac_datarootdir_hack='
52508   s&@datadir@&$datadir&g
52509   s&@docdir@&$docdir&g
52510   s&@infodir@&$infodir&g
52511   s&@localedir@&$localedir&g
52512   s&@mandir@&$mandir&g
52513     s&\\\${datarootdir}&$datarootdir&g' ;;
52514 esac
52515 _ACEOF
52516
52517 # Neutralize VPATH when `$srcdir' = `.'.
52518 # Shell code in configure.ac might set extrasub.
52519 # FIXME: do we really want to maintain this feature?
52520 cat >>$CONFIG_STATUS <<_ACEOF
52521   sed "$ac_vpsub
52522 $extrasub
52523 _ACEOF
52524 cat >>$CONFIG_STATUS <<\_ACEOF
52525 :t
52526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52527 s&@configure_input@&$configure_input&;t t
52528 s&@top_builddir@&$ac_top_builddir_sub&;t t
52529 s&@srcdir@&$ac_srcdir&;t t
52530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52531 s&@top_srcdir@&$ac_top_srcdir&;t t
52532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52533 s&@builddir@&$ac_builddir&;t t
52534 s&@abs_builddir@&$ac_abs_builddir&;t t
52535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52536 s&@INSTALL@&$ac_INSTALL&;t t
52537 $ac_datarootdir_hack
52538 " $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
52539
52540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52541   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52542   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52543   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52544 which seems to be undefined.  Please make sure it is defined." >&5
52545 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52546 which seems to be undefined.  Please make sure it is defined." >&2;}
52547
52548   rm -f "$tmp/stdin"
52549   case $ac_file in
52550   -) cat "$tmp/out"; rm -f "$tmp/out";;
52551   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52552   esac
52553  ;;
52554   :H)
52555   #
52556   # CONFIG_HEADER
52557   #
52558 _ACEOF
52559
52560 # Transform confdefs.h into a sed script `conftest.defines', that
52561 # substitutes the proper values into config.h.in to produce config.h.
52562 rm -f conftest.defines conftest.tail
52563 # First, append a space to every undef/define line, to ease matching.
52564 echo 's/$/ /' >conftest.defines
52565 # Then, protect against being on the right side of a sed subst, or in
52566 # an unquoted here document, in config.status.  If some macros were
52567 # called several times there might be several #defines for the same
52568 # symbol, which is useless.  But do not sort them, since the last
52569 # AC_DEFINE must be honored.
52570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52571 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52572 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52573 # PARAMS is the parameter list in the macro definition--in most cases, it's
52574 # just an empty string.
52575 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52576 ac_dB='\\)[      (].*,\\1define\\2'
52577 ac_dC=' '
52578 ac_dD=' ,'
52579
52580 uniq confdefs.h |
52581   sed -n '
52582         t rset
52583         :rset
52584         s/^[     ]*#[    ]*define[       ][      ]*//
52585         t ok
52586         d
52587         :ok
52588         s/[\\&,]/\\&/g
52589         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52590         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52591   ' >>conftest.defines
52592
52593 # Remove the space that was appended to ease matching.
52594 # Then replace #undef with comments.  This is necessary, for
52595 # example, in the case of _POSIX_SOURCE, which is predefined and required
52596 # on some systems where configure will not decide to define it.
52597 # (The regexp can be short, since the line contains either #define or #undef.)
52598 echo 's/ $//
52599 s,^[     #]*u.*,/* & */,' >>conftest.defines
52600
52601 # Break up conftest.defines:
52602 ac_max_sed_lines=50
52603
52604 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52605 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52606 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52607 # et cetera.
52608 ac_in='$ac_file_inputs'
52609 ac_out='"$tmp/out1"'
52610 ac_nxt='"$tmp/out2"'
52611
52612 while :
52613 do
52614   # Write a here document:
52615     cat >>$CONFIG_STATUS <<_ACEOF
52616     # First, check the format of the line:
52617     cat >"\$tmp/defines.sed" <<\\CEOF
52618 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52619 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52620 b
52621 :def
52622 _ACEOF
52623   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52624   echo 'CEOF
52625     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52626   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52627   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52628   grep . conftest.tail >/dev/null || break
52629   rm -f conftest.defines
52630   mv conftest.tail conftest.defines
52631 done
52632 rm -f conftest.defines conftest.tail
52633
52634 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52635 cat >>$CONFIG_STATUS <<\_ACEOF
52636   if test x"$ac_file" != x-; then
52637     echo "/* $configure_input  */" >"$tmp/config.h"
52638     cat "$ac_result" >>"$tmp/config.h"
52639     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52640       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52641 echo "$as_me: $ac_file is unchanged" >&6;}
52642     else
52643       rm -f $ac_file
52644       mv "$tmp/config.h" $ac_file
52645     fi
52646   else
52647     echo "/* $configure_input  */"
52648     cat "$ac_result"
52649   fi
52650   rm -f "$tmp/out12"
52651  ;;
52652
52653   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52654 echo "$as_me: executing $ac_file commands" >&6;}
52655  ;;
52656   esac
52657
52658
52659   case $ac_file$ac_mode in
52660     "rcdefs.h":C)
52661             mkdir -p $outdir &&
52662             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52663          ;;
52664     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52665     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52666     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52667     "wx-config":C)  rm -f wx-config
52668                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52669                     ;;
52670
52671   esac
52672 done # for ac_tag
52673
52674
52675 { (exit 0); exit 0; }
52676 _ACEOF
52677 chmod +x $CONFIG_STATUS
52678 ac_clean_files=$ac_clean_files_save
52679
52680
52681 # configure is writing to config.log, and then calls config.status.
52682 # config.status does its own redirection, appending to config.log.
52683 # Unfortunately, on DOS this fails, as config.log is still kept open
52684 # by configure, so config.status won't be able to write to it; its
52685 # output is simply discarded.  So we exec the FD to /dev/null,
52686 # effectively closing config.log, so it can be properly (re)opened and
52687 # appended to by config.status.  When coming back to configure, we
52688 # need to make the FD available again.
52689 if test "$no_create" != yes; then
52690   ac_cs_success=:
52691   ac_config_status_args=
52692   test "$silent" = yes &&
52693     ac_config_status_args="$ac_config_status_args --quiet"
52694   exec 5>/dev/null
52695   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52696   exec 5>>config.log
52697   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52698   # would make configure fail if this is the last instruction.
52699   $ac_cs_success || { (exit 1); exit 1; }
52700 fi
52701
52702 #
52703 # CONFIG_SUBDIRS section.
52704 #
52705 if test "$no_recursion" != yes; then
52706
52707   # Remove --cache-file and --srcdir arguments so they do not pile up.
52708   ac_sub_configure_args=
52709   ac_prev=
52710   eval "set x $ac_configure_args"
52711   shift
52712   for ac_arg
52713   do
52714     if test -n "$ac_prev"; then
52715       ac_prev=
52716       continue
52717     fi
52718     case $ac_arg in
52719     -cache-file | --cache-file | --cache-fil | --cache-fi \
52720     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52721       ac_prev=cache_file ;;
52722     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52723     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52724     | --c=*)
52725       ;;
52726     --config-cache | -C)
52727       ;;
52728     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52729       ac_prev=srcdir ;;
52730     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52731       ;;
52732     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52733       ac_prev=prefix ;;
52734     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52735       ;;
52736     *)
52737       case $ac_arg in
52738       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52739       esac
52740       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52741     esac
52742   done
52743
52744   # Always prepend --prefix to ensure using the same prefix
52745   # in subdir configurations.
52746   ac_arg="--prefix=$prefix"
52747   case $ac_arg in
52748   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52749   esac
52750   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52751
52752   # Pass --silent
52753   if test "$silent" = yes; then
52754     ac_sub_configure_args="--silent $ac_sub_configure_args"
52755   fi
52756
52757   ac_popdir=`pwd`
52758   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52759
52760     # Do not complain, so a configure script can configure whichever
52761     # parts of a large source tree are present.
52762     test -d "$srcdir/$ac_dir" || continue
52763
52764     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52765     echo "$as_me:$LINENO: $ac_msg" >&5
52766     echo "$ac_msg" >&6
52767     { as_dir="$ac_dir"
52768   case $as_dir in #(
52769   -*) as_dir=./$as_dir;;
52770   esac
52771   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52772     as_dirs=
52773     while :; do
52774       case $as_dir in #(
52775       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52776       *) as_qdir=$as_dir;;
52777       esac
52778       as_dirs="'$as_qdir' $as_dirs"
52779       as_dir=`$as_dirname -- "$as_dir" ||
52780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52781          X"$as_dir" : 'X\(//\)[^/]' \| \
52782          X"$as_dir" : 'X\(//\)$' \| \
52783          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52784 echo X"$as_dir" |
52785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52786             s//\1/
52787             q
52788           }
52789           /^X\(\/\/\)[^/].*/{
52790             s//\1/
52791             q
52792           }
52793           /^X\(\/\/\)$/{
52794             s//\1/
52795             q
52796           }
52797           /^X\(\/\).*/{
52798             s//\1/
52799             q
52800           }
52801           s/.*/./; q'`
52802       test -d "$as_dir" && break
52803     done
52804     test -z "$as_dirs" || eval "mkdir $as_dirs"
52805   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52806 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52807    { (exit 1); exit 1; }; }; }
52808     ac_builddir=.
52809
52810 case "$ac_dir" in
52811 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52812 *)
52813   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52814   # A ".." for each directory in $ac_dir_suffix.
52815   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52816   case $ac_top_builddir_sub in
52817   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52818   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52819   esac ;;
52820 esac
52821 ac_abs_top_builddir=$ac_pwd
52822 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52823 # for backward compatibility:
52824 ac_top_builddir=$ac_top_build_prefix
52825
52826 case $srcdir in
52827   .)  # We are building in place.
52828     ac_srcdir=.
52829     ac_top_srcdir=$ac_top_builddir_sub
52830     ac_abs_top_srcdir=$ac_pwd ;;
52831   [\\/]* | ?:[\\/]* )  # Absolute name.
52832     ac_srcdir=$srcdir$ac_dir_suffix;
52833     ac_top_srcdir=$srcdir
52834     ac_abs_top_srcdir=$srcdir ;;
52835   *) # Relative name.
52836     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52837     ac_top_srcdir=$ac_top_build_prefix$srcdir
52838     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52839 esac
52840 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52841
52842
52843     cd "$ac_dir"
52844
52845     # Check for guested configure; otherwise get Cygnus style configure.
52846     if test -f "$ac_srcdir/configure.gnu"; then
52847       ac_sub_configure=$ac_srcdir/configure.gnu
52848     elif test -f "$ac_srcdir/configure"; then
52849       ac_sub_configure=$ac_srcdir/configure
52850     elif test -f "$ac_srcdir/configure.in"; then
52851       # This should be Cygnus configure.
52852       ac_sub_configure=$ac_aux_dir/configure
52853     else
52854       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52855 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52856       ac_sub_configure=
52857     fi
52858
52859     # The recursion is here.
52860     if test -n "$ac_sub_configure"; then
52861       # Make the cache file name correct relative to the subdirectory.
52862       case $cache_file in
52863       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52864       *) # Relative name.
52865         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52866       esac
52867
52868       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52869 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52870       # The eval makes quoting arguments work.
52871       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
52872            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
52873         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52874 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52875    { (exit 1); exit 1; }; }
52876     fi
52877
52878     cd "$ac_popdir"
52879   done
52880 fi
52881
52882
52883 echo
52884 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52885 echo ""
52886 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52887 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52888 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52889 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52890 if test "$wxUSE_UNICODE" = "yes"; then
52891     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52892         echo " (using UTF-8)"
52893     else
52894         echo " (using wchar_t)"
52895     fi
52896 else
52897     echo
52898 fi
52899
52900 echo "  What level of wxWidgets compatibility should be enabled?"
52901 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52902 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52903
52904 echo "  Which libraries should wxWidgets use?"
52905 echo "                                       STL                ${wxUSE_STL}"
52906 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52907 echo "                                       png                ${wxUSE_LIBPNG-none}"
52908 echo "                                       regex              ${wxUSE_REGEX}"
52909 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52910 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52911 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52912 fi
52913 echo "                                       zlib               ${wxUSE_ZLIB}"
52914 echo "                                       expat              ${wxUSE_EXPAT}"
52915 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52916 echo "                                       sdl                ${wxUSE_LIBSDL}"
52917
52918 echo ""
52919